diff --git a/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 1095cb4e890..2f37f8f1d17 100644 --- a/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -60,12 +60,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Retrieve a conversationMember from a chat. - /// Find more info here + /// Retrieve a conversationMember from a chat or channel. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve a conversationMember from a chat.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0"; + command.Description = "Retrieve a conversationMember from a chat or channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0"; var chatIdOption = new Option("--chat-id", description: "The unique identifier of chat") { }; chatIdOption.IsRequired = true; @@ -228,7 +228,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat. + /// Retrieve a conversationMember from a chat or channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -282,7 +282,7 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act return requestInfo; } /// - /// Retrieve a conversationMember from a chat. + /// Retrieve a conversationMember from a chat or channel. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs index cbdf26b1cf4..17ec5fe909f 100644 --- a/src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -56,12 +56,12 @@ 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 /// 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; @@ -278,7 +278,7 @@ 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs b/src/generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs index 6cdd80ea54a..5dba2e96b19 100644 --- a/src/generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Answer/AnswerPostRequestBody.cs @@ -63,8 +63,8 @@ public static AnswerPostRequestBody CreateFromDiscriminatorValue(IParseNode pars public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"acceptedModalities", n => { AcceptedModalities = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"callOptions", n => { CallOptions = n.GetObjectValue(IncomingCallOptions.CreateFromDiscriminatorValue); } }, + {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"mediaConfig", n => { MediaConfig = n.GetObjectValue(ApiSdk.Models.MediaConfig.CreateFromDiscriminatorValue); } }, {"participantCapacity", n => { ParticipantCapacity = n.GetIntValue(); } }, }; diff --git a/src/generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs b/src/generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs index 31cf9a5b48a..eae428ea43c 100644 --- a/src/generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs +++ b/src/generated/Communications/Calls/Item/Transfer/TransferPostRequestBody.cs @@ -44,8 +44,8 @@ public static TransferPostRequestBody CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"transferee", n => { Transferee = n.GetObjectValue(ParticipantInfo.CreateFromDiscriminatorValue); } }, {"transferTarget", n => { TransferTarget = n.GetObjectValue(InvitationParticipantInfo.CreateFromDiscriminatorValue); } }, + {"transferee", n => { Transferee = n.GetObjectValue(ParticipantInfo.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index 4dda0df47d5..651e257cc93 100644 --- a/src/generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -86,11 +86,11 @@ public Command BuildDefaultManagedAppProtectionsNavCommand() { } /// /// Read properties and relationships of the deviceAppManagement object. - /// Find more info here + /// Find more info here /// 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-policyset-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 }; @@ -352,8 +352,22 @@ public Command BuildMobileAppsNavCommand() { var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); execCommands.Add(builder.BuildCreateCommand()); + nonExecCommands.Add(builder.BuildGraphAndroidLobAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphAndroidStoreAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphIosLobAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphIosStoreAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphIosVppAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphMacOSDmgAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphMacOSLobAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphManagedAndroidLobAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphManagedIOSLobAppNavCommand()); nonExecCommands.Add(builder.BuildGraphManagedMobileLobAppNavCommand()); - nonExecCommands.Add(builder.BuildGraphMobileLobAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphMicrosoftStoreForBusinessAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphWin32LobAppNavCommand()); + nonExecCommands.Add(builder.BuildGraphWindowsAppXNavCommand()); + nonExecCommands.Add(builder.BuildGraphWindowsMobileMSINavCommand()); + nonExecCommands.Add(builder.BuildGraphWindowsUniversalAppXNavCommand()); + nonExecCommands.Add(builder.BuildGraphWindowsWebAppNavCommand()); execCommands.Add(builder.BuildListCommand()); var cmds = builder.BuildCommand(); execCommands.AddRange(cmds.Item1); diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index acac69c6844..f92a02d5060 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -54,12 +54,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Read properties and relationships of the managedAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the managedAppProtection object. + /// Find more info here /// 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 managedAppProtection object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-get?view=graph-rest-1.0"; var managedAppPolicyIdOption = new Option("--managed-app-policy-id", description: "The unique identifier of managedAppPolicy") { }; managedAppPolicyIdOption.IsRequired = true; @@ -225,7 +225,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppConfiguration object. + /// Read properties and relationships of the managedAppProtection object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -279,7 +279,7 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio return requestInfo; } /// - /// Read properties and relationships of the managedAppConfiguration object. + /// Read properties and relationships of the managedAppProtection object. /// public class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 6bf4a026e29..afe76d20b43 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -20,11 +20,11 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps { public class TargetAppsRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented - /// Find more info here + /// Find more info here /// 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-targetedmanagedappprotection-targetapps?view=graph-rest-1.0"; var managedAppPolicyIdOption = new Option("--managed-app-policy-id", description: "The unique identifier of managedAppPolicy") { }; managedAppPolicyIdOption.IsRequired = true; diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs index 3139ad31f21..5d593198207 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs @@ -101,12 +101,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the managedAppConfiguration objects. - /// Find more info here + /// List properties and relationships of the managedAppPolicy objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the managedAppConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0"; + 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"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -218,7 +218,7 @@ public ManagedAppPoliciesRequestBuilder(Dictionary pathParameter public ManagedAppPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedAppConfiguration objects. + /// List properties and relationships of the managedAppPolicy objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -272,7 +272,7 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action return requestInfo; } /// - /// List properties and relationships of the managedAppConfiguration objects. + /// List properties and relationships of the managedAppPolicy objects. /// public class ManagedAppPoliciesRequestBuilderGetQueryParameters { /// Include count of items 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 3de29e77400..f7e5e47b0d2 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -20,11 +20,11 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicie public class TargetAppsRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented - /// Find more info here + /// Find more info here /// 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-targetedmanagedappprotection-targetapps?view=graph-rest-1.0"; var managedAppRegistrationIdOption = new Option("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") { }; managedAppRegistrationIdOption.IsRequired = true; 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 c3882dcd34a..35ac4612c76 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -20,11 +20,11 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolici public class TargetAppsRequestBuilder : BaseCliRequestBuilder { /// /// Not yet documented - /// Find more info here + /// Find more info here /// 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-targetedmanagedappprotection-targetapps?view=graph-rest-1.0"; var managedAppRegistrationIdOption = new Option("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") { }; managedAppRegistrationIdOption.IsRequired = true; diff --git a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs index c6605df75e3..8b1017ed448 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs @@ -81,12 +81,12 @@ 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 /// 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; @@ -287,7 +287,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosManagedAppRegistration object. + /// Read properties and relationships of the managedAppRegistration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -341,7 +341,7 @@ 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 { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs index f67957dd252..409ba8f61b4 100644 --- a/src/generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs @@ -53,12 +53,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Read properties and relationships of the managedAppStatus object. - /// Find more info here + /// Read properties and relationships of the managedAppStatusRaw object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the managedAppStatus object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the managedAppStatusRaw object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappstatusraw-get?view=graph-rest-1.0"; var managedAppStatusIdOption = new Option("--managed-app-status-id", description: "The unique identifier of managedAppStatus") { }; managedAppStatusIdOption.IsRequired = true; @@ -209,7 +209,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppStatus object. + /// Read properties and relationships of the managedAppStatusRaw object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -263,7 +263,7 @@ public RequestInformation ToPatchRequestInformation(ManagedAppStatus body, Actio return requestInfo; } /// - /// Read properties and relationships of the managedAppStatus object. + /// Read properties and relationships of the managedAppStatusRaw object. /// public class ManagedAppStatusItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs index ca1be7b578b..ee130dac979 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new managedEBookAssignment object. - /// Find more info here + /// Create a new iosVppEBookAssignment object. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new managedEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0"; + command.Description = "Create a new iosVppEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -255,7 +255,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new managedEBookAssignment object. + /// Create a new iosVppEBookAssignment object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs index d88b4b1a672..6c8b5016f3f 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assignments.Item { /// public class ManagedEBookAssignmentItemRequestBuilder : BaseCliRequestBuilder { /// - /// Deletes a iosVppEBookAssignment. - /// Find more info here + /// Deletes a managedEBookAssignment. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - 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"; + 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"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -60,12 +60,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Read properties and relationships of the iosVppEBookAssignment object. - /// Find more info here + /// Read properties and relationships of the managedEBookAssignment object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the iosVppEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the managedEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-get?view=graph-rest-1.0"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -128,12 +128,12 @@ public Command BuildGetCommand() { return command; } /// - /// Update the properties of a iosVppEBookAssignment object. - /// Find more info here + /// Update the properties of a managedEBookAssignment object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a iosVppEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a managedEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-update?view=graph-rest-1.0"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -204,7 +204,7 @@ public ManagedEBookAssignmentItemRequestBuilder(Dictionary pathP public ManagedEBookAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a iosVppEBookAssignment. + /// Deletes a managedEBookAssignment. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -229,7 +229,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBookAssignment object. + /// Read properties and relationships of the managedEBookAssignment object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -255,7 +255,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a iosVppEBookAssignment object. + /// Update the properties of a managedEBookAssignment object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -283,7 +283,7 @@ public RequestInformation ToPatchRequestInformation(ManagedEBookAssignment body, return requestInfo; } /// - /// Read properties and relationships of the iosVppEBookAssignment object. + /// Read properties and relationships of the managedEBookAssignment object. /// public class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs index 3adf8963591..a6a550f648e 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs @@ -124,12 +124,12 @@ public Command BuildDeviceStatesNavCommand() { return command; } /// - /// Read properties and relationships of the managedEBook object. - /// Find more info here + /// Read properties and relationships of the iosVppEBook object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - 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"; + 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"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -323,7 +323,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedEBook object. + /// Read properties and relationships of the iosVppEBook object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -377,7 +377,7 @@ public RequestInformation ToPatchRequestInformation(ManagedEBook body, Action - /// Read properties and relationships of the managedEBook object. + /// Read properties and relationships of the iosVppEBook object. /// public class ManagedEBookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs index 8b87d94f861..61dddbeab3e 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs @@ -107,12 +107,12 @@ 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 /// 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; @@ -224,7 +224,7 @@ public MobileAppConfigurationsRequestBuilder(Dictionary pathPara public MobileAppConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the iosMobileAppConfiguration objects. + /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -278,7 +278,7 @@ 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 { /// Include count of items diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..4674b708cc2 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidLobApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidLobApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs new file mode 100644 index 00000000000..0e647619df5 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidLobApp.Count; +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.DeviceAppManagement.MobileApps.GraphAndroidLobApp { + /// + /// Casts the previous resource to androidLobApp. + /// + public class GraphAndroidLobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.androidLobApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.androidLobApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphAndroidLobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphAndroidLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphAndroidLobAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.androidLobApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.androidLobApp in the microsoft.graph.mobileApp collection + /// + public class GraphAndroidLobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9867c48d343 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidStoreApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidStoreApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs new file mode 100644 index 00000000000..256206a6528 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidStoreApp.Count; +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.DeviceAppManagement.MobileApps.GraphAndroidStoreApp { + /// + /// Casts the previous resource to androidStoreApp. + /// + public class GraphAndroidStoreAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.androidStoreApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.androidStoreApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphAndroidStoreAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphAndroidStoreAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidStoreApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphAndroidStoreAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphAndroidStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.androidStoreApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.androidStoreApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.androidStoreApp in the microsoft.graph.mobileApp collection + /// + public class GraphAndroidStoreAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphMobileLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs similarity index 96% rename from src/generated/DeviceAppManagement/MobileApps/GraphMobileLobApp/Count/CountRequestBuilder.cs rename to src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs index 02f412721b4..6f70fe63c6c 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphMobileLobApp/Count/CountRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/Count/CountRequestBuilder.cs @@ -13,7 +13,7 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace ApiSdk.DeviceAppManagement.MobileApps.GraphMobileLobApp.Count { +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphIosLobApp.Count { /// /// Provides operations to count the resources in the collection. /// @@ -56,13 +56,13 @@ public Command BuildGetCommand() { /// Instantiates a new CountRequestBuilder and sets the default values. /// /// Path parameters for the request - public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.mobileLobApp/$count{?%24search,%24filter}", pathParameters) { + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosLobApp/$count{?%24search,%24filter}", pathParameters) { } /// /// Instantiates a new CountRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. - public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.mobileLobApp/$count{?%24search,%24filter}", rawUrl) { + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosLobApp/$count{?%24search,%24filter}", rawUrl) { } /// /// Get the number of the resource diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphMobileLobApp/GraphMobileLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs similarity index 87% rename from src/generated/DeviceAppManagement/MobileApps/GraphMobileLobApp/GraphMobileLobAppRequestBuilder.cs rename to src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs index 3934d53b2ef..166397c5176 100644 --- a/src/generated/DeviceAppManagement/MobileApps/GraphMobileLobApp/GraphMobileLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs @@ -1,5 +1,5 @@ // -using ApiSdk.DeviceAppManagement.MobileApps.GraphMobileLobApp.Count; +using ApiSdk.DeviceAppManagement.MobileApps.GraphIosLobApp.Count; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -15,11 +15,11 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace ApiSdk.DeviceAppManagement.MobileApps.GraphMobileLobApp { +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphIosLobApp { /// - /// Casts the previous resource to mobileLobApp. + /// Casts the previous resource to iosLobApp. /// - public class GraphMobileLobAppRequestBuilder : BaseCliRequestBuilder { + public class GraphIosLobAppRequestBuilder : BaseCliRequestBuilder { /// /// Provides operations to count the resources in the collection. /// @@ -36,11 +36,11 @@ public Command BuildCountNavCommand() { return command; } /// - /// Get the items of type microsoft.graph.mobileLobApp in the microsoft.graph.mobileApp collection + /// Get the items of type microsoft.graph.iosLobApp in the microsoft.graph.mobileApp collection /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get the items of type microsoft.graph.mobileLobApp in the microsoft.graph.mobileApp collection"; + command.Description = "Get the items of type microsoft.graph.iosLobApp in the microsoft.graph.mobileApp collection"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -140,27 +140,27 @@ public Command BuildGetCommand() { return command; } /// - /// Instantiates a new GraphMobileLobAppRequestBuilder and sets the default values. + /// Instantiates a new GraphIosLobAppRequestBuilder and sets the default values. /// /// Path parameters for the request - public GraphMobileLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.mobileLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + public GraphIosLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { } /// - /// Instantiates a new GraphMobileLobAppRequestBuilder and sets the default values. + /// Instantiates a new GraphIosLobAppRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. - public GraphMobileLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.mobileLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + public GraphIosLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the items of type microsoft.graph.mobileLobApp in the microsoft.graph.mobileApp collection + /// Get the items of type microsoft.graph.iosLobApp in the microsoft.graph.mobileApp collection /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation { HttpMethod = Method.GET, @@ -169,7 +169,7 @@ public RequestInformation ToGetRequestInformation(Action(); + var requestConfig = new RequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddQueryParameters(requestConfig.QueryParameters); requestInfo.AddRequestOptions(requestConfig.Options); @@ -178,9 +178,9 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the items of type microsoft.graph.mobileLobApp in the microsoft.graph.mobileApp collection + /// Get the items of type microsoft.graph.iosLobApp in the microsoft.graph.mobileApp collection /// - public class GraphMobileLobAppRequestBuilderGetQueryParameters { + public class GraphIosLobAppRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..014f2200409 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphIosStoreApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosStoreApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs new file mode 100644 index 00000000000..996a9e072c6 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphIosStoreApp.Count; +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.DeviceAppManagement.MobileApps.GraphIosStoreApp { + /// + /// Casts the previous resource to iosStoreApp. + /// + public class GraphIosStoreAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.iosStoreApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.iosStoreApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphIosStoreAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphIosStoreAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosStoreApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphIosStoreAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphIosStoreAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosStoreApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.iosStoreApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.iosStoreApp in the microsoft.graph.mobileApp collection + /// + public class GraphIosStoreAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..850b24f4722 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphIosVppApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosVppApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs new file mode 100644 index 00000000000..765b432355d --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphIosVppApp.Count; +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.DeviceAppManagement.MobileApps.GraphIosVppApp { + /// + /// Casts the previous resource to iosVppApp. + /// + public class GraphIosVppAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.iosVppApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.iosVppApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphIosVppAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphIosVppAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosVppApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphIosVppAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphIosVppAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.iosVppApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.iosVppApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.iosVppApp in the microsoft.graph.mobileApp collection + /// + public class GraphIosVppAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..eb22da929ee --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSDmgApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSDmgApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs new file mode 100644 index 00000000000..8eab3fee0e4 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSDmgApp.Count; +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.DeviceAppManagement.MobileApps.GraphMacOSDmgApp { + /// + /// Casts the previous resource to macOSDmgApp. + /// + public class GraphMacOSDmgAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.macOSDmgApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.macOSDmgApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphMacOSDmgAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphMacOSDmgAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSDmgApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphMacOSDmgAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphMacOSDmgAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSDmgApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.macOSDmgApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.macOSDmgApp in the microsoft.graph.mobileApp collection + /// + public class GraphMacOSDmgAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6f64dc46ebb --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSLobApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSLobApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs new file mode 100644 index 00000000000..f7201ca2bad --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSLobApp.Count; +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.DeviceAppManagement.MobileApps.GraphMacOSLobApp { + /// + /// Casts the previous resource to macOSLobApp. + /// + public class GraphMacOSLobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.macOSLobApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.macOSLobApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphMacOSLobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphMacOSLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphMacOSLobAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphMacOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.macOSLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.macOSLobApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.macOSLobApp in the microsoft.graph.mobileApp collection + /// + public class GraphMacOSLobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6817bed5587 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs new file mode 100644 index 00000000000..c4d5f9e9024 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp.Count; +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.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp { + /// + /// Casts the previous resource to managedAndroidLobApp. + /// + public class GraphManagedAndroidLobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.managedAndroidLobApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.managedAndroidLobApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphManagedAndroidLobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphManagedAndroidLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphManagedAndroidLobAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphManagedAndroidLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedAndroidLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.managedAndroidLobApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.managedAndroidLobApp in the microsoft.graph.mobileApp collection + /// + public class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b93899a1ba2 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedIOSLobApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs new file mode 100644 index 00000000000..1ed8e760d7f --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp.Count; +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.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp { + /// + /// Casts the previous resource to managedIOSLobApp. + /// + public class GraphManagedIOSLobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.managedIOSLobApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.managedIOSLobApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphManagedIOSLobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphManagedIOSLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedIOSLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphManagedIOSLobAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphManagedIOSLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.managedIOSLobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.managedIOSLobApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.managedIOSLobApp in the microsoft.graph.mobileApp collection + /// + public class GraphManagedIOSLobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..efaf5d3b95f --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs new file mode 100644 index 00000000000..f8e6749cfcb --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessApp.Count; +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.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessApp { + /// + /// Casts the previous resource to microsoftStoreForBusinessApp. + /// + public class GraphMicrosoftStoreForBusinessAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.microsoftStoreForBusinessApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.microsoftStoreForBusinessApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphMicrosoftStoreForBusinessAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphMicrosoftStoreForBusinessAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphMicrosoftStoreForBusinessAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphMicrosoftStoreForBusinessAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.microsoftStoreForBusinessApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.microsoftStoreForBusinessApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.microsoftStoreForBusinessApp in the microsoft.graph.mobileApp collection + /// + public class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..26a88d0b711 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphWin32LobApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.win32LobApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs new file mode 100644 index 00000000000..a9a2b748aaf --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphWin32LobApp.Count; +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.DeviceAppManagement.MobileApps.GraphWin32LobApp { + /// + /// Casts the previous resource to win32LobApp. + /// + public class GraphWin32LobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.win32LobApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.win32LobApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWin32LobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWin32LobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.win32LobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWin32LobAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphWin32LobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.win32LobApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.win32LobApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.win32LobApp in the microsoft.graph.mobileApp collection + /// + public class GraphWin32LobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..4a4c848274b --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsAppX.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsAppX/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs new file mode 100644 index 00000000000..3063a57ba79 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsAppX.Count; +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.DeviceAppManagement.MobileApps.GraphWindowsAppX { + /// + /// Casts the previous resource to windowsAppX. + /// + public class GraphWindowsAppXRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.windowsAppX in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.windowsAppX in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWindowsAppXRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWindowsAppXRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsAppX{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWindowsAppXRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphWindowsAppXRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsAppX{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.windowsAppX in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.windowsAppX in the microsoft.graph.mobileApp collection + /// + public class GraphWindowsAppXRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1c055964a1b --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsMobileMSI/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs new file mode 100644 index 00000000000..8cce55307b6 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI.Count; +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.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI { + /// + /// Casts the previous resource to windowsMobileMSI. + /// + public class GraphWindowsMobileMSIRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.windowsMobileMSI in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.windowsMobileMSI in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWindowsMobileMSIRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWindowsMobileMSIRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsMobileMSI{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWindowsMobileMSIRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphWindowsMobileMSIRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsMobileMSI{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.windowsMobileMSI in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.windowsMobileMSI in the microsoft.graph.mobileApp collection + /// + public class GraphWindowsMobileMSIRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..92952851a61 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs new file mode 100644 index 00000000000..46aae07a959 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX.Count; +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.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX { + /// + /// Casts the previous resource to windowsUniversalAppX. + /// + public class GraphWindowsUniversalAppXRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.windowsUniversalAppX in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.windowsUniversalAppX in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWindowsUniversalAppXRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWindowsUniversalAppXRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWindowsUniversalAppXRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphWindowsUniversalAppXRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsUniversalAppX{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.windowsUniversalAppX in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.windowsUniversalAppX in the microsoft.graph.mobileApp collection + /// + public class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fc2c98ff60c --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsWebApp.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsWebApp/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder 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{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs new file mode 100644 index 00000000000..a53b169bd92 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs @@ -0,0 +1,245 @@ +// +using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsWebApp.Count; +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.DeviceAppManagement.MobileApps.GraphWindowsWebApp { + /// + /// Casts the previous resource to windowsWebApp. + /// + public class GraphWindowsWebAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to count the resources in the collection. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new CountRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Get the items of type microsoft.graph.windowsWebApp in the microsoft.graph.mobileApp collection + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the items of type microsoft.graph.windowsWebApp in the microsoft.graph.mobileApp collection"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWindowsWebAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWindowsWebAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsWebApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWindowsWebAppRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public GraphWindowsWebAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/graph.windowsWebApp{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the items of type microsoft.graph.windowsWebApp in the microsoft.graph.mobileApp collection + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the items of type microsoft.graph.windowsWebApp in the microsoft.graph.mobileApp collection + /// + public class GraphWindowsWebAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs new file mode 100644 index 00000000000..53fae13cf15 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidLobApp/GraphAndroidLobAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp { + /// + /// Casts the previous resource to androidLobApp. + /// + public class GraphAndroidLobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidLobApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidLobApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphAndroidLobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphAndroidLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidLobApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphAndroidLobAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidLobApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidLobApp + /// + public class GraphAndroidLobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs new file mode 100644 index 00000000000..65005cf412b --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphAndroidStoreApp/GraphAndroidStoreAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp { + /// + /// Casts the previous resource to androidStoreApp. + /// + public class GraphAndroidStoreAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidStoreApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidStoreApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphAndroidStoreAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphAndroidStoreAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.androidStoreApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphAndroidStoreAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidStoreApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.androidStoreApp + /// + public class GraphAndroidStoreAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphMobileLobApp/GraphMobileLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs similarity index 84% rename from src/generated/DeviceAppManagement/MobileApps/Item/GraphMobileLobApp/GraphMobileLobAppRequestBuilder.cs rename to src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs index f996269ad43..cc72b9dbcd2 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/GraphMobileLobApp/GraphMobileLobAppRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosLobApp/GraphIosLobAppRequestBuilder.cs @@ -14,17 +14,17 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMobileLobApp { +namespace ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp { /// - /// Casts the previous resource to mobileLobApp. + /// Casts the previous resource to iosLobApp. /// - public class GraphMobileLobAppRequestBuilder : BaseCliRequestBuilder { + public class GraphIosLobAppRequestBuilder : BaseCliRequestBuilder { /// - /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.mobileLobApp + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosLobApp /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.mobileLobApp"; + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosLobApp"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -81,27 +81,27 @@ public Command BuildGetCommand() { return command; } /// - /// Instantiates a new GraphMobileLobAppRequestBuilder and sets the default values. + /// Instantiates a new GraphIosLobAppRequestBuilder and sets the default values. /// /// Path parameters for the request - public GraphMobileLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.mobileLobApp{?%24select,%24expand}", pathParameters) { + public GraphIosLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp{?%24select,%24expand}", pathParameters) { } /// - /// Instantiates a new GraphMobileLobAppRequestBuilder and sets the default values. + /// Instantiates a new GraphIosLobAppRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. - public GraphMobileLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.mobileLobApp{?%24select,%24expand}", rawUrl) { + public GraphIosLobAppRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosLobApp{?%24select,%24expand}", rawUrl) { } /// - /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.mobileLobApp + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosLobApp /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation { HttpMethod = Method.GET, @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action(); + var requestConfig = new RequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddQueryParameters(requestConfig.QueryParameters); requestInfo.AddRequestOptions(requestConfig.Options); @@ -119,9 +119,9 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.mobileLobApp + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosLobApp /// - public class GraphMobileLobAppRequestBuilderGetQueryParameters { + public class GraphIosLobAppRequestBuilderGetQueryParameters { /// Expand related entities #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs new file mode 100644 index 00000000000..641d7d4041d --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosStoreApp/GraphIosStoreAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp { + /// + /// Casts the previous resource to iosStoreApp. + /// + public class GraphIosStoreAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosStoreApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosStoreApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphIosStoreAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphIosStoreAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosStoreApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphIosStoreAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosStoreApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosStoreApp + /// + public class GraphIosStoreAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs new file mode 100644 index 00000000000..ecfa3d45db7 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphIosVppApp/GraphIosVppAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphIosVppApp { + /// + /// Casts the previous resource to iosVppApp. + /// + public class GraphIosVppAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosVppApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosVppApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphIosVppAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphIosVppAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.iosVppApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphIosVppAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosVppApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.iosVppApp + /// + public class GraphIosVppAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs new file mode 100644 index 00000000000..e55800b7ccb --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSDmgApp/GraphMacOSDmgAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp { + /// + /// Casts the previous resource to macOSDmgApp. + /// + public class GraphMacOSDmgAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSDmgApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSDmgApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphMacOSDmgAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphMacOSDmgAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSDmgApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphMacOSDmgAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSDmgApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSDmgApp + /// + public class GraphMacOSDmgAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs new file mode 100644 index 00000000000..9cea51e1621 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMacOSLobApp/GraphMacOSLobAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp { + /// + /// Casts the previous resource to macOSLobApp. + /// + public class GraphMacOSLobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSLobApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSLobApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphMacOSLobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphMacOSLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.macOSLobApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphMacOSLobAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSLobApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.macOSLobApp + /// + public class GraphMacOSLobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs new file mode 100644 index 00000000000..a7b4c16ef6d --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedAndroidLobApp/GraphManagedAndroidLobAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp { + /// + /// Casts the previous resource to managedAndroidLobApp. + /// + public class GraphManagedAndroidLobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedAndroidLobApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedAndroidLobApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphManagedAndroidLobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphManagedAndroidLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedAndroidLobApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphManagedAndroidLobAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedAndroidLobApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedAndroidLobApp + /// + public class GraphManagedAndroidLobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs new file mode 100644 index 00000000000..7a6bd426e38 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphManagedIOSLobApp/GraphManagedIOSLobAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp { + /// + /// Casts the previous resource to managedIOSLobApp. + /// + public class GraphManagedIOSLobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedIOSLobApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedIOSLobApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphManagedIOSLobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphManagedIOSLobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.managedIOSLobApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphManagedIOSLobAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedIOSLobApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.managedIOSLobApp + /// + public class GraphManagedIOSLobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs new file mode 100644 index 00000000000..5d186b5201f --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphMicrosoftStoreForBusinessApp/GraphMicrosoftStoreForBusinessAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp { + /// + /// Casts the previous resource to microsoftStoreForBusinessApp. + /// + public class GraphMicrosoftStoreForBusinessAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.microsoftStoreForBusinessApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.microsoftStoreForBusinessApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphMicrosoftStoreForBusinessAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphMicrosoftStoreForBusinessAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.microsoftStoreForBusinessApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphMicrosoftStoreForBusinessAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.microsoftStoreForBusinessApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.microsoftStoreForBusinessApp + /// + public class GraphMicrosoftStoreForBusinessAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs new file mode 100644 index 00000000000..c04d0138e16 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWin32LobApp/GraphWin32LobAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp { + /// + /// Casts the previous resource to win32LobApp. + /// + public class GraphWin32LobAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.win32LobApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.win32LobApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWin32LobAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWin32LobAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.win32LobApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWin32LobAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.win32LobApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.win32LobApp + /// + public class GraphWin32LobAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs new file mode 100644 index 00000000000..073757bcfc3 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsAppX/GraphWindowsAppXRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX { + /// + /// Casts the previous resource to windowsAppX. + /// + public class GraphWindowsAppXRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsAppX + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsAppX"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWindowsAppXRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWindowsAppXRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsAppX{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWindowsAppXRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsAppX + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsAppX + /// + public class GraphWindowsAppXRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs new file mode 100644 index 00000000000..24c61efc635 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsMobileMSI/GraphWindowsMobileMSIRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI { + /// + /// Casts the previous resource to windowsMobileMSI. + /// + public class GraphWindowsMobileMSIRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsMobileMSI + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsMobileMSI"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWindowsMobileMSIRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWindowsMobileMSIRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsMobileMSI{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWindowsMobileMSIRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsMobileMSI + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsMobileMSI + /// + public class GraphWindowsMobileMSIRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs new file mode 100644 index 00000000000..6326ecbf409 --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsUniversalAppX/GraphWindowsUniversalAppXRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX { + /// + /// Casts the previous resource to windowsUniversalAppX. + /// + public class GraphWindowsUniversalAppXRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsUniversalAppX + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsUniversalAppX"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWindowsUniversalAppXRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWindowsUniversalAppXRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsUniversalAppX{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWindowsUniversalAppXRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsUniversalAppX + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsUniversalAppX + /// + public class GraphWindowsUniversalAppXRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs new file mode 100644 index 00000000000..32f8d66e67f --- /dev/null +++ b/src/generated/DeviceAppManagement/MobileApps/Item/GraphWindowsWebApp/GraphWindowsWebAppRequestBuilder.cs @@ -0,0 +1,147 @@ +// +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.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp { + /// + /// Casts the previous resource to windowsWebApp. + /// + public class GraphWindowsWebAppRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsWebApp + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsWebApp"; + var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { + }; + mobileAppIdOption.IsRequired = true; + command.AddOption(mobileAppIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var mobileAppId = invocationContext.ParseResult.GetValueForOption(mobileAppIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (mobileAppId is not null) requestInfo.PathParameters.Add("mobileApp%2Did", mobileAppId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new GraphWindowsWebAppRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public GraphWindowsWebAppRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}/graph.windowsWebApp{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new GraphWindowsWebAppRequestBuilder 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{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsWebApp + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the item of type microsoft.graph.mobileApp as microsoft.graph.windowsWebApp + /// + public class GraphWindowsWebAppRequestBuilderGetQueryParameters { + /// 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/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs index 19f1c60f46c..70716163e34 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -2,8 +2,22 @@ using ApiSdk.DeviceAppManagement.MobileApps.Item.Assign; using ApiSdk.DeviceAppManagement.MobileApps.Item.Assignments; using ApiSdk.DeviceAppManagement.MobileApps.Item.Categories; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphAndroidStoreApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosStoreApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphIosVppApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSDmgApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMacOSLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedAndroidLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedIOSLobApp; using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphManagedMobileLobApp; -using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMobileLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphMicrosoftStoreForBusinessApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWin32LobApp; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsAppX; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsMobileMSI; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsUniversalAppX; +using ApiSdk.DeviceAppManagement.MobileApps.Item.GraphWindowsWebApp; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -89,12 +103,12 @@ public Command BuildCategoriesNavCommand() { return command; } /// - /// Deletes a webApp. - /// Find more info here + /// Deletes a managedIOSStoreApp. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a webApp.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-webapp-delete?view=graph-rest-1.0"; + command.Description = "Deletes a managedIOSStoreApp.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-managediosstoreapp-delete?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -123,12 +137,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Read properties and relationships of the iosLobApp object. - /// Find more info here + /// Read properties and relationships of the iosVppApp object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the iosLobApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-ioslobapp-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the iosVppApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-iosvppapp-get?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -185,6 +199,141 @@ public Command BuildGetCommand() { return command; } /// + /// Casts the previous resource to androidLobApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to androidStoreApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to iosLobApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to iosStoreApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to iosVppApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to macOSDmgApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to macOSLobApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to managedAndroidLobApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to managedIOSLobApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Casts the previous resource to managedMobileLobApp. /// public Command BuildGraphManagedMobileLobAppByIdNavCommand() { @@ -200,12 +349,87 @@ public Command BuildGraphManagedMobileLobAppByIdNavCommand() { return command; } /// - /// Casts the previous resource to mobileLobApp. + /// Casts the previous resource to microsoftStoreForBusinessApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to win32LobApp. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to windowsAppX. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to windowsMobileMSI. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to windowsUniversalAppX. + /// + 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 execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// + /// Casts the previous resource to windowsWebApp. /// - public Command BuildGraphMobileLobAppByIdNavCommand() { - var command = new Command("graph-mobile-lob-app-by-id"); - command.Description = "Casts the previous resource to mobileLobApp."; - var builder = new GraphMobileLobAppRequestBuilder(PathParameters); + 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 execCommands = new List(); execCommands.Add(builder.BuildGetCommand()); foreach (var cmd in execCommands) @@ -215,12 +439,12 @@ public Command BuildGraphMobileLobAppByIdNavCommand() { return command; } /// - /// Update the properties of a windowsAppX object. - /// Find more info here + /// Update the properties of a managedIOSStoreApp object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - 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"; + command.Description = "Update the properties of a managedIOSStoreApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-managediosstoreapp-update?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -285,7 +509,7 @@ public MobileAppItemRequestBuilder(Dictionary pathParameters) : public MobileAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a webApp. + /// Deletes a managedIOSStoreApp. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -310,7 +534,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosLobApp object. + /// Read properties and relationships of the iosVppApp object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -336,7 +560,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windowsAppX object. + /// Update the properties of a managedIOSStoreApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -364,7 +588,7 @@ public RequestInformation ToPatchRequestInformation(MobileApp body, Action - /// Read properties and relationships of the iosLobApp object. + /// Read properties and relationships of the iosVppApp object. /// public class MobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs index 1c6d2b761e0..24b935367f9 100644 --- a/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -1,7 +1,21 @@ // using ApiSdk.DeviceAppManagement.MobileApps.Count; +using ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphAndroidStoreApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphIosLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphIosStoreApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphIosVppApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSDmgApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphMacOSLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphManagedAndroidLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphManagedIOSLobApp; using ApiSdk.DeviceAppManagement.MobileApps.GraphManagedMobileLobApp; -using ApiSdk.DeviceAppManagement.MobileApps.GraphMobileLobApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphMicrosoftStoreForBusinessApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphWin32LobApp; +using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsAppX; +using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsMobileMSI; +using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsUniversalAppX; +using ApiSdk.DeviceAppManagement.MobileApps.GraphWindowsWebApp; using ApiSdk.DeviceAppManagement.MobileApps.Item; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; @@ -35,8 +49,22 @@ public Tuple, List> BuildCommand() { commands.Add(builder.BuildCategoriesNavCommand()); executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); + commands.Add(builder.BuildGraphAndroidLobAppByIdNavCommand()); + commands.Add(builder.BuildGraphAndroidStoreAppByIdNavCommand()); + commands.Add(builder.BuildGraphIosLobAppByIdNavCommand()); + commands.Add(builder.BuildGraphIosStoreAppByIdNavCommand()); + commands.Add(builder.BuildGraphIosVppAppByIdNavCommand()); + commands.Add(builder.BuildGraphMacOSDmgAppByIdNavCommand()); + commands.Add(builder.BuildGraphMacOSLobAppByIdNavCommand()); + commands.Add(builder.BuildGraphManagedAndroidLobAppByIdNavCommand()); + commands.Add(builder.BuildGraphManagedIOSLobAppByIdNavCommand()); commands.Add(builder.BuildGraphManagedMobileLobAppByIdNavCommand()); - commands.Add(builder.BuildGraphMobileLobAppByIdNavCommand()); + commands.Add(builder.BuildGraphMicrosoftStoreForBusinessAppByIdNavCommand()); + commands.Add(builder.BuildGraphWin32LobAppByIdNavCommand()); + commands.Add(builder.BuildGraphWindowsAppXByIdNavCommand()); + commands.Add(builder.BuildGraphWindowsMobileMSIByIdNavCommand()); + commands.Add(builder.BuildGraphWindowsUniversalAppXByIdNavCommand()); + commands.Add(builder.BuildGraphWindowsWebAppByIdNavCommand()); executables.Add(builder.BuildPatchCommand()); return new(executables, commands); } @@ -56,12 +84,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new macOSOfficeSuiteApp object. - /// Find more info here + /// Create a new windowsUniversalAppX object. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new macOSOfficeSuiteApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-macosofficesuiteapp-create?view=graph-rest-1.0"; + command.Description = "Create a new windowsUniversalAppX object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-windowsuniversalappx-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -108,6 +136,195 @@ public Command BuildCreateCommand() { return command; } /// + /// Casts the previous resource to androidLobApp. + /// + 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 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; + } + /// + /// Casts the previous resource to androidStoreApp. + /// + 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 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; + } + /// + /// Casts the previous resource to iosLobApp. + /// + 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 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; + } + /// + /// Casts the previous resource to iosStoreApp. + /// + 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 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; + } + /// + /// Casts the previous resource to iosVppApp. + /// + 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 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; + } + /// + /// Casts the previous resource to macOSDmgApp. + /// + 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 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; + } + /// + /// Casts the previous resource to macOSLobApp. + /// + 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 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; + } + /// + /// Casts the previous resource to managedAndroidLobApp. + /// + 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 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; + } + /// + /// Casts the previous resource to managedIOSLobApp. + /// + 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 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; + } + /// /// Casts the previous resource to managedMobileLobApp. /// public Command BuildGraphManagedMobileLobAppNavCommand() { @@ -129,12 +346,117 @@ public Command BuildGraphManagedMobileLobAppNavCommand() { return command; } /// - /// Casts the previous resource to mobileLobApp. + /// Casts the previous resource to microsoftStoreForBusinessApp. + /// + 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 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; + } + /// + /// Casts the previous resource to win32LobApp. + /// + 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 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; + } + /// + /// Casts the previous resource to windowsAppX. + /// + 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 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; + } + /// + /// Casts the previous resource to windowsMobileMSI. + /// + 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 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; + } + /// + /// Casts the previous resource to windowsUniversalAppX. + /// + 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 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; + } + /// + /// Casts the previous resource to windowsWebApp. /// - public Command BuildGraphMobileLobAppNavCommand() { - var command = new Command("graph-mobile-lob-app"); - command.Description = "Casts the previous resource to mobileLobApp."; - var builder = new GraphMobileLobAppRequestBuilder(PathParameters); + 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 execCommands = new List(); var nonExecCommands = new List(); nonExecCommands.Add(builder.BuildCountNavCommand()); @@ -150,12 +472,12 @@ public Command BuildGraphMobileLobAppNavCommand() { return command; } /// - /// List properties and relationships of the windowsUniversalAppX objects. - /// Find more info here + /// List properties and relationships of the managedIOSStoreApp objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - 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"; + command.Description = "List properties and relationships of the managedIOSStoreApp objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-managediosstoreapp-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -267,7 +589,7 @@ public MobileAppsRequestBuilder(Dictionary pathParameters) : bas public MobileAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windowsUniversalAppX objects. + /// List properties and relationships of the managedIOSStoreApp objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -293,7 +615,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new macOSOfficeSuiteApp object. + /// Create a new windowsUniversalAppX object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -321,7 +643,7 @@ public RequestInformation ToPostRequestInformation(MobileApp body, Action - /// List properties and relationships of the windowsUniversalAppX objects. + /// List properties and relationships of the managedIOSStoreApp objects. /// public class MobileAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs index 4fa8d0b009f..65c8e47cd28 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -110,12 +110,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the windows81CompliancePolicy objects. - /// Find more info here + /// List properties and relationships of the deviceCompliancePolicy objects. + /// Find more info here /// 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 deviceCompliancePolicy objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecompliancepolicy-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -227,7 +227,7 @@ public DeviceCompliancePoliciesRequestBuilder(Dictionary pathPar public DeviceCompliancePoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windows81CompliancePolicy objects. + /// List properties and relationships of the deviceCompliancePolicy objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -281,7 +281,7 @@ public RequestInformation ToPostRequestInformation(DeviceCompliancePolicy body, return requestInfo; } /// - /// List properties and relationships of the windows81CompliancePolicy objects. + /// List properties and relationships of the deviceCompliancePolicy objects. /// public class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index 24bd3e228ef..6c0003e2613 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs @@ -69,12 +69,12 @@ public Command BuildAssignNavCommand() { return command; } /// - /// Deletes a androidWorkProfileCompliancePolicy. - /// Find more info here + /// Deletes a macOSCompliancePolicy. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a androidWorkProfileCompliancePolicy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-delete?view=graph-rest-1.0"; + command.Description = "Deletes a macOSCompliancePolicy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-delete?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -170,12 +170,12 @@ public Command BuildDeviceStatusOverviewNavCommand() { return command; } /// - /// Read properties and relationships of the macOSCompliancePolicy object. - /// Find more info here + /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the macOSCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-get?view=graph-rest-1.0"; + 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"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -384,7 +384,7 @@ public DeviceCompliancePolicyItemRequestBuilder(Dictionary pathP public DeviceCompliancePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a androidWorkProfileCompliancePolicy. + /// Deletes a macOSCompliancePolicy. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -409,7 +409,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the macOSCompliancePolicy object. + /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -463,7 +463,7 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicy body, return requestInfo; } /// - /// Read properties and relationships of the macOSCompliancePolicy object. + /// Read properties and relationships of the androidWorkProfileCompliancePolicy object. /// public class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index f6bf79fbfa9..81cc4e23466 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs @@ -57,12 +57,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new windowsPhone81GeneralConfiguration object. - /// Find more info here + /// Create a new editionUpgradeConfiguration object. + /// Find more info here /// 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 editionUpgradeConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-editionupgradeconfiguration-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -109,12 +109,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the androidWorkProfileCustomConfiguration objects. - /// Find more info here + /// List properties and relationships of the windows10EnterpriseModernAppManagementConfiguration objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the androidWorkProfileCustomConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecustomconfiguration-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the windows10EnterpriseModernAppManagementConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10enterprisemodernappmanagementconfiguration-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -226,7 +226,7 @@ public DeviceConfigurationsRequestBuilder(Dictionary pathParamet public DeviceConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the androidWorkProfileCustomConfiguration objects. + /// List properties and relationships of the windows10EnterpriseModernAppManagementConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -252,7 +252,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new windowsPhone81GeneralConfiguration object. + /// Create a new editionUpgradeConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -280,7 +280,7 @@ public RequestInformation ToPostRequestInformation(DeviceConfiguration body, Act return requestInfo; } /// - /// List properties and relationships of the androidWorkProfileCustomConfiguration objects. + /// List properties and relationships of the windows10EnterpriseModernAppManagementConfiguration objects. /// public class DeviceConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs index 53ec20ab761..266de7c4725 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs @@ -68,12 +68,12 @@ public Command BuildAssignNavCommand() { return command; } /// - /// Deletes a windows10EnterpriseModernAppManagementConfiguration. - /// Find more info here + /// Deletes a windowsDefenderAdvancedThreatProtectionConfiguration. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a windows10EnterpriseModernAppManagementConfiguration.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10enterprisemodernappmanagementconfiguration-delete?view=graph-rest-1.0"; + command.Description = "Deletes a windowsDefenderAdvancedThreatProtectionConfiguration.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsdefenderadvancedthreatprotectionconfiguration-delete?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -169,12 +169,12 @@ public Command BuildDeviceStatusOverviewNavCommand() { return command; } /// - /// Read properties and relationships of the windowsDefenderAdvancedThreatProtectionConfiguration object. - /// Find more info here + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the windowsDefenderAdvancedThreatProtectionConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsdefenderadvancedthreatprotectionconfiguration-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the appleDeviceFeaturesConfigurationBase object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-appledevicefeaturesconfigurationbase-get?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -246,12 +246,12 @@ public Command BuildGetOmaSettingPlainTextValueWithSecretReferenceValueIdRbComma return command; } /// - /// Update the properties of a macOSCustomConfiguration object. - /// Find more info here + /// Update the properties of a windows10EnterpriseModernAppManagementConfiguration object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a macOSCustomConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscustomconfiguration-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a windows10EnterpriseModernAppManagementConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10enterprisemodernappmanagementconfiguration-update?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -358,7 +358,7 @@ public DeviceConfigurationItemRequestBuilder(Dictionary pathPara public DeviceConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a windows10EnterpriseModernAppManagementConfiguration. + /// Deletes a windowsDefenderAdvancedThreatProtectionConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -383,7 +383,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windowsDefenderAdvancedThreatProtectionConfiguration object. + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -409,7 +409,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a macOSCustomConfiguration object. + /// Update the properties of a windows10EnterpriseModernAppManagementConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -437,7 +437,7 @@ public RequestInformation ToPatchRequestInformation(DeviceConfiguration body, Ac return requestInfo; } /// - /// Read properties and relationships of the windowsDefenderAdvancedThreatProtectionConfiguration object. + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. /// public class DeviceConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs index 7b6858dd5d4..820d232ff3f 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs @@ -52,12 +52,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// 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; @@ -104,12 +104,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. - /// Find more info here + /// List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-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; @@ -221,7 +221,7 @@ public DeviceEnrollmentConfigurationsRequestBuilder(Dictionary p public DeviceEnrollmentConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + /// List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -247,7 +247,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -275,7 +275,7 @@ public RequestInformation ToPostRequestInformation(DeviceEnrollmentConfiguration return requestInfo; } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + /// List properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration objects. /// public class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs index 9322ca0088a..e5fa566455b 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs @@ -97,12 +97,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Read properties and relationships of the deviceEnrollmentConfiguration object. - /// Find more info here + /// Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the deviceEnrollmentConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-get?view=graph-rest-1.0"; var deviceEnrollmentConfigurationIdOption = new Option("--device-enrollment-configuration-id", description: "The unique identifier of deviceEnrollmentConfiguration") { }; deviceEnrollmentConfigurationIdOption.IsRequired = true; @@ -159,12 +159,12 @@ public Command BuildGetCommand() { return command; } /// - /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// 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 deviceEnrollmentWindowsHelloForBusinessConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-update?view=graph-rest-1.0"; var deviceEnrollmentConfigurationIdOption = new Option("--device-enrollment-configuration-id", description: "The unique identifier of deviceEnrollmentConfiguration") { }; deviceEnrollmentConfigurationIdOption.IsRequired = true; @@ -269,7 +269,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the deviceEnrollmentConfiguration object. + /// Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -295,7 +295,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -323,7 +323,7 @@ public RequestInformation ToPatchRequestInformation(DeviceEnrollmentConfiguratio return requestInfo; } /// - /// Read properties and relationships of the deviceEnrollmentConfiguration object. + /// Read properties and relationships of the deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// public class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/generated/DeviceManagement/DeviceManagementRequestBuilder.cs index c7867b36da3..cb75f1a0e2f 100644 --- a/src/generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -44,6 +44,7 @@ using ApiSdk.DeviceManagement.UserExperienceAnalyticsDevicePerformance; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceScores; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupHistory; +using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance; using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcesses; using ApiSdk.DeviceManagement.UserExperienceAnalyticsMetricHistory; using ApiSdk.DeviceManagement.UserExperienceAnalyticsModelScores; @@ -406,11 +407,11 @@ public Command BuildExchangeConnectorsNavCommand() { } /// /// Read properties and relationships of the deviceManagement object. - /// Find more info here + /// Find more info here /// 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-reporting-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-notification-devicemanagement-get?view=graph-rest-1.0"; var selectOption = new Option("--select", description: "Select properties to be returned") { Arity = ArgumentArity.ZeroOrMore }; @@ -643,11 +644,11 @@ public Command BuildNotificationMessageTemplatesNavCommand() { } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// 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-onboarding-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-notification-devicemanagement-update?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -1299,6 +1300,31 @@ public Command BuildUserExperienceAnalyticsDeviceStartupProcessesNavCommand() { return command; } /// + /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. + /// + public Command BuildUserExperienceAnalyticsDeviceStartupProcessPerformanceNavCommand() { + 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 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 userExperienceAnalyticsMetricHistory property of the microsoft.graph.deviceManagement entity. /// public Command BuildUserExperienceAnalyticsMetricHistoryNavCommand() { diff --git a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs index 41cc25994c6..fa728644f13 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs @@ -55,12 +55,12 @@ 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 /// 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; @@ -237,7 +237,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the roleDefinition object. + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -291,7 +291,7 @@ 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 { /// Expand related entities diff --git a/src/generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index d9481119132..b0990f10615 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -50,12 +50,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new deviceAndAppManagementRoleDefinition object. - /// Find more info here + /// Create a new roleDefinition object. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new deviceAndAppManagementRoleDefinition object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-create?view=graph-rest-1.0"; + command.Description = "Create a new roleDefinition object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -102,12 +102,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the roleDefinition objects. - /// Find more info here + /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - 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"; + 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"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -219,7 +219,7 @@ public RoleDefinitionsRequestBuilder(Dictionary pathParameters) public RoleDefinitionsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/roleDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the roleDefinition objects. + /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -245,7 +245,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceAndAppManagementRoleDefinition object. + /// Create a new roleDefinition object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -273,7 +273,7 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.RoleDefinition return requestInfo; } /// - /// List properties and relationships of the roleDefinition objects. + /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. /// public class RoleDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..580777f7b5d --- /dev/null +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Count/CountRequestBuilder.cs @@ -0,0 +1,119 @@ +// +using ApiSdk.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.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.UserExperienceAnalyticsDeviceStartupProcessPerformance.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the number of the resource + /// + 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, null, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the number of the resource + /// + public 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 + } + } +} diff --git a/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs new file mode 100644 index 00000000000..83b0b139ef1 --- /dev/null +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/Item/UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder.cs @@ -0,0 +1,290 @@ +// +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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance.Item { + /// + /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. + /// + public class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder : BaseCliRequestBuilder { + /// + /// Delete navigation property userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement + /// + public Command BuildDeleteCommand() { + var command = new Command("delete"); + command.Description = "Delete navigation property userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement"; + var userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption = new Option("--user-experience-analytics-device-startup-process-performance-id", description: "The unique identifier of userExperienceAnalyticsDeviceStartupProcessPerformance") { + }; + userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption.IsRequired = true; + command.AddOption(userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption); + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var userExperienceAnalyticsDeviceStartupProcessPerformanceId = invocationContext.ParseResult.GetValueForOption(userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption); + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (userExperienceAnalyticsDeviceStartupProcessPerformanceId is not null) requestInfo.PathParameters.Add("userExperienceAnalyticsDeviceStartupProcessPerformance%2Did", userExperienceAnalyticsDeviceStartupProcessPerformanceId); + 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; + } + /// + /// User experience analytics device Startup Process Performance + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "User experience analytics device Startup Process Performance"; + var userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption = new Option("--user-experience-analytics-device-startup-process-performance-id", description: "The unique identifier of userExperienceAnalyticsDeviceStartupProcessPerformance") { + }; + userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption.IsRequired = true; + command.AddOption(userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption); + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var userExperienceAnalyticsDeviceStartupProcessPerformanceId = invocationContext.ParseResult.GetValueForOption(userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory 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 (userExperienceAnalyticsDeviceStartupProcessPerformanceId is not null) requestInfo.PathParameters.Add("userExperienceAnalyticsDeviceStartupProcessPerformance%2Did", userExperienceAnalyticsDeviceStartupProcessPerformanceId); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Update the navigation property userExperienceAnalyticsDeviceStartupProcessPerformance in deviceManagement + /// + public Command BuildPatchCommand() { + var command = new Command("patch"); + command.Description = "Update the navigation property userExperienceAnalyticsDeviceStartupProcessPerformance in deviceManagement"; + var userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption = new Option("--user-experience-analytics-device-startup-process-performance-id", description: "The unique identifier of userExperienceAnalyticsDeviceStartupProcessPerformance") { + }; + userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption.IsRequired = true; + command.AddOption(userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputOption = new Option("--output", () => FormatterType.JSON){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var userExperienceAnalyticsDeviceStartupProcessPerformanceId = invocationContext.ParseResult.GetValueForOption(userExperienceAnalyticsDeviceStartupProcessPerformanceIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw 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.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue); + if (model is null) return; // Cannot create a POST request from a null model. + var requestInfo = ToPatchRequestInformation(model, q => { + }); + if (userExperienceAnalyticsDeviceStartupProcessPerformanceId is not null) requestInfo.PathParameters.Add("userExperienceAnalyticsDeviceStartupProcessPerformance%2Did", userExperienceAnalyticsDeviceStartupProcessPerformanceId); + 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 formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/{userExperienceAnalyticsDeviceStartupProcessPerformance%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance/{userExperienceAnalyticsDeviceStartupProcessPerformance%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property userExperienceAnalyticsDeviceStartupProcessPerformance for 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 ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// User experience analytics device Startup Process Performance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property userExperienceAnalyticsDeviceStartupProcessPerformance in deviceManagement + /// + /// The request body + /// Configuration for 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) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// User experience analytics device Startup Process Performance + /// + public class UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilderGetQueryParameters { + /// 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/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs new file mode 100644 index 00000000000..d6709cb65ad --- /dev/null +++ b/src/generated/DeviceManagement/UserExperienceAnalyticsDeviceStartupProcessPerformance/UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder.cs @@ -0,0 +1,336 @@ +// +using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance.Count; +using ApiSdk.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance.Item; +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.DeviceManagement.UserExperienceAnalyticsDeviceStartupProcessPerformance { + /// + /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. + /// + public class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder : BaseCliRequestBuilder { + /// + /// Provides operations to manage the userExperienceAnalyticsDeviceStartupProcessPerformance property of the microsoft.graph.deviceManagement entity. + /// + public Tuple, List> BuildCommand() { + var executables = new List(); + var builder = new UserExperienceAnalyticsDeviceStartupProcessPerformanceItemRequestBuilder(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. + /// + public Command BuildCountNavCommand() { + var command = new Command("count"); + command.Description = "Provides operations to count the resources in the collection."; + var builder = new 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 userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement + /// + public Command BuildCreateCommand() { + var command = new Command("create"); + command.Description = "Create new navigation property to userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement"; + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputOption = new Option("--output", () => FormatterType.JSON){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + command.SetHandler(async (invocationContext) => { + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + var jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw 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.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue); + if (model is null) return; // Cannot create a POST request from a null model. + 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 formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// User experience analytics device Startup Process Performance + /// + public Command BuildListCommand() { + var command = new Command("list"); + command.Description = "User experience analytics device Startup Process Performance"; + 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){ + IsRequired = true + }; + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + var jsonNoIndentOption = new Option("--json-no-indent", r => { + if (bool.TryParse(r.Tokens.Select(t => t.Value).LastOrDefault(), out var value)) { + return value; + } + return true; + }, description: "Disable indentation for the JSON output formatter."); + command.AddOption(jsonNoIndentOption); + 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 jsonNoIndent = invocationContext.ParseResult.GetValueForOption(jsonNoIndentOption); + 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; + IOutputFormatterOptions? formatterOptions = null; + IOutputFormatter? formatter = null; + if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) { + formatter = outputFormatterFactory.GetFormatter(output); + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + formatterOptions = output.GetOutputFormatterOptions(new FormatterOptionsModel(!jsonNoIndent)); + } else { + formatter = outputFormatterFactory.GetFormatter(FormatterType.TEXT); + } + await formatter.WriteOutputAsync(response, formatterOptions, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/userExperienceAnalyticsDeviceStartupProcessPerformance{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// User experience analytics device Startup Process Performance + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to userExperienceAnalyticsDeviceStartupProcessPerformance for deviceManagement + /// + /// The request body + /// Configuration for 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) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new RequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// User experience analytics device Startup Process Performance + /// + public class UserExperienceAnalyticsDeviceStartupProcessPerformanceRequestBuilderGetQueryParameters { + /// 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/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs index 562089a08a8..a2bb2650b25 100644 --- a/src/generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -475,12 +475,12 @@ public Command BuildListItemNavCommand() { return command; } /// - /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. - /// Find more info here + /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/driveitem-update?view=graph-rest-1.0"; + command.Description = "To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/driveitem-move?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -826,7 +826,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 42e20aecc7a..e70e14f7878 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 @@ -77,8 +77,8 @@ public static Beta_DistPostRequestBody CreateFromDiscriminatorValue(IParseNode p public 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); } }, + {"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); } }, 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 7fe37426b25..a84ffb274ad 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 @@ -69,8 +69,8 @@ public static Beta_InvPostRequestBody CreateFromDiscriminatorValue(IParseNode pa public 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); } }, + {"alpha", n => { Alpha = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"beta", n => { Beta = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"probability", n => { Probability = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; 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 106e789977a..5511a32167a 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 @@ -44,8 +44,8 @@ public static RoundPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// 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 a71ab4be1d4..71e46e83853 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 @@ -44,8 +44,8 @@ public static RoundDownPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// 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 df0a7c83bda..b71c2459e78 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 @@ -44,8 +44,8 @@ public static RoundUpPostRequestBody CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs index b5350b5c1b0..186d8944fe3 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Functions/Trunc/TruncPostRequestBody.cs @@ -44,8 +44,8 @@ public static TruncPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, {"numDigits", n => { NumDigits = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, + {"number", n => { Number = n.GetObjectValue(Json.CreateFromDiscriminatorValue); } }, }; } /// 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 3711246a847..2fb50a203c4 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 @@ -20,12 +20,12 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Names.Item.RangeNamespace { /// public class RangeRequestBuilder : BaseCliRequestBuilder { /// - /// 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 + /// Retrieve the properties and relationships of range object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of range object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -92,7 +92,7 @@ public RangeRequestBuilder(Dictionary pathParameters) : base("{+ public RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Retrieve the properties and relationships of range object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER 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 f858c338fa6..172101f2874 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -156,11 +156,11 @@ public Command BuildItemAtWithIndexRbCommand() { } /// /// Retrieve a list of table objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of table objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/workbook-list-tables?view=graph-rest-1.0"; + command.Description = "Retrieve a list of table objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/table-list?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; 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 448ea67eab8..4680ca2dc2a 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 @@ -20,12 +20,12 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Add { /// public class AddRequestBuilder : BaseCliRequestBuilder { /// - /// Adds a new worksheet to the workbook. The worksheet will be added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. + /// Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call.activate() on it. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Adds a new worksheet to the workbook. The worksheet will be added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/worksheetcollection-add?view=graph-rest-1.0"; + command.Description = "Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call.activate() on it.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/worksheetcollection-add?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -96,7 +96,7 @@ public AddRequestBuilder(Dictionary pathParameters) : base("{+ba public AddRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/add", rawUrl) { } /// - /// Adds a new worksheet to the workbook. The worksheet will be added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it. + /// Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call.activate() on it. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 23a6b0da371..00c62d8932f 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 @@ -181,11 +181,11 @@ public Command BuildItemWithNameRbCommand() { } /// /// Retrieve a list of chart objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of chart objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0"; + command.Description = "Retrieve a list of chart objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chart-list?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; 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 3040f295699..8ddb2c64365 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 @@ -144,11 +144,11 @@ public Command BuildItemAtWithIndexRbCommand() { } /// /// Retrieve a list of chartseries objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of chartseries objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chartseries-list?view=graph-rest-1.0"; + command.Description = "Retrieve a list of chartseries objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chart-list-series?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; 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 636f795fe28..c93645ba9b3 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 @@ -20,12 +20,12 @@ namespace ApiSdk.Drives.Item.Items.Item.Workbook.Worksheets.Item.Names.Item.Rang /// public class RangeRequestBuilder : BaseCliRequestBuilder { /// - /// 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 + /// Retrieve the properties and relationships of range object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of range object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/range-get?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -98,7 +98,7 @@ public RangeRequestBuilder(Dictionary pathParameters) : base("{+ public RangeRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Retrieve the properties and relationships of range object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER 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 4b39da39386..98ee016fb44 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -139,11 +139,11 @@ public Command BuildCreateCommand() { } /// /// Retrieve a list of worksheet objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of worksheet objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/workbook-list-worksheets?view=graph-rest-1.0"; + command.Description = "Retrieve a list of worksheet objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/worksheet-list?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; diff --git a/src/generated/GraphClient.cs b/src/generated/GraphClient.cs index 2f571a93eaf..00d8efc6b65 100644 --- a/src/generated/GraphClient.cs +++ b/src/generated/GraphClient.cs @@ -619,6 +619,7 @@ public Command BuildDeviceManagementNavCommand() { nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDeviceScoresNavCommand()); nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDeviceStartupHistoryNavCommand()); nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDeviceStartupProcessesNavCommand()); + nonExecCommands.Add(builder.BuildUserExperienceAnalyticsDeviceStartupProcessPerformanceNavCommand()); nonExecCommands.Add(builder.BuildUserExperienceAnalyticsMetricHistoryNavCommand()); nonExecCommands.Add(builder.BuildUserExperienceAnalyticsModelScoresNavCommand()); nonExecCommands.Add(builder.BuildUserExperienceAnalyticsOverviewNavCommand()); diff --git a/src/generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs b/src/generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs index fbd12a0277b..4da5f91128e 100644 --- a/src/generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs +++ b/src/generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs @@ -111,12 +111,12 @@ public Command BuildGetCommand() { return command; } /// - /// Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group . 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. + /// Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group . 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.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-post-acceptedsenders?view=graph-rest-1.0"; + command.Description = "Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-post-acceptedsenders?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group . 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. + /// Specify the user or group in @odata.id in the request body. Users in the accepted senders list can post to conversations of the group. Make sure you don't specify the same user or group in the accepted senders and rejected senders lists, otherwise you'll get an error. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 4cd3e3ca3fe..12d4836d8fa 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -276,7 +276,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 be457b0f89f..7b09b1c96d9 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 @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -288,7 +288,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 5bc9db41e6b..48f916c73d9 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -276,7 +276,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 27e9aa47397..09be4cc2425 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 @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -288,7 +288,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index f214ebd7301..5b2d335faa7 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -276,7 +276,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 8df93b09462..d186b005511 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 @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -288,7 +288,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 0d5f4de3d2d..8e453f086ee 100644 --- a/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -22,11 +22,11 @@ namespace ApiSdk.Groups.Item.Conversations.Item { public class ConversationItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete conversation. - /// Find more info here + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversation-delete?view=graph-rest-1.0"; + command.Description = "Delete conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; 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 7f48b33d0e6..a1cc92ee320 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 @@ -52,12 +52,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// 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 + /// 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 /// public Command BuildListCommand() { var command = new Command("list"); - 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"; + 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"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -181,7 +181,7 @@ public PostsRequestBuilder(Dictionary pathParameters) : base("{+ public PostsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// 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. + /// 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. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -207,7 +207,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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. + /// 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. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items 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 feb42133d75..663fb191e85 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 @@ -19,12 +19,12 @@ namespace ApiSdk.Groups.Item.Conversations.Item.Threads.Item.Reply { /// public class ReplyRequestBuilder : BaseCliRequestBuilder { /// - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. - /// Find more info here + /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0"; + command.Description = "Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. \n\nFind more info here:\n https://learn.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -80,7 +80,7 @@ public ReplyRequestBuilder(Dictionary pathParameters) : base("{+ public ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index aadd229470f..8db0af8c262 100644 --- a/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -276,7 +276,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 86fd4eb24e1..3654970cd37 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 @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -288,7 +288,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs b/src/generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs index b48b3cf6818..f08a96f955e 100644 --- a/src/generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs +++ b/src/generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs @@ -111,12 +111,12 @@ public Command BuildGetCommand() { return command; } /// - /// Specify the user or group in @odata.id in the request body. Users in the rejected senders list cannot post to conversations of the group (identified in the POST request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + /// Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Specify the user or group in @odata.id in the request body. Users in the rejected senders list cannot post to conversations of the group (identified in the POST request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-post-rejectedsenders?view=graph-rest-1.0"; + command.Description = "Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-post-rejectedsenders?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Specify the user or group in @odata.id in the request body. Users in the rejected senders list cannot post to conversations of the group (identified in the POST request URL). Make sure you do not specify the same user or group in the rejected senders and accepted senders lists, otherwise you will get an error. + /// Specify the user or group in @odata.id in the request body. Users in the rejected senders list can't post to conversations of the group (identified in the POST request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you'll get an error. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 84baea16b65..186f2953d23 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -162,12 +162,12 @@ public Command BuildDriveNavCommand() { return command; } /// - /// Get a list of rich long-running operations associated with a list. - /// Find more info here + /// Returns the metadata for a [list][]. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get a list of rich long-running operations associated with a list.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0"; + command.Description = "Returns the metadata for a [list][].\n\nFind more info here:\n https://learn.microsoft.com/graph/api/list-get?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -437,7 +437,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a list of rich long-running operations associated with a list. + /// Returns the metadata for a [list][]. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -491,7 +491,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.List body, Act return requestInfo; } /// - /// Get a list of rich long-running operations associated with a list. + /// Returns the metadata for a [list][]. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities 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 ad68f8f997a..210c23e14d0 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -283,7 +283,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 0749b7fda1e..e0976bf43bd 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -56,12 +56,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Send a new chatMessage in the specified channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-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 groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -290,7 +290,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs b/src/generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs index 46b29f0d1e6..c865f5488cf 100644 --- a/src/generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs @@ -19,12 +19,12 @@ namespace ApiSdk.Groups.Item.Team.Clone { /// public 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 are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// 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'll 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. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "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 are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/team-clone?view=graph-rest-1.0"; + command.Description = "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'll 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.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/team-clone?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -68,7 +68,7 @@ public CloneRequestBuilder(Dictionary pathParameters) : base("{+ public CloneRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/clone", rawUrl) { } /// - /// 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 are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// 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'll 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs index 890b7e782e5..b5dba093d80 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -271,7 +271,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 62b99289131..3bd25894fac 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -56,12 +56,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Send a new chatMessage in the specified channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-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 groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -278,7 +278,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 7075c3df80b..6f17a5d15c0 100644 --- a/src/generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Schedule/Shifts/Item/ShiftItemRequestBuilder.cs @@ -121,12 +121,12 @@ public Command BuildGetCommand() { return command; } /// - /// Replace an existing shift. If the specified shift doesn't exist, this method returns 404 Not found. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Replace an existing shift. If the specified shift doesn't exist, this method returns 404 Not found. The duration of a shift can't be less than 1 minute or longer than 24 hours. /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Replace an existing shift. If the specified shift doesn't exist, this method returns 404 Not found. The duration of a shift cannot be less than 1 minute or longer than 24 hours.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/shift-put?view=graph-rest-1.0"; + command.Description = "Replace an existing shift. If the specified shift doesn't exist, this method returns 404 Not found. The duration of a shift can't be less than 1 minute or longer than 24 hours.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/shift-put?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -248,7 +248,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Replace an existing shift. If the specified shift doesn't exist, this method returns 404 Not found. The duration of a shift cannot be less than 1 minute or longer than 24 hours. + /// Replace an existing shift. If the specified shift doesn't exist, this method returns 404 Not found. The duration of a shift can't be less than 1 minute or longer than 24 hours. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs b/src/generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs index 12683c8e922..103898b8f88 100644 --- a/src/generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Unarchive/UnarchiveRequestBuilder.cs @@ -19,12 +19,12 @@ namespace ApiSdk.Groups.Item.Team.Unarchive { /// public class UnarchiveRequestBuilder : BaseCliRequestBuilder { /// - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This 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 may occur subsequent to a response from this API. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/team-unarchive?view=graph-rest-1.0"; + command.Description = "Restore an archived team. This 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 may occur subsequent to a response from this API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/team-unarchive?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -58,7 +58,7 @@ public UnarchiveRequestBuilder(Dictionary pathParameters) : base public UnarchiveRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/unarchive", rawUrl) { } /// - /// Restore an archived team. This restores users' ability to send messages and edit the team, abiding by tenant and team settings. Teams are archived using the archive API. Unarchiving is an async operation. A team is unarchived once the async operation completes successfully, which may occur subsequent to a response from this API. + /// Restore an archived team. This 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 may occur subsequent to a response from this API. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index 50dcf2a337a..48dc2891455 100644 --- a/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -23,11 +23,11 @@ namespace ApiSdk.Groups.Item.Threads.Item { public class ConversationThreadItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete conversationThread. - /// Find more info here + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete conversationThread.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0"; + command.Description = "Delete conversationThread.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -62,12 +62,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Get a thread object. - /// Find more info here + /// 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 /// public Command BuildGetCommand() { var command = new Command("get"); - 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"; + 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"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -263,7 +263,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a thread object. + /// 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. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -317,7 +317,7 @@ public RequestInformation ToPatchRequestInformation(ConversationThread body, Act return requestInfo; } /// - /// Get a thread object. + /// 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. /// public class ConversationThreadItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 1c4603a0cdb..3cbfcc89965 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -52,12 +52,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// 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 + /// 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 /// public Command BuildListCommand() { var command = new Command("list"); - 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"; + 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"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -175,7 +175,7 @@ public PostsRequestBuilder(Dictionary pathParameters) : base("{+ public PostsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// 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. + /// 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. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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. + /// 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. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index b424208c719..df099775839 100644 --- a/src/generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -19,12 +19,12 @@ namespace ApiSdk.Groups.Item.Threads.Item.Reply { /// public class ReplyRequestBuilder : BaseCliRequestBuilder { /// - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. - /// Find more info here + /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-reply?view=graph-rest-1.0"; + command.Description = "Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. \n\nFind more info here:\n https://learn.microsoft.com/graph/api/post-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -74,7 +74,7 @@ public ReplyRequestBuilder(Dictionary pathParameters) : base("{+ public ReplyRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + /// Add an attachment when creating a group post. This operation limits the size of the attachment you can add to under 3 MB. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index b23a597f52b..1e62f49a325 100644 --- a/src/generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Identity.ConditionalAccess.NamedLocations.Item { /// public class NamedLocationItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a namedLocation object. - /// Find more info here + /// Delete an ipNamedLocation object. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete a namedLocation object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0"; + command.Description = "Delete an ipNamedLocation object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0"; var namedLocationIdOption = new Option("--named-location-id", description: "The unique identifier of namedLocation") { }; namedLocationIdOption.IsRequired = true; @@ -54,12 +54,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Retrieve the properties and relationships of a namedLocation object. - /// Find more info here + /// Retrieve the properties and relationships of an ipNamedLocation object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve the properties and relationships of a namedLocation object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/namedlocation-get?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of an ipNamedLocation object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/ipnamedlocation-get?view=graph-rest-1.0"; var namedLocationIdOption = new Option("--named-location-id", description: "The unique identifier of namedLocation") { }; namedLocationIdOption.IsRequired = true; @@ -186,7 +186,7 @@ public NamedLocationItemRequestBuilder(Dictionary pathParameters public NamedLocationItemRequestBuilder(string rawUrl) : base("{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a namedLocation object. + /// Delete an ipNamedLocation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -211,7 +211,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -265,7 +265,7 @@ public RequestInformation ToPatchRequestInformation(NamedLocation body, Action - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. /// public class NamedLocationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.cs b/src/generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.cs index 652e62689bc..00fe7cc919b 100644 --- a/src/generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.cs +++ b/src/generated/IdentityGovernance/AccessReviews/HistoryDefinitions/Item/Instances/Item/AccessReviewHistoryInstanceItemRequestBuilder.cs @@ -75,11 +75,11 @@ public Command BuildGenerateDownloadUriNavCommand() { return command; } /// - /// If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance. + /// If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance. /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance."; + command.Description = "If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance."; var accessReviewHistoryDefinitionIdOption = new Option("--access-review-history-definition-id", description: "The unique identifier of accessReviewHistoryDefinition") { }; accessReviewHistoryDefinitionIdOption.IsRequired = true; @@ -242,7 +242,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance. + /// If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -296,7 +296,7 @@ public RequestInformation ToPatchRequestInformation(AccessReviewHistoryInstance return requestInfo; } /// - /// If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance. + /// If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance. /// public class AccessReviewHistoryInstanceItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs index 3720e2e47d7..8cd09daae16 100644 --- a/src/generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs +++ b/src/generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs @@ -140,12 +140,12 @@ public Command BuildGetApplicablePolicyRequirementsNavCommand() { return command; } /// - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. - /// Find more info here + /// Retrieve the properties and relationships of an accessPackage object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/accesspackage-list-resourcerolescopes?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of an accessPackage object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0"; var accessPackageIdOption = new Option("--access-package-id", description: "The unique identifier of accessPackage") { }; accessPackageIdOption.IsRequired = true; @@ -372,7 +372,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve the properties and relationships of an accessPackage object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -426,7 +426,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.AccessPackage return requestInfo; } /// - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve the properties and relationships of an accessPackage object. /// public class AccessPackageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs b/src/generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs index 0c38119b9fb..317e46c323a 100644 --- a/src/generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs +++ b/src/generated/IdentityGovernance/EntitlementManagement/ResourceRequests/ResourceRequestsRequestBuilder.cs @@ -51,12 +51,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. If using delegated permissions, the user requesting to add a group should be an owner of the group or in a directory role which allows them to modify groups. If using application permissions, the application requesting to add the group should also be assigned the Group.ReadWrite.All permission. + /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. If using delegated permissions, the user requesting to add a group should be an owner of the group or in a directory role which allows them to modify groups. If using application permissions, the application requesting to add the group should also be assigned the Group.ReadWrite.All permission.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/entitlementmanagement-post-resourcerequests?view=graph-rest-1.0"; + command.Description = "Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/entitlementmanagement-post-resourcerequests?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. If using delegated permissions, the user requesting to add a group should be an owner of the group or in a directory role which allows them to modify groups. If using application permissions, the application requesting to add the group should also be assigned the Group.ReadWrite.All permission. + /// Create a new accessPackageResourceRequest object to request the addition of a resource to an access package catalog, update of a resource, or the removal of a resource from a catalog. A resource must be included in an access package catalog before a role of that resource can be added to an access package. To add an Azure AD group as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadGroup and the value of the originId is the identifier of the group. To add an Azure AD application as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be AadApplication and the value of the originId is the identifier of the servicePrincipal. To add a SharePoint Online site an as a resource to a catalog, set the requestType to be adminAdd, and a resource representing the resource. The value of the originSystem property within the resource should be SharePointOnline and the value of the originId is the URI of the site. To remove a resource from a catalog, set the requestType to be adminRemove, and the resource to contain the id of the resource object to be removed. The resource object can be retrieved using list resources. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index c913fb1c8e4..e046420d7e1 100644 --- a/src/generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -21,11 +21,11 @@ namespace ApiSdk.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.It /// public class LastModifiedByRequestBuilder : BaseCliRequestBuilder { /// - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The unique identifier of the AAD identity that last modified the workflow."; + command.Description = "The unique identifier of the Azure Active Directory identity that last modified the workflow."; var workflowIdOption = new Option("--workflow-id", description: "The unique identifier of workflow") { }; workflowIdOption.IsRequired = true; @@ -110,7 +110,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters) : public LastModifiedByRequestBuilder(string rawUrl) : base("{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -136,7 +136,7 @@ public RequestInformation ToGetRequestInformation(Action - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index 6a9e1a01fb5..6de4050b1a2 100644 --- a/src/generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/generated/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -21,11 +21,11 @@ namespace ApiSdk.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.It /// public class LastModifiedByRequestBuilder : BaseCliRequestBuilder { /// - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The unique identifier of the AAD identity that last modified the workflow."; + command.Description = "The unique identifier of the Azure Active Directory identity that last modified the workflow."; var workflowIdOption = new Option("--workflow-id", description: "The unique identifier of workflow") { }; workflowIdOption.IsRequired = true; @@ -116,7 +116,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters) : public LastModifiedByRequestBuilder(string rawUrl) : base("{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public RequestInformation ToGetRequestInformation(Action - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index 27b431f0409..f625592b5d8 100644 --- a/src/generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -21,11 +21,11 @@ namespace ApiSdk.IdentityGovernance.LifecycleWorkflows.Workflows.Item.LastModifi /// public class LastModifiedByRequestBuilder : BaseCliRequestBuilder { /// - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The unique identifier of the AAD identity that last modified the workflow."; + command.Description = "The unique identifier of the Azure Active Directory identity that last modified the workflow."; var workflowIdOption = new Option("--workflow-id", description: "The unique identifier of workflow") { }; workflowIdOption.IsRequired = true; @@ -110,7 +110,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters) : public LastModifiedByRequestBuilder(string rawUrl) : base("{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -136,7 +136,7 @@ public RequestInformation ToGetRequestInformation(Action - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs b/src/generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs index 7fd9055bd9c..a21a0ffc980 100644 --- a/src/generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs +++ b/src/generated/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Versions/Item/LastModifiedBy/LastModifiedByRequestBuilder.cs @@ -21,11 +21,11 @@ namespace ApiSdk.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Versions.I /// public class LastModifiedByRequestBuilder : BaseCliRequestBuilder { /// - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The unique identifier of the AAD identity that last modified the workflow."; + command.Description = "The unique identifier of the Azure Active Directory identity that last modified the workflow."; var workflowIdOption = new Option("--workflow-id", description: "The unique identifier of workflow") { }; workflowIdOption.IsRequired = true; @@ -116,7 +116,7 @@ public LastModifiedByRequestBuilder(Dictionary pathParameters) : public LastModifiedByRequestBuilder(string rawUrl) : base("{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/versions/{workflowVersion%2DversionNumber}/lastModifiedBy{?%24select,%24expand}", rawUrl) { } /// - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -142,7 +142,7 @@ public RequestInformation ToGetRequestInformation(Action - /// The unique identifier of the AAD identity that last modified the workflow. + /// The unique identifier of the Azure Active Directory identity that last modified the workflow. /// public class LastModifiedByRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs b/src/generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs index e3cc1587589..25a19a02f67 100644 --- a/src/generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs +++ b/src/generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs @@ -105,12 +105,12 @@ public Command BuildCreateCommand() { return command; } /// - /// Read the properties and relationships of a riskyUserHistoryItem object. - /// Find more info here + /// Get the riskyUserHistoryItems from the history navigation property. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Read the properties and relationships of a riskyUserHistoryItem object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/riskyuser-get-riskyuserhistoryitem?view=graph-rest-1.0"; + command.Description = "Get the riskyUserHistoryItems from the history navigation property.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/riskyuser-list-history?view=graph-rest-1.0"; var riskyUserIdOption = new Option("--risky-user-id", description: "The unique identifier of riskyUser") { }; riskyUserIdOption.IsRequired = true; @@ -228,7 +228,7 @@ public HistoryRequestBuilder(Dictionary pathParameters) : base(" public HistoryRequestBuilder(string rawUrl) : base("{+baseurl}/identityProtection/riskyUsers/{riskyUser%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Read the properties and relationships of a riskyUserHistoryItem object. + /// Get the riskyUserHistoryItems from the history navigation property. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -282,7 +282,7 @@ public RequestInformation ToPostRequestInformation(RiskyUserHistoryItem body, Ac return requestInfo; } /// - /// Read the properties and relationships of a riskyUserHistoryItem object. + /// Get the riskyUserHistoryItems from the history navigation property. /// public class HistoryRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/Models/AccessPackageAnswer.cs b/src/generated/Models/AccessPackageAnswer.cs index eebe3f38f34..8a65ac25857 100644 --- a/src/generated/Models/AccessPackageAnswer.cs +++ b/src/generated/Models/AccessPackageAnswer.cs @@ -55,9 +55,9 @@ public static AccessPackageAnswer CreateFromDiscriminatorValue(IParseNode parseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"answeredQuestion", n => { AnsweredQuestion = n.GetObjectValue(AccessPackageQuestion.CreateFromDiscriminatorValue); } }, {"displayValue", n => { DisplayValue = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AccessPackageAnswerChoice.cs b/src/generated/Models/AccessPackageAnswerChoice.cs index ddd4315e100..f00fce09a09 100644 --- a/src/generated/Models/AccessPackageAnswerChoice.cs +++ b/src/generated/Models/AccessPackageAnswerChoice.cs @@ -59,9 +59,9 @@ public static AccessPackageAnswerChoice CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"actualValue", n => { ActualValue = n.GetStringValue(); } }, {"localizations", n => { Localizations = n.GetCollectionOfObjectValues(AccessPackageLocalizedText.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"text", n => { Text = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/AccessPackageApprovalStage.cs b/src/generated/Models/AccessPackageApprovalStage.cs index c747ad291e6..74ff1b23e10 100644 --- a/src/generated/Models/AccessPackageApprovalStage.cs +++ b/src/generated/Models/AccessPackageApprovalStage.cs @@ -75,6 +75,7 @@ public static AccessPackageApprovalStage CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"durationBeforeAutomaticDenial", n => { DurationBeforeAutomaticDenial = n.GetTimeSpanValue(); } }, {"durationBeforeEscalation", n => { DurationBeforeEscalation = n.GetTimeSpanValue(); } }, {"escalationApprovers", n => { EscalationApprovers = n.GetCollectionOfObjectValues(SubjectSet.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -82,7 +83,6 @@ public IDictionary> GetFieldDeserializers() { {"fallbackPrimaryApprovers", n => { FallbackPrimaryApprovers = n.GetCollectionOfObjectValues(SubjectSet.CreateFromDiscriminatorValue)?.ToList(); } }, {"isApproverJustificationRequired", n => { IsApproverJustificationRequired = n.GetBoolValue(); } }, {"isEscalationEnabled", n => { IsEscalationEnabled = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"primaryApprovers", n => { PrimaryApprovers = n.GetCollectionOfObjectValues(SubjectSet.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/AccessPackageAssignmentApprovalSettings.cs b/src/generated/Models/AccessPackageAssignmentApprovalSettings.cs index ae3a01cd00e..3fe4b2e9713 100644 --- a/src/generated/Models/AccessPackageAssignmentApprovalSettings.cs +++ b/src/generated/Models/AccessPackageAssignmentApprovalSettings.cs @@ -47,9 +47,9 @@ public static AccessPackageAssignmentApprovalSettings CreateFromDiscriminatorVal /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"isApprovalRequiredForAdd", n => { IsApprovalRequiredForAdd = n.GetBoolValue(); } }, {"isApprovalRequiredForUpdate", n => { IsApprovalRequiredForUpdate = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"stages", n => { Stages = n.GetCollectionOfObjectValues(AccessPackageApprovalStage.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/AccessPackageAssignmentRequest.cs b/src/generated/Models/AccessPackageAssignmentRequest.cs index deffaefdb42..dbe8893fe87 100644 --- a/src/generated/Models/AccessPackageAssignmentRequest.cs +++ b/src/generated/Models/AccessPackageAssignmentRequest.cs @@ -89,8 +89,8 @@ public class AccessPackageAssignmentRequest : Entity, IParsable { {"completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"customExtensionCalloutInstances", n => { CustomExtensionCalloutInstances = n.GetCollectionOfObjectValues(CustomExtensionCalloutInstance.CreateFromDiscriminatorValue)?.ToList(); } }, - {"requestor", n => { Requestor = n.GetObjectValue(AccessPackageSubject.CreateFromDiscriminatorValue); } }, {"requestType", n => { RequestType = n.GetEnumValue(); } }, + {"requestor", n => { Requestor = n.GetObjectValue(AccessPackageSubject.CreateFromDiscriminatorValue); } }, {"schedule", n => { Schedule = n.GetObjectValue(EntitlementManagementSchedule.CreateFromDiscriminatorValue); } }, {"state", n => { State = n.GetEnumValue(); } }, {"status", n => { Status = n.GetStringValue(); } }, diff --git a/src/generated/Models/AccessPackageAssignmentRequestRequirements.cs b/src/generated/Models/AccessPackageAssignmentRequestRequirements.cs index 2fc4da83f08..fa22f8d52c1 100644 --- a/src/generated/Models/AccessPackageAssignmentRequestRequirements.cs +++ b/src/generated/Models/AccessPackageAssignmentRequestRequirements.cs @@ -81,10 +81,10 @@ public static AccessPackageAssignmentRequestRequirements CreateFromDiscriminator /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowCustomAssignmentSchedule", n => { AllowCustomAssignmentSchedule = n.GetBoolValue(); } }, {"isApprovalRequiredForAdd", n => { IsApprovalRequiredForAdd = n.GetBoolValue(); } }, {"isApprovalRequiredForUpdate", n => { IsApprovalRequiredForUpdate = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"policyDescription", n => { PolicyDescription = n.GetStringValue(); } }, {"policyDisplayName", n => { PolicyDisplayName = n.GetStringValue(); } }, {"policyId", n => { PolicyId = n.GetStringValue(); } }, diff --git a/src/generated/Models/AccessPackageAssignmentRequestorSettings.cs b/src/generated/Models/AccessPackageAssignmentRequestorSettings.cs index ea3915e0bbb..c249d1b3c76 100644 --- a/src/generated/Models/AccessPackageAssignmentRequestorSettings.cs +++ b/src/generated/Models/AccessPackageAssignmentRequestorSettings.cs @@ -57,6 +57,7 @@ public static AccessPackageAssignmentRequestorSettings CreateFromDiscriminatorVa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowCustomAssignmentSchedule", n => { AllowCustomAssignmentSchedule = n.GetBoolValue(); } }, {"enableOnBehalfRequestorsToAddAccess", n => { EnableOnBehalfRequestorsToAddAccess = n.GetBoolValue(); } }, {"enableOnBehalfRequestorsToRemoveAccess", n => { EnableOnBehalfRequestorsToRemoveAccess = n.GetBoolValue(); } }, @@ -64,7 +65,6 @@ public IDictionary> GetFieldDeserializers() { {"enableTargetsToSelfAddAccess", n => { EnableTargetsToSelfAddAccess = n.GetBoolValue(); } }, {"enableTargetsToSelfRemoveAccess", n => { EnableTargetsToSelfRemoveAccess = n.GetBoolValue(); } }, {"enableTargetsToSelfUpdateAccess", n => { EnableTargetsToSelfUpdateAccess = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"onBehalfRequestors", n => { OnBehalfRequestors = n.GetCollectionOfObjectValues(SubjectSet.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/AccessPackageAssignmentReviewSettings.cs b/src/generated/Models/AccessPackageAssignmentReviewSettings.cs index b545c2858af..048e2a46432 100644 --- a/src/generated/Models/AccessPackageAssignmentReviewSettings.cs +++ b/src/generated/Models/AccessPackageAssignmentReviewSettings.cs @@ -69,13 +69,13 @@ public static AccessPackageAssignmentReviewSettings CreateFromDiscriminatorValue /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"expirationBehavior", n => { ExpirationBehavior = n.GetEnumValue(); } }, {"fallbackReviewers", n => { FallbackReviewers = n.GetCollectionOfObjectValues(SubjectSet.CreateFromDiscriminatorValue)?.ToList(); } }, {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, {"isRecommendationEnabled", n => { IsRecommendationEnabled = n.GetBoolValue(); } }, {"isReviewerJustificationRequired", n => { IsReviewerJustificationRequired = n.GetBoolValue(); } }, {"isSelfReview", n => { IsSelfReview = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"primaryReviewers", n => { PrimaryReviewers = n.GetCollectionOfObjectValues(SubjectSet.CreateFromDiscriminatorValue)?.ToList(); } }, {"schedule", n => { Schedule = n.GetObjectValue(EntitlementManagementSchedule.CreateFromDiscriminatorValue); } }, }; diff --git a/src/generated/Models/AccessPackageAutomaticRequestSettings.cs b/src/generated/Models/AccessPackageAutomaticRequestSettings.cs index 937ffc4960a..b3b510aced4 100644 --- a/src/generated/Models/AccessPackageAutomaticRequestSettings.cs +++ b/src/generated/Models/AccessPackageAutomaticRequestSettings.cs @@ -41,8 +41,8 @@ public static AccessPackageAutomaticRequestSettings CreateFromDiscriminatorValue /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"gracePeriodBeforeAccessRemoval", n => { GracePeriodBeforeAccessRemoval = n.GetTimeSpanValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"gracePeriodBeforeAccessRemoval", n => { GracePeriodBeforeAccessRemoval = n.GetTimeSpanValue(); } }, {"removeAccessWhenTargetLeavesAllowedTargets", n => { RemoveAccessWhenTargetLeavesAllowedTargets = n.GetBoolValue(); } }, {"requestAccessForAllowedTargets", n => { RequestAccessForAllowedTargets = n.GetBoolValue(); } }, }; diff --git a/src/generated/Models/AccessPackageCatalog.cs b/src/generated/Models/AccessPackageCatalog.cs index de8c1254212..3bfe7a97bd6 100644 --- a/src/generated/Models/AccessPackageCatalog.cs +++ b/src/generated/Models/AccessPackageCatalog.cs @@ -94,8 +94,8 @@ public class AccessPackageCatalog : Entity, IParsable { {"isExternallyVisible", n => { IsExternallyVisible = n.GetBoolValue(); } }, {"modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"resourceRoles", n => { ResourceRoles = n.GetCollectionOfObjectValues(AccessPackageResourceRole.CreateFromDiscriminatorValue)?.ToList(); } }, - {"resources", n => { Resources = n.GetCollectionOfObjectValues(AccessPackageResource.CreateFromDiscriminatorValue)?.ToList(); } }, {"resourceScopes", n => { ResourceScopes = n.GetCollectionOfObjectValues(AccessPackageResourceScope.CreateFromDiscriminatorValue)?.ToList(); } }, + {"resources", n => { Resources = n.GetCollectionOfObjectValues(AccessPackageResource.CreateFromDiscriminatorValue)?.ToList(); } }, {"state", n => { State = n.GetEnumValue(); } }, }; } diff --git a/src/generated/Models/AccessPackageLocalizedText.cs b/src/generated/Models/AccessPackageLocalizedText.cs index 18ce537136d..b42d38b4795 100644 --- a/src/generated/Models/AccessPackageLocalizedText.cs +++ b/src/generated/Models/AccessPackageLocalizedText.cs @@ -51,8 +51,8 @@ public static AccessPackageLocalizedText CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"languageCode", n => { LanguageCode = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"languageCode", n => { LanguageCode = n.GetStringValue(); } }, {"text", n => { Text = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/AccessPackageResourceRequest.cs b/src/generated/Models/AccessPackageResourceRequest.cs index e02d6a6fa6a..c50ed426678 100644 --- a/src/generated/Models/AccessPackageResourceRequest.cs +++ b/src/generated/Models/AccessPackageResourceRequest.cs @@ -26,7 +26,7 @@ public class AccessPackageResourceRequest : Entity, IParsable { #else public AccessPackageResource Resource { get; set; } #endif - /// The outcome of whether the service was able to add the resource to the catalog. The value is delivered if the resource was added or removed. Read-only. + /// The outcome of whether the service was able to add the resource to the catalog. The value is delivered if the resource was added or removed, and deliveryFailed if it could not be added or removed. Read-only. public AccessPackageRequestState? State { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/generated/Models/AccessPackageSubject.cs b/src/generated/Models/AccessPackageSubject.cs index a8e93f0f54e..7c92ef6148c 100644 --- a/src/generated/Models/AccessPackageSubject.cs +++ b/src/generated/Models/AccessPackageSubject.cs @@ -30,7 +30,7 @@ public class AccessPackageSubject : Entity, IParsable { #else public string Email { get; set; } #endif - /// The object identifier of the subject. null if the subject is not yet a user in the tenant. + /// The object identifier of the subject. null if the subject isn't yet a user in the tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ObjectId { get; set; } @@ -38,7 +38,7 @@ public class AccessPackageSubject : Entity, IParsable { #else public string ObjectId { get; set; } #endif - /// A string representation of the principal's security identifier, if known, or null if the subject does not have a security identifier. + /// A string representation of the principal's security identifier, if known, or null if the subject doesn't have a security identifier. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OnPremisesSecurityIdentifier { get; set; } diff --git a/src/generated/Models/AccessReviewHistoryDefinition.cs b/src/generated/Models/AccessReviewHistoryDefinition.cs index 07ea57944d7..ebd8b15328f 100644 --- a/src/generated/Models/AccessReviewHistoryDefinition.cs +++ b/src/generated/Models/AccessReviewHistoryDefinition.cs @@ -16,7 +16,7 @@ public class AccessReviewHistoryDefinition : Entity, IParsable { #endif /// Timestamp when the access review definition was created. public DateTimeOffset? CreatedDateTime { get; set; } - /// Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions will be included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified. + /// Determines which review decisions will be included in the fetched review history data if specified. Optional on create. All decisions are included by default if no decisions are provided on create. Possible values are: approve, deny, dontKnow, notReviewed, and notNotified. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Decisions { get; set; } @@ -32,7 +32,7 @@ public class AccessReviewHistoryDefinition : Entity, IParsable { #else public string DisplayName { get; set; } #endif - /// If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that does not recur will have exactly one instance. + /// If the accessReviewHistoryDefinition is a recurring definition, instances represent each recurrence. A definition that doesn't recur will have exactly one instance. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Instances { get; set; } @@ -40,11 +40,11 @@ public class AccessReviewHistoryDefinition : Entity, IParsable { #else public List Instances { get; set; } #endif - /// A timestamp. Reviews ending on or before this date will be included in the fetched history data. Only required if scheduleSettings is not defined. + /// A timestamp. Reviews ending on or before this date will be included in the fetched history data. Only required if scheduleSettings isn't defined. public DateTimeOffset? ReviewHistoryPeriodEndDateTime { get; set; } - /// A timestamp. Reviews starting on or before this date will be included in the fetched history data. Only required if scheduleSettings is not defined. + /// A timestamp. Reviews starting on or before this date will be included in the fetched history data. Only required if scheduleSettings isn't defined. public DateTimeOffset? ReviewHistoryPeriodStartDateTime { get; set; } - /// The settings for a recurring access review history definition series. Only required if reviewHistoryPeriodStartDateTime or reviewHistoryPeriodEndDateTime are not defined. Not supported yet. + /// The settings for a recurring access review history definition series. Only required if reviewHistoryPeriodStartDateTime or reviewHistoryPeriodEndDateTime aren't defined. Not supported yet. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public AccessReviewHistoryScheduleSettings? ScheduleSettings { get; set; } diff --git a/src/generated/Models/AccessReviewHistoryInstance.cs b/src/generated/Models/AccessReviewHistoryInstance.cs index 9f0e339966b..02d1cde248a 100644 --- a/src/generated/Models/AccessReviewHistoryInstance.cs +++ b/src/generated/Models/AccessReviewHistoryInstance.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class AccessReviewHistoryInstance : Entity, IParsable { - /// Uri which can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required. + /// Uri that can be used to retrieve review history data. This URI will be active for 24 hours after being generated. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DownloadUri { get; set; } @@ -16,11 +16,11 @@ public class AccessReviewHistoryInstance : Entity, IParsable { #endif /// Timestamp when this instance and associated data expires and the history is deleted. Required. public DateTimeOffset? ExpirationDateTime { get; set; } - /// Timestamp when all of the available data for this instance was collected. This will be set after this instance's status is set to done. Required. + /// Timestamp when all of the available data for this instance was collected and is set after this instance's status is set to done. Required. public DateTimeOffset? FulfilledDateTime { get; set; } - /// Timestamp, reviews ending on or before this date will be included in the fetched history data. + /// Timestamp reviews ending on or before this date will be included in the fetched history data. public DateTimeOffset? ReviewHistoryPeriodEndDateTime { get; set; } - /// Timestamp, reviews starting on or after this date will be included in the fetched history data. + /// Timestamp reviews starting on or after this date will be included in the fetched history data. public DateTimeOffset? ReviewHistoryPeriodStartDateTime { get; set; } /// Timestamp when the instance's history data is scheduled to be generated. public DateTimeOffset? RunDateTime { get; set; } diff --git a/src/generated/Models/AccessReviewInstanceDecisionItemResource.cs b/src/generated/Models/AccessReviewInstanceDecisionItemResource.cs index b51027be15e..d27e0dacb9a 100644 --- a/src/generated/Models/AccessReviewInstanceDecisionItemResource.cs +++ b/src/generated/Models/AccessReviewInstanceDecisionItemResource.cs @@ -65,9 +65,9 @@ public static AccessReviewInstanceDecisionItemResource CreateFromDiscriminatorVa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/AccessReviewNotificationRecipientItem.cs b/src/generated/Models/AccessReviewNotificationRecipientItem.cs index b7a40de605a..4a6b387c553 100644 --- a/src/generated/Models/AccessReviewNotificationRecipientItem.cs +++ b/src/generated/Models/AccessReviewNotificationRecipientItem.cs @@ -51,9 +51,9 @@ public static AccessReviewNotificationRecipientItem CreateFromDiscriminatorValue /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"notificationRecipientScope", n => { NotificationRecipientScope = n.GetObjectValue(AccessReviewNotificationRecipientScope.CreateFromDiscriminatorValue); } }, {"notificationTemplateType", n => { NotificationTemplateType = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AccessReviewScheduleDefinition.cs b/src/generated/Models/AccessReviewScheduleDefinition.cs index 5b9a6bbb1ea..4dc891a19c8 100644 --- a/src/generated/Models/AccessReviewScheduleDefinition.cs +++ b/src/generated/Models/AccessReviewScheduleDefinition.cs @@ -40,7 +40,7 @@ public class AccessReviewScheduleDefinition : Entity, IParsable { #else public string DescriptionForReviewers { get; set; } #endif - /// Name of the access review series. Supports $select and $orderBy. Required on create. + /// Name of the access review series. Supports $select and $orderby. Required on create. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { get; set; } diff --git a/src/generated/Models/AccessReviewScheduleSettings.cs b/src/generated/Models/AccessReviewScheduleSettings.cs index ddcfe2f8491..6dc96e0d748 100644 --- a/src/generated/Models/AccessReviewScheduleSettings.cs +++ b/src/generated/Models/AccessReviewScheduleSettings.cs @@ -85,6 +85,7 @@ public static AccessReviewScheduleSettings CreateFromDiscriminatorValue(IParseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"applyActions", n => { ApplyActions = n.GetCollectionOfObjectValues(AccessReviewApplyAction.CreateFromDiscriminatorValue)?.ToList(); } }, {"autoApplyDecisionsEnabled", n => { AutoApplyDecisionsEnabled = n.GetBoolValue(); } }, {"decisionHistoriesForReviewersEnabled", n => { DecisionHistoriesForReviewersEnabled = n.GetBoolValue(); } }, @@ -93,7 +94,6 @@ public IDictionary> GetFieldDeserializers() { {"instanceDurationInDays", n => { InstanceDurationInDays = n.GetIntValue(); } }, {"justificationRequiredOnApproval", n => { JustificationRequiredOnApproval = n.GetBoolValue(); } }, {"mailNotificationsEnabled", n => { MailNotificationsEnabled = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"recommendationInsightSettings", n => { RecommendationInsightSettings = n.GetCollectionOfObjectValues(AccessReviewRecommendationInsightSetting.CreateFromDiscriminatorValue)?.ToList(); } }, {"recommendationLookBackDuration", n => { RecommendationLookBackDuration = n.GetTimeSpanValue(); } }, {"recommendationsEnabled", n => { RecommendationsEnabled = n.GetBoolValue(); } }, diff --git a/src/generated/Models/AccessReviewStageSettings.cs b/src/generated/Models/AccessReviewStageSettings.cs index 191e6cf16f8..b66b97b8b78 100644 --- a/src/generated/Models/AccessReviewStageSettings.cs +++ b/src/generated/Models/AccessReviewStageSettings.cs @@ -8,7 +8,7 @@ namespace ApiSdk.Models { public class AccessReviewStageSettings : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Indicate which decisions will go to the next stage. Can be a sub-set of Approve, Deny, Recommendation, or NotReviewed. If not provided, all decisions will go to the next stage. Optional. + /// Indicate which decisions will go to the next stage. Can be a subset of Approve, Deny, Recommendation, or NotReviewed. If not provided, all decisions will go to the next stage. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? DecisionsThatWillMoveToNextStage { get; set; } @@ -16,7 +16,7 @@ public class AccessReviewStageSettings : IAdditionalDataHolder, IParsable { #else public List DecisionsThatWillMoveToNextStage { get; set; } #endif - /// Defines the sequential or parallel order of the stages and depends on the stageId. Only sequential stages are currently supported. For example, if stageId is 2, then dependsOn must be 1. If stageId is 1, do not specify dependsOn. Required if stageId is not 1. + /// Defines the sequential or parallel order of the stages and depends on the stageId. Only sequential stages are currently supported. For example, if stageId is 2, then dependsOn must be 1. If stageId is 1, don't specify dependsOn. Required if stageId isn't 1. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? DependsOn { get; set; } @@ -24,9 +24,9 @@ public class AccessReviewStageSettings : IAdditionalDataHolder, IParsable { #else public List DependsOn { get; set; } #endif - /// The duration of the stage. Required. NOTE: The cumulative value of this property across all stages 1. Will override the instanceDurationInDays setting on the accessReviewScheduleDefinition object. 2. Cannot exceed the length of one recurrence. That is, if the review recurs weekly, the cumulative durationInDays cannot exceed 7. + /// The duration of the stage. Required. NOTE: The cumulative value of this property across all stages 1. Will override the instanceDurationInDays setting on the accessReviewScheduleDefinition object. 2. Can't exceed the length of one recurrence. That is, if the review recurs weekly, the cumulative durationInDays can't exceed 7. public int? DurationInDays { get; set; } - /// If provided, the fallback reviewers are asked to complete a review if the primary reviewers do not exist. For example, if managers are selected as reviewers and a principal under review does not have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property will override the corresponding setting on the accessReviewScheduleDefinition object. + /// If provided, the fallback reviewers are asked to complete a review if the primary reviewers don't exist. For example, if managers are selected as reviewers and a principal under review doesn't have a manager in Azure AD, the fallback reviewers are asked to review that principal. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition object. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? FallbackReviewers { get; set; } @@ -50,9 +50,9 @@ public class AccessReviewStageSettings : IAdditionalDataHolder, IParsable { #else public List RecommendationInsightSettings { get; set; } #endif - /// Indicates whether showing recommendations to reviewers is enabled. Required. NOTE: The value of this property will override override the corresponding setting on the accessReviewScheduleDefinition object. + /// Indicates whether showing recommendations to reviewers is enabled. Required. NOTE: The value of this property overrides override the corresponding setting on the accessReviewScheduleDefinition object. public bool? RecommendationsEnabled { get; set; } - /// Defines who the reviewers are. If none are specified, the review is a self-review (users review their own access). For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. NOTE: The value of this property will override the corresponding setting on the accessReviewScheduleDefinition. + /// Defines who the reviewers are. If none is specified, the review is a self-review (users review their own access). For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API. NOTE: The value of this property overrides the corresponding setting on the accessReviewScheduleDefinition. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Reviewers { get; set; } @@ -60,7 +60,7 @@ public class AccessReviewStageSettings : IAdditionalDataHolder, IParsable { #else public List Reviewers { get; set; } #endif - /// Unique identifier of the accessReviewStageSettings object. The stageId will be used by the dependsOn property to indicate the order of the stages. Required. + /// Unique identifier of the accessReviewStageSettings object. The stageId is used by the dependsOn property to indicate the order of the stages. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? StageId { get; set; } @@ -87,11 +87,11 @@ public static AccessReviewStageSettings CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"decisionsThatWillMoveToNextStage", n => { DecisionsThatWillMoveToNextStage = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"dependsOn", n => { DependsOn = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"durationInDays", n => { DurationInDays = n.GetIntValue(); } }, {"fallbackReviewers", n => { FallbackReviewers = n.GetCollectionOfObjectValues(AccessReviewReviewerScope.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"recommendationInsightSettings", n => { RecommendationInsightSettings = n.GetCollectionOfObjectValues(AccessReviewRecommendationInsightSetting.CreateFromDiscriminatorValue)?.ToList(); } }, {"recommendationsEnabled", n => { RecommendationsEnabled = n.GetBoolValue(); } }, {"reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(AccessReviewReviewerScope.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/generated/Models/ActionResultPart.cs b/src/generated/Models/ActionResultPart.cs index fd0c90b9918..9724c590766 100644 --- a/src/generated/Models/ActionResultPart.cs +++ b/src/generated/Models/ActionResultPart.cs @@ -47,8 +47,8 @@ public static ActionResultPart CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"error", n => { Error = n.GetObjectValue(PublicError.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"error", n => { Error = n.GetObjectValue(PublicError.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/generated/Models/AddIn.cs b/src/generated/Models/AddIn.cs index 9ba6b1efdc0..6be40fdd5bf 100644 --- a/src/generated/Models/AddIn.cs +++ b/src/generated/Models/AddIn.cs @@ -53,8 +53,8 @@ public static AddIn CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetGuidValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"id", n => { Id = n.GetGuidValue(); } }, {"properties", n => { Properties = n.GetCollectionOfObjectValues(KeyValue.CreateFromDiscriminatorValue)?.ToList(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/Admin.cs b/src/generated/Models/Admin.cs index d1ee13d8d85..94c87e70f31 100644 --- a/src/generated/Models/Admin.cs +++ b/src/generated/Models/Admin.cs @@ -59,8 +59,8 @@ public static Admin CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"edge", n => { Edge = n.GetObjectValue(ApiSdk.Models.Edge.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"edge", n => { Edge = n.GetObjectValue(ApiSdk.Models.Edge.CreateFromDiscriminatorValue); } }, {"serviceAnnouncement", n => { ServiceAnnouncement = n.GetObjectValue(ApiSdk.Models.ServiceAnnouncement.CreateFromDiscriminatorValue); } }, {"sharepoint", n => { Sharepoint = n.GetObjectValue(ApiSdk.Models.Sharepoint.CreateFromDiscriminatorValue); } }, }; diff --git a/src/generated/Models/AdministrativeUnit.cs b/src/generated/Models/AdministrativeUnit.cs index 6e50ee549b9..33c91e5f9a0 100644 --- a/src/generated/Models/AdministrativeUnit.cs +++ b/src/generated/Models/AdministrativeUnit.cs @@ -14,7 +14,7 @@ public class AdministrativeUnit : DirectoryObject, IParsable { #else public string Description { get; set; } #endif - /// Display name for the administrative unit. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy. + /// Display name for the administrative unit. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { get; set; } diff --git a/src/generated/Models/AggregationOption.cs b/src/generated/Models/AggregationOption.cs index 7aa5f12abeb..34cf8de5676 100644 --- a/src/generated/Models/AggregationOption.cs +++ b/src/generated/Models/AggregationOption.cs @@ -53,9 +53,9 @@ public static AggregationOption CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"bucketDefinition", n => { BucketDefinition = n.GetObjectValue(BucketAggregationDefinition.CreateFromDiscriminatorValue); } }, {"field", n => { Field = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"size", n => { Size = n.GetIntValue(); } }, }; } diff --git a/src/generated/Models/AgreementFileData.cs b/src/generated/Models/AgreementFileData.cs index 1bf727927e5..3c3aab75da6 100644 --- a/src/generated/Models/AgreementFileData.cs +++ b/src/generated/Models/AgreementFileData.cs @@ -43,8 +43,8 @@ public static AgreementFileData CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"data", n => { Data = n.GetByteArrayValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"data", n => { Data = n.GetByteArrayValue(); } }, }; } /// diff --git a/src/generated/Models/Album.cs b/src/generated/Models/Album.cs index ca5a3854999..5afaae369b9 100644 --- a/src/generated/Models/Album.cs +++ b/src/generated/Models/Album.cs @@ -43,8 +43,8 @@ public static Album CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"coverImageItemId", n => { CoverImageItemId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"coverImageItemId", n => { CoverImageItemId = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AlertDetection.cs b/src/generated/Models/AlertDetection.cs index 0b1302ae2d3..f660a88051e 100644 --- a/src/generated/Models/AlertDetection.cs +++ b/src/generated/Models/AlertDetection.cs @@ -59,10 +59,10 @@ public static AlertDetection CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"detectionType", n => { DetectionType = n.GetStringValue(); } }, {"method", n => { Method = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AlertHistoryState.cs b/src/generated/Models/AlertHistoryState.cs index 5b60d395c50..9a8fbd15099 100644 --- a/src/generated/Models/AlertHistoryState.cs +++ b/src/generated/Models/AlertHistoryState.cs @@ -73,11 +73,11 @@ public static AlertHistoryState CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"appId", n => { AppId = n.GetStringValue(); } }, {"assignedTo", n => { AssignedTo = n.GetStringValue(); } }, {"comments", n => { Comments = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"feedback", n => { Feedback = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"status", n => { Status = n.GetEnumValue(); } }, {"updatedDateTime", n => { UpdatedDateTime = n.GetDateTimeOffsetValue(); } }, {"user", n => { User = n.GetStringValue(); } }, diff --git a/src/generated/Models/AlertTrigger.cs b/src/generated/Models/AlertTrigger.cs index 2905a59c3e2..2bd831ce1e5 100644 --- a/src/generated/Models/AlertTrigger.cs +++ b/src/generated/Models/AlertTrigger.cs @@ -59,8 +59,8 @@ public static AlertTrigger CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"name", n => { Name = n.GetStringValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, {"value", n => { Value = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/AlteredQueryToken.cs b/src/generated/Models/AlteredQueryToken.cs index 53fc9ab8db7..b37b4028aa7 100644 --- a/src/generated/Models/AlteredQueryToken.cs +++ b/src/generated/Models/AlteredQueryToken.cs @@ -47,8 +47,8 @@ public static AlteredQueryToken CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"length", n => { Length = n.GetIntValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"length", n => { Length = n.GetIntValue(); } }, {"offset", n => { Offset = n.GetIntValue(); } }, {"suggestion", n => { Suggestion = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/AlternativeSecurityId.cs b/src/generated/Models/AlternativeSecurityId.cs index 23af4244579..30ceecc7bc5 100644 --- a/src/generated/Models/AlternativeSecurityId.cs +++ b/src/generated/Models/AlternativeSecurityId.cs @@ -53,9 +53,9 @@ public static AlternativeSecurityId CreateFromDiscriminatorValue(IParseNode pars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"identityProvider", n => { IdentityProvider = n.GetStringValue(); } }, {"key", n => { Key = n.GetByteArrayValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"type", n => { Type = n.GetIntValue(); } }, }; } diff --git a/src/generated/Models/AndroidGeneralDeviceConfiguration.cs b/src/generated/Models/AndroidGeneralDeviceConfiguration.cs index 6d2fb3d245e..580ef52e74f 100644 --- a/src/generated/Models/AndroidGeneralDeviceConfiguration.cs +++ b/src/generated/Models/AndroidGeneralDeviceConfiguration.cs @@ -197,9 +197,9 @@ public AndroidGeneralDeviceConfiguration() : base() { {"voiceAssistantBlocked", n => { VoiceAssistantBlocked = n.GetBoolValue(); } }, {"voiceDialingBlocked", n => { VoiceDialingBlocked = n.GetBoolValue(); } }, {"webBrowserBlockAutofill", n => { WebBrowserBlockAutofill = n.GetBoolValue(); } }, - {"webBrowserBlocked", n => { WebBrowserBlocked = n.GetBoolValue(); } }, {"webBrowserBlockJavaScript", n => { WebBrowserBlockJavaScript = n.GetBoolValue(); } }, {"webBrowserBlockPopups", n => { WebBrowserBlockPopups = n.GetBoolValue(); } }, + {"webBrowserBlocked", n => { WebBrowserBlocked = n.GetBoolValue(); } }, {"webBrowserCookieSettings", n => { WebBrowserCookieSettings = n.GetEnumValue(); } }, {"wiFiBlocked", n => { WiFiBlocked = n.GetBoolValue(); } }, }; diff --git a/src/generated/Models/AndroidLobAppCollectionResponse.cs b/src/generated/Models/AndroidLobAppCollectionResponse.cs new file mode 100644 index 00000000000..80e92076a8c --- /dev/null +++ b/src/generated/Models/AndroidLobAppCollectionResponse.cs @@ -0,0 +1,43 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace ApiSdk.Models { + public class AndroidLobAppCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// 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 + /// + /// The parse node to use to read the discriminator value and create the object + public static new AndroidLobAppCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AndroidLobAppCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AndroidLobApp.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/generated/Models/AndroidStoreAppCollectionResponse.cs b/src/generated/Models/AndroidStoreAppCollectionResponse.cs new file mode 100644 index 00000000000..b8b0359d59d --- /dev/null +++ b/src/generated/Models/AndroidStoreAppCollectionResponse.cs @@ -0,0 +1,43 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace ApiSdk.Models { + public class AndroidStoreAppCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// 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 + /// + /// The parse node to use to read the discriminator value and create the object + public static new AndroidStoreAppCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AndroidStoreAppCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(AndroidStoreApp.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs b/src/generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs index f4f63e66f67..92314efe2f1 100644 --- a/src/generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs +++ b/src/generated/Models/AndroidWorkProfileGeneralDeviceConfiguration.cs @@ -118,13 +118,13 @@ public AndroidWorkProfileGeneralDeviceConfiguration() : base() { {"workProfilePasswordBlockFingerprintUnlock", n => { WorkProfilePasswordBlockFingerprintUnlock = n.GetBoolValue(); } }, {"workProfilePasswordBlockTrustAgents", n => { WorkProfilePasswordBlockTrustAgents = n.GetBoolValue(); } }, {"workProfilePasswordExpirationDays", n => { WorkProfilePasswordExpirationDays = n.GetIntValue(); } }, - {"workProfilePasswordMinimumLength", n => { WorkProfilePasswordMinimumLength = n.GetIntValue(); } }, {"workProfilePasswordMinLetterCharacters", n => { WorkProfilePasswordMinLetterCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinLowerCaseCharacters", n => { WorkProfilePasswordMinLowerCaseCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinNonLetterCharacters", n => { WorkProfilePasswordMinNonLetterCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinNumericCharacters", n => { WorkProfilePasswordMinNumericCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinSymbolCharacters", n => { WorkProfilePasswordMinSymbolCharacters = n.GetIntValue(); } }, {"workProfilePasswordMinUpperCaseCharacters", n => { WorkProfilePasswordMinUpperCaseCharacters = n.GetIntValue(); } }, + {"workProfilePasswordMinimumLength", n => { WorkProfilePasswordMinimumLength = n.GetIntValue(); } }, {"workProfilePasswordMinutesOfInactivityBeforeScreenTimeout", n => { WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout = n.GetIntValue(); } }, {"workProfilePasswordPreviousPasswordBlockCount", n => { WorkProfilePasswordPreviousPasswordBlockCount = n.GetIntValue(); } }, {"workProfilePasswordRequiredType", n => { WorkProfilePasswordRequiredType = n.GetEnumValue(); } }, diff --git a/src/generated/Models/ApiApplication.cs b/src/generated/Models/ApiApplication.cs index 17ee7a67a15..5e3bf57431d 100644 --- a/src/generated/Models/ApiApplication.cs +++ b/src/generated/Models/ApiApplication.cs @@ -63,10 +63,10 @@ public static ApiApplication CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"acceptMappedClaims", n => { AcceptMappedClaims = n.GetBoolValue(); } }, {"knownClientApplications", n => { KnownClientApplications = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"oauth2PermissionScopes", n => { Oauth2PermissionScopes = n.GetCollectionOfObjectValues(PermissionScope.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"preAuthorizedApplications", n => { PreAuthorizedApplications = n.GetCollectionOfObjectValues(PreAuthorizedApplication.CreateFromDiscriminatorValue)?.ToList(); } }, {"requestedAccessTokenVersion", n => { RequestedAccessTokenVersion = n.GetIntValue(); } }, }; diff --git a/src/generated/Models/AppConfigurationSettingItem.cs b/src/generated/Models/AppConfigurationSettingItem.cs index e4ff8a17798..4fee4605b0a 100644 --- a/src/generated/Models/AppConfigurationSettingItem.cs +++ b/src/generated/Models/AppConfigurationSettingItem.cs @@ -56,10 +56,10 @@ public static AppConfigurationSettingItem CreateFromDiscriminatorValue(IParseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"appConfigKey", n => { AppConfigKey = n.GetStringValue(); } }, {"appConfigKeyType", n => { AppConfigKeyType = n.GetEnumValue(); } }, {"appConfigKeyValue", n => { AppConfigKeyValue = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AppConsentRequestScope.cs b/src/generated/Models/AppConsentRequestScope.cs index ee61289da7f..3232cd05d71 100644 --- a/src/generated/Models/AppConsentRequestScope.cs +++ b/src/generated/Models/AppConsentRequestScope.cs @@ -43,8 +43,8 @@ public static AppConsentRequestScope CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AppIdentity.cs b/src/generated/Models/AppIdentity.cs index 33d0dfd2278..73d769c5178 100644 --- a/src/generated/Models/AppIdentity.cs +++ b/src/generated/Models/AppIdentity.cs @@ -67,9 +67,9 @@ public static AppIdentity CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"appId", n => { AppId = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"servicePrincipalId", n => { ServicePrincipalId = n.GetStringValue(); } }, {"servicePrincipalName", n => { ServicePrincipalName = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/AppListItem.cs b/src/generated/Models/AppListItem.cs index 97b1b292b1a..dd1c195e07c 100644 --- a/src/generated/Models/AppListItem.cs +++ b/src/generated/Models/AppListItem.cs @@ -70,10 +70,10 @@ public static AppListItem CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"appId", n => { AppId = n.GetStringValue(); } }, {"appStoreUrl", n => { AppStoreUrl = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"publisher", n => { Publisher = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/AppLogCollectionDownloadDetails.cs b/src/generated/Models/AppLogCollectionDownloadDetails.cs index 78ac9745a01..fbc56297270 100644 --- a/src/generated/Models/AppLogCollectionDownloadDetails.cs +++ b/src/generated/Models/AppLogCollectionDownloadDetails.cs @@ -53,10 +53,10 @@ public static AppLogCollectionDownloadDetails CreateFromDiscriminatorValue(IPars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"appLogDecryptionAlgorithm", n => { AppLogDecryptionAlgorithm = n.GetEnumValue(); } }, {"decryptionKey", n => { DecryptionKey = n.GetStringValue(); } }, {"downloadUrl", n => { DownloadUrl = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AppManagementConfiguration.cs b/src/generated/Models/AppManagementConfiguration.cs index 906ffb8f654..b49684b007c 100644 --- a/src/generated/Models/AppManagementConfiguration.cs +++ b/src/generated/Models/AppManagementConfiguration.cs @@ -51,8 +51,8 @@ public static AppManagementConfiguration CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"keyCredentials", n => { KeyCredentials = n.GetCollectionOfObjectValues(KeyCredentialConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"keyCredentials", n => { KeyCredentials = n.GetCollectionOfObjectValues(KeyCredentialConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, {"passwordCredentials", n => { PasswordCredentials = n.GetCollectionOfObjectValues(PasswordCredentialConfiguration.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/AppRole.cs b/src/generated/Models/AppRole.cs index ef090005e98..c26f788d458 100644 --- a/src/generated/Models/AppRole.cs +++ b/src/generated/Models/AppRole.cs @@ -79,12 +79,12 @@ public static AppRole CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowedMemberTypes", n => { AllowedMemberTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"id", n => { Id = n.GetGuidValue(); } }, {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"origin", n => { Origin = n.GetStringValue(); } }, {"value", n => { Value = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/AppScope.cs b/src/generated/Models/AppScope.cs index a97a5827262..3dea3264ec8 100644 --- a/src/generated/Models/AppScope.cs +++ b/src/generated/Models/AppScope.cs @@ -14,7 +14,7 @@ public class AppScope : Entity, IParsable { #else public string DisplayName { get; set; } #endif - /// Describes the type of app-specific resource represented by the app scope. Provided for display purposes, so a user interface can convey to the user the kind of app specific resource represented by the app scope. Read-only. + /// Describes the type of app-specific resource represented by the app scope and is provided for display purposes, so a user interface can convey to the user the kind of app specific resource represented by the app scope. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Type { get; set; } diff --git a/src/generated/Models/Application.cs b/src/generated/Models/Application.cs index 34eb29d43f8..5d17186da4c 100644 --- a/src/generated/Models/Application.cs +++ b/src/generated/Models/Application.cs @@ -62,7 +62,7 @@ public class Application : DirectoryObject, IParsable { #else public ApiSdk.Models.Certification Certification { get; set; } #endif - /// The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, in, and eq on null values) and $orderBy. + /// The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, in, and eq on null values) and $orderby. public DateTimeOffset? CreatedDateTime { get; set; } /// Supports $filter (/$count eq 0, /$count ne 0). Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -96,7 +96,7 @@ public class Application : DirectoryObject, IParsable { #else public string DisabledByMicrosoftStatus { get; set; } #endif - /// The display name for the application. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy. + /// The display name for the application. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { get; set; } @@ -358,9 +358,9 @@ public Application() : base() { {"addIns", n => { AddIns = n.GetCollectionOfObjectValues(AddIn.CreateFromDiscriminatorValue)?.ToList(); } }, {"api", n => { Api = n.GetObjectValue(ApiApplication.CreateFromDiscriminatorValue); } }, {"appId", n => { AppId = n.GetStringValue(); } }, - {"applicationTemplateId", n => { ApplicationTemplateId = n.GetStringValue(); } }, {"appManagementPolicies", n => { AppManagementPolicies = n.GetCollectionOfObjectValues(AppManagementPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"appRoles", n => { AppRoles = n.GetCollectionOfObjectValues(AppRole.CreateFromDiscriminatorValue)?.ToList(); } }, + {"applicationTemplateId", n => { ApplicationTemplateId = n.GetStringValue(); } }, {"certification", n => { Certification = n.GetObjectValue(ApiSdk.Models.Certification.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"createdOnBehalfOf", n => { CreatedOnBehalfOf = n.GetObjectValue(DirectoryObject.CreateFromDiscriminatorValue); } }, diff --git a/src/generated/Models/ApplicationServicePrincipal.cs b/src/generated/Models/ApplicationServicePrincipal.cs index 56015a1a1f8..1409a6e60b9 100644 --- a/src/generated/Models/ApplicationServicePrincipal.cs +++ b/src/generated/Models/ApplicationServicePrincipal.cs @@ -51,8 +51,8 @@ public static ApplicationServicePrincipal CreateFromDiscriminatorValue(IParseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"application", n => { Application = n.GetObjectValue(ApiSdk.Models.Application.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"application", n => { Application = n.GetObjectValue(ApiSdk.Models.Application.CreateFromDiscriminatorValue); } }, {"servicePrincipal", n => { ServicePrincipal = n.GetObjectValue(ApiSdk.Models.ServicePrincipal.CreateFromDiscriminatorValue); } }, }; } diff --git a/src/generated/Models/AppliedConditionalAccessPolicy.cs b/src/generated/Models/AppliedConditionalAccessPolicy.cs index 7468e4c394a..8edf42a03a5 100644 --- a/src/generated/Models/AppliedConditionalAccessPolicy.cs +++ b/src/generated/Models/AppliedConditionalAccessPolicy.cs @@ -48,7 +48,7 @@ public class AppliedConditionalAccessPolicy : IAdditionalDataHolder, IParsable { #else public string OdataType { get; set; } #endif - /// Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions were not met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue. + /// Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions weren't met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue. public AppliedConditionalAccessPolicyResult? Result { get; set; } /// /// Instantiates a new appliedConditionalAccessPolicy and sets the default values. @@ -69,11 +69,11 @@ public static AppliedConditionalAccessPolicy CreateFromDiscriminatorValue(IParse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"enforcedGrantControls", n => { EnforcedGrantControls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"enforcedSessionControls", n => { EnforcedSessionControls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"id", n => { Id = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"result", n => { Result = n.GetEnumValue(); } }, }; } diff --git a/src/generated/Models/ApprovalSettings.cs b/src/generated/Models/ApprovalSettings.cs index b2ce63510b0..3787d420a22 100644 --- a/src/generated/Models/ApprovalSettings.cs +++ b/src/generated/Models/ApprovalSettings.cs @@ -57,12 +57,12 @@ public static ApprovalSettings CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"approvalMode", n => { ApprovalMode = n.GetStringValue(); } }, {"approvalStages", n => { ApprovalStages = n.GetCollectionOfObjectValues(UnifiedApprovalStage.CreateFromDiscriminatorValue)?.ToList(); } }, {"isApprovalRequired", n => { IsApprovalRequired = n.GetBoolValue(); } }, {"isApprovalRequiredForExtension", n => { IsApprovalRequiredForExtension = n.GetBoolValue(); } }, {"isRequestorJustificationRequired", n => { IsRequestorJustificationRequired = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ApprovalStage.cs b/src/generated/Models/ApprovalStage.cs index 6399b1f4345..c978ed43ad8 100644 --- a/src/generated/Models/ApprovalStage.cs +++ b/src/generated/Models/ApprovalStage.cs @@ -66,9 +66,9 @@ public class ApprovalStage : Entity, IParsable { {"assignedToMe", n => { AssignedToMe = n.GetBoolValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"justification", n => { Justification = n.GetStringValue(); } }, + {"reviewResult", n => { ReviewResult = n.GetStringValue(); } }, {"reviewedBy", n => { ReviewedBy = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"reviewedDateTime", n => { ReviewedDateTime = n.GetDateTimeOffsetValue(); } }, - {"reviewResult", n => { ReviewResult = n.GetStringValue(); } }, {"status", n => { Status = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/ArchivedPrintJob.cs b/src/generated/Models/ArchivedPrintJob.cs index 71cd7100577..d90768780d1 100644 --- a/src/generated/Models/ArchivedPrintJob.cs +++ b/src/generated/Models/ArchivedPrintJob.cs @@ -79,6 +79,7 @@ public static ArchivedPrintJob CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"acquiredByPrinter", n => { AcquiredByPrinter = n.GetBoolValue(); } }, {"acquiredDateTime", n => { AcquiredDateTime = n.GetDateTimeOffsetValue(); } }, {"completionDateTime", n => { CompletionDateTime = n.GetDateTimeOffsetValue(); } }, @@ -86,7 +87,6 @@ public IDictionary> GetFieldDeserializers() { {"createdBy", n => { CreatedBy = n.GetObjectValue(UserIdentity.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"printerId", n => { PrinterId = n.GetStringValue(); } }, {"printerName", n => { PrinterName = n.GetStringValue(); } }, {"processingState", n => { ProcessingState = n.GetEnumValue(); } }, diff --git a/src/generated/Models/AssignedLabel.cs b/src/generated/Models/AssignedLabel.cs index d8fb99d431c..446b777f3a6 100644 --- a/src/generated/Models/AssignedLabel.cs +++ b/src/generated/Models/AssignedLabel.cs @@ -51,9 +51,9 @@ public static AssignedLabel CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"labelId", n => { LabelId = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AssignedLicense.cs b/src/generated/Models/AssignedLicense.cs index 5407851ef72..edaf8347ca4 100644 --- a/src/generated/Models/AssignedLicense.cs +++ b/src/generated/Models/AssignedLicense.cs @@ -45,8 +45,8 @@ public static AssignedLicense CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"disabledPlans", n => { DisabledPlans = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"disabledPlans", n => { DisabledPlans = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"skuId", n => { SkuId = n.GetGuidValue(); } }, }; } diff --git a/src/generated/Models/AssignedPlan.cs b/src/generated/Models/AssignedPlan.cs index 3c4d14fe5bb..97877ff3b6d 100644 --- a/src/generated/Models/AssignedPlan.cs +++ b/src/generated/Models/AssignedPlan.cs @@ -55,9 +55,9 @@ public static AssignedPlan CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } }, {"capabilityStatus", n => { CapabilityStatus = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"service", n => { Service = n.GetStringValue(); } }, {"servicePlanId", n => { ServicePlanId = n.GetGuidValue(); } }, }; diff --git a/src/generated/Models/AssignedTrainingInfo.cs b/src/generated/Models/AssignedTrainingInfo.cs index 0c674ec431a..5a1536813bb 100644 --- a/src/generated/Models/AssignedTrainingInfo.cs +++ b/src/generated/Models/AssignedTrainingInfo.cs @@ -47,10 +47,10 @@ public static AssignedTrainingInfo CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"assignedUserCount", n => { AssignedUserCount = n.GetIntValue(); } }, {"completedUserCount", n => { CompletedUserCount = n.GetIntValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AttachmentInfo.cs b/src/generated/Models/AttachmentInfo.cs index 06dccf7198d..a637cfcd2fd 100644 --- a/src/generated/Models/AttachmentInfo.cs +++ b/src/generated/Models/AttachmentInfo.cs @@ -55,10 +55,10 @@ public static AttachmentInfo CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"attachmentType", n => { AttachmentType = n.GetEnumValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"size", n => { Size = n.GetLongValue(); } }, }; } diff --git a/src/generated/Models/AttachmentItem.cs b/src/generated/Models/AttachmentItem.cs index 571b9290e52..fd35e046cbc 100644 --- a/src/generated/Models/AttachmentItem.cs +++ b/src/generated/Models/AttachmentItem.cs @@ -65,12 +65,12 @@ public static AttachmentItem CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"attachmentType", n => { AttachmentType = n.GetEnumValue(); } }, {"contentId", n => { ContentId = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, {"isInline", n => { IsInline = n.GetBoolValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"size", n => { Size = n.GetLongValue(); } }, }; } diff --git a/src/generated/Models/AttackSimulationRepeatOffender.cs b/src/generated/Models/AttackSimulationRepeatOffender.cs index 44fdbda8a21..c6740fd04fa 100644 --- a/src/generated/Models/AttackSimulationRepeatOffender.cs +++ b/src/generated/Models/AttackSimulationRepeatOffender.cs @@ -45,8 +45,8 @@ public static AttackSimulationRepeatOffender CreateFromDiscriminatorValue(IParse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attackSimulationUser", n => { AttackSimulationUser = n.GetObjectValue(ApiSdk.Models.AttackSimulationUser.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"attackSimulationUser", n => { AttackSimulationUser = n.GetObjectValue(ApiSdk.Models.AttackSimulationUser.CreateFromDiscriminatorValue); } }, {"repeatOffenceCount", n => { RepeatOffenceCount = n.GetIntValue(); } }, }; } diff --git a/src/generated/Models/AttackSimulationSimulationUserCoverage.cs b/src/generated/Models/AttackSimulationSimulationUserCoverage.cs index 06bb42451b7..e22d74f2d6d 100644 --- a/src/generated/Models/AttackSimulationSimulationUserCoverage.cs +++ b/src/generated/Models/AttackSimulationSimulationUserCoverage.cs @@ -51,11 +51,11 @@ public static AttackSimulationSimulationUserCoverage CreateFromDiscriminatorValu /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"attackSimulationUser", n => { AttackSimulationUser = n.GetObjectValue(ApiSdk.Models.AttackSimulationUser.CreateFromDiscriminatorValue); } }, {"clickCount", n => { ClickCount = n.GetIntValue(); } }, {"compromisedCount", n => { CompromisedCount = n.GetIntValue(); } }, {"latestSimulationDateTime", n => { LatestSimulationDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"simulationCount", n => { SimulationCount = n.GetIntValue(); } }, }; } diff --git a/src/generated/Models/AttackSimulationTrainingUserCoverage.cs b/src/generated/Models/AttackSimulationTrainingUserCoverage.cs index 256bcd78174..e9dd91a0321 100644 --- a/src/generated/Models/AttackSimulationTrainingUserCoverage.cs +++ b/src/generated/Models/AttackSimulationTrainingUserCoverage.cs @@ -51,8 +51,8 @@ public static AttackSimulationTrainingUserCoverage CreateFromDiscriminatorValue( /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"attackSimulationUser", n => { AttackSimulationUser = n.GetObjectValue(ApiSdk.Models.AttackSimulationUser.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"attackSimulationUser", n => { AttackSimulationUser = n.GetObjectValue(ApiSdk.Models.AttackSimulationUser.CreateFromDiscriminatorValue); } }, {"userTrainings", n => { UserTrainings = n.GetCollectionOfObjectValues(UserTrainingStatusInfo.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/AttackSimulationUser.cs b/src/generated/Models/AttackSimulationUser.cs index 02468b23e6e..ab096dcdb6c 100644 --- a/src/generated/Models/AttackSimulationUser.cs +++ b/src/generated/Models/AttackSimulationUser.cs @@ -59,9 +59,9 @@ public static AttackSimulationUser CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"userId", n => { UserId = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/AttendanceInterval.cs b/src/generated/Models/AttendanceInterval.cs index 64cbcdc57b9..dba1e4adfc4 100644 --- a/src/generated/Models/AttendanceInterval.cs +++ b/src/generated/Models/AttendanceInterval.cs @@ -41,10 +41,10 @@ public static AttendanceInterval CreateFromDiscriminatorValue(IParseNode parseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"durationInSeconds", n => { DurationInSeconds = n.GetIntValue(); } }, {"joinDateTime", n => { JoinDateTime = n.GetDateTimeOffsetValue(); } }, {"leaveDateTime", n => { LeaveDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/Attendee.cs b/src/generated/Models/Attendee.cs index d6fc8d72ceb..7836a44ea4b 100644 --- a/src/generated/Models/Attendee.cs +++ b/src/generated/Models/Attendee.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class Attendee : AttendeeBase, IParsable { - /// An alternate date/time proposed by the attendee for a meeting request to start and end. If the attendee hasn't proposed another time, then this property is not included in a response of a GET event. + /// An alternate date/time proposed by the attendee for a meeting request to start and end. If the attendee hasn't proposed another time, then this property isn't included in a response of a GET event. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public TimeSlot? ProposedNewTime { get; set; } diff --git a/src/generated/Models/AttendeeAvailability.cs b/src/generated/Models/AttendeeAvailability.cs index e7c01689ab7..ba8a0745060 100644 --- a/src/generated/Models/AttendeeAvailability.cs +++ b/src/generated/Models/AttendeeAvailability.cs @@ -45,9 +45,9 @@ public static AttendeeAvailability CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"attendee", n => { Attendee = n.GetObjectValue(AttendeeBase.CreateFromDiscriminatorValue); } }, {"availability", n => { Availability = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AttributeDefinition.cs b/src/generated/Models/AttributeDefinition.cs index f3f593b29e3..a0241b96ea6 100644 --- a/src/generated/Models/AttributeDefinition.cs +++ b/src/generated/Models/AttributeDefinition.cs @@ -89,6 +89,7 @@ public static AttributeDefinition CreateFromDiscriminatorValue(IParseNode parseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"anchor", n => { Anchor = n.GetBoolValue(); } }, {"apiExpressions", n => { ApiExpressions = n.GetCollectionOfObjectValues(StringKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"caseExact", n => { CaseExact = n.GetBoolValue(); } }, @@ -98,7 +99,6 @@ public IDictionary> GetFieldDeserializers() { {"multivalued", n => { Multivalued = n.GetBoolValue(); } }, {"mutability", n => { Mutability = n.GetEnumValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"referencedObjects", n => { ReferencedObjects = n.GetCollectionOfObjectValues(ReferencedObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"required", n => { Required = n.GetBoolValue(); } }, {"type", n => { Type = n.GetEnumValue(); } }, diff --git a/src/generated/Models/AttributeDefinitionMetadataEntry.cs b/src/generated/Models/AttributeDefinitionMetadataEntry.cs index 6f1659bb126..c6cdab61221 100644 --- a/src/generated/Models/AttributeDefinitionMetadataEntry.cs +++ b/src/generated/Models/AttributeDefinitionMetadataEntry.cs @@ -45,8 +45,8 @@ public static AttributeDefinitionMetadataEntry CreateFromDiscriminatorValue(IPar /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"key", n => { Key = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"key", n => { Key = n.GetEnumValue(); } }, {"value", n => { Value = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/AttributeMapping.cs b/src/generated/Models/AttributeMapping.cs index 767c354ff10..8b02be64366 100644 --- a/src/generated/Models/AttributeMapping.cs +++ b/src/generated/Models/AttributeMapping.cs @@ -67,12 +67,12 @@ public static AttributeMapping CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"defaultValue", n => { DefaultValue = n.GetStringValue(); } }, {"exportMissingReferences", n => { ExportMissingReferences = n.GetBoolValue(); } }, {"flowBehavior", n => { FlowBehavior = n.GetEnumValue(); } }, {"flowType", n => { FlowType = n.GetEnumValue(); } }, {"matchingPriority", n => { MatchingPriority = n.GetIntValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"source", n => { Source = n.GetObjectValue(AttributeMappingSource.CreateFromDiscriminatorValue); } }, {"targetAttributeName", n => { TargetAttributeName = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/AttributeMappingParameterSchema.cs b/src/generated/Models/AttributeMappingParameterSchema.cs index 22e13a729e9..5bc568928c6 100644 --- a/src/generated/Models/AttributeMappingParameterSchema.cs +++ b/src/generated/Models/AttributeMappingParameterSchema.cs @@ -49,9 +49,9 @@ public static AttributeMappingParameterSchema CreateFromDiscriminatorValue(IPars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowMultipleOccurrences", n => { AllowMultipleOccurrences = n.GetBoolValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"required", n => { Required = n.GetBoolValue(); } }, {"type", n => { Type = n.GetEnumValue(); } }, }; diff --git a/src/generated/Models/AttributeMappingSource.cs b/src/generated/Models/AttributeMappingSource.cs index 2aac7cf4b09..6345c8605e3 100644 --- a/src/generated/Models/AttributeMappingSource.cs +++ b/src/generated/Models/AttributeMappingSource.cs @@ -32,7 +32,7 @@ public class AttributeMappingSource : IAdditionalDataHolder, IParsable { #else public string OdataType { get; set; } #endif - /// If this object represents a function, lists function parameters. Parameters consist of attributeMappingSource objects themselves, allowing for complex expressions. If type is not Function, this property will be null/empty array. + /// If this object represents a function, lists function parameters. Parameters consist of attributeMappingSource objects themselves, allowing for complex expressions. If type isn't Function, this property is null/empty array. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Parameters { get; set; } @@ -61,9 +61,9 @@ public static AttributeMappingSource CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"expression", n => { Expression = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"parameters", n => { Parameters = n.GetCollectionOfObjectValues(StringKeyAttributeMappingSourceValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"type", n => { Type = n.GetEnumValue(); } }, }; diff --git a/src/generated/Models/Audio.cs b/src/generated/Models/Audio.cs index 6911fa1c429..b81de7cc332 100644 --- a/src/generated/Models/Audio.cs +++ b/src/generated/Models/Audio.cs @@ -109,6 +109,7 @@ public static Audio CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"album", n => { Album = n.GetStringValue(); } }, {"albumArtist", n => { AlbumArtist = n.GetStringValue(); } }, {"artist", n => { Artist = n.GetStringValue(); } }, @@ -121,7 +122,6 @@ public IDictionary> GetFieldDeserializers() { {"genre", n => { Genre = n.GetStringValue(); } }, {"hasDrm", n => { HasDrm = n.GetBoolValue(); } }, {"isVariableBitrate", n => { IsVariableBitrate = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"title", n => { Title = n.GetStringValue(); } }, {"track", n => { Track = n.GetIntValue(); } }, {"trackCount", n => { TrackCount = n.GetIntValue(); } }, diff --git a/src/generated/Models/AudioConferencing.cs b/src/generated/Models/AudioConferencing.cs index 31e8e3f62b7..15cf18f0291 100644 --- a/src/generated/Models/AudioConferencing.cs +++ b/src/generated/Models/AudioConferencing.cs @@ -83,9 +83,9 @@ public static AudioConferencing CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"conferenceId", n => { ConferenceId = n.GetStringValue(); } }, {"dialinUrl", n => { DialinUrl = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"tollFreeNumber", n => { TollFreeNumber = n.GetStringValue(); } }, {"tollFreeNumbers", n => { TollFreeNumbers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"tollNumber", n => { TollNumber = n.GetStringValue(); } }, diff --git a/src/generated/Models/AuditActivityInitiator.cs b/src/generated/Models/AuditActivityInitiator.cs index b079ac1872c..38c5d38ce0d 100644 --- a/src/generated/Models/AuditActivityInitiator.cs +++ b/src/generated/Models/AuditActivityInitiator.cs @@ -51,8 +51,8 @@ public static AuditActivityInitiator CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"app", n => { App = n.GetObjectValue(AppIdentity.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"app", n => { App = n.GetObjectValue(AppIdentity.CreateFromDiscriminatorValue); } }, {"user", n => { User = n.GetObjectValue(UserIdentity.CreateFromDiscriminatorValue); } }, }; } diff --git a/src/generated/Models/AuditActor.cs b/src/generated/Models/AuditActor.cs index 4d5d69c0fbd..11a0ea8bb64 100644 --- a/src/generated/Models/AuditActor.cs +++ b/src/generated/Models/AuditActor.cs @@ -102,11 +102,11 @@ public static AuditActor CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"applicationDisplayName", n => { ApplicationDisplayName = n.GetStringValue(); } }, {"applicationId", n => { ApplicationId = n.GetStringValue(); } }, {"auditActorType", n => { AuditActorType = n.GetStringValue(); } }, {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"servicePrincipalName", n => { ServicePrincipalName = n.GetStringValue(); } }, {"userId", n => { UserId = n.GetStringValue(); } }, {"userPermissions", n => { UserPermissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, diff --git a/src/generated/Models/AuditProperty.cs b/src/generated/Models/AuditProperty.cs index 889e72224dc..e2c7b5492ea 100644 --- a/src/generated/Models/AuditProperty.cs +++ b/src/generated/Models/AuditProperty.cs @@ -62,9 +62,9 @@ public static AuditProperty CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"newValue", n => { NewValue = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"oldValue", n => { OldValue = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/AuditResource.cs b/src/generated/Models/AuditResource.cs index 861db515d24..472f320f865 100644 --- a/src/generated/Models/AuditResource.cs +++ b/src/generated/Models/AuditResource.cs @@ -70,10 +70,10 @@ public static AuditResource CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"auditResourceType", n => { AuditResourceType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"modifiedProperties", n => { ModifiedProperties = n.GetCollectionOfObjectValues(AuditProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"resourceId", n => { ResourceId = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/AuthenticationMethodFeatureConfiguration.cs b/src/generated/Models/AuthenticationMethodFeatureConfiguration.cs index 41506ca99cd..98223b35ea1 100644 --- a/src/generated/Models/AuthenticationMethodFeatureConfiguration.cs +++ b/src/generated/Models/AuthenticationMethodFeatureConfiguration.cs @@ -53,9 +53,9 @@ public static AuthenticationMethodFeatureConfiguration CreateFromDiscriminatorVa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"excludeTarget", n => { ExcludeTarget = n.GetObjectValue(FeatureTarget.CreateFromDiscriminatorValue); } }, {"includeTarget", n => { IncludeTarget = n.GetObjectValue(FeatureTarget.CreateFromDiscriminatorValue); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"state", n => { State = n.GetEnumValue(); } }, }; } diff --git a/src/generated/Models/AuthenticationMethodsRegistrationCampaign.cs b/src/generated/Models/AuthenticationMethodsRegistrationCampaign.cs index 79a76e8b554..337cbebd57c 100644 --- a/src/generated/Models/AuthenticationMethodsRegistrationCampaign.cs +++ b/src/generated/Models/AuthenticationMethodsRegistrationCampaign.cs @@ -55,9 +55,9 @@ public static AuthenticationMethodsRegistrationCampaign CreateFromDiscriminatorV /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"excludeTargets", n => { ExcludeTargets = n.GetCollectionOfObjectValues(ExcludeTarget.CreateFromDiscriminatorValue)?.ToList(); } }, {"includeTargets", n => { IncludeTargets = n.GetCollectionOfObjectValues(AuthenticationMethodsRegistrationCampaignIncludeTarget.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"snoozeDurationInDays", n => { SnoozeDurationInDays = n.GetIntValue(); } }, {"state", n => { State = n.GetEnumValue(); } }, }; diff --git a/src/generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs b/src/generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs index 0afea9cd863..c8b401c0c03 100644 --- a/src/generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs +++ b/src/generated/Models/AuthenticationMethodsRegistrationCampaignIncludeTarget.cs @@ -53,10 +53,10 @@ public static AuthenticationMethodsRegistrationCampaignIncludeTarget CreateFromD /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, - {"targetedAuthenticationMethod", n => { TargetedAuthenticationMethod = n.GetStringValue(); } }, + {"id", n => { Id = n.GetStringValue(); } }, {"targetType", n => { TargetType = n.GetEnumValue(); } }, + {"targetedAuthenticationMethod", n => { TargetedAuthenticationMethod = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AuthenticationStrengthUsage.cs b/src/generated/Models/AuthenticationStrengthUsage.cs index ac1b57ab3d5..bd8d3fd5d26 100644 --- a/src/generated/Models/AuthenticationStrengthUsage.cs +++ b/src/generated/Models/AuthenticationStrengthUsage.cs @@ -51,9 +51,9 @@ public static AuthenticationStrengthUsage CreateFromDiscriminatorValue(IParseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"mfa", n => { Mfa = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"none", n => { None = n.GetCollectionOfObjectValues(ConditionalAccessPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/AuthorizationInfo.cs b/src/generated/Models/AuthorizationInfo.cs index d6e8485999e..1f549faaf4c 100644 --- a/src/generated/Models/AuthorizationInfo.cs +++ b/src/generated/Models/AuthorizationInfo.cs @@ -43,8 +43,8 @@ public static AuthorizationInfo CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"certificateUserIds", n => { CertificateUserIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"certificateUserIds", n => { CertificateUserIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } /// diff --git a/src/generated/Models/AuthorizationPolicy.cs b/src/generated/Models/AuthorizationPolicy.cs index 28aeda9d378..86e791b9b2c 100644 --- a/src/generated/Models/AuthorizationPolicy.cs +++ b/src/generated/Models/AuthorizationPolicy.cs @@ -12,11 +12,11 @@ public class AuthorizationPolicy : PolicyBase, IParsable { public bool? AllowedToUseSSPR { get; set; } /// Indicates whether a user can join the tenant by email validation. public bool? AllowEmailVerifiedUsersToJoinOrganization { get; set; } - /// Indicates who can invite external users to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more details, see allowInvitesFrom values. + /// Indicates who can invite external users to the organization. Possible values are: none, adminsAndGuestInviters, adminsGuestInvitersAndAllMembers, everyone. everyone is the default setting for all cloud environments except US Government. For more information, see allowInvitesFrom values. public ApiSdk.Models.AllowInvitesFrom? AllowInvitesFrom { get; set; } - /// Indicates whether user consent for risky apps is allowed. We recommend to keep this as false. Default value is false. + /// Indicates whether user consent for risky apps is allowed. We recommend keeping allowUserConsentForRiskyApps as false. Default value is false. public bool? AllowUserConsentForRiskyApps { get; set; } - /// To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This does not affect Azure Active Directory Connect or Microsoft Graph. + /// To disable the use of MSOL PowerShell, set this property to true. This also disables user-based access to the legacy service endpoint used by MSOL PowerShell. This doesn't affect Azure Active Directory Connect or Microsoft Graph. public bool? BlockMsolPowerShell { get; set; } /// The defaultUserRolePermissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -47,11 +47,11 @@ public AuthorizationPolicy() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"allowedToSignUpEmailBasedSubscriptions", n => { AllowedToSignUpEmailBasedSubscriptions = n.GetBoolValue(); } }, - {"allowedToUseSSPR", n => { AllowedToUseSSPR = n.GetBoolValue(); } }, {"allowEmailVerifiedUsersToJoinOrganization", n => { AllowEmailVerifiedUsersToJoinOrganization = n.GetBoolValue(); } }, {"allowInvitesFrom", n => { AllowInvitesFrom = n.GetEnumValue(); } }, {"allowUserConsentForRiskyApps", n => { AllowUserConsentForRiskyApps = n.GetBoolValue(); } }, + {"allowedToSignUpEmailBasedSubscriptions", n => { AllowedToSignUpEmailBasedSubscriptions = n.GetBoolValue(); } }, + {"allowedToUseSSPR", n => { AllowedToUseSSPR = n.GetBoolValue(); } }, {"blockMsolPowerShell", n => { BlockMsolPowerShell = n.GetBoolValue(); } }, {"defaultUserRolePermissions", n => { DefaultUserRolePermissions = n.GetObjectValue(ApiSdk.Models.DefaultUserRolePermissions.CreateFromDiscriminatorValue); } }, {"guestUserRoleId", n => { GuestUserRoleId = n.GetGuidValue(); } }, diff --git a/src/generated/Models/AutomaticRepliesMailTips.cs b/src/generated/Models/AutomaticRepliesMailTips.cs index a3fbdcc4bb7..57b9fbfac27 100644 --- a/src/generated/Models/AutomaticRepliesMailTips.cs +++ b/src/generated/Models/AutomaticRepliesMailTips.cs @@ -67,9 +67,9 @@ public static AutomaticRepliesMailTips CreateFromDiscriminatorValue(IParseNode p /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, {"messageLanguage", n => { MessageLanguage = n.GetObjectValue(LocaleInfo.CreateFromDiscriminatorValue); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"scheduledEndTime", n => { ScheduledEndTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"scheduledStartTime", n => { ScheduledStartTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; diff --git a/src/generated/Models/AutomaticRepliesSetting.cs b/src/generated/Models/AutomaticRepliesSetting.cs index a53c6682a98..d4539944e2e 100644 --- a/src/generated/Models/AutomaticRepliesSetting.cs +++ b/src/generated/Models/AutomaticRepliesSetting.cs @@ -71,10 +71,10 @@ public static AutomaticRepliesSetting CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"externalAudience", n => { ExternalAudience = n.GetEnumValue(); } }, {"externalReplyMessage", n => { ExternalReplyMessage = n.GetStringValue(); } }, {"internalReplyMessage", n => { InternalReplyMessage = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"scheduledEndDateTime", n => { ScheduledEndDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"scheduledStartDateTime", n => { ScheduledStartDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"status", n => { Status = n.GetEnumValue(); } }, diff --git a/src/generated/Models/AvailabilityItem.cs b/src/generated/Models/AvailabilityItem.cs index cb999473111..52b36ac70e9 100644 --- a/src/generated/Models/AvailabilityItem.cs +++ b/src/generated/Models/AvailabilityItem.cs @@ -61,8 +61,8 @@ public static AvailabilityItem CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"endDateTime", n => { EndDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"endDateTime", n => { EndDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"serviceId", n => { ServiceId = n.GetStringValue(); } }, {"startDateTime", n => { StartDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"status", n => { Status = n.GetEnumValue(); } }, diff --git a/src/generated/Models/AverageComparativeScore.cs b/src/generated/Models/AverageComparativeScore.cs index 8f32617185a..37b438feb42 100644 --- a/src/generated/Models/AverageComparativeScore.cs +++ b/src/generated/Models/AverageComparativeScore.cs @@ -45,9 +45,9 @@ public static AverageComparativeScore CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"averageScore", n => { AverageScore = n.GetDoubleValue(); } }, {"basis", n => { Basis = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/B2xIdentityUserFlow.cs b/src/generated/Models/B2xIdentityUserFlow.cs index 029284cc8b8..6951c9cd1a0 100644 --- a/src/generated/Models/B2xIdentityUserFlow.cs +++ b/src/generated/Models/B2xIdentityUserFlow.cs @@ -22,7 +22,7 @@ public class B2xIdentityUserFlow : IdentityUserFlow, IParsable { #else public List IdentityProviders { get; set; } #endif - /// The languages supported for customization within the user flow. Language customization is enabled by default in self-service sign-up user flow. You cannot create custom languages in self-service sign-up user flows. + /// The languages supported for customization within the user flow. Language customization is enabled by default in self-service sign-up user flow. You can't create custom languages in self-service sign-up user flows. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Languages { get; set; } diff --git a/src/generated/Models/BasicAuthentication.cs b/src/generated/Models/BasicAuthentication.cs index 2c3cf49af87..2686357b8a2 100644 --- a/src/generated/Models/BasicAuthentication.cs +++ b/src/generated/Models/BasicAuthentication.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class BasicAuthentication : ApiAuthenticationConfigurationBase, IParsable { - /// The password. It is not returned in the responses. + /// The password. It isn't returned in the responses. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Password { get; set; } diff --git a/src/generated/Models/BitLockerRemovableDrivePolicy.cs b/src/generated/Models/BitLockerRemovableDrivePolicy.cs index 0906cdeed6b..6910abaac98 100644 --- a/src/generated/Models/BitLockerRemovableDrivePolicy.cs +++ b/src/generated/Models/BitLockerRemovableDrivePolicy.cs @@ -44,9 +44,9 @@ public static BitLockerRemovableDrivePolicy CreateFromDiscriminatorValue(IParseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"blockCrossOrganizationWriteAccess", n => { BlockCrossOrganizationWriteAccess = n.GetBoolValue(); } }, {"encryptionMethod", n => { EncryptionMethod = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"requireEncryptionForWriteAccess", n => { RequireEncryptionForWriteAccess = n.GetBoolValue(); } }, }; } diff --git a/src/generated/Models/BookingAppointment.cs b/src/generated/Models/BookingAppointment.cs index b390a190497..99b3a3194d0 100644 --- a/src/generated/Models/BookingAppointment.cs +++ b/src/generated/Models/BookingAppointment.cs @@ -156,8 +156,8 @@ public class BookingAppointment : Entity, IParsable { return new Dictionary>(base.GetFieldDeserializers()) { {"additionalInformation", n => { AdditionalInformation = n.GetStringValue(); } }, {"anonymousJoinWebUrl", n => { AnonymousJoinWebUrl = n.GetStringValue(); } }, - {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerInformationBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"customerTimeZone", n => { CustomerTimeZone = n.GetStringValue(); } }, + {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerInformationBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"duration", n => { Duration = n.GetTimeSpanValue(); } }, {"endDateTime", n => { EndDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, {"filledAttendeesCount", n => { FilledAttendeesCount = n.GetIntValue(); } }, diff --git a/src/generated/Models/BookingBusiness.cs b/src/generated/Models/BookingBusiness.cs index e097ed97179..1e1edced226 100644 --- a/src/generated/Models/BookingBusiness.cs +++ b/src/generated/Models/BookingBusiness.cs @@ -165,8 +165,8 @@ public class BookingBusiness : Entity, IParsable { {"businessHours", n => { BusinessHours = n.GetCollectionOfObjectValues(BookingWorkHours.CreateFromDiscriminatorValue)?.ToList(); } }, {"businessType", n => { BusinessType = n.GetStringValue(); } }, {"calendarView", n => { CalendarView = n.GetCollectionOfObjectValues(BookingAppointment.CreateFromDiscriminatorValue)?.ToList(); } }, - {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"customQuestions", n => { CustomQuestions = n.GetCollectionOfObjectValues(BookingCustomQuestion.CreateFromDiscriminatorValue)?.ToList(); } }, + {"customers", n => { Customers = n.GetCollectionOfObjectValues(BookingCustomerBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"defaultCurrencyIso", n => { DefaultCurrencyIso = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, diff --git a/src/generated/Models/BookingCustomerInformation.cs b/src/generated/Models/BookingCustomerInformation.cs index e36aec1bffd..4e01f723fb7 100644 --- a/src/generated/Models/BookingCustomerInformation.cs +++ b/src/generated/Models/BookingCustomerInformation.cs @@ -89,8 +89,8 @@ public BookingCustomerInformation() : base() { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"customerId", n => { CustomerId = n.GetStringValue(); } }, {"customQuestionAnswers", n => { CustomQuestionAnswers = n.GetCollectionOfObjectValues(BookingQuestionAnswer.CreateFromDiscriminatorValue)?.ToList(); } }, + {"customerId", n => { CustomerId = n.GetStringValue(); } }, {"emailAddress", n => { EmailAddress = n.GetStringValue(); } }, {"location", n => { Location = n.GetObjectValue(ApiSdk.Models.Location.CreateFromDiscriminatorValue); } }, {"name", n => { Name = n.GetStringValue(); } }, diff --git a/src/generated/Models/BookingQuestionAnswer.cs b/src/generated/Models/BookingQuestionAnswer.cs index 5420188b730..7d600d4f179 100644 --- a/src/generated/Models/BookingQuestionAnswer.cs +++ b/src/generated/Models/BookingQuestionAnswer.cs @@ -79,11 +79,11 @@ public static BookingQuestionAnswer CreateFromDiscriminatorValue(IParseNode pars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"answer", n => { Answer = n.GetStringValue(); } }, {"answerInputType", n => { AnswerInputType = n.GetEnumValue(); } }, {"answerOptions", n => { AnswerOptions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"isRequired", n => { IsRequired = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"question", n => { Question = n.GetStringValue(); } }, {"questionId", n => { QuestionId = n.GetStringValue(); } }, {"selectedOptions", n => { SelectedOptions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, diff --git a/src/generated/Models/BookingQuestionAssignment.cs b/src/generated/Models/BookingQuestionAssignment.cs index ae8a24548c0..5375448f5d8 100644 --- a/src/generated/Models/BookingQuestionAssignment.cs +++ b/src/generated/Models/BookingQuestionAssignment.cs @@ -45,8 +45,8 @@ public static BookingQuestionAssignment CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"isRequired", n => { IsRequired = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"isRequired", n => { IsRequired = n.GetBoolValue(); } }, {"questionId", n => { QuestionId = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/BookingReminder.cs b/src/generated/Models/BookingReminder.cs index 0724da7830e..6105ba3738e 100644 --- a/src/generated/Models/BookingReminder.cs +++ b/src/generated/Models/BookingReminder.cs @@ -50,8 +50,8 @@ public static BookingReminder CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"message", n => { Message = n.GetStringValue(); } }, {"offset", n => { Offset = n.GetTimeSpanValue(); } }, {"recipients", n => { Recipients = n.GetEnumValue(); } }, }; diff --git a/src/generated/Models/BookingSchedulingPolicy.cs b/src/generated/Models/BookingSchedulingPolicy.cs index 234a72a19ea..2b4b70ffcd1 100644 --- a/src/generated/Models/BookingSchedulingPolicy.cs +++ b/src/generated/Models/BookingSchedulingPolicy.cs @@ -48,10 +48,10 @@ public static BookingSchedulingPolicy CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowStaffSelection", n => { AllowStaffSelection = n.GetBoolValue(); } }, {"maximumAdvance", n => { MaximumAdvance = n.GetTimeSpanValue(); } }, {"minimumLeadTime", n => { MinimumLeadTime = n.GetTimeSpanValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"sendConfirmationsToOwner", n => { SendConfirmationsToOwner = n.GetBoolValue(); } }, {"timeSlotInterval", n => { TimeSlotInterval = n.GetTimeSpanValue(); } }, }; diff --git a/src/generated/Models/BookingWorkHours.cs b/src/generated/Models/BookingWorkHours.cs index c5fb8807ad0..acf44a262d5 100644 --- a/src/generated/Models/BookingWorkHours.cs +++ b/src/generated/Models/BookingWorkHours.cs @@ -48,8 +48,8 @@ public static BookingWorkHours CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"day", n => { Day = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"day", n => { Day = n.GetEnumValue(); } }, {"timeSlots", n => { TimeSlots = n.GetCollectionOfObjectValues(BookingWorkTimeSlot.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/BookingWorkTimeSlot.cs b/src/generated/Models/BookingWorkTimeSlot.cs index a8d2ab74385..f831c7aa897 100644 --- a/src/generated/Models/BookingWorkTimeSlot.cs +++ b/src/generated/Models/BookingWorkTimeSlot.cs @@ -40,8 +40,8 @@ public static BookingWorkTimeSlot CreateFromDiscriminatorValue(IParseNode parseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"endTime", n => { EndTime = n.GetTimeValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"endTime", n => { EndTime = n.GetTimeValue(); } }, {"startTime", n => { StartTime = n.GetTimeValue(); } }, }; } diff --git a/src/generated/Models/BroadcastMeetingCaptionSettings.cs b/src/generated/Models/BroadcastMeetingCaptionSettings.cs index 02333d3e116..3cedca43687 100644 --- a/src/generated/Models/BroadcastMeetingCaptionSettings.cs +++ b/src/generated/Models/BroadcastMeetingCaptionSettings.cs @@ -53,8 +53,8 @@ public static BroadcastMeetingCaptionSettings CreateFromDiscriminatorValue(IPars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"isCaptionEnabled", n => { IsCaptionEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"isCaptionEnabled", n => { IsCaptionEnabled = n.GetBoolValue(); } }, {"spokenLanguage", n => { SpokenLanguage = n.GetStringValue(); } }, {"translationLanguages", n => { TranslationLanguages = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; diff --git a/src/generated/Models/BroadcastMeetingSettings.cs b/src/generated/Models/BroadcastMeetingSettings.cs index d4cb67879b1..7abd70a1256 100644 --- a/src/generated/Models/BroadcastMeetingSettings.cs +++ b/src/generated/Models/BroadcastMeetingSettings.cs @@ -53,13 +53,13 @@ public static BroadcastMeetingSettings CreateFromDiscriminatorValue(IParseNode p /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowedAudience", n => { AllowedAudience = n.GetEnumValue(); } }, {"captions", n => { Captions = n.GetObjectValue(BroadcastMeetingCaptionSettings.CreateFromDiscriminatorValue); } }, {"isAttendeeReportEnabled", n => { IsAttendeeReportEnabled = n.GetBoolValue(); } }, {"isQuestionAndAnswerEnabled", n => { IsQuestionAndAnswerEnabled = n.GetBoolValue(); } }, {"isRecordingEnabled", n => { IsRecordingEnabled = n.GetBoolValue(); } }, {"isVideoOnDemandEnabled", n => { IsVideoOnDemandEnabled = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/BrowserSharedCookieHistory.cs b/src/generated/Models/BrowserSharedCookieHistory.cs index 756b6094ab9..c7046d71bc1 100644 --- a/src/generated/Models/BrowserSharedCookieHistory.cs +++ b/src/generated/Models/BrowserSharedCookieHistory.cs @@ -81,12 +81,12 @@ public static BrowserSharedCookieHistory CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"comment", n => { Comment = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"hostOnly", n => { HostOnly = n.GetBoolValue(); } }, {"hostOrDomain", n => { HostOrDomain = n.GetStringValue(); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"path", n => { Path = n.GetStringValue(); } }, {"publishedDateTime", n => { PublishedDateTime = n.GetDateTimeOffsetValue(); } }, {"sourceEnvironment", n => { SourceEnvironment = n.GetEnumValue(); } }, diff --git a/src/generated/Models/BrowserSiteHistory.cs b/src/generated/Models/BrowserSiteHistory.cs index a8248d464d9..7da25b5b6f5 100644 --- a/src/generated/Models/BrowserSiteHistory.cs +++ b/src/generated/Models/BrowserSiteHistory.cs @@ -64,12 +64,12 @@ public static BrowserSiteHistory CreateFromDiscriminatorValue(IParseNode parseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowRedirect", n => { AllowRedirect = n.GetBoolValue(); } }, {"comment", n => { Comment = n.GetStringValue(); } }, {"compatibilityMode", n => { CompatibilityMode = n.GetEnumValue(); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"mergeType", n => { MergeType = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"publishedDateTime", n => { PublishedDateTime = n.GetDateTimeOffsetValue(); } }, {"targetEnvironment", n => { TargetEnvironment = n.GetEnumValue(); } }, }; diff --git a/src/generated/Models/BucketAggregationDefinition.cs b/src/generated/Models/BucketAggregationDefinition.cs index 07652c07527..260a1f8a2a6 100644 --- a/src/generated/Models/BucketAggregationDefinition.cs +++ b/src/generated/Models/BucketAggregationDefinition.cs @@ -28,7 +28,7 @@ public class BucketAggregationDefinition : IAdditionalDataHolder, IParsable { #else public string PrefixFilter { get; set; } #endif - /// Specifies the manual ranges to compute the aggregations. This is only valid for non-string refiners of date or numeric type. Optional. + /// Specifies the manual ranges to compute the aggregations. This is only valid for nonstring refiners of date or numeric type. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Ranges { get; set; } @@ -57,9 +57,9 @@ public static BucketAggregationDefinition CreateFromDiscriminatorValue(IParseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"isDescending", n => { IsDescending = n.GetBoolValue(); } }, {"minimumCount", n => { MinimumCount = n.GetIntValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"prefixFilter", n => { PrefixFilter = n.GetStringValue(); } }, {"ranges", n => { Ranges = n.GetCollectionOfObjectValues(BucketAggregationRange.CreateFromDiscriminatorValue)?.ToList(); } }, {"sortBy", n => { SortBy = n.GetEnumValue(); } }, diff --git a/src/generated/Models/BucketAggregationRange.cs b/src/generated/Models/BucketAggregationRange.cs index 31ced199627..159d937fbb7 100644 --- a/src/generated/Models/BucketAggregationRange.cs +++ b/src/generated/Models/BucketAggregationRange.cs @@ -51,8 +51,8 @@ public static BucketAggregationRange CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"from", n => { From = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"from", n => { From = n.GetStringValue(); } }, {"to", n => { To = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/Bundle.cs b/src/generated/Models/Bundle.cs index 2844d309141..319ebd63cc4 100644 --- a/src/generated/Models/Bundle.cs +++ b/src/generated/Models/Bundle.cs @@ -45,9 +45,9 @@ public static Bundle CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"album", n => { Album = n.GetObjectValue(ApiSdk.Models.Album.CreateFromDiscriminatorValue); } }, {"childCount", n => { ChildCount = n.GetIntValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/CalculatedColumn.cs b/src/generated/Models/CalculatedColumn.cs index 023b727547e..b83f63772d8 100644 --- a/src/generated/Models/CalculatedColumn.cs +++ b/src/generated/Models/CalculatedColumn.cs @@ -59,9 +59,9 @@ public static CalculatedColumn CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"format", n => { Format = n.GetStringValue(); } }, {"formula", n => { Formula = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"outputType", n => { OutputType = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/CalendarPermission.cs b/src/generated/Models/CalendarPermission.cs index 4b5bc32f3e7..b61c7777092 100644 --- a/src/generated/Models/CalendarPermission.cs +++ b/src/generated/Models/CalendarPermission.cs @@ -14,7 +14,7 @@ public class CalendarPermission : Entity, IParsable { #else public List AllowedRoles { get; set; } #endif - /// Represents a sharee or delegate who has access to the calendar. For the 'My Organization' sharee, the address property is null. Read-only. + /// Represents a share recipient or delegate who has access to the calendar. For the 'My Organization' share recipient, the address property is null. Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public ApiSdk.Models.EmailAddress? EmailAddress { get; set; } @@ -22,11 +22,11 @@ public class CalendarPermission : Entity, IParsable { #else public ApiSdk.Models.EmailAddress EmailAddress { get; set; } #endif - /// True if the user in context (sharee or delegate) is inside the same organization as the calendar owner. + /// True if the user in context (recipient or delegate) is inside the same organization as the calendar owner. public bool? IsInsideOrganization { get; set; } - /// True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You cannot remove 'My organization' as a sharee to a calendar. + /// True if the user can be removed from the list of recipients or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You can't remove 'My organization' as a share recipient to a calendar. public bool? IsRemovable { get; set; } - /// Current permission level of the calendar sharee or delegate. + /// Current permission level of the calendar share recipient or delegate. public CalendarRoleType? Role { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/generated/Models/CalendarSharingMessageAction.cs b/src/generated/Models/CalendarSharingMessageAction.cs index e722c001385..8afe10bbb99 100644 --- a/src/generated/Models/CalendarSharingMessageAction.cs +++ b/src/generated/Models/CalendarSharingMessageAction.cs @@ -41,10 +41,10 @@ public static CalendarSharingMessageAction CreateFromDiscriminatorValue(IParseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"action", n => { Action = n.GetEnumValue(); } }, {"actionType", n => { ActionType = n.GetEnumValue(); } }, {"importance", n => { Importance = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/Call.cs b/src/generated/Models/Call.cs index f519b6686ec..9b02179a7c2 100644 --- a/src/generated/Models/Call.cs +++ b/src/generated/Models/Call.cs @@ -200,10 +200,10 @@ public class Call : Entity, IParsable { public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"audioRoutingGroups", n => { AudioRoutingGroups = n.GetCollectionOfObjectValues(AudioRoutingGroup.CreateFromDiscriminatorValue)?.ToList(); } }, - {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"callChainId", n => { CallChainId = n.GetStringValue(); } }, {"callOptions", n => { CallOptions = n.GetObjectValue(ApiSdk.Models.CallOptions.CreateFromDiscriminatorValue); } }, {"callRoutes", n => { CallRoutes = n.GetCollectionOfObjectValues(CallRoute.CreateFromDiscriminatorValue)?.ToList(); } }, + {"callbackUri", n => { CallbackUri = n.GetStringValue(); } }, {"chatInfo", n => { ChatInfo = n.GetObjectValue(ApiSdk.Models.ChatInfo.CreateFromDiscriminatorValue); } }, {"contentSharingSessions", n => { ContentSharingSessions = n.GetCollectionOfObjectValues(ContentSharingSession.CreateFromDiscriminatorValue)?.ToList(); } }, {"direction", n => { Direction = n.GetEnumValue(); } }, diff --git a/src/generated/Models/CallMediaState.cs b/src/generated/Models/CallMediaState.cs index 089fbf05a55..aa734d5e898 100644 --- a/src/generated/Models/CallMediaState.cs +++ b/src/generated/Models/CallMediaState.cs @@ -37,8 +37,8 @@ public static CallMediaState CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"audio", n => { Audio = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"audio", n => { Audio = n.GetEnumValue(); } }, }; } /// diff --git a/src/generated/Models/CallOptions.cs b/src/generated/Models/CallOptions.cs index 065e3135d16..ce278b06f31 100644 --- a/src/generated/Models/CallOptions.cs +++ b/src/generated/Models/CallOptions.cs @@ -44,9 +44,9 @@ public static CallOptions CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"hideBotAfterEscalation", n => { HideBotAfterEscalation = n.GetBoolValue(); } }, {"isContentSharingNotificationEnabled", n => { IsContentSharingNotificationEnabled = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/CallRecords/DeviceInfo.cs b/src/generated/Models/CallRecords/DeviceInfo.cs index 316d09cf4df..4b44fd63c08 100644 --- a/src/generated/Models/CallRecords/DeviceInfo.cs +++ b/src/generated/Models/CallRecords/DeviceInfo.cs @@ -101,6 +101,7 @@ public static DeviceInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"captureDeviceDriver", n => { CaptureDeviceDriver = n.GetStringValue(); } }, {"captureDeviceName", n => { CaptureDeviceName = n.GetStringValue(); } }, {"captureNotFunctioningEventRatio", n => { CaptureNotFunctioningEventRatio = n.GetFloatValue(); } }, @@ -112,7 +113,6 @@ public IDictionary> GetFieldDeserializers() { {"lowSpeechLevelEventRatio", n => { LowSpeechLevelEventRatio = n.GetFloatValue(); } }, {"lowSpeechToNoiseEventRatio", n => { LowSpeechToNoiseEventRatio = n.GetFloatValue(); } }, {"micGlitchRate", n => { MicGlitchRate = n.GetFloatValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"receivedNoiseLevel", n => { ReceivedNoiseLevel = n.GetIntValue(); } }, {"receivedSignalLevel", n => { ReceivedSignalLevel = n.GetIntValue(); } }, {"renderDeviceDriver", n => { RenderDeviceDriver = n.GetStringValue(); } }, diff --git a/src/generated/Models/CallRecords/DirectRoutingLogRow.cs b/src/generated/Models/CallRecords/DirectRoutingLogRow.cs index a2db4676846..6141c891966 100644 --- a/src/generated/Models/CallRecords/DirectRoutingLogRow.cs +++ b/src/generated/Models/CallRecords/DirectRoutingLogRow.cs @@ -8,7 +8,7 @@ namespace ApiSdk.Models.CallRecords { public class DirectRoutingLogRow : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Number of the user or bot who received the call. E.164 format, but may include additional data. + /// Number of the user or bot who received the call. E.164 format, but may include other data. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CalleeNumber { get; set; } @@ -18,7 +18,7 @@ public class DirectRoutingLogRow : IAdditionalDataHolder, IParsable { #endif /// In addition to the SIP codes, Microsoft has own subcodes that indicate the specific issue. public int? CallEndSubReason { get; set; } - /// Number of the user or bot who made the call. E.164 format, but may include additional data. + /// Number of the user or bot who made the call. E.164 format, but may include other data. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CallerNumber { get; set; } @@ -48,7 +48,7 @@ public class DirectRoutingLogRow : IAdditionalDataHolder, IParsable { public DateTimeOffset? EndDateTime { get; set; } /// Only exists for failed (not fully established) calls. public DateTimeOffset? FailureDateTime { get; set; } - /// The code with which the call ended, RFC 3261. + /// The code with which the call ended, see RFC 3261. public int? FinalSipCode { get; set; } /// Description of the SIP code and Microsoft subcode. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -70,7 +70,7 @@ public class DirectRoutingLogRow : IAdditionalDataHolder, IParsable { public DateTimeOffset? InviteDateTime { get; set; } /// Indicates if the trunk was enabled for media bypass or not. public bool? MediaBypassEnabled { get; set; } - /// The datacenter used for media path in non-bypass call. + /// The datacenter used for media path in nonbypass call. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? MediaPathLocation { get; set; } @@ -86,7 +86,7 @@ public class DirectRoutingLogRow : IAdditionalDataHolder, IParsable { #else public string OdataType { get; set; } #endif - /// The datacenter used for signaling for both bypass and non-bypass calls. + /// The datacenter used for signaling for both bypass and nonbypass calls. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SignalingLocation { get; set; } @@ -149,10 +149,11 @@ public static DirectRoutingLogRow CreateFromDiscriminatorValue(IParseNode parseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"calleeNumber", n => { CalleeNumber = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"callEndSubReason", n => { CallEndSubReason = n.GetIntValue(); } }, - {"callerNumber", n => { CallerNumber = n.GetStringValue(); } }, {"callType", n => { CallType = n.GetStringValue(); } }, + {"calleeNumber", n => { CalleeNumber = n.GetStringValue(); } }, + {"callerNumber", n => { CallerNumber = n.GetStringValue(); } }, {"correlationId", n => { CorrelationId = n.GetStringValue(); } }, {"duration", n => { Duration = n.GetIntValue(); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, @@ -163,7 +164,6 @@ public IDictionary> GetFieldDeserializers() { {"inviteDateTime", n => { InviteDateTime = n.GetDateTimeOffsetValue(); } }, {"mediaBypassEnabled", n => { MediaBypassEnabled = n.GetBoolValue(); } }, {"mediaPathLocation", n => { MediaPathLocation = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"signalingLocation", n => { SignalingLocation = n.GetStringValue(); } }, {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, {"successfulCall", n => { SuccessfulCall = n.GetBoolValue(); } }, diff --git a/src/generated/Models/CallRecords/Media.cs b/src/generated/Models/CallRecords/Media.cs index 81fd8ed987b..880a29155bd 100644 --- a/src/generated/Models/CallRecords/Media.cs +++ b/src/generated/Models/CallRecords/Media.cs @@ -83,12 +83,12 @@ public static Media CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"calleeDevice", n => { CalleeDevice = n.GetObjectValue(DeviceInfo.CreateFromDiscriminatorValue); } }, {"calleeNetwork", n => { CalleeNetwork = n.GetObjectValue(NetworkInfo.CreateFromDiscriminatorValue); } }, {"callerDevice", n => { CallerDevice = n.GetObjectValue(DeviceInfo.CreateFromDiscriminatorValue); } }, {"callerNetwork", n => { CallerNetwork = n.GetObjectValue(NetworkInfo.CreateFromDiscriminatorValue); } }, {"label", n => { Label = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"streams", n => { Streams = n.GetCollectionOfObjectValues(MediaStream.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/CallRecords/MediaStream.cs b/src/generated/Models/CallRecords/MediaStream.cs index 1115110e30e..b83f8ae9a28 100644 --- a/src/generated/Models/CallRecords/MediaStream.cs +++ b/src/generated/Models/CallRecords/MediaStream.cs @@ -34,7 +34,7 @@ public class MediaStream : IAdditionalDataHolder, IParsable { public float? AverageVideoFrameRate { get; set; } /// Average fraction of packets lost, as specified in [RFC 3550][], computed over the duration of the session. public float? AverageVideoPacketLossRate { get; set; } - /// UTC time when the stream ended. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// UTC time when the stream ended. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. This field is only available for streams that use the SIP protocol. public DateTimeOffset? EndDateTime { get; set; } /// Indicates whether the forward error correction (FEC) was used at some point during the session. The default value is null. public bool? IsAudioForwardErrorCorrectionUsed { get; set; } @@ -66,7 +66,7 @@ public class MediaStream : IAdditionalDataHolder, IParsable { public float? PostForwardErrorCorrectionPacketLossRate { get; set; } /// Average duration of the received freezing time in the video stream represented in root mean square. public TimeSpan? RmsFreezeDuration { get; set; } - /// UTC time when the stream started. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// UTC time when the stream started. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. This field is only available for streams that use the SIP protocol. public DateTimeOffset? StartDateTime { get; set; } /// The streamDirection property public MediaStreamDirection? StreamDirection { get; set; } @@ -101,6 +101,7 @@ public static MediaStream CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"audioCodec", n => { AudioCodec = n.GetEnumValue(); } }, {"averageAudioDegradation", n => { AverageAudioDegradation = n.GetFloatValue(); } }, {"averageAudioNetworkJitter", n => { AverageAudioNetworkJitter = n.GetTimeSpanValue(); } }, @@ -123,7 +124,6 @@ public IDictionary> GetFieldDeserializers() { {"maxPacketLossRate", n => { MaxPacketLossRate = n.GetFloatValue(); } }, {"maxRatioOfConcealedSamples", n => { MaxRatioOfConcealedSamples = n.GetFloatValue(); } }, {"maxRoundTripTime", n => { MaxRoundTripTime = n.GetTimeSpanValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"packetUtilization", n => { PacketUtilization = n.GetLongValue(); } }, {"postForwardErrorCorrectionPacketLossRate", n => { PostForwardErrorCorrectionPacketLossRate = n.GetFloatValue(); } }, {"rmsFreezeDuration", n => { RmsFreezeDuration = n.GetTimeSpanValue(); } }, diff --git a/src/generated/Models/CallRecords/NetworkInfo.cs b/src/generated/Models/CallRecords/NetworkInfo.cs index 27e7b0b1eb1..297d9980fbc 100644 --- a/src/generated/Models/CallRecords/NetworkInfo.cs +++ b/src/generated/Models/CallRecords/NetworkInfo.cs @@ -40,7 +40,7 @@ public class NetworkInfo : IAdditionalDataHolder, IParsable { #endif /// Link speed in bits per second reported by the network adapter used by the media endpoint. public long? LinkSpeed { get; set; } - /// The media access control (MAC) address of the media endpoint's network device. + /// The media access control (MAC) address of the media endpoint's network device. This value may be missing or shown as 02:00:00:00:00:00 due to operating system privacy policies. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? MacAddress { get; set; } @@ -159,6 +159,7 @@ public static NetworkInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"bandwidthLowEventRatio", n => { BandwidthLowEventRatio = n.GetFloatValue(); } }, {"basicServiceSetIdentifier", n => { BasicServiceSetIdentifier = n.GetStringValue(); } }, {"connectionType", n => { ConnectionType = n.GetEnumValue(); } }, @@ -168,7 +169,6 @@ public IDictionary> GetFieldDeserializers() { {"linkSpeed", n => { LinkSpeed = n.GetLongValue(); } }, {"macAddress", n => { MacAddress = n.GetStringValue(); } }, {"networkTransportProtocol", n => { NetworkTransportProtocol = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"port", n => { Port = n.GetIntValue(); } }, {"receivedQualityEventRatio", n => { ReceivedQualityEventRatio = n.GetFloatValue(); } }, {"reflexiveIPAddress", n => { ReflexiveIPAddress = n.GetStringValue(); } }, diff --git a/src/generated/Models/CallRecords/PstnCallLogRow.cs b/src/generated/Models/CallRecords/PstnCallLogRow.cs index 0a2a00e0bdb..27daaa21220 100644 --- a/src/generated/Models/CallRecords/PstnCallLogRow.cs +++ b/src/generated/Models/CallRecords/PstnCallLogRow.cs @@ -183,11 +183,12 @@ public static PstnCallLogRow CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"callDurationSource", n => { CallDurationSource = n.GetEnumValue(); } }, - {"calleeNumber", n => { CalleeNumber = n.GetStringValue(); } }, - {"callerNumber", n => { CallerNumber = n.GetStringValue(); } }, {"callId", n => { CallId = n.GetStringValue(); } }, {"callType", n => { CallType = n.GetStringValue(); } }, + {"calleeNumber", n => { CalleeNumber = n.GetStringValue(); } }, + {"callerNumber", n => { CallerNumber = n.GetStringValue(); } }, {"charge", n => { Charge = n.GetDecimalValue(); } }, {"conferenceId", n => { ConferenceId = n.GetStringValue(); } }, {"connectionCharge", n => { ConnectionCharge = n.GetDecimalValue(); } }, @@ -199,7 +200,6 @@ public IDictionary> GetFieldDeserializers() { {"id", n => { Id = n.GetStringValue(); } }, {"inventoryType", n => { InventoryType = n.GetStringValue(); } }, {"licenseCapability", n => { LicenseCapability = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"operator", n => { Operator = n.GetStringValue(); } }, {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, {"tenantCountryCode", n => { TenantCountryCode = n.GetStringValue(); } }, diff --git a/src/generated/Models/CallRecords/TraceRouteHop.cs b/src/generated/Models/CallRecords/TraceRouteHop.cs index 8d3c3a366ca..30315250ccd 100644 --- a/src/generated/Models/CallRecords/TraceRouteHop.cs +++ b/src/generated/Models/CallRecords/TraceRouteHop.cs @@ -47,9 +47,9 @@ public static TraceRouteHop CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"hopCount", n => { HopCount = n.GetIntValue(); } }, {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"roundTripTime", n => { RoundTripTime = n.GetTimeSpanValue(); } }, }; } diff --git a/src/generated/Models/CallRecords/UserAgent.cs b/src/generated/Models/CallRecords/UserAgent.cs index c826e4068bb..7ddf649c27d 100644 --- a/src/generated/Models/CallRecords/UserAgent.cs +++ b/src/generated/Models/CallRecords/UserAgent.cs @@ -56,9 +56,9 @@ public static UserAgent CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"applicationVersion", n => { ApplicationVersion = n.GetStringValue(); } }, {"headerValue", n => { HeaderValue = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/CallRoute.cs b/src/generated/Models/CallRoute.cs index 4e798e35a71..d2bbd779816 100644 --- a/src/generated/Models/CallRoute.cs +++ b/src/generated/Models/CallRoute.cs @@ -53,8 +53,8 @@ public static CallRoute CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"final", n => { Final = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"final", n => { Final = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"original", n => { Original = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"routingType", n => { RoutingType = n.GetEnumValue(); } }, }; diff --git a/src/generated/Models/CallTranscriptionInfo.cs b/src/generated/Models/CallTranscriptionInfo.cs index de5a6a66e78..2b954265ba5 100644 --- a/src/generated/Models/CallTranscriptionInfo.cs +++ b/src/generated/Models/CallTranscriptionInfo.cs @@ -39,8 +39,8 @@ public static CallTranscriptionInfo CreateFromDiscriminatorValue(IParseNode pars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"state", n => { State = n.GetEnumValue(); } }, }; } diff --git a/src/generated/Models/CertificateAuthority.cs b/src/generated/Models/CertificateAuthority.cs index 177ede84135..4395d3e1d3b 100644 --- a/src/generated/Models/CertificateAuthority.cs +++ b/src/generated/Models/CertificateAuthority.cs @@ -77,13 +77,13 @@ public static CertificateAuthority CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"certificate", n => { Certificate = n.GetByteArrayValue(); } }, {"certificateRevocationListUrl", n => { CertificateRevocationListUrl = n.GetStringValue(); } }, {"deltaCertificateRevocationListUrl", n => { DeltaCertificateRevocationListUrl = n.GetStringValue(); } }, {"isRootAuthority", n => { IsRootAuthority = n.GetBoolValue(); } }, {"issuer", n => { Issuer = n.GetStringValue(); } }, {"issuerSki", n => { IssuerSki = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/Certification.cs b/src/generated/Models/Certification.cs index 91feaf6f10d..6e0da4b5148 100644 --- a/src/generated/Models/Certification.cs +++ b/src/generated/Models/Certification.cs @@ -51,12 +51,12 @@ public static Certification CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"certificationDetailsUrl", n => { CertificationDetailsUrl = n.GetStringValue(); } }, {"certificationExpirationDateTime", n => { CertificationExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"isCertifiedByMicrosoft", n => { IsCertifiedByMicrosoft = n.GetBoolValue(); } }, {"isPublisherAttested", n => { IsPublisherAttested = n.GetBoolValue(); } }, {"lastCertificationDateTime", n => { LastCertificationDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/CertificationControl.cs b/src/generated/Models/CertificationControl.cs index 88a5a55789f..065d9b6f746 100644 --- a/src/generated/Models/CertificationControl.cs +++ b/src/generated/Models/CertificationControl.cs @@ -51,8 +51,8 @@ public static CertificationControl CreateFromDiscriminatorValue(IParseNode parse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"name", n => { Name = n.GetStringValue(); } }, {"url", n => { Url = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/ChannelIdentity.cs b/src/generated/Models/ChannelIdentity.cs index f77593be7a3..bb8c4e54e0c 100644 --- a/src/generated/Models/ChannelIdentity.cs +++ b/src/generated/Models/ChannelIdentity.cs @@ -51,8 +51,8 @@ public static ChannelIdentity CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"channelId", n => { ChannelId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"channelId", n => { ChannelId = n.GetStringValue(); } }, {"teamId", n => { TeamId = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/ChatInfo.cs b/src/generated/Models/ChatInfo.cs index f109e7cbe9e..01a754bff10 100644 --- a/src/generated/Models/ChatInfo.cs +++ b/src/generated/Models/ChatInfo.cs @@ -59,8 +59,8 @@ public static ChatInfo CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"messageId", n => { MessageId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"messageId", n => { MessageId = n.GetStringValue(); } }, {"replyChainMessageId", n => { ReplyChainMessageId = n.GetStringValue(); } }, {"threadId", n => { ThreadId = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/ChatMessageAttachment.cs b/src/generated/Models/ChatMessageAttachment.cs index fa903283a24..3032f8e0329 100644 --- a/src/generated/Models/ChatMessageAttachment.cs +++ b/src/generated/Models/ChatMessageAttachment.cs @@ -91,12 +91,12 @@ public static ChatMessageAttachment CreateFromDiscriminatorValue(IParseNode pars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"content", n => { Content = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetStringValue(); } }, {"contentUrl", n => { ContentUrl = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"thumbnailUrl", n => { ThumbnailUrl = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/ChatMessageHistoryItem.cs b/src/generated/Models/ChatMessageHistoryItem.cs index 013c276bb7a..ade2b964715 100644 --- a/src/generated/Models/ChatMessageHistoryItem.cs +++ b/src/generated/Models/ChatMessageHistoryItem.cs @@ -47,9 +47,9 @@ public static ChatMessageHistoryItem CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"actions", n => { Actions = n.GetEnumValue(); } }, {"modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"reaction", n => { Reaction = n.GetObjectValue(ChatMessageReaction.CreateFromDiscriminatorValue); } }, }; } diff --git a/src/generated/Models/ChatMessageInfo.cs b/src/generated/Models/ChatMessageInfo.cs index f1e0dbc1e2b..b9509747f1b 100644 --- a/src/generated/Models/ChatMessageInfo.cs +++ b/src/generated/Models/ChatMessageInfo.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class ChatMessageInfo : Entity, IParsable { - /// Body of the chatMessage. This will still contain markers for @mentions and attachments even though the object does not return @mentions and attachments. + /// Body of the chatMessage. This will still contain markers for @mentions and attachments even though the object doesn't return @mentions and attachments. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public ItemBody? Body { get; set; } @@ -16,7 +16,7 @@ public class ChatMessageInfo : Entity, IParsable { #endif /// Date time object representing the time at which message was created. public DateTimeOffset? CreatedDateTime { get; set; } - /// Read-only. If present, represents details of an event that happened in a chat, a channel, or a team, for example, members were added, and so on. For event messages, the messageType property will be set to systemEventMessage. + /// Read-only. If present, represents details of an event that happened in a chat, a channel, or a team, for example, members were added, and so on. For event messages, the messageType property is set to systemEventMessage. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public EventMessageDetail? EventDetail { get; set; } diff --git a/src/generated/Models/ChatMessageMention.cs b/src/generated/Models/ChatMessageMention.cs index 7fb2fe70bef..021e59bacc4 100644 --- a/src/generated/Models/ChatMessageMention.cs +++ b/src/generated/Models/ChatMessageMention.cs @@ -53,10 +53,10 @@ public static ChatMessageMention CreateFromDiscriminatorValue(IParseNode parseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"id", n => { Id = n.GetIntValue(); } }, - {"mentioned", n => { Mentioned = n.GetObjectValue(ChatMessageMentionedIdentitySet.CreateFromDiscriminatorValue); } }, {"mentionText", n => { MentionText = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"mentioned", n => { Mentioned = n.GetObjectValue(ChatMessageMentionedIdentitySet.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/generated/Models/ChatMessagePolicyViolation.cs b/src/generated/Models/ChatMessagePolicyViolation.cs index 1f738537753..6c13110a6de 100644 --- a/src/generated/Models/ChatMessagePolicyViolation.cs +++ b/src/generated/Models/ChatMessagePolicyViolation.cs @@ -34,9 +34,9 @@ public class ChatMessagePolicyViolation : IAdditionalDataHolder, IParsable { #else public ChatMessagePolicyViolationPolicyTip PolicyTip { get; set; } #endif - /// Indicates the action taken by the user on a message blocked by the DLP provider. Supported values are: NoneOverrideReportFalsePositiveWhen the DLP provider is updating the message for blocking sensitive content, userAction is not required. + /// Indicates the action taken by the user on a message blocked by the DLP provider. Supported values are: NoneOverrideReportFalsePositiveWhen the DLP provider is updating the message for blocking sensitive content, userAction isn't required. public ChatMessagePolicyViolationUserActionTypes? UserAction { get; set; } - /// Indicates what actions the sender may take in response to the policy violation. Supported values are: NoneAllowFalsePositiveOverride -- Allows the sender to declare the policyViolation to be an error in the DLP app and its rules, and allow readers to see the message again if the dlpAction had hidden it.AllowOverrideWithoutJustification -- Allows the sender to overriide the DLP violation and allow readers to see the message again if the dlpAction had hidden it, without needing to provide an explanation for doing so. AllowOverrideWithJustification -- Allows the sender to overriide the DLP violation and allow readers to see the message again if the dlpAction had hidden it, after providing an explanation for doing so.AllowOverrideWithoutJustification and AllowOverrideWithJustification are mutually exclusive. + /// Indicates what actions the sender may take in response to the policy violation. Supported values are: NoneAllowFalsePositiveOverride -- Allows the sender to declare the policyViolation to be an error in the DLP app and its rules, and allow readers to see the message again if the dlpAction hides it.AllowOverrideWithoutJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, without needing to provide an explanation for doing so. AllowOverrideWithJustification -- Allows the sender to override the DLP violation and allow readers to see the message again if the dlpAction hides it, after providing an explanation for doing so.AllowOverrideWithoutJustification and AllowOverrideWithJustification are mutually exclusive. public ChatMessagePolicyViolationVerdictDetailsTypes? VerdictDetails { get; set; } /// /// Instantiates a new chatMessagePolicyViolation and sets the default values. @@ -57,9 +57,9 @@ public static ChatMessagePolicyViolation CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"dlpAction", n => { DlpAction = n.GetEnumValue(); } }, {"justificationText", n => { JustificationText = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"policyTip", n => { PolicyTip = n.GetObjectValue(ChatMessagePolicyViolationPolicyTip.CreateFromDiscriminatorValue); } }, {"userAction", n => { UserAction = n.GetEnumValue(); } }, {"verdictDetails", n => { VerdictDetails = n.GetEnumValue(); } }, diff --git a/src/generated/Models/ChatMessagePolicyViolationPolicyTip.cs b/src/generated/Models/ChatMessagePolicyViolationPolicyTip.cs index a86e781c551..f5a12606ac0 100644 --- a/src/generated/Models/ChatMessagePolicyViolationPolicyTip.cs +++ b/src/generated/Models/ChatMessagePolicyViolationPolicyTip.cs @@ -59,10 +59,10 @@ public static ChatMessagePolicyViolationPolicyTip CreateFromDiscriminatorValue(I /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"complianceUrl", n => { ComplianceUrl = n.GetStringValue(); } }, {"generalText", n => { GeneralText = n.GetStringValue(); } }, {"matchedConditionDescriptions", n => { MatchedConditionDescriptions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ChatMessageReaction.cs b/src/generated/Models/ChatMessageReaction.cs index 07b36187a2c..2aa9bab1922 100644 --- a/src/generated/Models/ChatMessageReaction.cs +++ b/src/generated/Models/ChatMessageReaction.cs @@ -53,8 +53,8 @@ public static ChatMessageReaction CreateFromDiscriminatorValue(IParseNode parseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"reactionType", n => { ReactionType = n.GetStringValue(); } }, {"user", n => { User = n.GetObjectValue(ChatMessageReactionIdentitySet.CreateFromDiscriminatorValue); } }, }; diff --git a/src/generated/Models/ChatViewpoint.cs b/src/generated/Models/ChatViewpoint.cs index f0d7a41a297..964a1cf3619 100644 --- a/src/generated/Models/ChatViewpoint.cs +++ b/src/generated/Models/ChatViewpoint.cs @@ -39,9 +39,9 @@ public static ChatViewpoint CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"isHidden", n => { IsHidden = n.GetBoolValue(); } }, {"lastMessageReadDateTime", n => { LastMessageReadDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ChoiceColumn.cs b/src/generated/Models/ChoiceColumn.cs index ec6cad24113..2985de163d0 100644 --- a/src/generated/Models/ChoiceColumn.cs +++ b/src/generated/Models/ChoiceColumn.cs @@ -53,10 +53,10 @@ public static ChoiceColumn CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowTextEntry", n => { AllowTextEntry = n.GetBoolValue(); } }, {"choices", n => { Choices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"displayAs", n => { DisplayAs = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/CloudAppSecurityState.cs b/src/generated/Models/CloudAppSecurityState.cs index 5a4bef5f993..1762fab8c30 100644 --- a/src/generated/Models/CloudAppSecurityState.cs +++ b/src/generated/Models/CloudAppSecurityState.cs @@ -59,9 +59,9 @@ public static CloudAppSecurityState CreateFromDiscriminatorValue(IParseNode pars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"destinationServiceIp", n => { DestinationServiceIp = n.GetStringValue(); } }, {"destinationServiceName", n => { DestinationServiceName = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"riskScore", n => { RiskScore = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/CloudCommunications.cs b/src/generated/Models/CloudCommunications.cs index fc9b56daeee..217a40fe4f3 100644 --- a/src/generated/Models/CloudCommunications.cs +++ b/src/generated/Models/CloudCommunications.cs @@ -68,9 +68,9 @@ public static CloudCommunications CreateFromDiscriminatorValue(IParseNode parseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"callRecords", n => { CallRecords = n.GetCollectionOfObjectValues(CallRecord.CreateFromDiscriminatorValue)?.ToList(); } }, {"calls", n => { Calls = n.GetCollectionOfObjectValues(Call.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"onlineMeetings", n => { OnlineMeetings = n.GetCollectionOfObjectValues(OnlineMeeting.CreateFromDiscriminatorValue)?.ToList(); } }, {"presences", n => { Presences = n.GetCollectionOfObjectValues(Presence.CreateFromDiscriminatorValue)?.ToList(); } }, }; diff --git a/src/generated/Models/CollapseProperty.cs b/src/generated/Models/CollapseProperty.cs index 19fa50e5043..06227593174 100644 --- a/src/generated/Models/CollapseProperty.cs +++ b/src/generated/Models/CollapseProperty.cs @@ -45,9 +45,9 @@ public static CollapseProperty CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"fields", n => { Fields = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"limit", n => { Limit = n.GetIntValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ColumnValidation.cs b/src/generated/Models/ColumnValidation.cs index e585a053628..27f2196cce8 100644 --- a/src/generated/Models/ColumnValidation.cs +++ b/src/generated/Models/ColumnValidation.cs @@ -59,10 +59,10 @@ public static ColumnValidation CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"defaultLanguage", n => { DefaultLanguage = n.GetStringValue(); } }, {"descriptions", n => { Descriptions = n.GetCollectionOfObjectValues(DisplayNameLocalization.CreateFromDiscriminatorValue)?.ToList(); } }, {"formula", n => { Formula = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ComplianceInformation.cs b/src/generated/Models/ComplianceInformation.cs index f95080914b2..0b5d1a6b0ef 100644 --- a/src/generated/Models/ComplianceInformation.cs +++ b/src/generated/Models/ComplianceInformation.cs @@ -51,9 +51,9 @@ public static ComplianceInformation CreateFromDiscriminatorValue(IParseNode pars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"certificationControls", n => { CertificationControls = n.GetCollectionOfObjectValues(CertificationControl.CreateFromDiscriminatorValue)?.ToList(); } }, {"certificationName", n => { CertificationName = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ConditionalAccessApplications.cs b/src/generated/Models/ConditionalAccessApplications.cs index 5a5137c5858..ab0a75a0e7d 100644 --- a/src/generated/Models/ConditionalAccessApplications.cs +++ b/src/generated/Models/ConditionalAccessApplications.cs @@ -75,12 +75,12 @@ public static ConditionalAccessApplications CreateFromDiscriminatorValue(IParseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"applicationFilter", n => { ApplicationFilter = n.GetObjectValue(ConditionalAccessFilter.CreateFromDiscriminatorValue); } }, {"excludeApplications", n => { ExcludeApplications = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"includeApplications", n => { IncludeApplications = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"includeAuthenticationContextClassReferences", n => { IncludeAuthenticationContextClassReferences = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"includeUserActions", n => { IncludeUserActions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ConditionalAccessClientApplications.cs b/src/generated/Models/ConditionalAccessClientApplications.cs index 923baf4cc8e..4dc6f8675a9 100644 --- a/src/generated/Models/ConditionalAccessClientApplications.cs +++ b/src/generated/Models/ConditionalAccessClientApplications.cs @@ -59,9 +59,9 @@ public static ConditionalAccessClientApplications CreateFromDiscriminatorValue(I /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"excludeServicePrincipals", n => { ExcludeServicePrincipals = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"includeServicePrincipals", n => { IncludeServicePrincipals = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"servicePrincipalFilter", n => { ServicePrincipalFilter = n.GetObjectValue(ConditionalAccessFilter.CreateFromDiscriminatorValue); } }, }; } diff --git a/src/generated/Models/ConditionalAccessConditionSet.cs b/src/generated/Models/ConditionalAccessConditionSet.cs index e3db006b55e..612bf5b762e 100644 --- a/src/generated/Models/ConditionalAccessConditionSet.cs +++ b/src/generated/Models/ConditionalAccessConditionSet.cs @@ -115,12 +115,12 @@ public static ConditionalAccessConditionSet CreateFromDiscriminatorValue(IParseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"applications", n => { Applications = n.GetObjectValue(ConditionalAccessApplications.CreateFromDiscriminatorValue); } }, - {"clientApplications", n => { ClientApplications = n.GetObjectValue(ConditionalAccessClientApplications.CreateFromDiscriminatorValue); } }, {"clientAppTypes", n => { ClientAppTypes = n.GetCollectionOfEnumValues()?.ToList(); } }, + {"clientApplications", n => { ClientApplications = n.GetObjectValue(ConditionalAccessClientApplications.CreateFromDiscriminatorValue); } }, {"devices", n => { Devices = n.GetObjectValue(ConditionalAccessDevices.CreateFromDiscriminatorValue); } }, {"locations", n => { Locations = n.GetObjectValue(ConditionalAccessLocations.CreateFromDiscriminatorValue); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"platforms", n => { Platforms = n.GetObjectValue(ConditionalAccessPlatforms.CreateFromDiscriminatorValue); } }, {"servicePrincipalRiskLevels", n => { ServicePrincipalRiskLevels = n.GetCollectionOfEnumValues()?.ToList(); } }, {"signInRiskLevels", n => { SignInRiskLevels = n.GetCollectionOfEnumValues()?.ToList(); } }, diff --git a/src/generated/Models/ConditionalAccessDevices.cs b/src/generated/Models/ConditionalAccessDevices.cs index 962e3b86b6a..83cbfee21cc 100644 --- a/src/generated/Models/ConditionalAccessDevices.cs +++ b/src/generated/Models/ConditionalAccessDevices.cs @@ -43,8 +43,8 @@ public static ConditionalAccessDevices CreateFromDiscriminatorValue(IParseNode p /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"deviceFilter", n => { DeviceFilter = n.GetObjectValue(ConditionalAccessFilter.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"deviceFilter", n => { DeviceFilter = n.GetObjectValue(ConditionalAccessFilter.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/src/generated/Models/ConditionalAccessExternalTenants.cs b/src/generated/Models/ConditionalAccessExternalTenants.cs index 6fa9ca7802e..95b7a897de5 100644 --- a/src/generated/Models/ConditionalAccessExternalTenants.cs +++ b/src/generated/Models/ConditionalAccessExternalTenants.cs @@ -42,8 +42,8 @@ public static ConditionalAccessExternalTenants CreateFromDiscriminatorValue(IPar /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"membershipKind", n => { MembershipKind = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"membershipKind", n => { MembershipKind = n.GetEnumValue(); } }, }; } /// diff --git a/src/generated/Models/ConditionalAccessFilter.cs b/src/generated/Models/ConditionalAccessFilter.cs index ca225e2c524..a20bc66b986 100644 --- a/src/generated/Models/ConditionalAccessFilter.cs +++ b/src/generated/Models/ConditionalAccessFilter.cs @@ -45,8 +45,8 @@ public static ConditionalAccessFilter CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"mode", n => { Mode = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"mode", n => { Mode = n.GetEnumValue(); } }, {"rule", n => { Rule = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/ConditionalAccessGrantControls.cs b/src/generated/Models/ConditionalAccessGrantControls.cs index 044fdbe7a96..c4fabdcf2dc 100644 --- a/src/generated/Models/ConditionalAccessGrantControls.cs +++ b/src/generated/Models/ConditionalAccessGrantControls.cs @@ -75,10 +75,10 @@ public static ConditionalAccessGrantControls CreateFromDiscriminatorValue(IParse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"authenticationStrength", n => { AuthenticationStrength = n.GetObjectValue(AuthenticationStrengthPolicy.CreateFromDiscriminatorValue); } }, {"builtInControls", n => { BuiltInControls = n.GetCollectionOfEnumValues()?.ToList(); } }, {"customAuthenticationFactors", n => { CustomAuthenticationFactors = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"operator", n => { Operator = n.GetStringValue(); } }, {"termsOfUse", n => { TermsOfUse = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; diff --git a/src/generated/Models/ConditionalAccessGuestsOrExternalUsers.cs b/src/generated/Models/ConditionalAccessGuestsOrExternalUsers.cs index b9e10da879c..3fca6524981 100644 --- a/src/generated/Models/ConditionalAccessGuestsOrExternalUsers.cs +++ b/src/generated/Models/ConditionalAccessGuestsOrExternalUsers.cs @@ -8,7 +8,7 @@ namespace ApiSdk.Models { public class ConditionalAccessGuestsOrExternalUsers : IAdditionalDataHolder, IParsable { /// 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 tenant IDs of the selected types of external users. Either all B2B tenant or a collection of tenant IDs. External tenants can be specified only when the property guestOrExternalUserTypes is not null or an empty String. + /// The tenant IDs of the selected types of external users. Either all B2B tenant or a collection of tenant IDs. External tenants can be specified only when the property guestOrExternalUserTypes isn't null or an empty String. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public ConditionalAccessExternalTenants? ExternalTenants { get; set; } @@ -45,9 +45,9 @@ public static ConditionalAccessGuestsOrExternalUsers CreateFromDiscriminatorValu /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"externalTenants", n => { ExternalTenants = n.GetObjectValue(ConditionalAccessExternalTenants.CreateFromDiscriminatorValue); } }, {"guestOrExternalUserTypes", n => { GuestOrExternalUserTypes = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ConditionalAccessLocations.cs b/src/generated/Models/ConditionalAccessLocations.cs index 235fa20ebad..57c98ed881f 100644 --- a/src/generated/Models/ConditionalAccessLocations.cs +++ b/src/generated/Models/ConditionalAccessLocations.cs @@ -51,9 +51,9 @@ public static ConditionalAccessLocations CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"excludeLocations", n => { ExcludeLocations = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"includeLocations", n => { IncludeLocations = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ConditionalAccessPlatforms.cs b/src/generated/Models/ConditionalAccessPlatforms.cs index de1d82671d6..9ea029b769e 100644 --- a/src/generated/Models/ConditionalAccessPlatforms.cs +++ b/src/generated/Models/ConditionalAccessPlatforms.cs @@ -51,9 +51,9 @@ public static ConditionalAccessPlatforms CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"excludePlatforms", n => { ExcludePlatforms = n.GetCollectionOfEnumValues()?.ToList(); } }, {"includePlatforms", n => { IncludePlatforms = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ConditionalAccessPolicyDetail.cs b/src/generated/Models/ConditionalAccessPolicyDetail.cs index d5d0700e7a8..5e1e47a9a03 100644 --- a/src/generated/Models/ConditionalAccessPolicyDetail.cs +++ b/src/generated/Models/ConditionalAccessPolicyDetail.cs @@ -59,9 +59,9 @@ public static ConditionalAccessPolicyDetail CreateFromDiscriminatorValue(IParseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"conditions", n => { Conditions = n.GetObjectValue(ConditionalAccessConditionSet.CreateFromDiscriminatorValue); } }, {"grantControls", n => { GrantControls = n.GetObjectValue(ConditionalAccessGrantControls.CreateFromDiscriminatorValue); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"sessionControls", n => { SessionControls = n.GetObjectValue(ConditionalAccessSessionControls.CreateFromDiscriminatorValue); } }, }; } diff --git a/src/generated/Models/ConditionalAccessSessionControl.cs b/src/generated/Models/ConditionalAccessSessionControl.cs index 72f43a73a27..2d6b3c27421 100644 --- a/src/generated/Models/ConditionalAccessSessionControl.cs +++ b/src/generated/Models/ConditionalAccessSessionControl.cs @@ -44,8 +44,8 @@ public static ConditionalAccessSessionControl CreateFromDiscriminatorValue(IPars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, }; } /// diff --git a/src/generated/Models/ConditionalAccessSessionControls.cs b/src/generated/Models/ConditionalAccessSessionControls.cs index 7a7ca69993b..f7876dd0225 100644 --- a/src/generated/Models/ConditionalAccessSessionControls.cs +++ b/src/generated/Models/ConditionalAccessSessionControls.cs @@ -69,10 +69,10 @@ public static ConditionalAccessSessionControls CreateFromDiscriminatorValue(IPar /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"applicationEnforcedRestrictions", n => { ApplicationEnforcedRestrictions = n.GetObjectValue(ApplicationEnforcedRestrictionsSessionControl.CreateFromDiscriminatorValue); } }, {"cloudAppSecurity", n => { CloudAppSecurity = n.GetObjectValue(CloudAppSecuritySessionControl.CreateFromDiscriminatorValue); } }, {"disableResilienceDefaults", n => { DisableResilienceDefaults = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"persistentBrowser", n => { PersistentBrowser = n.GetObjectValue(PersistentBrowserSessionControl.CreateFromDiscriminatorValue); } }, {"signInFrequency", n => { SignInFrequency = n.GetObjectValue(SignInFrequencySessionControl.CreateFromDiscriminatorValue); } }, }; diff --git a/src/generated/Models/ConditionalAccessUsers.cs b/src/generated/Models/ConditionalAccessUsers.cs index 1d8be65f015..9fdfbd8f5f8 100644 --- a/src/generated/Models/ConditionalAccessUsers.cs +++ b/src/generated/Models/ConditionalAccessUsers.cs @@ -99,6 +99,7 @@ public static ConditionalAccessUsers CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"excludeGroups", n => { ExcludeGroups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"excludeGuestsOrExternalUsers", n => { ExcludeGuestsOrExternalUsers = n.GetObjectValue(ConditionalAccessGuestsOrExternalUsers.CreateFromDiscriminatorValue); } }, {"excludeRoles", n => { ExcludeRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -107,7 +108,6 @@ public IDictionary> GetFieldDeserializers() { {"includeGuestsOrExternalUsers", n => { IncludeGuestsOrExternalUsers = n.GetObjectValue(ConditionalAccessGuestsOrExternalUsers.CreateFromDiscriminatorValue); } }, {"includeRoles", n => { IncludeRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"includeUsers", n => { IncludeUsers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ConfigurationManagerClientEnabledFeatures.cs b/src/generated/Models/ConfigurationManagerClientEnabledFeatures.cs index 0fcef93f2a7..e6a17366ee1 100644 --- a/src/generated/Models/ConfigurationManagerClientEnabledFeatures.cs +++ b/src/generated/Models/ConfigurationManagerClientEnabledFeatures.cs @@ -50,11 +50,11 @@ public static ConfigurationManagerClientEnabledFeatures CreateFromDiscriminatorV /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"compliancePolicy", n => { CompliancePolicy = n.GetBoolValue(); } }, {"deviceConfiguration", n => { DeviceConfiguration = n.GetBoolValue(); } }, {"inventory", n => { Inventory = n.GetBoolValue(); } }, {"modernApps", n => { ModernApps = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"resourceAccess", n => { ResourceAccess = n.GetBoolValue(); } }, {"windowsUpdateForBusiness", n => { WindowsUpdateForBusiness = n.GetBoolValue(); } }, }; diff --git a/src/generated/Models/ContainerFilter.cs b/src/generated/Models/ContainerFilter.cs index 8b61643ed4d..efb23d60701 100644 --- a/src/generated/Models/ContainerFilter.cs +++ b/src/generated/Models/ContainerFilter.cs @@ -43,8 +43,8 @@ public static ContainerFilter CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"includedContainers", n => { IncludedContainers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"includedContainers", n => { IncludedContainers = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } /// diff --git a/src/generated/Models/ContentTypeInfo.cs b/src/generated/Models/ContentTypeInfo.cs index d2285149a39..42a714e98b4 100644 --- a/src/generated/Models/ContentTypeInfo.cs +++ b/src/generated/Models/ContentTypeInfo.cs @@ -51,9 +51,9 @@ public static ContentTypeInfo CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ContentTypeOrder.cs b/src/generated/Models/ContentTypeOrder.cs index 492c1fdad82..87eeaf86ecc 100644 --- a/src/generated/Models/ContentTypeOrder.cs +++ b/src/generated/Models/ContentTypeOrder.cs @@ -39,8 +39,8 @@ public static ContentTypeOrder CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"default", n => { Default = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"default", n => { Default = n.GetBoolValue(); } }, {"position", n => { Position = n.GetIntValue(); } }, }; } diff --git a/src/generated/Models/Contract.cs b/src/generated/Models/Contract.cs index 4a8b358d033..f1a5514badb 100644 --- a/src/generated/Models/Contract.cs +++ b/src/generated/Models/Contract.cs @@ -16,7 +16,7 @@ public class Contract : DirectoryObject, IParsable { #endif /// The unique identifier for the customer tenant referenced by this partnership. Corresponds to the id property of the customer tenant's organization resource. public Guid? CustomerId { get; set; } - /// A copy of the customer tenant's default domain name. The copy is made when the partnership with the customer is established. It is not automatically updated if the customer tenant's default domain name changes. + /// A copy of the customer tenant's default domain name. The copy is made when the partnership with the customer is established. It isn't automatically updated if the customer tenant's default domain name changes. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DefaultDomainName { get; set; } diff --git a/src/generated/Models/ControlScore.cs b/src/generated/Models/ControlScore.cs index 60d85321ede..95df4061c7a 100644 --- a/src/generated/Models/ControlScore.cs +++ b/src/generated/Models/ControlScore.cs @@ -61,10 +61,10 @@ public static ControlScore CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"controlCategory", n => { ControlCategory = n.GetStringValue(); } }, {"controlName", n => { ControlName = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"score", n => { Score = n.GetDoubleValue(); } }, }; } diff --git a/src/generated/Models/ConversationThread.cs b/src/generated/Models/ConversationThread.cs index 513de11d407..093a097f8d2 100644 --- a/src/generated/Models/ConversationThread.cs +++ b/src/generated/Models/ConversationThread.cs @@ -79,8 +79,8 @@ public class ConversationThread : Entity, IParsable { {"lastDeliveredDateTime", n => { LastDeliveredDateTime = n.GetDateTimeOffsetValue(); } }, {"posts", n => { Posts = n.GetCollectionOfObjectValues(Post.CreateFromDiscriminatorValue)?.ToList(); } }, {"preview", n => { Preview = n.GetStringValue(); } }, - {"topic", n => { Topic = n.GetStringValue(); } }, {"toRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + {"topic", n => { Topic = n.GetStringValue(); } }, {"uniqueSenders", n => { UniqueSenders = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } diff --git a/src/generated/Models/ConvertIdResult.cs b/src/generated/Models/ConvertIdResult.cs index 69ba8e12c8d..ff59dc36b63 100644 --- a/src/generated/Models/ConvertIdResult.cs +++ b/src/generated/Models/ConvertIdResult.cs @@ -59,8 +59,8 @@ public static ConvertIdResult CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"errorDetails", n => { ErrorDetails = n.GetObjectValue(GenericError.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"errorDetails", n => { ErrorDetails = n.GetObjectValue(GenericError.CreateFromDiscriminatorValue); } }, {"sourceId", n => { SourceId = n.GetStringValue(); } }, {"targetId", n => { TargetId = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/CopyNotebookModel.cs b/src/generated/Models/CopyNotebookModel.cs index c18d8627671..bfc2629099e 100644 --- a/src/generated/Models/CopyNotebookModel.cs +++ b/src/generated/Models/CopyNotebookModel.cs @@ -125,6 +125,7 @@ public static CopyNotebookModel CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"createdBy", n => { CreatedBy = n.GetStringValue(); } }, {"createdByIdentity", n => { CreatedByIdentity = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"createdTime", n => { CreatedTime = n.GetDateTimeOffsetValue(); } }, @@ -136,7 +137,6 @@ public IDictionary> GetFieldDeserializers() { {"lastModifiedTime", n => { LastModifiedTime = n.GetDateTimeOffsetValue(); } }, {"links", n => { Links = n.GetObjectValue(NotebookLinks.CreateFromDiscriminatorValue); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"sectionGroupsUrl", n => { SectionGroupsUrl = n.GetStringValue(); } }, {"sectionsUrl", n => { SectionsUrl = n.GetStringValue(); } }, {"self", n => { Self = n.GetStringValue(); } }, diff --git a/src/generated/Models/CrossTenantAccessPolicyB2BSetting.cs b/src/generated/Models/CrossTenantAccessPolicyB2BSetting.cs index 57c6d8ccc9b..87f2c860539 100644 --- a/src/generated/Models/CrossTenantAccessPolicyB2BSetting.cs +++ b/src/generated/Models/CrossTenantAccessPolicyB2BSetting.cs @@ -51,8 +51,8 @@ public static CrossTenantAccessPolicyB2BSetting CreateFromDiscriminatorValue(IPa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"applications", n => { Applications = n.GetObjectValue(CrossTenantAccessPolicyTargetConfiguration.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"applications", n => { Applications = n.GetObjectValue(CrossTenantAccessPolicyTargetConfiguration.CreateFromDiscriminatorValue); } }, {"usersAndGroups", n => { UsersAndGroups = n.GetObjectValue(CrossTenantAccessPolicyTargetConfiguration.CreateFromDiscriminatorValue); } }, }; } diff --git a/src/generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs b/src/generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs index 13b3345f2b4..de02c0b435a 100644 --- a/src/generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs +++ b/src/generated/Models/CrossTenantAccessPolicyConfigurationPartner.cs @@ -101,6 +101,7 @@ public static CrossTenantAccessPolicyConfigurationPartner CreateFromDiscriminato /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"automaticUserConsentSettings", n => { AutomaticUserConsentSettings = n.GetObjectValue(InboundOutboundPolicyConfiguration.CreateFromDiscriminatorValue); } }, {"b2bCollaborationInbound", n => { B2bCollaborationInbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, {"b2bCollaborationOutbound", n => { B2bCollaborationOutbound = n.GetObjectValue(CrossTenantAccessPolicyB2BSetting.CreateFromDiscriminatorValue); } }, @@ -109,7 +110,6 @@ public IDictionary> GetFieldDeserializers() { {"identitySynchronization", n => { IdentitySynchronization = n.GetObjectValue(CrossTenantIdentitySyncPolicyPartner.CreateFromDiscriminatorValue); } }, {"inboundTrust", n => { InboundTrust = n.GetObjectValue(CrossTenantAccessPolicyInboundTrust.CreateFromDiscriminatorValue); } }, {"isServiceProvider", n => { IsServiceProvider = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/CrossTenantAccessPolicyInboundTrust.cs b/src/generated/Models/CrossTenantAccessPolicyInboundTrust.cs index 8c5efa5c269..50c5c8ac46c 100644 --- a/src/generated/Models/CrossTenantAccessPolicyInboundTrust.cs +++ b/src/generated/Models/CrossTenantAccessPolicyInboundTrust.cs @@ -41,10 +41,10 @@ public static CrossTenantAccessPolicyInboundTrust CreateFromDiscriminatorValue(I /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"isCompliantDeviceAccepted", n => { IsCompliantDeviceAccepted = n.GetBoolValue(); } }, {"isHybridAzureADJoinedDeviceAccepted", n => { IsHybridAzureADJoinedDeviceAccepted = n.GetBoolValue(); } }, {"isMfaAccepted", n => { IsMfaAccepted = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/CrossTenantAccessPolicyTargetConfiguration.cs b/src/generated/Models/CrossTenantAccessPolicyTargetConfiguration.cs index 400688b54f9..019d98f702a 100644 --- a/src/generated/Models/CrossTenantAccessPolicyTargetConfiguration.cs +++ b/src/generated/Models/CrossTenantAccessPolicyTargetConfiguration.cs @@ -45,8 +45,8 @@ public static CrossTenantAccessPolicyTargetConfiguration CreateFromDiscriminator /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"accessType", n => { AccessType = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"accessType", n => { AccessType = n.GetEnumValue(); } }, {"targets", n => { Targets = n.GetCollectionOfObjectValues(CrossTenantAccessPolicyTarget.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/CrossTenantIdentitySyncPolicyPartner.cs b/src/generated/Models/CrossTenantIdentitySyncPolicyPartner.cs index d9d6520f1e8..750bcd9f921 100644 --- a/src/generated/Models/CrossTenantIdentitySyncPolicyPartner.cs +++ b/src/generated/Models/CrossTenantIdentitySyncPolicyPartner.cs @@ -59,8 +59,8 @@ public static CrossTenantIdentitySyncPolicyPartner CreateFromDiscriminatorValue( /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, {"userSyncInbound", n => { UserSyncInbound = n.GetObjectValue(CrossTenantUserSyncInbound.CreateFromDiscriminatorValue); } }, }; diff --git a/src/generated/Models/CrossTenantUserSyncInbound.cs b/src/generated/Models/CrossTenantUserSyncInbound.cs index bea97945031..47b71e9ca99 100644 --- a/src/generated/Models/CrossTenantUserSyncInbound.cs +++ b/src/generated/Models/CrossTenantUserSyncInbound.cs @@ -37,8 +37,8 @@ public static CrossTenantUserSyncInbound CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"isSyncAllowed", n => { IsSyncAllowed = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"isSyncAllowed", n => { IsSyncAllowed = n.GetBoolValue(); } }, }; } /// diff --git a/src/generated/Models/CurrencyColumn.cs b/src/generated/Models/CurrencyColumn.cs index 70ab9754dff..d7a02e80be8 100644 --- a/src/generated/Models/CurrencyColumn.cs +++ b/src/generated/Models/CurrencyColumn.cs @@ -43,8 +43,8 @@ public static CurrencyColumn CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"locale", n => { Locale = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"locale", n => { Locale = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/CustomExtensionCalloutInstance.cs b/src/generated/Models/CustomExtensionCalloutInstance.cs index ffdff2103bb..8e0bdd70b7d 100644 --- a/src/generated/Models/CustomExtensionCalloutInstance.cs +++ b/src/generated/Models/CustomExtensionCalloutInstance.cs @@ -69,11 +69,11 @@ public static CustomExtensionCalloutInstance CreateFromDiscriminatorValue(IParse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"customExtensionId", n => { CustomExtensionId = n.GetStringValue(); } }, {"detail", n => { Detail = n.GetStringValue(); } }, {"externalCorrelationId", n => { ExternalCorrelationId = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"status", n => { Status = n.GetEnumValue(); } }, }; } diff --git a/src/generated/Models/DataSubject.cs b/src/generated/Models/DataSubject.cs index 129d3425f27..6b5fe2e5bd1 100644 --- a/src/generated/Models/DataSubject.cs +++ b/src/generated/Models/DataSubject.cs @@ -67,10 +67,10 @@ public static DataSubject CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, {"firstName", n => { FirstName = n.GetStringValue(); } }, {"lastName", n => { LastName = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"residency", n => { Residency = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/DateTimeColumn.cs b/src/generated/Models/DateTimeColumn.cs index e16e2b39c2b..4313b2c9262 100644 --- a/src/generated/Models/DateTimeColumn.cs +++ b/src/generated/Models/DateTimeColumn.cs @@ -51,9 +51,9 @@ public static DateTimeColumn CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"displayAs", n => { DisplayAs = n.GetStringValue(); } }, {"format", n => { Format = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/DateTimeTimeZone.cs b/src/generated/Models/DateTimeTimeZone.cs index b51e43e9918..5c074a0927f 100644 --- a/src/generated/Models/DateTimeTimeZone.cs +++ b/src/generated/Models/DateTimeTimeZone.cs @@ -51,8 +51,8 @@ public static DateTimeTimeZone CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dateTime", n => { DateTime = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"dateTime", n => { DateTime = n.GetStringValue(); } }, {"timeZone", n => { TimeZone = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/DefaultColumnValue.cs b/src/generated/Models/DefaultColumnValue.cs index a0a0733d7c1..1d58f1184a4 100644 --- a/src/generated/Models/DefaultColumnValue.cs +++ b/src/generated/Models/DefaultColumnValue.cs @@ -51,8 +51,8 @@ public static DefaultColumnValue CreateFromDiscriminatorValue(IParseNode parseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"formula", n => { Formula = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"formula", n => { Formula = n.GetStringValue(); } }, {"value", n => { Value = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/DefaultUserRolePermissions.cs b/src/generated/Models/DefaultUserRolePermissions.cs index 5dc6eb6ecbe..145f3abae65 100644 --- a/src/generated/Models/DefaultUserRolePermissions.cs +++ b/src/generated/Models/DefaultUserRolePermissions.cs @@ -53,12 +53,12 @@ public static DefaultUserRolePermissions CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowedToCreateApps", n => { AllowedToCreateApps = n.GetBoolValue(); } }, {"allowedToCreateSecurityGroups", n => { AllowedToCreateSecurityGroups = n.GetBoolValue(); } }, {"allowedToCreateTenants", n => { AllowedToCreateTenants = n.GetBoolValue(); } }, {"allowedToReadBitlockerKeysForOwnedDevice", n => { AllowedToReadBitlockerKeysForOwnedDevice = n.GetBoolValue(); } }, {"allowedToReadOtherUsers", n => { AllowedToReadOtherUsers = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"permissionGrantPoliciesAssigned", n => { PermissionGrantPoliciesAssigned = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } diff --git a/src/generated/Models/DefenderDetectedMalwareActions.cs b/src/generated/Models/DefenderDetectedMalwareActions.cs index cfe09ec3f9e..9a55abdde96 100644 --- a/src/generated/Models/DefenderDetectedMalwareActions.cs +++ b/src/generated/Models/DefenderDetectedMalwareActions.cs @@ -46,10 +46,10 @@ public static DefenderDetectedMalwareActions CreateFromDiscriminatorValue(IParse /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"highSeverity", n => { HighSeverity = n.GetEnumValue(); } }, {"lowSeverity", n => { LowSeverity = n.GetEnumValue(); } }, {"moderateSeverity", n => { ModerateSeverity = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"severeSeverity", n => { SevereSeverity = n.GetEnumValue(); } }, }; } diff --git a/src/generated/Models/DelegatedAdminAccessContainer.cs b/src/generated/Models/DelegatedAdminAccessContainer.cs index fa21ae2650f..26d52c18d89 100644 --- a/src/generated/Models/DelegatedAdminAccessContainer.cs +++ b/src/generated/Models/DelegatedAdminAccessContainer.cs @@ -45,9 +45,9 @@ public static DelegatedAdminAccessContainer CreateFromDiscriminatorValue(IParseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"accessContainerId", n => { AccessContainerId = n.GetStringValue(); } }, {"accessContainerType", n => { AccessContainerType = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/DelegatedAdminCustomer.cs b/src/generated/Models/DelegatedAdminCustomer.cs index e917704027a..5a1142e7730 100644 --- a/src/generated/Models/DelegatedAdminCustomer.cs +++ b/src/generated/Models/DelegatedAdminCustomer.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class DelegatedAdminCustomer : Entity, IParsable { - /// The Azure AD display name of the customer tenant. Read-only. Supports $orderBy. + /// The Azure AD display name of the customer tenant. Read-only. Supports $orderby. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { get; set; } diff --git a/src/generated/Models/DelegatedAdminRelationship.cs b/src/generated/Models/DelegatedAdminRelationship.cs index 3fd10fc1383..26da5234d31 100644 --- a/src/generated/Models/DelegatedAdminRelationship.cs +++ b/src/generated/Models/DelegatedAdminRelationship.cs @@ -26,7 +26,7 @@ public class DelegatedAdminRelationship : Entity, IParsable { public DateTimeOffset? ActivatedDateTime { get; set; } /// The date and time in ISO 8601 format and in UTC time when the relationship was created. Read-only. public DateTimeOffset? CreatedDateTime { get; set; } - /// The display name and unique identifier of the customer of the relationship. This is configured either by the partner at the time the relationship is created or by the system after the customer approves the relationship. Cannot be changed by the customer. + /// The display name and unique identifier of the customer of the relationship. This is configured either by the partner at the time the relationship is created or by the system after the customer approves the relationship. Can't be changed by the customer. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public DelegatedAdminRelationshipCustomerParticipant? Customer { get; set; } @@ -34,7 +34,7 @@ public class DelegatedAdminRelationship : Entity, IParsable { #else public DelegatedAdminRelationshipCustomerParticipant Customer { get; set; } #endif - /// The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner. This is set by the partner only when the relationship is in the created status and cannot be changed by the customer. + /// The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner and is set by the partner only when the relationship is in the created status and can't be changed by the customer. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { get; set; } @@ -42,7 +42,7 @@ public class DelegatedAdminRelationship : Entity, IParsable { #else public string DisplayName { get; set; } #endif - /// The duration of the relationship in ISO 8601 format. Must be a value between P1D and P2Y inclusive. This is set by the partner only when the relationship is in the created status and cannot be changed by the customer. + /// The duration of the relationship in ISO 8601 format. Must be a value between P1D and P2Y inclusive. This is set by the partner only when the relationship is in the created status and can't be changed by the customer. public TimeSpan? Duration { get; set; } /// The date and time in ISO 8601 format and in UTC time when the status of relationship changes to either terminated or expired. Calculated as endDateTime = activatedDateTime + duration. Read-only. public DateTimeOffset? EndDateTime { get; set; } @@ -64,7 +64,7 @@ public class DelegatedAdminRelationship : Entity, IParsable { #else public List Requests { get; set; } #endif - /// The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderBy. + /// The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby. public DelegatedAdminRelationshipStatus? Status { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/generated/Models/DelegatedAdminRelationshipCustomerParticipant.cs b/src/generated/Models/DelegatedAdminRelationshipCustomerParticipant.cs index aa89a56208b..228aabcec79 100644 --- a/src/generated/Models/DelegatedAdminRelationshipCustomerParticipant.cs +++ b/src/generated/Models/DelegatedAdminRelationshipCustomerParticipant.cs @@ -51,8 +51,8 @@ public static DelegatedAdminRelationshipCustomerParticipant CreateFromDiscrimina /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"tenantId", n => { TenantId = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/DelegatedPermissionClassification.cs b/src/generated/Models/DelegatedPermissionClassification.cs index 631727cfce4..b9e23bb53b6 100644 --- a/src/generated/Models/DelegatedPermissionClassification.cs +++ b/src/generated/Models/DelegatedPermissionClassification.cs @@ -6,9 +6,9 @@ using System; namespace ApiSdk.Models { public class DelegatedPermissionClassification : Entity, IParsable { - /// The classification value being given. Possible value: low. Does not support $filter. + /// The classification value being given. Possible value: low. Doesn't support $filter. public PermissionClassificationType? Classification { get; set; } - /// The unique identifier (id) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal. Required on create. Does not support $filter. + /// The unique identifier (id) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal. Required on create. Doesn't support $filter. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PermissionId { get; set; } @@ -16,7 +16,7 @@ public class DelegatedPermissionClassification : Entity, IParsable { #else public string PermissionId { get; set; } #endif - /// The claim value (value) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal. Does not support $filter. + /// The claim value (value) for the delegated permission listed in the oauth2PermissionScopes collection of the servicePrincipal. Doesn't support $filter. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PermissionName { get; set; } diff --git a/src/generated/Models/Device.cs b/src/generated/Models/Device.cs index cd609a5238d..4f73c42dd4f 100644 --- a/src/generated/Models/Device.cs +++ b/src/generated/Models/Device.cs @@ -16,7 +16,7 @@ public class Device : DirectoryObject, IParsable { #else public List AlternativeSecurityIds { get; set; } #endif - /// The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, and eq on null values) and $orderBy. + /// The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, and eq on null values) and $orderby. public DateTimeOffset? ApproximateLastSignInDateTime { get; set; } /// The timestamp when the device is no longer deemed compliant. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. public DateTimeOffset? ComplianceExpirationDateTime { get; set; } @@ -54,7 +54,7 @@ public class Device : DirectoryObject, IParsable { #endif /// For internal use only. public int? DeviceVersion { get; set; } - /// The display name for the device. Required. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy. + /// The display name for the device. Required. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { get; set; } @@ -168,7 +168,7 @@ public class Device : DirectoryObject, IParsable { #else public List TransitiveMemberOf { get; set; } #endif - /// Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory + /// Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TrustType { get; set; } diff --git a/src/generated/Models/DeviceActionResult.cs b/src/generated/Models/DeviceActionResult.cs index 5f5b711b589..8e20a895d27 100644 --- a/src/generated/Models/DeviceActionResult.cs +++ b/src/generated/Models/DeviceActionResult.cs @@ -51,6 +51,7 @@ public static DeviceActionResult CreateFromDiscriminatorValue(IParseNode parseNo "#microsoft.graph.locateDeviceActionResult" => new LocateDeviceActionResult(), "#microsoft.graph.remoteLockActionResult" => new RemoteLockActionResult(), "#microsoft.graph.resetPasscodeActionResult" => new ResetPasscodeActionResult(), + "#microsoft.graph.rotateBitLockerKeysDeviceActionResult" => new RotateBitLockerKeysDeviceActionResult(), "#microsoft.graph.windowsDefenderScanActionResult" => new WindowsDefenderScanActionResult(), _ => new DeviceActionResult(), }; @@ -60,10 +61,10 @@ public static DeviceActionResult CreateFromDiscriminatorValue(IParseNode parseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"actionName", n => { ActionName = n.GetStringValue(); } }, {"actionState", n => { ActionState = n.GetEnumValue(); } }, {"lastUpdatedDateTime", n => { LastUpdatedDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, }; } diff --git a/src/generated/Models/DeviceAndAppManagementData.cs b/src/generated/Models/DeviceAndAppManagementData.cs index 9c18a3d0d57..8aaff61c45d 100644 --- a/src/generated/Models/DeviceAndAppManagementData.cs +++ b/src/generated/Models/DeviceAndAppManagementData.cs @@ -46,8 +46,8 @@ public static DeviceAndAppManagementData CreateFromDiscriminatorValue(IParseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetByteArrayValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"content", n => { Content = n.GetByteArrayValue(); } }, }; } /// diff --git a/src/generated/Models/DeviceCompliancePolicy.cs b/src/generated/Models/DeviceCompliancePolicy.cs index 4259879baaf..21fad104619 100644 --- a/src/generated/Models/DeviceCompliancePolicy.cs +++ b/src/generated/Models/DeviceCompliancePolicy.cs @@ -115,13 +115,13 @@ public class DeviceCompliancePolicy : Entity, IParsable { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"deviceSettingStateSummaries", n => { DeviceSettingStateSummaries = n.GetCollectionOfObjectValues(SettingStateDeviceSummary.CreateFromDiscriminatorValue)?.ToList(); } }, - {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(DeviceComplianceDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"deviceStatusOverview", n => { DeviceStatusOverview = n.GetObjectValue(DeviceComplianceDeviceOverview.CreateFromDiscriminatorValue); } }, + {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(DeviceComplianceDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, {"scheduledActionsForRule", n => { ScheduledActionsForRule = n.GetCollectionOfObjectValues(DeviceComplianceScheduledActionForRule.CreateFromDiscriminatorValue)?.ToList(); } }, - {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(DeviceComplianceUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"userStatusOverview", n => { UserStatusOverview = n.GetObjectValue(DeviceComplianceUserOverview.CreateFromDiscriminatorValue); } }, + {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(DeviceComplianceUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"version", n => { Version = n.GetIntValue(); } }, }; } diff --git a/src/generated/Models/DeviceCompliancePolicySettingState.cs b/src/generated/Models/DeviceCompliancePolicySettingState.cs index cea6e64502a..5b29e132577 100644 --- a/src/generated/Models/DeviceCompliancePolicySettingState.cs +++ b/src/generated/Models/DeviceCompliancePolicySettingState.cs @@ -122,11 +122,11 @@ public static DeviceCompliancePolicySettingState CreateFromDiscriminatorValue(IP /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"currentValue", n => { CurrentValue = n.GetStringValue(); } }, {"errorCode", n => { ErrorCode = n.GetLongValue(); } }, {"errorDescription", n => { ErrorDescription = n.GetStringValue(); } }, {"instanceDisplayName", n => { InstanceDisplayName = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"setting", n => { Setting = n.GetStringValue(); } }, {"settingName", n => { SettingName = n.GetStringValue(); } }, {"sources", n => { Sources = n.GetCollectionOfObjectValues(SettingSource.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/generated/Models/DeviceConfiguration.cs b/src/generated/Models/DeviceConfiguration.cs index 6933519d48e..54302c28e7b 100644 --- a/src/generated/Models/DeviceConfiguration.cs +++ b/src/generated/Models/DeviceConfiguration.cs @@ -125,12 +125,12 @@ public class DeviceConfiguration : Entity, IParsable { {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"deviceSettingStateSummaries", n => { DeviceSettingStateSummaries = n.GetCollectionOfObjectValues(SettingStateDeviceSummary.CreateFromDiscriminatorValue)?.ToList(); } }, - {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(DeviceConfigurationDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"deviceStatusOverview", n => { DeviceStatusOverview = n.GetObjectValue(DeviceConfigurationDeviceOverview.CreateFromDiscriminatorValue); } }, + {"deviceStatuses", n => { DeviceStatuses = n.GetCollectionOfObjectValues(DeviceConfigurationDeviceStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, - {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(DeviceConfigurationUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"userStatusOverview", n => { UserStatusOverview = n.GetObjectValue(DeviceConfigurationUserOverview.CreateFromDiscriminatorValue); } }, + {"userStatuses", n => { UserStatuses = n.GetCollectionOfObjectValues(DeviceConfigurationUserStatus.CreateFromDiscriminatorValue)?.ToList(); } }, {"version", n => { Version = n.GetIntValue(); } }, }; } diff --git a/src/generated/Models/DeviceConfigurationSettingState.cs b/src/generated/Models/DeviceConfigurationSettingState.cs index 24b51e6f0c3..3a3f087adf7 100644 --- a/src/generated/Models/DeviceConfigurationSettingState.cs +++ b/src/generated/Models/DeviceConfigurationSettingState.cs @@ -122,11 +122,11 @@ public static DeviceConfigurationSettingState CreateFromDiscriminatorValue(IPars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"currentValue", n => { CurrentValue = n.GetStringValue(); } }, {"errorCode", n => { ErrorCode = n.GetLongValue(); } }, {"errorDescription", n => { ErrorDescription = n.GetStringValue(); } }, {"instanceDisplayName", n => { InstanceDisplayName = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"setting", n => { Setting = n.GetStringValue(); } }, {"settingName", n => { SettingName = n.GetStringValue(); } }, {"sources", n => { Sources = n.GetCollectionOfObjectValues(SettingSource.CreateFromDiscriminatorValue)?.ToList(); } }, diff --git a/src/generated/Models/DeviceDetail.cs b/src/generated/Models/DeviceDetail.cs index f6da48ad2b8..8a2d48b73ee 100644 --- a/src/generated/Models/DeviceDetail.cs +++ b/src/generated/Models/DeviceDetail.cs @@ -79,12 +79,12 @@ public static DeviceDetail CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"browser", n => { Browser = n.GetStringValue(); } }, {"deviceId", n => { DeviceId = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"isCompliant", n => { IsCompliant = n.GetBoolValue(); } }, {"isManaged", n => { IsManaged = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"operatingSystem", n => { OperatingSystem = n.GetStringValue(); } }, {"trustType", n => { TrustType = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/DeviceExchangeAccessStateSummary.cs b/src/generated/Models/DeviceExchangeAccessStateSummary.cs index c3c301f69ec..1492972c739 100644 --- a/src/generated/Models/DeviceExchangeAccessStateSummary.cs +++ b/src/generated/Models/DeviceExchangeAccessStateSummary.cs @@ -48,9 +48,9 @@ public static DeviceExchangeAccessStateSummary CreateFromDiscriminatorValue(IPar /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowedDeviceCount", n => { AllowedDeviceCount = n.GetIntValue(); } }, {"blockedDeviceCount", n => { BlockedDeviceCount = n.GetIntValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"quarantinedDeviceCount", n => { QuarantinedDeviceCount = n.GetIntValue(); } }, {"unavailableDeviceCount", n => { UnavailableDeviceCount = n.GetIntValue(); } }, {"unknownDeviceCount", n => { UnknownDeviceCount = n.GetIntValue(); } }, diff --git a/src/generated/Models/DeviceGeoLocation.cs b/src/generated/Models/DeviceGeoLocation.cs index 619128e7d0e..8367d65659a 100644 --- a/src/generated/Models/DeviceGeoLocation.cs +++ b/src/generated/Models/DeviceGeoLocation.cs @@ -54,13 +54,13 @@ public static DeviceGeoLocation CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"altitude", n => { Altitude = n.GetDoubleValue(); } }, {"heading", n => { Heading = n.GetDoubleValue(); } }, {"horizontalAccuracy", n => { HorizontalAccuracy = n.GetDoubleValue(); } }, {"lastCollectedDateTime", n => { LastCollectedDateTime = n.GetDateTimeOffsetValue(); } }, {"latitude", n => { Latitude = n.GetDoubleValue(); } }, {"longitude", n => { Longitude = n.GetDoubleValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"speed", n => { Speed = n.GetDoubleValue(); } }, {"verticalAccuracy", n => { VerticalAccuracy = n.GetDoubleValue(); } }, }; diff --git a/src/generated/Models/DeviceHealthAttestationState.cs b/src/generated/Models/DeviceHealthAttestationState.cs index 492f4259a3b..63582906caa 100644 --- a/src/generated/Models/DeviceHealthAttestationState.cs +++ b/src/generated/Models/DeviceHealthAttestationState.cs @@ -273,6 +273,7 @@ public static DeviceHealthAttestationState CreateFromDiscriminatorValue(IParseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"attestationIdentityKey", n => { AttestationIdentityKey = n.GetStringValue(); } }, {"bitLockerStatus", n => { BitLockerStatus = n.GetStringValue(); } }, {"bootAppSecurityVersion", n => { BootAppSecurityVersion = n.GetStringValue(); } }, @@ -292,7 +293,6 @@ public IDictionary> GetFieldDeserializers() { {"healthStatusMismatchInfo", n => { HealthStatusMismatchInfo = n.GetStringValue(); } }, {"issuedDateTime", n => { IssuedDateTime = n.GetDateTimeOffsetValue(); } }, {"lastUpdateDateTime", n => { LastUpdateDateTime = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"operatingSystemKernelDebugging", n => { OperatingSystemKernelDebugging = n.GetStringValue(); } }, {"operatingSystemRevListInfo", n => { OperatingSystemRevListInfo = n.GetStringValue(); } }, {"pcr0", n => { Pcr0 = n.GetStringValue(); } }, diff --git a/src/generated/Models/DeviceManagement.cs b/src/generated/Models/DeviceManagement.cs index cd4dee9f634..e1b36662329 100644 --- a/src/generated/Models/DeviceManagement.cs +++ b/src/generated/Models/DeviceManagement.cs @@ -396,6 +396,14 @@ public class DeviceManagement : Entity, IParsable { #nullable restore #else public List UserExperienceAnalyticsDeviceStartupProcesses { get; set; } +#endif + /// User experience analytics device Startup Process Performance +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? UserExperienceAnalyticsDeviceStartupProcessPerformance { get; set; } +#nullable restore +#else + public List UserExperienceAnalyticsDeviceStartupProcessPerformance { get; set; } #endif /// User experience analytics metric history #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -563,6 +571,7 @@ public class DeviceManagement : Entity, IParsable { {"userExperienceAnalyticsDevicePerformance", n => { UserExperienceAnalyticsDevicePerformance = n.GetCollectionOfObjectValues(ApiSdk.Models.UserExperienceAnalyticsDevicePerformance.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsDeviceScores", n => { UserExperienceAnalyticsDeviceScores = n.GetCollectionOfObjectValues(ApiSdk.Models.UserExperienceAnalyticsDeviceScores.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsDeviceStartupHistory", n => { UserExperienceAnalyticsDeviceStartupHistory = n.GetCollectionOfObjectValues(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupHistory.CreateFromDiscriminatorValue)?.ToList(); } }, + {"userExperienceAnalyticsDeviceStartupProcessPerformance", n => { UserExperienceAnalyticsDeviceStartupProcessPerformance = n.GetCollectionOfObjectValues(ApiSdk.Models.UserExperienceAnalyticsDeviceStartupProcessPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsDeviceStartupProcesses", n => { UserExperienceAnalyticsDeviceStartupProcesses = n.GetCollectionOfObjectValues(UserExperienceAnalyticsDeviceStartupProcess.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsMetricHistory", n => { UserExperienceAnalyticsMetricHistory = n.GetCollectionOfObjectValues(ApiSdk.Models.UserExperienceAnalyticsMetricHistory.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsModelScores", n => { UserExperienceAnalyticsModelScores = n.GetCollectionOfObjectValues(ApiSdk.Models.UserExperienceAnalyticsModelScores.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -636,6 +645,7 @@ public class DeviceManagement : Entity, IParsable { writer.WriteCollectionOfObjectValues("userExperienceAnalyticsDeviceScores", UserExperienceAnalyticsDeviceScores); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsDeviceStartupHistory", UserExperienceAnalyticsDeviceStartupHistory); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsDeviceStartupProcesses", UserExperienceAnalyticsDeviceStartupProcesses); + writer.WriteCollectionOfObjectValues("userExperienceAnalyticsDeviceStartupProcessPerformance", UserExperienceAnalyticsDeviceStartupProcessPerformance); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsMetricHistory", UserExperienceAnalyticsMetricHistory); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsModelScores", UserExperienceAnalyticsModelScores); writer.WriteObjectValue("userExperienceAnalyticsOverview", UserExperienceAnalyticsOverview); diff --git a/src/generated/Models/DeviceManagementSettings.cs b/src/generated/Models/DeviceManagementSettings.cs index f271aa62280..f01c216ee28 100644 --- a/src/generated/Models/DeviceManagementSettings.cs +++ b/src/generated/Models/DeviceManagementSettings.cs @@ -41,9 +41,9 @@ public static DeviceManagementSettings CreateFromDiscriminatorValue(IParseNode p /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"deviceComplianceCheckinThresholdDays", n => { DeviceComplianceCheckinThresholdDays = n.GetIntValue(); } }, {"isScheduledActionEnabled", n => { IsScheduledActionEnabled = n.GetBoolValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"secureByDefault", n => { SecureByDefault = n.GetBoolValue(); } }, }; } diff --git a/src/generated/Models/DeviceOperatingSystemSummary.cs b/src/generated/Models/DeviceOperatingSystemSummary.cs index 91eb045ee0f..eecf417693c 100644 --- a/src/generated/Models/DeviceOperatingSystemSummary.cs +++ b/src/generated/Models/DeviceOperatingSystemSummary.cs @@ -62,6 +62,7 @@ public static DeviceOperatingSystemSummary CreateFromDiscriminatorValue(IParseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"androidCorporateWorkProfileCount", n => { AndroidCorporateWorkProfileCount = n.GetIntValue(); } }, {"androidCount", n => { AndroidCount = n.GetIntValue(); } }, {"androidDedicatedCount", n => { AndroidDedicatedCount = n.GetIntValue(); } }, @@ -71,7 +72,6 @@ public IDictionary> GetFieldDeserializers() { {"configMgrDeviceCount", n => { ConfigMgrDeviceCount = n.GetIntValue(); } }, {"iosCount", n => { IosCount = n.GetIntValue(); } }, {"macOSCount", n => { MacOSCount = n.GetIntValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"unknownCount", n => { UnknownCount = n.GetIntValue(); } }, {"windowsCount", n => { WindowsCount = n.GetIntValue(); } }, {"windowsMobileCount", n => { WindowsMobileCount = n.GetIntValue(); } }, diff --git a/src/generated/Models/DeviceProtectionOverview.cs b/src/generated/Models/DeviceProtectionOverview.cs index 44d5f643cd2..159dbd3e3ac 100644 --- a/src/generated/Models/DeviceProtectionOverview.cs +++ b/src/generated/Models/DeviceProtectionOverview.cs @@ -60,10 +60,10 @@ public static DeviceProtectionOverview CreateFromDiscriminatorValue(IParseNode p /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"cleanDeviceCount", n => { CleanDeviceCount = n.GetIntValue(); } }, {"criticalFailuresDeviceCount", n => { CriticalFailuresDeviceCount = n.GetIntValue(); } }, {"inactiveThreatAgentDeviceCount", n => { InactiveThreatAgentDeviceCount = n.GetIntValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"pendingFullScanDeviceCount", n => { PendingFullScanDeviceCount = n.GetIntValue(); } }, {"pendingManualStepsDeviceCount", n => { PendingManualStepsDeviceCount = n.GetIntValue(); } }, {"pendingOfflineScanDeviceCount", n => { PendingOfflineScanDeviceCount = n.GetIntValue(); } }, diff --git a/src/generated/Models/DisplayNameLocalization.cs b/src/generated/Models/DisplayNameLocalization.cs index 980d8d748a4..c349a06cb65 100644 --- a/src/generated/Models/DisplayNameLocalization.cs +++ b/src/generated/Models/DisplayNameLocalization.cs @@ -51,9 +51,9 @@ public static DisplayNameLocalization CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"languageTag", n => { LanguageTag = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/DocumentSet.cs b/src/generated/Models/DocumentSet.cs index 85ff480cd3e..9a587042915 100644 --- a/src/generated/Models/DocumentSet.cs +++ b/src/generated/Models/DocumentSet.cs @@ -79,9 +79,9 @@ public static DocumentSet CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"allowedContentTypes", n => { AllowedContentTypes = n.GetCollectionOfObjectValues(ContentTypeInfo.CreateFromDiscriminatorValue)?.ToList(); } }, {"defaultContents", n => { DefaultContents = n.GetCollectionOfObjectValues(DocumentSetContent.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"propagateWelcomePageChanges", n => { PropagateWelcomePageChanges = n.GetBoolValue(); } }, {"sharedColumns", n => { SharedColumns = n.GetCollectionOfObjectValues(ColumnDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"shouldPrefixNameToFile", n => { ShouldPrefixNameToFile = n.GetBoolValue(); } }, diff --git a/src/generated/Models/DocumentSetContent.cs b/src/generated/Models/DocumentSetContent.cs index 3df7a85de6b..86565e2cff9 100644 --- a/src/generated/Models/DocumentSetContent.cs +++ b/src/generated/Models/DocumentSetContent.cs @@ -59,10 +59,10 @@ public static DocumentSetContent CreateFromDiscriminatorValue(IParseNode parseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetObjectValue(ContentTypeInfo.CreateFromDiscriminatorValue); } }, {"fileName", n => { FileName = n.GetStringValue(); } }, {"folderName", n => { FolderName = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/DocumentSetVersionItem.cs b/src/generated/Models/DocumentSetVersionItem.cs index 8a69723a13f..efc839ea8ba 100644 --- a/src/generated/Models/DocumentSetVersionItem.cs +++ b/src/generated/Models/DocumentSetVersionItem.cs @@ -59,8 +59,8 @@ public static DocumentSetVersionItem CreateFromDiscriminatorValue(IParseNode par /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"itemId", n => { ItemId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"itemId", n => { ItemId = n.GetStringValue(); } }, {"title", n => { Title = n.GetStringValue(); } }, {"versionId", n => { VersionId = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/DomainDnsRecord.cs b/src/generated/Models/DomainDnsRecord.cs index d43b0cb2914..22a1169fb4b 100644 --- a/src/generated/Models/DomainDnsRecord.cs +++ b/src/generated/Models/DomainDnsRecord.cs @@ -16,7 +16,7 @@ public class DomainDnsRecord : Entity, IParsable { #else public string Label { get; set; } #endif - /// Indicates what type of DNS record this entity represents.The value can be one of the following: CName, Mx, Srv, Txt. + /// Indicates what type of DNS record this entity represents. The value can be CName, Mx, Srv, or Txt. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RecordType { get; set; } @@ -24,7 +24,7 @@ public class DomainDnsRecord : Entity, IParsable { #else public string RecordType { get; set; } #endif - /// Microsoft Online Service or feature that has a dependency on this DNS record.Can be one of the following values: null, Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. + /// Microsoft Online Service or feature that has a dependency on this DNS record. Can be one of the following values: null, Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SupportedService { get; set; } diff --git a/src/generated/Models/DomainState.cs b/src/generated/Models/DomainState.cs index 959b9dd7bb2..e108db6f4bb 100644 --- a/src/generated/Models/DomainState.cs +++ b/src/generated/Models/DomainState.cs @@ -53,8 +53,8 @@ public static DomainState CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"lastActionDateTime", n => { LastActionDateTime = n.GetDateTimeOffsetValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"lastActionDateTime", n => { LastActionDateTime = n.GetDateTimeOffsetValue(); } }, {"operation", n => { Operation = n.GetStringValue(); } }, {"status", n => { Status = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/DriveItem.cs b/src/generated/Models/DriveItem.cs index 7ddf687b1e4..68b37956f15 100644 --- a/src/generated/Models/DriveItem.cs +++ b/src/generated/Models/DriveItem.cs @@ -278,9 +278,9 @@ public DriveItem() : base() { {"analytics", n => { Analytics = n.GetObjectValue(ItemAnalytics.CreateFromDiscriminatorValue); } }, {"audio", n => { Audio = n.GetObjectValue(ApiSdk.Models.Audio.CreateFromDiscriminatorValue); } }, {"bundle", n => { Bundle = n.GetObjectValue(ApiSdk.Models.Bundle.CreateFromDiscriminatorValue); } }, + {"cTag", n => { CTag = n.GetStringValue(); } }, {"children", n => { Children = n.GetCollectionOfObjectValues(DriveItem.CreateFromDiscriminatorValue)?.ToList(); } }, {"content", n => { Content = n.GetByteArrayValue(); } }, - {"cTag", n => { CTag = n.GetStringValue(); } }, {"deleted", n => { Deleted = n.GetObjectValue(ApiSdk.Models.Deleted.CreateFromDiscriminatorValue); } }, {"file", n => { File = n.GetObjectValue(FileObject.CreateFromDiscriminatorValue); } }, {"fileSystemInfo", n => { FileSystemInfo = n.GetObjectValue(ApiSdk.Models.FileSystemInfo.CreateFromDiscriminatorValue); } }, diff --git a/src/generated/Models/DriveItemUploadableProperties.cs b/src/generated/Models/DriveItemUploadableProperties.cs index f22263ec27d..428df4ba5b3 100644 --- a/src/generated/Models/DriveItemUploadableProperties.cs +++ b/src/generated/Models/DriveItemUploadableProperties.cs @@ -61,11 +61,11 @@ public static DriveItemUploadableProperties CreateFromDiscriminatorValue(IParseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"fileSize", n => { FileSize = n.GetLongValue(); } }, {"fileSystemInfo", n => { FileSystemInfo = n.GetObjectValue(ApiSdk.Models.FileSystemInfo.CreateFromDiscriminatorValue); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/DriveRecipient.cs b/src/generated/Models/DriveRecipient.cs index dab5f86376b..705686e3691 100644 --- a/src/generated/Models/DriveRecipient.cs +++ b/src/generated/Models/DriveRecipient.cs @@ -59,10 +59,10 @@ public static DriveRecipient CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"alias", n => { Alias = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, {"objectId", n => { ObjectId = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/EducationAssignment.cs b/src/generated/Models/EducationAssignment.cs index 3416eff8714..5ebe211483b 100644 --- a/src/generated/Models/EducationAssignment.cs +++ b/src/generated/Models/EducationAssignment.cs @@ -161,13 +161,13 @@ public class EducationAssignment : Entity, IParsable { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, {"addToCalendarAction", n => { AddToCalendarAction = n.GetEnumValue(); } }, + {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, {"allowLateSubmissions", n => { AllowLateSubmissions = n.GetBoolValue(); } }, {"allowStudentsToAddResourcesToSubmission", n => { AllowStudentsToAddResourcesToSubmission = n.GetBoolValue(); } }, {"assignDateTime", n => { AssignDateTime = n.GetDateTimeOffsetValue(); } }, - {"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } }, {"assignTo", n => { AssignTo = n.GetObjectValue(EducationAssignmentRecipient.CreateFromDiscriminatorValue); } }, + {"assignedDateTime", n => { AssignedDateTime = n.GetDateTimeOffsetValue(); } }, {"categories", n => { Categories = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, {"classId", n => { ClassId = n.GetStringValue(); } }, {"closeDateTime", n => { CloseDateTime = n.GetDateTimeOffsetValue(); } }, diff --git a/src/generated/Models/EducationAssignmentDefaults.cs b/src/generated/Models/EducationAssignmentDefaults.cs index c4a29556c27..49ee422ecd2 100644 --- a/src/generated/Models/EducationAssignmentDefaults.cs +++ b/src/generated/Models/EducationAssignmentDefaults.cs @@ -34,8 +34,8 @@ public class EducationAssignmentDefaults : Entity, IParsable { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, {"addToCalendarAction", n => { AddToCalendarAction = n.GetEnumValue(); } }, + {"addedStudentAction", n => { AddedStudentAction = n.GetEnumValue(); } }, {"dueTime", n => { DueTime = n.GetTimeValue(); } }, {"notificationChannelUrl", n => { NotificationChannelUrl = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/EducationAssignmentGrade.cs b/src/generated/Models/EducationAssignmentGrade.cs index 9f68572e034..8571331d8a8 100644 --- a/src/generated/Models/EducationAssignmentGrade.cs +++ b/src/generated/Models/EducationAssignmentGrade.cs @@ -49,9 +49,9 @@ public static EducationAssignmentGrade CreateFromDiscriminatorValue(IParseNode p /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"gradedBy", n => { GradedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"gradedDateTime", n => { GradedDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/EducationAssignmentSettings.cs b/src/generated/Models/EducationAssignmentSettings.cs index bb7c922d45f..27a9fc58373 100644 --- a/src/generated/Models/EducationAssignmentSettings.cs +++ b/src/generated/Models/EducationAssignmentSettings.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class EducationAssignmentSettings : Entity, IParsable { - /// Indicates whether turn-in celebration animation will be shown. A value of true indicates that the animation will not be shown. Default value is false. + /// Indicates whether turn-in celebration animation is shown. A value of true indicates that the animation isn't shown. Default value is false. public bool? SubmissionAnimationDisabled { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/generated/Models/EducationClass.cs b/src/generated/Models/EducationClass.cs index e6ffba42012..4095f990202 100644 --- a/src/generated/Models/EducationClass.cs +++ b/src/generated/Models/EducationClass.cs @@ -175,8 +175,8 @@ public class EducationClass : Entity, IParsable { return new Dictionary>(base.GetFieldDeserializers()) { {"assignmentCategories", n => { AssignmentCategories = n.GetCollectionOfObjectValues(EducationCategory.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignmentDefaults", n => { AssignmentDefaults = n.GetObjectValue(EducationAssignmentDefaults.CreateFromDiscriminatorValue); } }, - {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignmentSettings", n => { AssignmentSettings = n.GetObjectValue(EducationAssignmentSettings.CreateFromDiscriminatorValue); } }, + {"assignments", n => { Assignments = n.GetCollectionOfObjectValues(EducationAssignment.CreateFromDiscriminatorValue)?.ToList(); } }, {"classCode", n => { ClassCode = n.GetStringValue(); } }, {"course", n => { Course = n.GetObjectValue(EducationCourse.CreateFromDiscriminatorValue); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, diff --git a/src/generated/Models/EducationCourse.cs b/src/generated/Models/EducationCourse.cs index 8d191be2654..3d2e9b68662 100644 --- a/src/generated/Models/EducationCourse.cs +++ b/src/generated/Models/EducationCourse.cs @@ -75,11 +75,11 @@ public static EducationCourse CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"courseNumber", n => { CourseNumber = n.GetStringValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"externalId", n => { ExternalId = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"subject", n => { Subject = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/EducationFeedback.cs b/src/generated/Models/EducationFeedback.cs index 21f40f5a362..b1f46ed9c08 100644 --- a/src/generated/Models/EducationFeedback.cs +++ b/src/generated/Models/EducationFeedback.cs @@ -53,9 +53,9 @@ public static EducationFeedback CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"feedbackBy", n => { FeedbackBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"feedbackDateTime", n => { FeedbackDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"text", n => { Text = n.GetObjectValue(EducationItemBody.CreateFromDiscriminatorValue); } }, }; } diff --git a/src/generated/Models/EducationItemBody.cs b/src/generated/Models/EducationItemBody.cs index 8df791a0247..f410cb2f225 100644 --- a/src/generated/Models/EducationItemBody.cs +++ b/src/generated/Models/EducationItemBody.cs @@ -45,9 +45,9 @@ public static EducationItemBody CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"content", n => { Content = n.GetStringValue(); } }, {"contentType", n => { ContentType = n.GetEnumValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/EducationOnPremisesInfo.cs b/src/generated/Models/EducationOnPremisesInfo.cs index 7427967c092..b06458a71b4 100644 --- a/src/generated/Models/EducationOnPremisesInfo.cs +++ b/src/generated/Models/EducationOnPremisesInfo.cs @@ -43,8 +43,8 @@ public static EducationOnPremisesInfo CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"immutableId", n => { ImmutableId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"immutableId", n => { ImmutableId = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/EducationOrganization.cs b/src/generated/Models/EducationOrganization.cs index 0753540c63b..e6c36b03b58 100644 --- a/src/generated/Models/EducationOrganization.cs +++ b/src/generated/Models/EducationOrganization.cs @@ -24,7 +24,7 @@ public class EducationOrganization : Entity, IParsable { #endif /// Source where this organization was created from. Possible values are: sis, manual. public EducationExternalSource? ExternalSource { get; set; } - /// The name of the external source this resources was generated from. + /// The name of the external source this resource was generated from. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ExternalSourceDetail { get; set; } diff --git a/src/generated/Models/EducationResource.cs b/src/generated/Models/EducationResource.cs index 747cdf6b546..4c0a3f13226 100644 --- a/src/generated/Models/EducationResource.cs +++ b/src/generated/Models/EducationResource.cs @@ -74,12 +74,12 @@ public static EducationResource CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/EducationRoot.cs b/src/generated/Models/EducationRoot.cs index 74abf1592d2..c8e98075b76 100644 --- a/src/generated/Models/EducationRoot.cs +++ b/src/generated/Models/EducationRoot.cs @@ -67,9 +67,9 @@ public static EducationRoot CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"classes", n => { Classes = n.GetCollectionOfObjectValues(EducationClass.CreateFromDiscriminatorValue)?.ToList(); } }, {"me", n => { Me = n.GetObjectValue(EducationUser.CreateFromDiscriminatorValue); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"schools", n => { Schools = n.GetCollectionOfObjectValues(EducationSchool.CreateFromDiscriminatorValue)?.ToList(); } }, {"users", n => { Users = n.GetCollectionOfObjectValues(EducationUser.CreateFromDiscriminatorValue)?.ToList(); } }, }; diff --git a/src/generated/Models/EducationStudent.cs b/src/generated/Models/EducationStudent.cs index c6355a5d902..808f8f5e06b 100644 --- a/src/generated/Models/EducationStudent.cs +++ b/src/generated/Models/EducationStudent.cs @@ -72,12 +72,12 @@ public static EducationStudent CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"birthDate", n => { BirthDate = n.GetDateValue(); } }, {"externalId", n => { ExternalId = n.GetStringValue(); } }, {"gender", n => { Gender = n.GetEnumValue(); } }, {"grade", n => { Grade = n.GetStringValue(); } }, {"graduationYear", n => { GraduationYear = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"studentNumber", n => { StudentNumber = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/EducationSubmissionResource.cs b/src/generated/Models/EducationSubmissionResource.cs index 9bb1320e18d..0394ebdb5a0 100644 --- a/src/generated/Models/EducationSubmissionResource.cs +++ b/src/generated/Models/EducationSubmissionResource.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class EducationSubmissionResource : Entity, IParsable { - /// Pointer to the assignment from which this resource was copied. If this is null, the student uploaded the resource. + /// Pointer to the assignment from which the resource was copied, and if null, the student uploaded the resource. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AssignmentResourceUrl { get; set; } diff --git a/src/generated/Models/EducationTeacher.cs b/src/generated/Models/EducationTeacher.cs index 70db98eaaf4..21ce4560b23 100644 --- a/src/generated/Models/EducationTeacher.cs +++ b/src/generated/Models/EducationTeacher.cs @@ -51,8 +51,8 @@ public static EducationTeacher CreateFromDiscriminatorValue(IParseNode parseNode /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"externalId", n => { ExternalId = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"externalId", n => { ExternalId = n.GetStringValue(); } }, {"teacherNumber", n => { TeacherNumber = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/EducationTerm.cs b/src/generated/Models/EducationTerm.cs index 597f3c23802..96786f35e1a 100644 --- a/src/generated/Models/EducationTerm.cs +++ b/src/generated/Models/EducationTerm.cs @@ -56,10 +56,10 @@ public static EducationTerm CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"endDate", n => { EndDate = n.GetDateValue(); } }, {"externalId", n => { ExternalId = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"startDate", n => { StartDate = n.GetDateValue(); } }, }; } diff --git a/src/generated/Models/EducationUser.cs b/src/generated/Models/EducationUser.cs index 8fe09911563..c503e04de88 100644 --- a/src/generated/Models/EducationUser.cs +++ b/src/generated/Models/EducationUser.cs @@ -306,8 +306,8 @@ public class EducationUser : Entity, IParsable { {"externalSourceDetail", n => { ExternalSourceDetail = n.GetStringValue(); } }, {"givenName", n => { GivenName = n.GetStringValue(); } }, {"mail", n => { Mail = n.GetStringValue(); } }, - {"mailingAddress", n => { MailingAddress = n.GetObjectValue(PhysicalAddress.CreateFromDiscriminatorValue); } }, {"mailNickname", n => { MailNickname = n.GetStringValue(); } }, + {"mailingAddress", n => { MailingAddress = n.GetObjectValue(PhysicalAddress.CreateFromDiscriminatorValue); } }, {"middleName", n => { MiddleName = n.GetStringValue(); } }, {"mobilePhone", n => { MobilePhone = n.GetStringValue(); } }, {"officeLocation", n => { OfficeLocation = n.GetStringValue(); } }, diff --git a/src/generated/Models/EmailAddress.cs b/src/generated/Models/EmailAddress.cs index 9b18426a23c..fd3a4073ab5 100644 --- a/src/generated/Models/EmailAddress.cs +++ b/src/generated/Models/EmailAddress.cs @@ -51,9 +51,9 @@ public static EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"address", n => { Address = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/EmailAuthenticationMethodConfiguration.cs b/src/generated/Models/EmailAuthenticationMethodConfiguration.cs index f28eb235eb7..046f6f2df69 100644 --- a/src/generated/Models/EmailAuthenticationMethodConfiguration.cs +++ b/src/generated/Models/EmailAuthenticationMethodConfiguration.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class EmailAuthenticationMethodConfiguration : AuthenticationMethodConfiguration, IParsable { - /// Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who did not use public preview will automatically have email OTP enabled beginning in October 2021. + /// Determines whether email OTP is usable by external users for authentication. Possible values are: default, enabled, disabled, unknownFutureValue. Tenants in the default state who didn't use public preview will automatically have email OTP enabled beginning in October 2021. public ExternalEmailOtpState? AllowExternalIdToUseEmailOtp { get; set; } /// A collection of groups that are enabled to use the authentication method. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Models/EmployeeExperience.cs b/src/generated/Models/EmployeeExperience.cs index 3e4f198ace0..fd0f0dd36d5 100644 --- a/src/generated/Models/EmployeeExperience.cs +++ b/src/generated/Models/EmployeeExperience.cs @@ -51,9 +51,9 @@ public static EmployeeExperience CreateFromDiscriminatorValue(IParseNode parseNo /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"learningCourseActivities", n => { LearningCourseActivities = n.GetCollectionOfObjectValues(LearningCourseActivity.CreateFromDiscriminatorValue)?.ToList(); } }, {"learningProviders", n => { LearningProviders = n.GetCollectionOfObjectValues(LearningProvider.CreateFromDiscriminatorValue)?.ToList(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/EmployeeOrgData.cs b/src/generated/Models/EmployeeOrgData.cs index ab7c8f0cbeb..3ba886fd03d 100644 --- a/src/generated/Models/EmployeeOrgData.cs +++ b/src/generated/Models/EmployeeOrgData.cs @@ -51,9 +51,9 @@ public static EmployeeOrgData CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"costCenter", n => { CostCenter = n.GetStringValue(); } }, {"division", n => { Division = n.GetStringValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/EntitlementManagementSchedule.cs b/src/generated/Models/EntitlementManagementSchedule.cs index e7c5d5cdd04..d26d737b64d 100644 --- a/src/generated/Models/EntitlementManagementSchedule.cs +++ b/src/generated/Models/EntitlementManagementSchedule.cs @@ -53,8 +53,8 @@ public static EntitlementManagementSchedule CreateFromDiscriminatorValue(IParseN /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"expiration", n => { Expiration = n.GetObjectValue(ExpirationPattern.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"expiration", n => { Expiration = n.GetObjectValue(ExpirationPattern.CreateFromDiscriminatorValue); } }, {"recurrence", n => { Recurrence = n.GetObjectValue(PatternedRecurrence.CreateFromDiscriminatorValue); } }, {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, }; diff --git a/src/generated/Models/EntitlementManagementSettings.cs b/src/generated/Models/EntitlementManagementSettings.cs index d9dc7a45f73..e35bf30fa4e 100644 --- a/src/generated/Models/EntitlementManagementSettings.cs +++ b/src/generated/Models/EntitlementManagementSettings.cs @@ -6,7 +6,7 @@ using System; namespace ApiSdk.Models { public class EntitlementManagementSettings : Entity, IParsable { - /// If externalUserLifecycleAction is blockSignInAndDelete, the duration, typically a number of days, after an external user is blocked from sign in before their account is deleted. + /// If externalUserLifecycleAction is blockSignInAndDelete, the duration, typically many days, after an external user is blocked from sign in before their account is deleted. public TimeSpan? DurationUntilExternalUserDeletedAfterBlocked { get; set; } /// Automatic action that the service should take when an external user's last access package assignment is removed. The possible values are: none, blockSignIn, blockSignInAndDelete, unknownFutureValue. public AccessPackageExternalUserLifecycleAction? ExternalUserLifecycleAction { get; set; } diff --git a/src/generated/Models/Entity.cs b/src/generated/Models/Entity.cs index 1549549117b..eb7cb1e943b 100644 --- a/src/generated/Models/Entity.cs +++ b/src/generated/Models/Entity.cs @@ -383,6 +383,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.macOSCompliancePolicy" => new MacOSCompliancePolicy(), "#microsoft.graph.macOSCustomConfiguration" => new MacOSCustomConfiguration(), "#microsoft.graph.macOSDeviceFeaturesConfiguration" => new MacOSDeviceFeaturesConfiguration(), + "#microsoft.graph.macOSDmgApp" => new MacOSDmgApp(), "#microsoft.graph.macOSGeneralDeviceConfiguration" => new MacOSGeneralDeviceConfiguration(), "#microsoft.graph.macOSLobApp" => new MacOSLobApp(), "#microsoft.graph.macOSMicrosoftDefenderApp" => new MacOSMicrosoftDefenderApp(), @@ -719,6 +720,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.userExperienceAnalyticsDeviceScores" => new UserExperienceAnalyticsDeviceScores(), "#microsoft.graph.userExperienceAnalyticsDeviceStartupHistory" => new UserExperienceAnalyticsDeviceStartupHistory(), "#microsoft.graph.userExperienceAnalyticsDeviceStartupProcess" => new UserExperienceAnalyticsDeviceStartupProcess(), + "#microsoft.graph.userExperienceAnalyticsDeviceStartupProcessPerformance" => new UserExperienceAnalyticsDeviceStartupProcessPerformance(), "#microsoft.graph.userExperienceAnalyticsMetric" => new UserExperienceAnalyticsMetric(), "#microsoft.graph.userExperienceAnalyticsMetricHistory" => new UserExperienceAnalyticsMetricHistory(), "#microsoft.graph.userExperienceAnalyticsModelScores" => new UserExperienceAnalyticsModelScores(), @@ -827,8 +829,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"id", n => { Id = n.GetStringValue(); } }, }; } /// diff --git a/src/generated/Models/ExcludeTarget.cs b/src/generated/Models/ExcludeTarget.cs index 6dbdfef88ff..6e7e979de02 100644 --- a/src/generated/Models/ExcludeTarget.cs +++ b/src/generated/Models/ExcludeTarget.cs @@ -45,8 +45,8 @@ public static ExcludeTarget CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"id", n => { Id = n.GetStringValue(); } }, {"targetType", n => { TargetType = n.GetEnumValue(); } }, }; } diff --git a/src/generated/Models/ExpirationPattern.cs b/src/generated/Models/ExpirationPattern.cs index f5059820798..88ebf50905f 100644 --- a/src/generated/Models/ExpirationPattern.cs +++ b/src/generated/Models/ExpirationPattern.cs @@ -41,9 +41,9 @@ public static ExpirationPattern CreateFromDiscriminatorValue(IParseNode parseNod /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"duration", n => { Duration = n.GetTimeSpanValue(); } }, {"endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"type", n => { Type = n.GetEnumValue(); } }, }; } diff --git a/src/generated/Models/ExpressionInputObject.cs b/src/generated/Models/ExpressionInputObject.cs index a2498886123..c14c7ba2430 100644 --- a/src/generated/Models/ExpressionInputObject.cs +++ b/src/generated/Models/ExpressionInputObject.cs @@ -51,8 +51,8 @@ public static ExpressionInputObject CreateFromDiscriminatorValue(IParseNode pars /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"definition", n => { Definition = n.GetObjectValue(ObjectDefinition.CreateFromDiscriminatorValue); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"definition", n => { Definition = n.GetObjectValue(ObjectDefinition.CreateFromDiscriminatorValue); } }, {"properties", n => { Properties = n.GetCollectionOfObjectValues(StringKeyObjectValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, }; } diff --git a/src/generated/Models/ExtensionSchemaProperty.cs b/src/generated/Models/ExtensionSchemaProperty.cs index 33813437729..7792079b625 100644 --- a/src/generated/Models/ExtensionSchemaProperty.cs +++ b/src/generated/Models/ExtensionSchemaProperty.cs @@ -8,7 +8,7 @@ namespace ApiSdk.Models { public class ExtensionSchemaProperty : IAdditionalDataHolder, IParsable { /// 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 name of the strongly-typed property defined as part of a schema extension. + /// The name of the strongly typed property defined as part of a schema extension. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { get; set; } @@ -24,7 +24,7 @@ public class ExtensionSchemaProperty : IAdditionalDataHolder, IParsable { #else public string OdataType { get; set; } #endif - /// The type of the property that is defined as part of a schema extension. Allowed values are Binary, Boolean, DateTime, Integer or String. See the table below for more details. + /// The type of the property that is defined as part of a schema extension. Allowed values are Binary, Boolean, DateTime, Integer or String. See the table in the Supported property data types section for more details. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Type { get; set; } @@ -51,8 +51,8 @@ public static ExtensionSchemaProperty CreateFromDiscriminatorValue(IParseNode pa /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"name", n => { Name = n.GetStringValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; } diff --git a/src/generated/Models/ExternalConnectors/Acl.cs b/src/generated/Models/ExternalConnectors/Acl.cs index 559578f808a..80782a35663 100644 --- a/src/generated/Models/ExternalConnectors/Acl.cs +++ b/src/generated/Models/ExternalConnectors/Acl.cs @@ -47,8 +47,8 @@ public static Acl CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"accessType", n => { AccessType = n.GetEnumValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"accessType", n => { AccessType = n.GetEnumValue(); } }, {"type", n => { Type = n.GetEnumValue(); } }, {"value", n => { Value = n.GetStringValue(); } }, }; diff --git a/src/generated/Models/ExternalConnectors/Configuration.cs b/src/generated/Models/ExternalConnectors/Configuration.cs index 2f11562d5b7..7a3147f5ebe 100644 --- a/src/generated/Models/ExternalConnectors/Configuration.cs +++ b/src/generated/Models/ExternalConnectors/Configuration.cs @@ -43,8 +43,8 @@ public static Configuration CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"authorizedAppIds", n => { AuthorizedAppIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"authorizedAppIds", n => { AuthorizedAppIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } /// diff --git a/src/generated/Models/ExternalConnectors/DisplayTemplate.cs b/src/generated/Models/ExternalConnectors/DisplayTemplate.cs index a1c224a1ddb..857790ed358 100644 --- a/src/generated/Models/ExternalConnectors/DisplayTemplate.cs +++ b/src/generated/Models/ExternalConnectors/DisplayTemplate.cs @@ -61,9 +61,9 @@ public static DisplayTemplate CreateFromDiscriminatorValue(IParseNode parseNode) /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, {"layout", n => { Layout = n.GetObjectValue(ApiSdk.Models.Json.CreateFromDiscriminatorValue); } }, - {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"priority", n => { Priority = n.GetIntValue(); } }, {"rules", n => { Rules = n.GetCollectionOfObjectValues(PropertyRule.CreateFromDiscriminatorValue)?.ToList(); } }, }; diff --git a/src/generated/Models/ExternalConnectors/External.cs b/src/generated/Models/ExternalConnectors/External.cs index 94ff9b76459..8268e4d4020 100644 --- a/src/generated/Models/ExternalConnectors/External.cs +++ b/src/generated/Models/ExternalConnectors/External.cs @@ -43,8 +43,8 @@ public static External CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"connections", n => { Connections = n.GetCollectionOfObjectValues(ExternalConnection.CreateFromDiscriminatorValue)?.ToList(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"connections", n => { Connections = n.GetCollectionOfObjectValues(ExternalConnection.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// diff --git a/src/generated/Models/ExternalConnectors/Property.cs b/src/generated/Models/ExternalConnectors/Property.cs index b51ad766969..daffd21643e 100644 --- a/src/generated/Models/ExternalConnectors/Property.cs +++ b/src/generated/Models/ExternalConnectors/Property.cs @@ -24,7 +24,7 @@ public class Property : IAdditionalDataHolder, IParsable { public bool? IsRetrievable { get; set; } /// Specifies if the property is searchable. Only properties of type String or StringCollection can be searchable. Non-searchable properties are not added to the search index. Optional. public bool? IsSearchable { get; set; } - /// Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue. Optional. + /// Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, unknownFutureValue. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Labels { get; set; } @@ -69,6 +69,7 @@ public static Property CreateFromDiscriminatorValue(IParseNode parseNode) { /// public IDictionary> GetFieldDeserializers() { return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"aliases", n => { Aliases = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"isQueryable", n => { IsQueryable = n.GetBoolValue(); } }, {"isRefinable", n => { IsRefinable = n.GetBoolValue(); } }, @@ -76,7 +77,6 @@ public IDictionary> GetFieldDeserializers() { {"isSearchable", n => { IsSearchable = n.GetBoolValue(); } }, {"labels", n => { Labels = n.GetCollectionOfEnumValues