Skip to content

Commit

Permalink
Update generated code. (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebkiage authored Sep 25, 2023
1 parent ad441dd commit 8b17807
Show file tree
Hide file tree
Showing 865 changed files with 11,468 additions and 1,440 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ public Command BuildDeleteCommand() {
return command;
}
/// <summary>
/// Retrieve a conversationMember from a chat.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0" />
/// Retrieve a conversationMember from a chat or channel.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0" />
/// </summary>
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<string>("--chat-id", description: "The unique identifier of chat") {
};
chatIdOption.IsRequired = true;
Expand Down Expand Up @@ -228,7 +228,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Retrieve a conversationMember from a chat.
/// Retrieve a conversationMember from a chat or channel.
/// </summary>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand Down Expand Up @@ -282,7 +282,7 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act
return requestInfo;
}
/// <summary>
/// Retrieve a conversationMember from a chat.
/// Retrieve a conversationMember from a chat or channel.
/// </summary>
public class ConversationMemberItemRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
Expand Down
8 changes: 4 additions & 4 deletions src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ public Command BuildCountNavCommand() {
return command;
}
/// <summary>
/// Send a new chatMessage in the specified chat. This API can&apos;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 <see href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0" />
/// Send a new chatMessage in the specified channel or a chat.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0" />
/// </summary>
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<string>("--chat-id", description: "The unique identifier of chat") {
};
chatIdOption.IsRequired = true;
Expand Down Expand Up @@ -278,7 +278,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Me
return requestInfo;
}
/// <summary>
/// Send a new chatMessage in the specified chat. This API can&apos;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.
/// </summary>
/// <param name="body">The request body</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public static AnswerPostRequestBody CreateFromDiscriminatorValue(IParseNode pars
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"acceptedModalities", n => { AcceptedModalities = n.GetCollectionOfEnumValues<Modality>()?.ToList(); } },
{"callbackUri", n => { CallbackUri = n.GetStringValue(); } },
{"callOptions", n => { CallOptions = n.GetObjectValue<IncomingCallOptions>(IncomingCallOptions.CreateFromDiscriminatorValue); } },
{"callbackUri", n => { CallbackUri = n.GetStringValue(); } },
{"mediaConfig", n => { MediaConfig = n.GetObjectValue<ApiSdk.Models.MediaConfig>(ApiSdk.Models.MediaConfig.CreateFromDiscriminatorValue); } },
{"participantCapacity", n => { ParticipantCapacity = n.GetIntValue(); } },
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public static TransferPostRequestBody CreateFromDiscriminatorValue(IParseNode pa
/// </summary>
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
return new Dictionary<string, Action<IParseNode>> {
{"transferee", n => { Transferee = n.GetObjectValue<ParticipantInfo>(ParticipantInfo.CreateFromDiscriminatorValue); } },
{"transferTarget", n => { TransferTarget = n.GetObjectValue<InvitationParticipantInfo>(InvitationParticipantInfo.CreateFromDiscriminatorValue); } },
{"transferee", n => { Transferee = n.GetObjectValue<ParticipantInfo>(ParticipantInfo.CreateFromDiscriminatorValue); } },
};
}
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public Command BuildDefaultManagedAppProtectionsNavCommand() {
}
/// <summary>
/// Read properties and relationships of the deviceAppManagement object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-get?view=graph-rest-1.0" />
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-get?view=graph-rest-1.0" />
/// </summary>
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<string[]>("--select", description: "Select properties to be returned") {
Arity = ArgumentArity.ZeroOrMore
};
Expand Down Expand Up @@ -352,8 +352,22 @@ public Command BuildMobileAppsNavCommand() {
var nonExecCommands = new List<Command>();
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ public Command BuildDeleteCommand() {
return command;
}
/// <summary>
/// Read properties and relationships of the managedAppConfiguration object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-get?view=graph-rest-1.0" />
/// Read properties and relationships of the managedAppProtection object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-get?view=graph-rest-1.0" />
/// </summary>
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<string>("--managed-app-policy-id", description: "The unique identifier of managedAppPolicy") {
};
managedAppPolicyIdOption.IsRequired = true;
Expand Down Expand Up @@ -225,7 +225,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Read properties and relationships of the managedAppConfiguration object.
/// Read properties and relationships of the managedAppProtection object.
/// </summary>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand Down Expand Up @@ -279,7 +279,7 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio
return requestInfo;
}
/// <summary>
/// Read properties and relationships of the managedAppConfiguration object.
/// Read properties and relationships of the managedAppProtection object.
/// </summary>
public class ManagedAppPolicyItemRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppPolicies.Item.TargetApps {
public class TargetAppsRequestBuilder : BaseCliRequestBuilder {
/// <summary>
/// Not yet documented
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0" />
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0" />
/// </summary>
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<string>("--managed-app-policy-id", description: "The unique identifier of managedAppPolicy") {
};
managedAppPolicyIdOption.IsRequired = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ public Command BuildCreateCommand() {
return command;
}
/// <summary>
/// List properties and relationships of the managedAppConfiguration objects.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0" />
/// List properties and relationships of the managedAppPolicy objects.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0" />
/// </summary>
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<int?>("--top", description: "Show only the first n items") {
};
topOption.IsRequired = false;
Expand Down Expand Up @@ -218,7 +218,7 @@ public ManagedAppPoliciesRequestBuilder(Dictionary<string, object> pathParameter
public ManagedAppPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
}
/// <summary>
/// List properties and relationships of the managedAppConfiguration objects.
/// List properties and relationships of the managedAppPolicy objects.
/// </summary>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand Down Expand Up @@ -272,7 +272,7 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action
return requestInfo;
}
/// <summary>
/// List properties and relationships of the managedAppConfiguration objects.
/// List properties and relationships of the managedAppPolicy objects.
/// </summary>
public class ManagedAppPoliciesRequestBuilderGetQueryParameters {
/// <summary>Include count of items</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.AppliedPolicie
public class TargetAppsRequestBuilder : BaseCliRequestBuilder {
/// <summary>
/// Not yet documented
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0" />
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0" />
/// </summary>
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<string>("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") {
};
managedAppRegistrationIdOption.IsRequired = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ namespace ApiSdk.DeviceAppManagement.ManagedAppRegistrations.Item.IntendedPolici
public class TargetAppsRequestBuilder : BaseCliRequestBuilder {
/// <summary>
/// Not yet documented
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0" />
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0" />
/// </summary>
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<string>("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") {
};
managedAppRegistrationIdOption.IsRequired = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public Command BuildDeleteCommand() {
return command;
}
/// <summary>
/// Read properties and relationships of the iosManagedAppRegistration object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0" />
/// Read properties and relationships of the managedAppRegistration object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0" />
/// </summary>
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<string>("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") {
};
managedAppRegistrationIdOption.IsRequired = true;
Expand Down Expand Up @@ -287,7 +287,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Read properties and relationships of the iosManagedAppRegistration object.
/// Read properties and relationships of the managedAppRegistration object.
/// </summary>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand Down Expand Up @@ -341,7 +341,7 @@ public RequestInformation ToPatchRequestInformation(ManagedAppRegistration body,
return requestInfo;
}
/// <summary>
/// Read properties and relationships of the iosManagedAppRegistration object.
/// Read properties and relationships of the managedAppRegistration object.
/// </summary>
public class ManagedAppRegistrationItemRequestBuilderGetQueryParameters {
/// <summary>Expand related entities</summary>
Expand Down
Loading

0 comments on commit 8b17807

Please sign in to comment.