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;
+ }
+ ///