From 53d8ab1027bfd08c775902d2db7e2d45e1d8426e Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 12 Dec 2023 10:33:39 +0000 Subject: [PATCH] Update generated files with build 130446 --- src/generated/Admin/AdminRequestBuilder.cs | 2 +- .../Admin/People/PeopleRequestBuilder.cs | 78 ++---- .../People/Pronouns/PronounsRequestBuilder.cs | 183 ++++++++++++++ .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 10 +- .../Invite/InviteRequestBuilder.cs | 8 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../ManagedAppPolicyItemRequestBuilder.cs | 10 +- .../ManagedAppPoliciesRequestBuilder.cs | 10 +- .../ManagedAppRegistrationsRequestBuilder.cs | 10 +- .../ManagedAppStatusesRequestBuilder.cs | 10 +- ...anagedEBookAssignmentItemRequestBuilder.cs | 10 +- .../Item/ManagedEBookItemRequestBuilder.cs | 10 +- .../ManagedEBooksRequestBuilder.cs | 10 +- ...obileAppConfigurationItemRequestBuilder.cs | 10 +- .../Item/MobileAppItemRequestBuilder.cs | 26 +- .../MobileApps/MobileAppsRequestBuilder.cs | 18 +- .../DeviceCompliancePoliciesRequestBuilder.cs | 8 +- ...eviceCompliancePolicyItemRequestBuilder.cs | 26 +- .../DeviceConfigurationsRequestBuilder.cs | 18 +- .../DeviceConfigurationItemRequestBuilder.cs | 26 +- ...eEnrollmentConfigurationsRequestBuilder.cs | 18 +- ...rollmentConfigurationItemRequestBuilder.cs | 16 +- .../DeviceManagementRequestBuilder.cs | 26 +- .../Item/RoleDefinitionItemRequestBuilder.cs | 8 +- .../VirtualEndpointRequestBuilder.cs | 224 ++++++++++++++++++ .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../CreateLink/CreateLinkPostRequestBody.cs | 15 ++ .../RetentionLabelRequestBuilder.cs | 8 +- .../Workbook/Names/NamesRequestBuilder.cs | 4 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 4 +- .../Workbook/Tables/TablesRequestBuilder.cs | 4 +- .../Item/Charts/ChartsRequestBuilder.cs | 4 +- .../Item/Points/PointsRequestBuilder.cs | 10 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 4 +- .../CreateLink/CreateLinkPostRequestBody.cs | 104 ++++++++ .../CreateLink/CreateLinkRequestBuilder.cs | 108 +++++++++ .../Items/Item/ListItemItemRequestBuilder.cs | 16 ++ .../Item/List/Items/ItemsRequestBuilder.cs | 1 + src/generated/GraphClient.cs | 1 + .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/ConversationItemRequestBuilder.cs | 10 +- .../Threads/Item/Posts/PostsRequestBuilder.cs | 10 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../CreateLink/CreateLinkPostRequestBody.cs | 104 ++++++++ .../CreateLink/CreateLinkRequestBuilder.cs | 120 ++++++++++ .../Items/Item/ListItemItemRequestBuilder.cs | 16 ++ .../Lists/Item/Items/ItemsRequestBuilder.cs | 1 + .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Item/Members/MembersRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Members/MembersRequestBuilder.cs | 8 +- .../ConversationThreadItemRequestBuilder.cs | 4 +- .../Threads/Item/Posts/PostsRequestBuilder.cs | 10 +- .../Item/NamedLocationItemRequestBuilder.cs | 8 +- .../Definitions/DefinitionsRequestBuilder.cs | 2 +- ...iewScheduleDefinitionItemRequestBuilder.cs | 19 +- .../Item/AccessPackageItemRequestBuilder.cs | 10 +- .../Item/History/HistoryRequestBuilder.cs | 10 +- .../AppliedConditionalAccessPolicyResult.cs | 8 + src/generated/Models/ConnectedOrganization.cs | 2 +- src/generated/Models/DeviceManagement.cs | 10 + src/generated/Models/Entity.cs | 2 + .../CustomTaskExtensionCalloutData.cs | 8 +- .../Models/IdentityGovernance/Parameter.cs | 6 +- .../TaskProcessingResult.cs | 8 +- .../Models/IdentityGovernance/TaskReport.cs | 16 +- src/generated/Models/PeopleAdminSettings.cs | 10 + src/generated/Models/PronounsSettings.cs | 37 +++ .../Models/Security/ContainerEvidence.cs | 8 +- src/generated/Models/UnifiedRoleAssignment.cs | 10 +- src/generated/Models/VirtualEndpoint.cs | 33 +++ .../Item/OrganizationItemRequestBuilder.cs | 10 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../OrganizationRequestBuilder.cs | 10 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../RoleDefinitionRequestBuilder.cs | 8 +- .../RoleAssignmentsRequestBuilder.cs | 8 +- .../RoleDefinitionRequestBuilder.cs | 8 +- .../RoleAssignmentsRequestBuilder.cs | 8 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../CreateLink/CreateLinkPostRequestBody.cs | 104 ++++++++ .../CreateLink/CreateLinkRequestBuilder.cs | 108 +++++++++ .../Items/Item/ListItemItemRequestBuilder.cs | 16 ++ .../Item/List/Items/ItemsRequestBuilder.cs | 1 + .../CreateLink/CreateLinkPostRequestBody.cs | 104 ++++++++ .../CreateLink/CreateLinkRequestBuilder.cs | 114 +++++++++ .../Items/Item/ListItemItemRequestBuilder.cs | 16 ++ .../Lists/Item/Items/ItemsRequestBuilder.cs | 1 + .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Item/Members/MembersRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Members/MembersRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Item/Members/MembersRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 10 +- .../Users/Item/Events/EventsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Item/Members/MembersRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Members/MembersRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/MailFolderItemRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/MessageItemRequestBuilder.cs | 4 +- .../Item/Value/ContentRequestBuilder.cs | 4 +- .../Item/Messages/MessagesRequestBuilder.cs | 4 +- .../Item/Presence/PresenceRequestBuilder.cs | 10 +- .../Item/Restore/RestoreRequestBuilder.cs | 6 +- .../Users/Item/UserItemRequestBuilder.cs | 26 +- src/generated/Users/UsersRequestBuilder.cs | 4 +- src/generated/kiota-lock.json | 4 +- 142 files changed, 1990 insertions(+), 560 deletions(-) create mode 100644 src/generated/Admin/People/Pronouns/PronounsRequestBuilder.cs create mode 100644 src/generated/DeviceManagement/VirtualEndpoint/VirtualEndpointRequestBuilder.cs create mode 100644 src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs create mode 100644 src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs create mode 100644 src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs create mode 100644 src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs create mode 100644 src/generated/Models/PronounsSettings.cs create mode 100644 src/generated/Models/VirtualEndpoint.cs create mode 100644 src/generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs create mode 100644 src/generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs create mode 100644 src/generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs create mode 100644 src/generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs diff --git a/src/generated/Admin/AdminRequestBuilder.cs b/src/generated/Admin/AdminRequestBuilder.cs index 3895573f6f9..7882d7710e7 100644 --- a/src/generated/Admin/AdminRequestBuilder.cs +++ b/src/generated/Admin/AdminRequestBuilder.cs @@ -143,8 +143,8 @@ public Command BuildPeopleNavCommand() { var execCommands = new List(); var nonExecCommands = new List(); execCommands.Add(builder.BuildGetCommand()); - execCommands.Add(builder.BuildPatchCommand()); nonExecCommands.Add(builder.BuildProfileCardPropertiesNavCommand()); + nonExecCommands.Add(builder.BuildPronounsNavCommand()); foreach (var cmd in execCommands) { command.AddCommand(cmd); diff --git a/src/generated/Admin/People/PeopleRequestBuilder.cs b/src/generated/Admin/People/PeopleRequestBuilder.cs index cf52a81bc30..f09c22b0ab0 100644 --- a/src/generated/Admin/People/PeopleRequestBuilder.cs +++ b/src/generated/Admin/People/PeopleRequestBuilder.cs @@ -1,5 +1,6 @@ // using ApiSdk.Admin.People.ProfileCardProperties; +using ApiSdk.Admin.People.Pronouns; using ApiSdk.Models.ODataErrors; using ApiSdk.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -66,49 +67,6 @@ public Command BuildGetCommand() { return command; } /// - /// Update the navigation property people in admin - /// - public Command BuildPatchCommand() { - var command = new Command("patch"); - command.Description = "Update the navigation property people in admin"; - var bodyOption = new Option("--body", description: "The request body") { - }; - bodyOption.IsRequired = true; - command.AddOption(bodyOption); - var outputOption = new Option("--output", () => FormatterType.JSON); - command.AddOption(outputOption); - var queryOption = new Option("--query"); - command.AddOption(queryOption); - command.SetHandler(async (invocationContext) => { - var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; - var output = invocationContext.ParseResult.GetValueForOption(outputOption); - var query = invocationContext.ParseResult.GetValueForOption(queryOption); - IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); - IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); - var cancellationToken = invocationContext.GetCancellationToken(); - var reqAdapter = invocationContext.GetRequestAdapter(); - using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); - var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); - var model = parseNode.GetObjectValue(PeopleAdminSettings.CreateFromDiscriminatorValue); - if (model is null) { - Console.Error.WriteLine("No model data to send."); - return; - } - var requestInfo = ToPatchRequestInformation(model, q => { - }); - requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); - var errorMapping = new Dictionary> { - {"4XX", ODataError.CreateFromDiscriminatorValue}, - {"5XX", ODataError.CreateFromDiscriminatorValue}, - }; - var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; - response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; - var formatter = outputFormatterFactory.GetFormatter(output); - await formatter.WriteOutputAsync(response, cancellationToken); - }); - return command; - } - /// /// Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. /// public Command BuildProfileCardPropertiesNavCommand() { @@ -134,6 +92,22 @@ public Command BuildProfileCardPropertiesNavCommand() { return command; } /// + /// Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. + /// + public Command BuildPronounsNavCommand() { + var command = new Command("pronouns"); + command.Description = "Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity."; + var builder = new PronounsRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildGetCommand()); + execCommands.Add(builder.BuildPatchCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Instantiates a new PeopleRequestBuilder and sets the default values. /// /// Path parameters for the request @@ -162,24 +136,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property people in admin - /// - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(PeopleAdminSettings body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(PeopleAdminSettings body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// /// Retrieve the properties and relationships of a peopleAdminSettings object. /// public class PeopleRequestBuilderGetQueryParameters { diff --git a/src/generated/Admin/People/Pronouns/PronounsRequestBuilder.cs b/src/generated/Admin/People/Pronouns/PronounsRequestBuilder.cs new file mode 100644 index 00000000000..ac4a074fe84 --- /dev/null +++ b/src/generated/Admin/People/Pronouns/PronounsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +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.Admin.People.Pronouns { + /// + /// Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity. + /// + public class PronounsRequestBuilder : BaseCliRequestBuilder { + /// + /// Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + /// Find more info here + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/peopleadminsettings-list-pronouns?view=graph-rest-1.0"; + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + /// Find more info here + /// + public Command BuildPatchCommand() { + var command = new Command("patch"); + command.Description = "Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/pronounssettings-update?view=graph-rest-1.0"; + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); + var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); + var model = parseNode.GetObjectValue(PronounsSettings.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new PronounsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public PronounsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/people/pronouns{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new PronounsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public PronounsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people/pronouns{?%24select,%24expand}", rawUrl) { + } + /// + /// Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(PronounsSettings body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PronounsSettings body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API. + /// + public class PronounsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + } +} diff --git a/src/generated/Applications/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Applications/Item/Restore/RestoreRequestBuilder.cs index fe0337c876a..0f90d9ffde9 100644 --- a/src/generated/Applications/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Applications/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Applications.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var applicationIdOption = new Option("--application-id", description: "The unique identifier of application") { }; applicationIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/applications/{application%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 7b4e7b5c4a0..ef1cded6e80 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; @@ -200,7 +200,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 @@ -234,7 +234,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/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index 52c9bdd789d..005402bd80f 100644 --- a/src/generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Communications.Calls.Item.Participants.Invite { /// public class InviteRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. - /// Find more info here + /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. \n\nFind more info here:\n https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0"; + command.Description = "Invite participants to the active call. For more information about how to handle operations, see commsOperation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0"; var callIdOption = new Option("--call-id", description: "The unique identifier of call") { }; callIdOption.IsRequired = true; @@ -82,7 +82,7 @@ public InviteRequestBuilder(Dictionary pathParameters) : base("{ public InviteRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl) { } /// - /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Contacts/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Contacts/Item/Restore/RestoreRequestBuilder.cs index 5d2c265bdb5..5f6c61ef186 100644 --- a/src/generated/Contacts/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Contacts/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Contacts.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var orgContactIdOption = new Option("--org-contact-id", description: "The unique identifier of orgContact") { }; orgContactIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/contacts/{orgContact%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Contracts/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Contracts/Item/Restore/RestoreRequestBuilder.cs index d15e6b5d23a..95d8603470f 100644 --- a/src/generated/Contracts/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Contracts/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Contracts.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var contractIdOption = new Option("--contract-id", description: "The unique identifier of contract") { }; contractIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/contracts/{contract%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index 397135d1354..43c63ccf78d 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 windowsInformationProtection 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 windowsInformationProtection object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-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; @@ -197,7 +197,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windowsInformationProtection 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 @@ -231,7 +231,7 @@ public RequestInformation ToPatchRequestInformation(ManagedAppPolicy body, Actio return requestInfo; } /// - /// Read properties and relationships of the windowsInformationProtection object. + /// Read properties and relationships of the managedAppProtection object. /// public class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs index 1578bfdae03..4226c4eadff 100644 --- a/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs @@ -93,12 +93,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; @@ -198,7 +198,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 @@ -232,7 +232,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/ManagedAppRegistrationsRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs index 54a99b542f8..116d139f26d 100644 --- a/src/generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs @@ -112,12 +112,12 @@ public Command BuildGetUserIdsWithFlaggedAppRegistrationNavCommand() { return command; } /// - /// List properties and relationships of the androidManagedAppRegistration objects. - /// Find more info here + /// List properties and relationships of the managedAppRegistration objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the androidManagedAppRegistration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the managedAppRegistration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -217,7 +217,7 @@ public ManagedAppRegistrationsRequestBuilder(Dictionary pathPara public ManagedAppRegistrationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the androidManagedAppRegistration objects. + /// List properties and relationships of the managedAppRegistration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -251,7 +251,7 @@ public RequestInformation ToPostRequestInformation(ManagedAppRegistration body, return requestInfo; } /// - /// List properties and relationships of the androidManagedAppRegistration objects. + /// List properties and relationships of the managedAppRegistration objects. /// public class ManagedAppRegistrationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs index 811c9887b75..f8f6825db11 100644 --- a/src/generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedAppStatuses/ManagedAppStatusesRequestBuilder.cs @@ -91,12 +91,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the managedAppStatusRaw objects. - /// Find more info here + /// List properties and relationships of the managedAppStatus objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the managedAppStatusRaw objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappstatusraw-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the managedAppStatus objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -196,7 +196,7 @@ public ManagedAppStatusesRequestBuilder(Dictionary pathParameter public ManagedAppStatusesRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedAppStatuses{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedAppStatusRaw objects. + /// List properties and relationships of the managedAppStatus objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public RequestInformation ToPostRequestInformation(ManagedAppStatus body, Action return requestInfo; } /// - /// List properties and relationships of the managedAppStatusRaw objects. + /// List properties and relationships of the managedAppStatus objects. /// public class ManagedAppStatusesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs index 34c43a6fa20..ab90b93af84 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs @@ -60,12 +60,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Read properties and relationships of the managedEBookAssignment object. - /// Find more info here + /// Read properties and relationships of the iosVppEBookAssignment object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - 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"; + 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"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -201,7 +201,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedEBookAssignment object. + /// Read properties and relationships of the iosVppEBookAssignment object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -235,7 +235,7 @@ public RequestInformation ToPatchRequestInformation(ManagedEBookAssignment body, return requestInfo; } /// - /// Read properties and relationships of the managedEBookAssignment object. + /// Read properties and relationships of the iosVppEBookAssignment 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 89d4ce8f711..65d97c142a8 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 iosVppEBook object. - /// Find more info here + /// Read properties and relationships of the managedEBook object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the iosVppEBook object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebook-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the managedEBook object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebook-get?view=graph-rest-1.0"; var managedEBookIdOption = new Option("--managed-ebook-id", description: "The unique identifier of managedEBook") { }; managedEBookIdOption.IsRequired = true; @@ -295,7 +295,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -329,7 +329,7 @@ public RequestInformation ToPatchRequestInformation(ManagedEBook body, Action - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// public class ManagedEBookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs b/src/generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs index f6002dcedbc..3faaaa979d0 100644 --- a/src/generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs @@ -98,12 +98,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the iosVppEBook objects. - /// Find more info here + /// List properties and relationships of the managedEBook objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the iosVppEBook objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebook-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the managedEBook objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebook-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -203,7 +203,7 @@ public ManagedEBooksRequestBuilder(Dictionary pathParameters) : public ManagedEBooksRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/managedEBooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the iosVppEBook objects. + /// List properties and relationships of the managedEBook objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -237,7 +237,7 @@ public RequestInformation ToPostRequestInformation(ManagedEBook body, Action - /// List properties and relationships of the iosVppEBook objects. + /// List properties and relationships of the managedEBook objects. /// public class ManagedEBooksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs index a46d1c0adcb..93a178cf995 100644 --- a/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs @@ -142,12 +142,12 @@ public Command BuildDeviceStatusSummaryNavCommand() { return command; } /// - /// Read properties and relationships of the iosMobileAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the iosMobileAppConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the managedDeviceMobileAppConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-get?view=graph-rest-1.0"; var managedDeviceMobileAppConfigurationIdOption = new Option("--managed-device-mobile-app-configuration-id", description: "The unique identifier of managedDeviceMobileAppConfiguration") { }; managedDeviceMobileAppConfigurationIdOption.IsRequired = true; @@ -313,7 +313,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -347,7 +347,7 @@ public RequestInformation ToPatchRequestInformation(ManagedDeviceMobileAppConfig return requestInfo; } /// - /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// public class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs index 00d322ff2c6..509dd97fe03 100644 --- a/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -103,12 +103,12 @@ public Command BuildCategoriesNavCommand() { return command; } /// - /// Deletes a windowsMicrosoftEdgeApp. - /// Find more info here + /// Deletes a macOSOfficeSuiteApp. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a windowsMicrosoftEdgeApp.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-delete?view=graph-rest-1.0"; + command.Description = "Deletes a macOSOfficeSuiteApp.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-macosofficesuiteapp-delete?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -137,12 +137,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Read properties and relationships of the iosStoreApp object. - /// Find more info here + /// Read properties and relationships of the managedAndroidStoreApp object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the iosStoreApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-iosstoreapp-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the managedAndroidStoreApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-managedandroidstoreapp-get?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -552,12 +552,12 @@ public Command BuildGraphWindowsWebAppByIdNavCommand() { return command; } /// - /// Update the properties of a managedAndroidLobApp object. - /// Find more info here + /// Update the properties of a macOSLobApp object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a managedAndroidLobApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-managedandroidlobapp-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a macOSLobApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-macoslobapp-update?view=graph-rest-1.0"; var mobileAppIdOption = new Option("--mobile-app-id", description: "The unique identifier of mobileApp") { }; mobileAppIdOption.IsRequired = true; @@ -614,7 +614,7 @@ public MobileAppItemRequestBuilder(Dictionary pathParameters) : public MobileAppItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a windowsMicrosoftEdgeApp. + /// Deletes a macOSOfficeSuiteApp. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -630,7 +630,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosStoreApp object. + /// Read properties and relationships of the managedAndroidStoreApp object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -646,7 +646,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a managedAndroidLobApp object. + /// Update the properties of a macOSLobApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -664,7 +664,7 @@ public RequestInformation ToPatchRequestInformation(MobileApp body, Action - /// Read properties and relationships of the iosStoreApp object. + /// Read properties and relationships of the managedAndroidStoreApp object. /// public class MobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs b/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs index 5ade30662ad..1e4d1f0c271 100644 --- a/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -84,12 +84,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new webApp object. - /// Find more info here + /// Create a new windowsMicrosoftEdgeApp object. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new webApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-webapp-create?view=graph-rest-1.0"; + command.Description = "Create a new windowsMicrosoftEdgeApp object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -464,12 +464,12 @@ public Command BuildGraphWindowsWebAppNavCommand() { return command; } /// - /// List properties and relationships of the managedIOSStoreApp objects. - /// Find more info here + /// List properties and relationships of the androidStoreApp objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the managedIOSStoreApp objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-managediosstoreapp-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the androidStoreApp objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-androidstoreapp-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -569,7 +569,7 @@ public MobileAppsRequestBuilder(Dictionary pathParameters) : bas public MobileAppsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppManagement/mobileApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedIOSStoreApp objects. + /// List properties and relationships of the androidStoreApp objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -585,7 +585,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new webApp object. + /// Create a new windowsMicrosoftEdgeApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -603,7 +603,7 @@ public RequestInformation ToPostRequestInformation(MobileApp body, Action - /// List properties and relationships of the managedIOSStoreApp objects. + /// List properties and relationships of the androidStoreApp objects. /// public class MobileAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs index bde671e939f..8db239999c9 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -58,12 +58,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new iosCompliancePolicy object. - /// Find more info here + /// Create a new windows81CompliancePolicy object. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new iosCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-create?view=graph-rest-1.0"; + command.Description = "Create a new windows81CompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -223,7 +223,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new iosCompliancePolicy object. + /// Create a new windows81CompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index 563f3ccea4a..db1aa2fc5be 100644 --- a/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs @@ -69,12 +69,12 @@ public Command BuildAssignNavCommand() { return command; } /// - /// Deletes a iosCompliancePolicy. - /// Find more info here + /// Deletes a macOSCompliancePolicy. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a iosCompliancePolicy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscompliancepolicy-delete?view=graph-rest-1.0"; + command.Description = "Deletes a macOSCompliancePolicy.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-delete?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -170,12 +170,12 @@ public Command BuildDeviceStatusOverviewNavCommand() { return command; } /// - /// Read properties and relationships of the windows10MobileCompliancePolicy object. - /// Find more info here + /// Read properties and relationships of the windows81CompliancePolicy object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the windows10MobileCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the windows81CompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows81compliancepolicy-get?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -221,12 +221,12 @@ public Command BuildGetCommand() { return command; } /// - /// Update the properties of a macOSCompliancePolicy object. - /// Find more info here + /// Update the properties of a androidCompliancePolicy object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a macOSCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-macoscompliancepolicy-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a androidCompliancePolicy object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcompliancepolicy-update?view=graph-rest-1.0"; var deviceCompliancePolicyIdOption = new Option("--device-compliance-policy-id", description: "The unique identifier of deviceCompliancePolicy") { }; deviceCompliancePolicyIdOption.IsRequired = true; @@ -365,7 +365,7 @@ public DeviceCompliancePolicyItemRequestBuilder(Dictionary pathP public DeviceCompliancePolicyItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a iosCompliancePolicy. + /// Deletes a macOSCompliancePolicy. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -381,7 +381,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windows10MobileCompliancePolicy object. + /// Read properties and relationships of the windows81CompliancePolicy object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -397,7 +397,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a macOSCompliancePolicy object. + /// Update the properties of a androidCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -415,7 +415,7 @@ public RequestInformation ToPatchRequestInformation(DeviceCompliancePolicy body, return requestInfo; } /// - /// Read properties and relationships of the windows10MobileCompliancePolicy object. + /// Read properties and relationships of the windows81CompliancePolicy object. /// public class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index 7c1b926dc87..017e7fed032 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs @@ -57,12 +57,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new windows10EnterpriseModernAppManagementConfiguration object. - /// Find more info here + /// Create a new windowsPhone81GeneralConfiguration object. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new windows10EnterpriseModernAppManagementConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10enterprisemodernappmanagementconfiguration-create?view=graph-rest-1.0"; + command.Description = "Create a new windowsPhone81GeneralConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsphone81generalconfiguration-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -101,12 +101,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the windows10CustomConfiguration objects. - /// Find more info here + /// List properties and relationships of the androidCustomConfiguration objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the windows10CustomConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10customconfiguration-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the androidCustomConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcustomconfiguration-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -206,7 +206,7 @@ public DeviceConfigurationsRequestBuilder(Dictionary pathParamet public DeviceConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windows10CustomConfiguration objects. + /// List properties and relationships of the androidCustomConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -222,7 +222,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new windows10EnterpriseModernAppManagementConfiguration object. + /// Create a new windowsPhone81GeneralConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -240,7 +240,7 @@ public RequestInformation ToPostRequestInformation(DeviceConfiguration body, Act return requestInfo; } /// - /// List properties and relationships of the windows10CustomConfiguration objects. + /// List properties and relationships of the androidCustomConfiguration objects. /// public class DeviceConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs index 8517b4ef221..2c8c16513f3 100644 --- a/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs @@ -68,12 +68,12 @@ public Command BuildAssignNavCommand() { return command; } /// - /// Deletes a androidCustomConfiguration. - /// Find more info here + /// Deletes a iosGeneralDeviceConfiguration. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a androidCustomConfiguration.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-androidcustomconfiguration-delete?view=graph-rest-1.0"; + command.Description = "Deletes a iosGeneralDeviceConfiguration.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-delete?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -169,12 +169,12 @@ public Command BuildDeviceStatusOverviewNavCommand() { return command; } /// - /// Read properties and relationships of the iosGeneralDeviceConfiguration object. - /// Find more info here + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the iosGeneralDeviceConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-iosgeneraldeviceconfiguration-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the appleDeviceFeaturesConfigurationBase object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-appledevicefeaturesconfigurationbase-get?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -235,12 +235,12 @@ public Command BuildGetOmaSettingPlainTextValueWithSecretReferenceValueIdRbComma return command; } /// - /// Update the properties of a iosCustomConfiguration object. - /// Find more info here + /// Update the properties of a windowsUpdateForBusinessConfiguration object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a iosCustomConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-ioscustomconfiguration-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a windowsUpdateForBusinessConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-deviceconfig-windowsupdateforbusinessconfiguration-update?view=graph-rest-1.0"; var deviceConfigurationIdOption = new Option("--device-configuration-id", description: "The unique identifier of deviceConfiguration") { }; deviceConfigurationIdOption.IsRequired = true; @@ -339,7 +339,7 @@ public DeviceConfigurationItemRequestBuilder(Dictionary pathPara public DeviceConfigurationItemRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a androidCustomConfiguration. + /// Deletes a iosGeneralDeviceConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -355,7 +355,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosGeneralDeviceConfiguration object. + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -371,7 +371,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a iosCustomConfiguration object. + /// Update the properties of a windowsUpdateForBusinessConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -389,7 +389,7 @@ public RequestInformation ToPatchRequestInformation(DeviceConfiguration body, Ac return requestInfo; } /// - /// Read properties and relationships of the iosGeneralDeviceConfiguration object. + /// Read properties and relationships of the appleDeviceFeaturesConfigurationBase object. /// public class DeviceConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs index a8e6537d332..c6760447eed 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs @@ -52,12 +52,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Create a new deviceEnrollmentLimitConfiguration object. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create a new deviceEnrollmentPlatformRestrictionsConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-create?view=graph-rest-1.0"; + command.Description = "Create a new deviceEnrollmentLimitConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-create?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -96,12 +96,12 @@ public Command BuildCreateCommand() { return command; } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. - /// Find more info here + /// List properties and relationships of the deviceEnrollmentConfiguration objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the deviceEnrollmentConfiguration objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentconfiguration-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -201,7 +201,7 @@ public DeviceEnrollmentConfigurationsRequestBuilder(Dictionary p public DeviceEnrollmentConfigurationsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + /// List properties and relationships of the deviceEnrollmentConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -217,7 +217,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Create a new deviceEnrollmentLimitConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -235,7 +235,7 @@ public RequestInformation ToPostRequestInformation(DeviceEnrollmentConfiguration return requestInfo; } /// - /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + /// List properties and relationships of the deviceEnrollmentConfiguration objects. /// public class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs index 60a270470ed..faa9aa1eefe 100644 --- a/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs @@ -63,12 +63,12 @@ public Command BuildAssignNavCommand() { return command; } /// - /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. - /// Find more info here + /// Deletes a deviceEnrollmentLimitConfiguration. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-delete?view=graph-rest-1.0"; + command.Description = "Deletes a deviceEnrollmentLimitConfiguration.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-delete?view=graph-rest-1.0"; var deviceEnrollmentConfigurationIdOption = new Option("--device-enrollment-configuration-id", description: "The unique identifier of deviceEnrollmentConfiguration") { }; deviceEnrollmentConfigurationIdOption.IsRequired = true; @@ -148,12 +148,12 @@ public Command BuildGetCommand() { return command; } /// - /// Update the properties of a deviceEnrollmentLimitConfiguration object. - /// Find more info here + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a deviceEnrollmentLimitConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-update?view=graph-rest-1.0"; var deviceEnrollmentConfigurationIdOption = new Option("--device-enrollment-configuration-id", description: "The unique identifier of deviceEnrollmentConfiguration") { }; deviceEnrollmentConfigurationIdOption.IsRequired = true; @@ -225,7 +225,7 @@ public DeviceEnrollmentConfigurationItemRequestBuilder(Dictionary - /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + /// Deletes a deviceEnrollmentLimitConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -257,7 +257,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceEnrollmentLimitConfiguration object. + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/generated/DeviceManagement/DeviceManagementRequestBuilder.cs index 96dca406a6f..7de69b25735 100644 --- a/src/generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -55,6 +55,7 @@ using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereMetrics; using ApiSdk.DeviceManagement.UserExperienceAnalyticsWorkFromAnywhereModelPerformance; using ApiSdk.DeviceManagement.VerifyWindowsEnrollmentAutoDiscoveryWithDomainName; +using ApiSdk.DeviceManagement.VirtualEndpoint; using ApiSdk.DeviceManagement.WindowsAutopilotDeviceIdentities; using ApiSdk.DeviceManagement.WindowsInformationProtectionAppLearningSummaries; using ApiSdk.DeviceManagement.WindowsInformationProtectionNetworkLearningSummaries; @@ -407,11 +408,11 @@ public Command BuildExchangeConnectorsNavCommand() { } /// /// Read properties and relationships of the deviceManagement object. - /// Find more info here + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the deviceManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-devicemanagement-get?view=graph-rest-1.0"; + command.Description = "Read properties and relationships of the deviceManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-auditing-devicemanagement-get?view=graph-rest-1.0"; var selectOption = new Option("--select", description: "Select properties to be returned") { Arity = ArgumentArity.ZeroOrMore }; @@ -633,11 +634,11 @@ public Command BuildNotificationMessageTemplatesNavCommand() { } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a deviceManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-gpanalyticsservice-devicemanagement-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a deviceManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-companyterms-devicemanagement-update?view=graph-rest-1.0"; var bodyOption = new Option("--body", description: "The request body") { }; bodyOption.IsRequired = true; @@ -1495,6 +1496,23 @@ public Command BuildVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRbCommand( return command; } /// + /// Provides operations to manage the virtualEndpoint property of the microsoft.graph.deviceManagement entity. + /// + public Command BuildVirtualEndpointNavCommand() { + var command = new Command("virtual-endpoint"); + command.Description = "Provides operations to manage the virtualEndpoint property of the microsoft.graph.deviceManagement entity."; + var builder = new VirtualEndpointRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildDeleteCommand()); + execCommands.Add(builder.BuildGetCommand()); + execCommands.Add(builder.BuildPatchCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Provides operations to manage the windowsAutopilotDeviceIdentities property of the microsoft.graph.deviceManagement entity. /// public Command BuildWindowsAutopilotDeviceIdentitiesNavCommand() { diff --git a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs index e390198f632..ba683d17fc7 100644 --- a/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs +++ b/src/generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs @@ -106,12 +106,12 @@ public Command BuildGetCommand() { return command; } /// - /// Update the properties of a deviceAndAppManagementRoleDefinition object. - /// Find more info here + /// Update the properties of a roleDefinition object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a deviceAndAppManagementRoleDefinition object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a roleDefinition object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-rbac-roledefinition-update?view=graph-rest-1.0"; var roleDefinitionIdOption = new Option("--role-definition-id", description: "The unique identifier of roleDefinition") { }; roleDefinitionIdOption.IsRequired = true; @@ -225,7 +225,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceAndAppManagementRoleDefinition object. + /// Update the properties of a roleDefinition object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/DeviceManagement/VirtualEndpoint/VirtualEndpointRequestBuilder.cs b/src/generated/DeviceManagement/VirtualEndpoint/VirtualEndpointRequestBuilder.cs new file mode 100644 index 00000000000..d60d652b0a0 --- /dev/null +++ b/src/generated/DeviceManagement/VirtualEndpoint/VirtualEndpointRequestBuilder.cs @@ -0,0 +1,224 @@ +// +using ApiSdk.Models.ODataErrors; +using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.DeviceManagement.VirtualEndpoint { + /// + /// Provides operations to manage the virtualEndpoint property of the microsoft.graph.deviceManagement entity. + /// + public class VirtualEndpointRequestBuilder : BaseCliRequestBuilder { + /// + /// Delete navigation property virtualEndpoint for deviceManagement + /// + public Command BuildDeleteCommand() { + var command = new Command("delete"); + command.Description = "Delete navigation property virtualEndpoint for deviceManagement"; + var ifMatchOption = new Option("--if-match", description: "ETag") { + Arity = ArgumentArity.ZeroOrMore + }; + ifMatchOption.IsRequired = false; + command.AddOption(ifMatchOption); + command.SetHandler(async (invocationContext) => { + var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToDeleteRequestInformation(q => { + }); + if (ifMatch is not null) requestInfo.Headers.Add("If-Match", ifMatch); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken); + Console.WriteLine("Success"); + }); + return command; + } + /// + /// Get virtualEndpoint from deviceManagement + /// + public Command BuildGetCommand() { + var command = new Command("get"); + command.Description = "Get virtualEndpoint from deviceManagement"; + var selectOption = new Option("--select", description: "Select properties to be returned") { + Arity = ArgumentArity.ZeroOrMore + }; + selectOption.IsRequired = false; + command.AddOption(selectOption); + var expandOption = new Option("--expand", description: "Expand related entities") { + Arity = ArgumentArity.ZeroOrMore + }; + expandOption.IsRequired = false; + command.AddOption(expandOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var select = invocationContext.ParseResult.GetValueForOption(selectOption); + var expand = invocationContext.ParseResult.GetValueForOption(expandOption); + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + var requestInfo = ToGetRequestInformation(q => { + q.QueryParameters.Select = select; + q.QueryParameters.Expand = expand; + }); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Update the navigation property virtualEndpoint in deviceManagement + /// + public Command BuildPatchCommand() { + var command = new Command("patch"); + command.Description = "Update the navigation property virtualEndpoint in deviceManagement"; + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); + var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); + var model = parseNode.GetObjectValue(ApiSdk.Models.VirtualEndpoint.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPatchRequestInformation(model, q => { + }); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new VirtualEndpointRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public VirtualEndpointRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/deviceManagement/virtualEndpoint{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new VirtualEndpointRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public VirtualEndpointRequestBuilder(string rawUrl) : base("{+baseurl}/deviceManagement/virtualEndpoint{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property virtualEndpoint for deviceManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get virtualEndpoint from deviceManagement + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property virtualEndpoint in deviceManagement + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(ApiSdk.Models.VirtualEndpoint body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(ApiSdk.Models.VirtualEndpoint body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get virtualEndpoint from deviceManagement + /// + public class VirtualEndpointRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + } +} diff --git a/src/generated/Devices/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Devices/Item/Restore/RestoreRequestBuilder.cs index 9f0fb22fd12..ec9e8fd6eaf 100644 --- a/src/generated/Devices/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Devices/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Devices.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var deviceIdOption = new Option("--device-id", description: "The unique identifier of device") { }; deviceIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/devices/{device%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs index d34760a85fd..c59fe962f4e 100644 --- a/src/generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DirectoryNamespace/DeletedItems/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.DirectoryNamespace.DeletedItems.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/directory/deletedItems/{directoryObject%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs index f7dce986f0e..0a1008b49b9 100644 --- a/src/generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DirectoryObjects/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.DirectoryObjects.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var directoryObjectIdOption = new Option("--directory-object-id", description: "The unique identifier of directoryObject") { }; directoryObjectIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/directoryObjects/{directoryObject%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs index 7f69d920555..6577071dc03 100644 --- a/src/generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DirectoryRoleTemplates/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.DirectoryRoleTemplates.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var directoryRoleTemplateIdOption = new Option("--directory-role-template-id", description: "The unique identifier of directoryRoleTemplate") { }; directoryRoleTemplateIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoleTemplates/{directoryRoleTemplate%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs b/src/generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs index 845558a2120..79b9fb7e87f 100644 --- a/src/generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/DirectoryRoles/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.DirectoryRoles.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var directoryRoleIdOption = new Option("--directory-role-id", description: "The unique identifier of directoryRole") { }; directoryRoleIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/directoryRoles/{directoryRole%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs index cdd4a0c6127..02f365f06c3 100644 --- a/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs +++ b/src/generated/Drives/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -1,4 +1,5 @@ // +using ApiSdk.Models; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; @@ -25,6 +26,14 @@ public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable { #nullable restore #else public string Password { get; set; } +#endif + /// The recipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Recipients { get; set; } +#nullable restore +#else + public List Recipients { get; set; } #endif /// The retainInheritedPermissions property public bool? RetainInheritedPermissions { get; set; } @@ -36,6 +45,8 @@ public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable { #else public string Scope { get; set; } #endif + /// The sendNotification property + public bool? SendNotification { get; set; } /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -66,8 +77,10 @@ public virtual IDictionary> GetFieldDeserializers() { {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, {"message", n => { Message = n.GetStringValue(); } }, {"password", n => { Password = n.GetStringValue(); } }, + {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, }; } @@ -80,8 +93,10 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); writer.WriteStringValue("message", Message); writer.WriteStringValue("password", Password); + writer.WriteCollectionOfObjectValues("recipients", Recipients); writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs index 6b325752744..038e2be09fa 100644 --- a/src/generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs @@ -116,12 +116,12 @@ public Command BuildGetCommand() { return command; } /// - /// Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. - /// Find more info here + /// Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/driveitem-lockorunlockrecord?view=graph-rest-1.0"; + command.Description = "Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -216,7 +216,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + /// Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs index 1f103d6f21f..5e027214810 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs @@ -139,11 +139,11 @@ public Command BuildCreateCommand() { } /// /// Retrieve a list of nameditem objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of nameditem objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/nameditem-list?view=graph-rest-1.0"; + command.Description = "Retrieve a list of nameditem objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/workbook-list-names?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs index dffa0e7ce45..2f91e72d1bb 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs @@ -145,11 +145,11 @@ public Command BuildItemAtWithIndexRbCommand() { } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of tablerow objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0"; + command.Description = "Retrieve a list of tablerow objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs index bf1a4d96f06..7f30e57e206 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -148,11 +148,11 @@ public Command BuildItemAtWithIndexRbCommand() { } /// /// Retrieve a list of table objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of table objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/table-list?view=graph-rest-1.0"; + command.Description = "Retrieve a list of table objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/workbook-list-tables?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs index e3ce1d11a1f..765e4ab10e0 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs @@ -173,11 +173,11 @@ public Command BuildItemWithNameRbCommand() { } /// /// Retrieve a list of chart objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of chart objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/worksheet-list-charts?view=graph-rest-1.0"; + command.Description = "Retrieve a list of chart objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chart-list?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs index 53e858cca78..ab08d371212 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs @@ -140,12 +140,12 @@ public Command BuildItemAtWithIndexRbCommand() { return command; } /// - /// Retrieve a list of chartpoints objects. - /// Find more info here + /// Retrieve a list of chartpoint objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of chartpoints objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chartseries-list-points?view=graph-rest-1.0"; + command.Description = "Retrieve a list of chartpoint objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chartpoint-list?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; @@ -275,7 +275,7 @@ public PointsRequestBuilder(Dictionary pathParameters) : base("{ public PointsRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartpoints objects. + /// Retrieve a list of chartpoint objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -309,7 +309,7 @@ public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Acti return requestInfo; } /// - /// Retrieve a list of chartpoints objects. + /// Retrieve a list of chartpoint objects. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs index 3153b5346ed..b64f5579bb4 100644 --- a/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs @@ -151,11 +151,11 @@ public Command BuildItemAtWithIndexRbCommand() { } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of tablerow objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/table-list-rows?view=graph-rest-1.0"; + command.Description = "Retrieve a list of tablerow objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/tablerow-list?view=graph-rest-1.0"; var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { }; driveIdOption.IsRequired = true; diff --git a/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs new file mode 100644 index 00000000000..56a7e874c76 --- /dev/null +++ b/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -0,0 +1,104 @@ +// +using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace ApiSdk.Drives.Item.List.Items.Item.CreateLink { + public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The expirationDateTime property + public DateTimeOffset? ExpirationDateTime { get; set; } + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Message { get; set; } +#nullable restore +#else + public string Message { get; set; } +#endif + /// The password property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Password { get; set; } +#nullable restore +#else + public string Password { get; set; } +#endif + /// The recipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Recipients { get; set; } +#nullable restore +#else + public List Recipients { get; set; } +#endif + /// The retainInheritedPermissions property + public bool? RetainInheritedPermissions { get; set; } + /// The scope property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Scope { get; set; } +#nullable restore +#else + public string Scope { get; set; } +#endif + /// The sendNotification property + public bool? SendNotification { get; set; } + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new createLinkPostRequestBody and sets the default values. + /// + public CreateLinkPostRequestBody() { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CreateLinkPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"message", n => { Message = n.GetStringValue(); } }, + {"password", n => { Password = n.GetStringValue(); } }, + {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, + {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, + {"type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("password", Password); + writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); + writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs new file mode 100644 index 00000000000..4437a262520 --- /dev/null +++ b/src/generated/Drives/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs @@ -0,0 +1,108 @@ +// +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.Drives.Item.List.Items.Item.CreateLink { + /// + /// Provides operations to call the createLink method. + /// + public class CreateLinkRequestBuilder : BaseCliRequestBuilder { + /// + /// Invoke action createLink + /// + public Command BuildPostCommand() { + var command = new Command("post"); + command.Description = "Invoke action createLink"; + var driveIdOption = new Option("--drive-id", description: "The unique identifier of drive") { + }; + driveIdOption.IsRequired = true; + command.AddOption(driveIdOption); + var listItemIdOption = new Option("--list-item-id", description: "The unique identifier of listItem") { + }; + listItemIdOption.IsRequired = true; + command.AddOption(listItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var driveId = invocationContext.ParseResult.GetValueForOption(driveIdOption); + var listItemId = invocationContext.ParseResult.GetValueForOption(listItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); + var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); + var model = parseNode.GetObjectValue(CreateLinkPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (driveId is not null) requestInfo.PathParameters.Add("drive%2Did", driveId); + if (listItemId is not null) requestInfo.PathParameters.Add("listItem%2Did", listItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CreateLinkRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CreateLinkRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createLink", pathParameters) { + } + /// + /// Instantiates a new CreateLinkRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/createLink", rawUrl) { + } + /// + /// Invoke action createLink + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} diff --git a/src/generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs b/src/generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs index 3be637bd1c3..c72aeebee9f 100644 --- a/src/generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/Item/ListItemItemRequestBuilder.cs @@ -1,5 +1,6 @@ // using ApiSdk.Drives.Item.List.Items.Item.Analytics; +using ApiSdk.Drives.Item.List.Items.Item.CreateLink; using ApiSdk.Drives.Item.List.Items.Item.CreatedByUser; using ApiSdk.Drives.Item.List.Items.Item.DocumentSetVersions; using ApiSdk.Drives.Item.List.Items.Item.DriveItem; @@ -66,6 +67,21 @@ public Command BuildCreatedByUserNavCommand() { return command; } /// + /// Provides operations to call the createLink method. + /// + public Command BuildCreateLinkNavCommand() { + var command = new Command("create-link"); + command.Description = "Provides operations to call the createLink method."; + var builder = new CreateLinkRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Removes an item from a [list][]. /// Find more info here /// diff --git a/src/generated/Drives/Item/List/Items/ItemsRequestBuilder.cs b/src/generated/Drives/Item/List/Items/ItemsRequestBuilder.cs index 1508057347b..6def7d9faea 100644 --- a/src/generated/Drives/Item/List/Items/ItemsRequestBuilder.cs +++ b/src/generated/Drives/Item/List/Items/ItemsRequestBuilder.cs @@ -30,6 +30,7 @@ public Tuple, List> BuildCommand() { var builder = new ListItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildAnalyticsNavCommand()); commands.Add(builder.BuildCreatedByUserNavCommand()); + commands.Add(builder.BuildCreateLinkNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDocumentSetVersionsNavCommand()); commands.Add(builder.BuildDriveItemNavCommand()); diff --git a/src/generated/GraphClient.cs b/src/generated/GraphClient.cs index 2da360247c3..0288be4ebdb 100644 --- a/src/generated/GraphClient.cs +++ b/src/generated/GraphClient.cs @@ -630,6 +630,7 @@ public Command BuildDeviceManagementNavCommand() { nonExecCommands.Add(builder.BuildUserExperienceAnalyticsWorkFromAnywhereMetricsNavCommand()); nonExecCommands.Add(builder.BuildUserExperienceAnalyticsWorkFromAnywhereModelPerformanceNavCommand()); nonExecCommands.Add(builder.BuildVerifyWindowsEnrollmentAutoDiscoveryWithDomainNameRbCommand()); + nonExecCommands.Add(builder.BuildVirtualEndpointNavCommand()); nonExecCommands.Add(builder.BuildWindowsAutopilotDeviceIdentitiesNavCommand()); nonExecCommands.Add(builder.BuildWindowsInformationProtectionAppLearningSummariesNavCommand()); nonExecCommands.Add(builder.BuildWindowsInformationProtectionNetworkLearningSummariesNavCommand()); diff --git a/src/generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs b/src/generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs index f314af8aaa1..ca00a686739 100644 --- a/src/generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/GroupSettingTemplates/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.GroupSettingTemplates.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var groupSettingTemplateIdOption = new Option("--group-setting-template-id", description: "The unique identifier of groupSettingTemplate") { }; groupSettingTemplateIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/groupSettingTemplates/{groupSettingTemplate%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index a008d690c92..99dc0e14f5a 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index cd363700496..c06bb6150dd 100644 --- a/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 33004b1253f..648d40b9a61 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 80ec6882ed5..ec524dfea41 100644 --- a/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 01f57cb95d5..24723febfe7 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index ee60bb792b5..a50d75203af 100644 --- a/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 730c579c80e..31f0b260e2c 100644 --- a/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -61,12 +61,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// The group's conversations. - /// Find more info here + /// Retrieve the properties and relationships of conversation object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The group's conversations.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-get-conversation?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of conversation object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -164,7 +164,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The group's conversations. + /// Retrieve the properties and relationships of conversation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -180,7 +180,7 @@ public RequestInformation ToGetRequestInformation(Action - /// The group's conversations. + /// Retrieve the properties and relationships of conversation object. /// public class ConversationItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 942ebb51623..67dead9c8e7 100644 --- a/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -52,12 +52,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0"; + command.Description = "Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -169,7 +169,7 @@ public PostsRequestBuilder(Dictionary pathParameters) : base("{+ public PostsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -185,7 +185,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index fe1a65b920c..cfff19d01da 100644 --- a/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 34628eb37cc..5bce2dbed1a 100644 --- a/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Groups/Item/Restore/RestoreRequestBuilder.cs index 77247fa280a..f09d4e5b6a8 100644 --- a/src/generated/Groups/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Groups/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Groups.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs new file mode 100644 index 00000000000..a0a1d15137a --- /dev/null +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -0,0 +1,104 @@ +// +using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink { + public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The expirationDateTime property + public DateTimeOffset? ExpirationDateTime { get; set; } + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Message { get; set; } +#nullable restore +#else + public string Message { get; set; } +#endif + /// The password property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Password { get; set; } +#nullable restore +#else + public string Password { get; set; } +#endif + /// The recipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Recipients { get; set; } +#nullable restore +#else + public List Recipients { get; set; } +#endif + /// The retainInheritedPermissions property + public bool? RetainInheritedPermissions { get; set; } + /// The scope property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Scope { get; set; } +#nullable restore +#else + public string Scope { get; set; } +#endif + /// The sendNotification property + public bool? SendNotification { get; set; } + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new createLinkPostRequestBody and sets the default values. + /// + public CreateLinkPostRequestBody() { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CreateLinkPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"message", n => { Message = n.GetStringValue(); } }, + {"password", n => { Password = n.GetStringValue(); } }, + {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, + {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, + {"type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("password", Password); + writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); + writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs new file mode 100644 index 00000000000..e4c4b6d2d59 --- /dev/null +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs @@ -0,0 +1,120 @@ +// +using ApiSdk.Models.ODataErrors; +using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Cli.Commons.Extensions; +using Microsoft.Kiota.Cli.Commons.IO; +using Microsoft.Kiota.Cli.Commons; +using System.Collections.Generic; +using System.CommandLine; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink { + /// + /// Provides operations to call the createLink method. + /// + public class CreateLinkRequestBuilder : BaseCliRequestBuilder { + /// + /// Invoke action createLink + /// + public Command BuildPostCommand() { + var command = new Command("post"); + command.Description = "Invoke action createLink"; + var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { + }; + groupIdOption.IsRequired = true; + command.AddOption(groupIdOption); + var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { + }; + siteIdOption.IsRequired = true; + command.AddOption(siteIdOption); + var listIdOption = new Option("--list-id", description: "The unique identifier of list") { + }; + listIdOption.IsRequired = true; + command.AddOption(listIdOption); + var listItemIdOption = new Option("--list-item-id", description: "The unique identifier of listItem") { + }; + listItemIdOption.IsRequired = true; + command.AddOption(listItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var groupId = invocationContext.ParseResult.GetValueForOption(groupIdOption); + var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); + var listId = invocationContext.ParseResult.GetValueForOption(listIdOption); + var listItemId = invocationContext.ParseResult.GetValueForOption(listItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); + var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); + var model = parseNode.GetObjectValue(CreateLinkPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (groupId is not null) requestInfo.PathParameters.Add("group%2Did", groupId); + if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); + if (listId is not null) requestInfo.PathParameters.Add("list%2Did", listId); + if (listItemId is not null) requestInfo.PathParameters.Add("listItem%2Did", listItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CreateLinkRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CreateLinkRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createLink", pathParameters) { + } + /// + /// Instantiates a new CreateLinkRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createLink", rawUrl) { + } + /// + /// Invoke action createLink + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs index e325e40d76f..cb6b3fcdfc2 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs @@ -1,5 +1,6 @@ // using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.Analytics; +using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreateLink; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.CreatedByUser; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions; using ApiSdk.Groups.Item.Sites.Item.Lists.Item.Items.Item.DriveItem; @@ -66,6 +67,21 @@ public Command BuildCreatedByUserNavCommand() { return command; } /// + /// Provides operations to call the createLink method. + /// + public Command BuildCreateLinkNavCommand() { + var command = new Command("create-link"); + command.Description = "Provides operations to call the createLink method."; + var builder = new CreateLinkRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Removes an item from a [list][]. /// Find more info here /// diff --git a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs index 5090e82b73b..09e806a7869 100644 --- a/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs +++ b/src/generated/Groups/Item/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs @@ -29,6 +29,7 @@ public Tuple, List> BuildCommand() { var builder = new ListItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildAnalyticsNavCommand()); commands.Add(builder.BuildCreatedByUserNavCommand()); + commands.Add(builder.BuildCreateLinkNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDocumentSetVersionsNavCommand()); commands.Add(builder.BuildDriveItemNavCommand()); diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index bc85527cc10..b643b2cf16c 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Groups.Item.Team.Channels.Item.Members.Item { /// public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a conversationMember from a channel. - /// Find more info here + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete a conversationMember from a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0"; + command.Description = "Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -203,7 +203,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs b/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs index 18b26e87f48..ac92e9e21d0 100644 --- a/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -253,7 +253,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 66580ecb1c9..5f91a896ee0 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Groups.Item.Team.PrimaryChannel.Members.Item { /// public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a conversationMember from a channel. - /// Find more info here + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete a conversationMember from a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0"; + command.Description = "Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -185,7 +185,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs index 61b05f7af29..32af0551f9b 100644 --- a/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -241,7 +241,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index b388a62c38f..6a880121c7a 100644 --- a/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -23,11 +23,11 @@ namespace ApiSdk.Groups.Item.Threads.Item { public class ConversationThreadItemRequestBuilder : BaseCliRequestBuilder { /// /// Delete conversationThread. - /// Find more info here + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete conversationThread.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0"; + command.Description = "Delete conversationThread.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; diff --git a/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 2420bc6ab5a..3a94fa0891d 100644 --- a/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -52,12 +52,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0"; + command.Description = "Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/post-get?view=graph-rest-1.0"; var groupIdOption = new Option("--group-id", description: "The unique identifier of group") { }; groupIdOption.IsRequired = true; @@ -163,7 +163,7 @@ public PostsRequestBuilder(Dictionary pathParameters) : base("{+ public PostsRequestBuilder(string rawUrl) : base("{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -179,7 +179,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index b1c42e89b6f..fc863e211ad 100644 --- a/src/generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Identity.ConditionalAccess.NamedLocations.Item { /// public class NamedLocationItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete an ipNamedLocation object. - /// Find more info here + /// Delete a namedLocation object. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete an ipNamedLocation object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-1.0"; + command.Description = "Delete a namedLocation object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/namedlocation-delete?view=graph-rest-1.0"; var namedLocationIdOption = new Option("--named-location-id", description: "The unique identifier of namedLocation") { }; namedLocationIdOption.IsRequired = true; @@ -167,7 +167,7 @@ public NamedLocationItemRequestBuilder(Dictionary pathParameters public NamedLocationItemRequestBuilder(string rawUrl) : base("{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an ipNamedLocation object. + /// Delete a namedLocation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs b/src/generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs index af08f0f53d3..164b54fee39 100644 --- a/src/generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs +++ b/src/generated/IdentityGovernance/AccessReviews/Definitions/DefinitionsRequestBuilder.cs @@ -32,7 +32,7 @@ public Tuple, List> BuildCommand() { executables.Add(builder.BuildDeleteCommand()); executables.Add(builder.BuildGetCommand()); commands.Add(builder.BuildInstancesNavCommand()); - executables.Add(builder.BuildPatchCommand()); + executables.Add(builder.BuildPutCommand()); commands.Add(builder.BuildStopNavCommand()); return new(executables, commands); } diff --git a/src/generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs b/src/generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs index 09c49676fd8..bcfaf776aa2 100644 --- a/src/generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs +++ b/src/generated/IdentityGovernance/AccessReviews/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs @@ -133,12 +133,11 @@ public Command BuildInstancesNavCommand() { return command; } /// - /// Update an existing accessReviewScheduleDefinition object to change one or more of its properties. - /// Find more info here + /// Update the navigation property definitions in identityGovernance /// - public Command BuildPatchCommand() { - var command = new Command("patch"); - command.Description = "Update an existing accessReviewScheduleDefinition object to change one or more of its properties.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/accessreviewscheduledefinition-update?view=graph-rest-1.0"; + public Command BuildPutCommand() { + var command = new Command("put"); + command.Description = "Update the navigation property definitions in identityGovernance"; var accessReviewScheduleDefinitionIdOption = new Option("--access-review-schedule-definition-id", description: "The unique identifier of accessReviewScheduleDefinition") { }; accessReviewScheduleDefinitionIdOption.IsRequired = true; @@ -167,7 +166,7 @@ public Command BuildPatchCommand() { Console.Error.WriteLine("No model data to send."); return; } - var requestInfo = ToPatchRequestInformation(model, q => { + var requestInfo = ToPutRequestInformation(model, q => { }); if (accessReviewScheduleDefinitionId is not null) requestInfo.PathParameters.Add("accessReviewScheduleDefinition%2Did", accessReviewScheduleDefinitionId); requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); @@ -242,19 +241,19 @@ public RequestInformation ToGetRequestInformation(Action - /// Update an existing accessReviewScheduleDefinition object to change one or more of its properties. + /// Update the navigation property definitions in identityGovernance /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(AccessReviewScheduleDefinition body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(AccessReviewScheduleDefinition body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(AccessReviewScheduleDefinition body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(AccessReviewScheduleDefinition body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; diff --git a/src/generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs index 9481d71a0ad..c7ce823751e 100644 --- a/src/generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs +++ b/src/generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AccessPackageItemRequestBuilder.cs @@ -140,12 +140,12 @@ public Command BuildGetApplicablePolicyRequirementsNavCommand() { return command; } /// - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. - /// Find more info here + /// Retrieve the properties and relationships of an accessPackage object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/accesspackage-list-resourcerolescopes?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of an accessPackage object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/accesspackage-get?view=graph-rest-1.0"; var accessPackageIdOption = new Option("--access-package-id", description: "The unique identifier of accessPackage") { }; accessPackageIdOption.IsRequired = true; @@ -344,7 +344,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve the properties and relationships of an accessPackage object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -378,7 +378,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.AccessPackage return requestInfo; } /// - /// Retrieve an access package with a list of accessPackageResourceRoleScope objects. These objects represent the resource roles that an access package assigns to each subject. Each object links to an accessPackageResourceRole and an accessPackageResourceScope. + /// Retrieve the properties and relationships of an accessPackage object. /// public class AccessPackageItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs b/src/generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs index db867e1d19b..424f10ede54 100644 --- a/src/generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs +++ b/src/generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs @@ -97,12 +97,12 @@ public Command BuildCreateCommand() { return command; } /// - /// Get the riskyUserHistoryItems from the history navigation property. - /// Find more info here + /// Read the properties and relationships of a riskyUserHistoryItem object. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get the riskyUserHistoryItems from the history navigation property.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/riskyuser-list-history?view=graph-rest-1.0"; + command.Description = "Read the properties and relationships of a riskyUserHistoryItem object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/riskyuser-get-riskyuserhistoryitem?view=graph-rest-1.0"; var riskyUserIdOption = new Option("--risky-user-id", description: "The unique identifier of riskyUser") { }; riskyUserIdOption.IsRequired = true; @@ -208,7 +208,7 @@ public HistoryRequestBuilder(Dictionary pathParameters) : base(" public HistoryRequestBuilder(string rawUrl) : base("{+baseurl}/identityProtection/riskyUsers/{riskyUser%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Read the properties and relationships of a riskyUserHistoryItem object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -242,7 +242,7 @@ public RequestInformation ToPostRequestInformation(RiskyUserHistoryItem body, Ac return requestInfo; } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Read the properties and relationships of a riskyUserHistoryItem object. /// public class HistoryRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/Models/AppliedConditionalAccessPolicyResult.cs b/src/generated/Models/AppliedConditionalAccessPolicyResult.cs index a14e5c8f45c..b8a354e1c96 100644 --- a/src/generated/Models/AppliedConditionalAccessPolicyResult.cs +++ b/src/generated/Models/AppliedConditionalAccessPolicyResult.cs @@ -15,5 +15,13 @@ public enum AppliedConditionalAccessPolicyResult { Unknown, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, + [EnumMember(Value = "reportOnlySuccess")] + ReportOnlySuccess, + [EnumMember(Value = "reportOnlyFailure")] + ReportOnlyFailure, + [EnumMember(Value = "reportOnlyNotApplied")] + ReportOnlyNotApplied, + [EnumMember(Value = "reportOnlyInterrupted")] + ReportOnlyInterrupted, } } diff --git a/src/generated/Models/ConnectedOrganization.cs b/src/generated/Models/ConnectedOrganization.cs index 1019ed7106f..8c271b1695a 100644 --- a/src/generated/Models/ConnectedOrganization.cs +++ b/src/generated/Models/ConnectedOrganization.cs @@ -32,7 +32,7 @@ public class ConnectedOrganization : Entity, IParsable { #else public List ExternalSponsors { get; set; } #endif - /// The identity sources in this connected organization, one of azureActiveDirectoryTenant, domainIdentitySource, externalDomainFederation or crossCloudAzureActiveDirectoryTenant. Nullable. + /// The identity sources in this connected organization, one of azureActiveDirectoryTenant, crossCloudAzureActiveDirectoryTenant, domainIdentitySource, externalDomainFederation, or socialIdentitySource. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? IdentitySources { get; set; } diff --git a/src/generated/Models/DeviceManagement.cs b/src/generated/Models/DeviceManagement.cs index 27cfb0ec352..f280b87ff18 100644 --- a/src/generated/Models/DeviceManagement.cs +++ b/src/generated/Models/DeviceManagement.cs @@ -468,6 +468,14 @@ public class DeviceManagement : Entity, IParsable { #nullable restore #else public List UserExperienceAnalyticsWorkFromAnywhereModelPerformance { get; set; } +#endif + /// The virtualEndpoint property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public ApiSdk.Models.VirtualEndpoint? VirtualEndpoint { get; set; } +#nullable restore +#else + public ApiSdk.Models.VirtualEndpoint VirtualEndpoint { get; set; } #endif /// The Windows autopilot device identities contained collection. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -581,6 +589,7 @@ public override IDictionary> GetFieldDeserializers() {"userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric", n => { UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric = n.GetObjectValue(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric.CreateFromDiscriminatorValue); } }, {"userExperienceAnalyticsWorkFromAnywhereMetrics", n => { UserExperienceAnalyticsWorkFromAnywhereMetrics = n.GetCollectionOfObjectValues(UserExperienceAnalyticsWorkFromAnywhereMetric.CreateFromDiscriminatorValue)?.ToList(); } }, {"userExperienceAnalyticsWorkFromAnywhereModelPerformance", n => { UserExperienceAnalyticsWorkFromAnywhereModelPerformance = n.GetCollectionOfObjectValues(ApiSdk.Models.UserExperienceAnalyticsWorkFromAnywhereModelPerformance.CreateFromDiscriminatorValue)?.ToList(); } }, + {"virtualEndpoint", n => { VirtualEndpoint = n.GetObjectValue(ApiSdk.Models.VirtualEndpoint.CreateFromDiscriminatorValue); } }, {"windowsAutopilotDeviceIdentities", n => { WindowsAutopilotDeviceIdentities = n.GetCollectionOfObjectValues(WindowsAutopilotDeviceIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, {"windowsInformationProtectionAppLearningSummaries", n => { WindowsInformationProtectionAppLearningSummaries = n.GetCollectionOfObjectValues(WindowsInformationProtectionAppLearningSummary.CreateFromDiscriminatorValue)?.ToList(); } }, {"windowsInformationProtectionNetworkLearningSummaries", n => { WindowsInformationProtectionNetworkLearningSummaries = n.GetCollectionOfObjectValues(WindowsInformationProtectionNetworkLearningSummary.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -654,6 +663,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteObjectValue("userExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric", UserExperienceAnalyticsWorkFromAnywhereHardwareReadinessMetric); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsWorkFromAnywhereMetrics", UserExperienceAnalyticsWorkFromAnywhereMetrics); writer.WriteCollectionOfObjectValues("userExperienceAnalyticsWorkFromAnywhereModelPerformance", UserExperienceAnalyticsWorkFromAnywhereModelPerformance); + writer.WriteObjectValue("virtualEndpoint", VirtualEndpoint); writer.WriteCollectionOfObjectValues("windowsAutopilotDeviceIdentities", WindowsAutopilotDeviceIdentities); writer.WriteCollectionOfObjectValues("windowsInformationProtectionAppLearningSummaries", WindowsInformationProtectionAppLearningSummaries); writer.WriteCollectionOfObjectValues("windowsInformationProtectionNetworkLearningSummaries", WindowsInformationProtectionNetworkLearningSummaries); diff --git a/src/generated/Models/Entity.cs b/src/generated/Models/Entity.cs index ed8efd91038..5fca1d30806 100644 --- a/src/generated/Models/Entity.cs +++ b/src/generated/Models/Entity.cs @@ -538,6 +538,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.privilegedAccessScheduleRequest" => new PrivilegedAccessScheduleRequest(), "#microsoft.graph.profileCardProperty" => new ProfileCardProperty(), "#microsoft.graph.profilePhoto" => new ProfilePhoto(), + "#microsoft.graph.pronounsSettings" => new PronounsSettings(), "#microsoft.graph.provisioningObjectSummary" => new ProvisioningObjectSummary(), "#microsoft.graph.rbacApplication" => new RbacApplication(), "#microsoft.graph.recordOperation" => new RecordOperation(), @@ -777,6 +778,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.userSettings" => new UserSettings(), "#microsoft.graph.userSignInInsight" => new UserSignInInsight(), "#microsoft.graph.userTeamwork" => new UserTeamwork(), + "#microsoft.graph.virtualEndpoint" => new VirtualEndpoint(), "#microsoft.graph.virtualEvent" => new VirtualEvent(), "#microsoft.graph.virtualEventRegistration" => new VirtualEventRegistration(), "#microsoft.graph.virtualEventSession" => new VirtualEventSession(), diff --git a/src/generated/Models/IdentityGovernance/CustomTaskExtensionCalloutData.cs b/src/generated/Models/IdentityGovernance/CustomTaskExtensionCalloutData.cs index d6088069be6..c0ee17f96a7 100644 --- a/src/generated/Models/IdentityGovernance/CustomTaskExtensionCalloutData.cs +++ b/src/generated/Models/IdentityGovernance/CustomTaskExtensionCalloutData.cs @@ -17,10 +17,10 @@ public class CustomTaskExtensionCalloutData : ApiSdk.Models.CustomExtensionData, /// The task property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.IdentityGovernance.TaskObject? TaskObject { get; set; } + public TaskObject? Task { get; set; } #nullable restore #else - public ApiSdk.Models.IdentityGovernance.TaskObject TaskObject { get; set; } + public TaskObject Task { get; set; } #endif /// The taskProcessingresult property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -58,7 +58,7 @@ public CustomTaskExtensionCalloutData() : base() { public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"subject", n => { Subject = n.GetObjectValue(ApiSdk.Models.User.CreateFromDiscriminatorValue); } }, - {"task", n => { TaskObject = n.GetObjectValue(ApiSdk.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue); } }, + {"task", n => { Task = n.GetObjectValue(TaskObject.CreateFromDiscriminatorValue); } }, {"taskProcessingresult", n => { TaskProcessingresult = n.GetObjectValue(ApiSdk.Models.IdentityGovernance.TaskProcessingResult.CreateFromDiscriminatorValue); } }, {"workflow", n => { Workflow = n.GetObjectValue(ApiSdk.Models.IdentityGovernance.Workflow.CreateFromDiscriminatorValue); } }, }; @@ -71,7 +71,7 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteObjectValue("subject", Subject); - writer.WriteObjectValue("task", TaskObject); + writer.WriteObjectValue("task", Task); writer.WriteObjectValue("taskProcessingresult", TaskProcessingresult); writer.WriteObjectValue("workflow", Workflow); } diff --git a/src/generated/Models/IdentityGovernance/Parameter.cs b/src/generated/Models/IdentityGovernance/Parameter.cs index 26a1c0659d6..675c82a3254 100644 --- a/src/generated/Models/IdentityGovernance/Parameter.cs +++ b/src/generated/Models/IdentityGovernance/Parameter.cs @@ -33,7 +33,7 @@ public class Parameter : IAdditionalDataHolder, IParsable { public List Values { get; set; } #endif /// The valueType property - public ApiSdk.Models.IdentityGovernance.ValueTypeObject? ValueTypeObject { get; set; } + public ValueTypeObject? ValueType { get; set; } /// /// Instantiates a new parameter and sets the default values. /// @@ -55,7 +55,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, - {"valueType", n => { ValueTypeObject = n.GetEnumValue(); } }, + {"valueType", n => { ValueType = n.GetEnumValue(); } }, {"values", n => { Values = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -68,7 +68,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfPrimitiveValues("values", Values); - writer.WriteEnumValue("valueType", ValueTypeObject); + writer.WriteEnumValue("valueType", ValueType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/generated/Models/IdentityGovernance/TaskProcessingResult.cs b/src/generated/Models/IdentityGovernance/TaskProcessingResult.cs index 7f6d9a4826c..19170a04ae8 100644 --- a/src/generated/Models/IdentityGovernance/TaskProcessingResult.cs +++ b/src/generated/Models/IdentityGovernance/TaskProcessingResult.cs @@ -33,10 +33,10 @@ public class TaskProcessingResult : ApiSdk.Models.Entity, IParsable { /// The task property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.IdentityGovernance.TaskObject? TaskObject { get; set; } + public TaskObject? Task { get; set; } #nullable restore #else - public ApiSdk.Models.IdentityGovernance.TaskObject TaskObject { get; set; } + public TaskObject Task { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -57,7 +57,7 @@ public override IDictionary> GetFieldDeserializers() {"processingStatus", n => { ProcessingStatus = n.GetEnumValue(); } }, {"startedDateTime", n => { StartedDateTime = n.GetDateTimeOffsetValue(); } }, {"subject", n => { Subject = n.GetObjectValue(ApiSdk.Models.User.CreateFromDiscriminatorValue); } }, - {"task", n => { TaskObject = n.GetObjectValue(ApiSdk.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue); } }, + {"task", n => { Task = n.GetObjectValue(TaskObject.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,7 +73,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteEnumValue("processingStatus", ProcessingStatus); writer.WriteDateTimeOffsetValue("startedDateTime", StartedDateTime); writer.WriteObjectValue("subject", Subject); - writer.WriteObjectValue("task", TaskObject); + writer.WriteObjectValue("task", Task); } } } diff --git a/src/generated/Models/IdentityGovernance/TaskReport.cs b/src/generated/Models/IdentityGovernance/TaskReport.cs index 06c9b5477be..c20072b36b0 100644 --- a/src/generated/Models/IdentityGovernance/TaskReport.cs +++ b/src/generated/Models/IdentityGovernance/TaskReport.cs @@ -26,21 +26,21 @@ public class TaskReport : ApiSdk.Models.Entity, IParsable { public DateTimeOffset? StartedDateTime { get; set; } /// The number of users in the run execution for which the associated task succeeded.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. public int? SuccessfulUsersCount { get; set; } - /// The taskDefinition property + /// The task property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.IdentityGovernance.TaskDefinition? TaskDefinition { get; set; } + public TaskObject? Task { get; set; } #nullable restore #else - public ApiSdk.Models.IdentityGovernance.TaskDefinition TaskDefinition { get; set; } + public TaskObject Task { get; set; } #endif - /// The task property + /// The taskDefinition property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApiSdk.Models.IdentityGovernance.TaskObject? TaskObject { get; set; } + public ApiSdk.Models.IdentityGovernance.TaskDefinition? TaskDefinition { get; set; } #nullable restore #else - public ApiSdk.Models.IdentityGovernance.TaskObject TaskObject { get; set; } + public ApiSdk.Models.IdentityGovernance.TaskDefinition TaskDefinition { get; set; } #endif /// The related lifecycle workflow taskProcessingResults. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -74,8 +74,8 @@ public override IDictionary> GetFieldDeserializers() {"runId", n => { RunId = n.GetStringValue(); } }, {"startedDateTime", n => { StartedDateTime = n.GetDateTimeOffsetValue(); } }, {"successfulUsersCount", n => { SuccessfulUsersCount = n.GetIntValue(); } }, + {"task", n => { Task = n.GetObjectValue(TaskObject.CreateFromDiscriminatorValue); } }, {"taskDefinition", n => { TaskDefinition = n.GetObjectValue(ApiSdk.Models.IdentityGovernance.TaskDefinition.CreateFromDiscriminatorValue); } }, - {"task", n => { TaskObject = n.GetObjectValue(ApiSdk.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue); } }, {"taskProcessingResults", n => { TaskProcessingResults = n.GetCollectionOfObjectValues(TaskProcessingResult.CreateFromDiscriminatorValue)?.ToList(); } }, {"totalUsersCount", n => { TotalUsersCount = n.GetIntValue(); } }, {"unprocessedUsersCount", n => { UnprocessedUsersCount = n.GetIntValue(); } }, @@ -95,8 +95,8 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteStringValue("runId", RunId); writer.WriteDateTimeOffsetValue("startedDateTime", StartedDateTime); writer.WriteIntValue("successfulUsersCount", SuccessfulUsersCount); + writer.WriteObjectValue("task", Task); writer.WriteObjectValue("taskDefinition", TaskDefinition); - writer.WriteObjectValue("task", TaskObject); writer.WriteCollectionOfObjectValues("taskProcessingResults", TaskProcessingResults); writer.WriteIntValue("totalUsersCount", TotalUsersCount); writer.WriteIntValue("unprocessedUsersCount", UnprocessedUsersCount); diff --git a/src/generated/Models/PeopleAdminSettings.cs b/src/generated/Models/PeopleAdminSettings.cs index 9911117e842..fbd99549373 100644 --- a/src/generated/Models/PeopleAdminSettings.cs +++ b/src/generated/Models/PeopleAdminSettings.cs @@ -13,6 +13,14 @@ public class PeopleAdminSettings : Entity, IParsable { #nullable restore #else public List ProfileCardProperties { get; set; } +#endif + /// Represents administrator settings that manage the support of pronouns in an organization. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PronounsSettings? Pronouns { get; set; } +#nullable restore +#else + public PronounsSettings Pronouns { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -28,6 +36,7 @@ public class PeopleAdminSettings : Entity, IParsable { public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"profileCardProperties", n => { ProfileCardProperties = n.GetCollectionOfObjectValues(ProfileCardProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + {"pronouns", n => { Pronouns = n.GetObjectValue(PronounsSettings.CreateFromDiscriminatorValue); } }, }; } /// @@ -38,6 +47,7 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfObjectValues("profileCardProperties", ProfileCardProperties); + writer.WriteObjectValue("pronouns", Pronouns); } } } diff --git a/src/generated/Models/PronounsSettings.cs b/src/generated/Models/PronounsSettings.cs new file mode 100644 index 00000000000..502231adae6 --- /dev/null +++ b/src/generated/Models/PronounsSettings.cs @@ -0,0 +1,37 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace ApiSdk.Models { + public class PronounsSettings : Entity, IParsable { + /// true to enable pronouns in the organization; otherwise, false. The default value is false, and pronouns are disabled. + public bool? IsEnabledInOrganization { get; set; } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new PronounsSettings CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PronounsSettings(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"isEnabledInOrganization", n => { IsEnabledInOrganization = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteBoolValue("isEnabledInOrganization", IsEnabledInOrganization); + } + } +} diff --git a/src/generated/Models/Security/ContainerEvidence.cs b/src/generated/Models/Security/ContainerEvidence.cs index 0bc17640627..3f2ba90f1a4 100644 --- a/src/generated/Models/Security/ContainerEvidence.cs +++ b/src/generated/Models/Security/ContainerEvidence.cs @@ -17,10 +17,10 @@ public class ContainerEvidence : AlertEvidence, IParsable { /// The list of commands. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Command { get; set; } + public List? CommandEscaped { get; set; } #nullable restore #else - public List Command { get; set; } + public List CommandEscaped { get; set; } #endif /// The container ID. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -76,7 +76,7 @@ public ContainerEvidence() : base() { public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"args", n => { Args = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"command", n => { Command = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"command", n => { CommandEscaped = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"containerId", n => { ContainerId = n.GetStringValue(); } }, {"image", n => { Image = n.GetObjectValue(ContainerImageEvidence.CreateFromDiscriminatorValue); } }, {"isPrivileged", n => { IsPrivileged = n.GetBoolValue(); } }, @@ -92,7 +92,7 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteCollectionOfPrimitiveValues("args", Args); - writer.WriteCollectionOfPrimitiveValues("command", Command); + writer.WriteCollectionOfPrimitiveValues("command", CommandEscaped); writer.WriteStringValue("containerId", ContainerId); writer.WriteObjectValue("image", Image); writer.WriteBoolValue("isPrivileged", IsPrivileged); diff --git a/src/generated/Models/UnifiedRoleAssignment.cs b/src/generated/Models/UnifiedRoleAssignment.cs index a7259302142..6f044fb41ea 100644 --- a/src/generated/Models/UnifiedRoleAssignment.cs +++ b/src/generated/Models/UnifiedRoleAssignment.cs @@ -14,7 +14,7 @@ public class UnifiedRoleAssignment : Entity, IParsable { #else public ApiSdk.Models.AppScope AppScope { get; set; } #endif - /// Identifier of the app-specific scope when the assignment scope is app-specific. Either this property or directoryScopeId is required. App scopes are scopes that are defined and understood by this application only. Use / for tenant-wide app scopes. Use directoryScopeId to limit the scope to particular directory objects, for example, administrative units. Supports $filter (eq, in). + /// Identifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog, for example /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AppScopeId { get; set; } @@ -38,7 +38,7 @@ public class UnifiedRoleAssignment : Entity, IParsable { #else public DirectoryObject DirectoryScope { get; set; } #endif - /// Identifier of the directory object representing the scope of the assignment. Either this property or appScopeId is required. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications. Use / for tenant-wide scope. Use appScopeId to limit the scope to an application only. Supports $filter (eq, in). + /// Identifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications, unlike app scopes that are defined and understood by a resource application only. Supports $filter (eq, in). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DirectoryScopeId { get; set; } @@ -54,7 +54,7 @@ public class UnifiedRoleAssignment : Entity, IParsable { #else public DirectoryObject Principal { get; set; } #endif - /// Identifier of the principal to which the assignment is granted. Supports $filter (eq, in). + /// Identifier of the principal to which the assignment is granted. Supported principals are users, role-assignable groups, and service principals. Supports $filter (eq, in). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PrincipalId { get; set; } @@ -62,7 +62,7 @@ public class UnifiedRoleAssignment : Entity, IParsable { #else public string PrincipalId { get; set; } #endif - /// The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded. + /// The roleDefinition the assignment is for. Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public UnifiedRoleDefinition? RoleDefinition { get; set; } @@ -70,7 +70,7 @@ public class UnifiedRoleAssignment : Entity, IParsable { #else public UnifiedRoleDefinition RoleDefinition { get; set; } #endif - /// Identifier of the role definition the assignment is for. Read only. Supports $filter (eq, in). + /// Identifier of the unifiedRoleDefinition the assignment is for. Read-only. Supports $filter (eq, in). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RoleDefinitionId { get; set; } diff --git a/src/generated/Models/VirtualEndpoint.cs b/src/generated/Models/VirtualEndpoint.cs new file mode 100644 index 00000000000..49e74d845d2 --- /dev/null +++ b/src/generated/Models/VirtualEndpoint.cs @@ -0,0 +1,33 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace ApiSdk.Models { + public class VirtualEndpoint : Entity, IParsable { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new VirtualEndpoint CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new VirtualEndpoint(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/generated/Organization/Item/OrganizationItemRequestBuilder.cs b/src/generated/Organization/Item/OrganizationItemRequestBuilder.cs index 5b4f3df85e7..f52179bde77 100644 --- a/src/generated/Organization/Item/OrganizationItemRequestBuilder.cs +++ b/src/generated/Organization/Item/OrganizationItemRequestBuilder.cs @@ -172,12 +172,12 @@ public Command BuildExtensionsNavCommand() { return command; } /// - /// Read properties and relationships of the organization object. - /// Find more info here + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the organization object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-organization-get?view=graph-rest-1.0"; + command.Description = "Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-1.0"; var organizationIdOption = new Option("--organization-id", description: "The unique identifier of organization") { }; organizationIdOption.IsRequired = true; @@ -361,7 +361,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the organization object. + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -395,7 +395,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Organization b return requestInfo; } /// - /// Read properties and relationships of the organization object. + /// Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. /// public class OrganizationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/Organization/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Organization/Item/Restore/RestoreRequestBuilder.cs index ed052a089cd..1b3fb2de91d 100644 --- a/src/generated/Organization/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Organization/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Organization.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var organizationIdOption = new Option("--organization-id", description: "The unique identifier of organization") { }; organizationIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/organization/{organization%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Organization/OrganizationRequestBuilder.cs b/src/generated/Organization/OrganizationRequestBuilder.cs index 7c01b8589e9..d81f3fe20a7 100644 --- a/src/generated/Organization/OrganizationRequestBuilder.cs +++ b/src/generated/Organization/OrganizationRequestBuilder.cs @@ -150,12 +150,12 @@ public Command BuildGetByIdsNavCommand() { return command; } /// - /// Retrieve a list of organization objects. There's only one organization object in the collection. - /// Find more info here + /// List properties and relationships of the organization objects. + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Retrieve a list of organization objects. There's only one organization object in the collection.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/organization-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the organization objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-organization-list?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -270,7 +270,7 @@ public OrganizationRequestBuilder(Dictionary pathParameters) : b public OrganizationRequestBuilder(string rawUrl) : base("{+baseurl}/organization{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of organization objects. There's only one organization object in the collection. + /// List properties and relationships of the organization objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -304,7 +304,7 @@ public RequestInformation ToPostRequestInformation(ApiSdk.Models.Organization bo return requestInfo; } /// - /// Retrieve a list of organization objects. There's only one organization object in the collection. + /// List properties and relationships of the organization objects. /// public class OrganizationRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs b/src/generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs index c1587cc74d0..7cb5e6e5457 100644 --- a/src/generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/PermissionGrants/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.PermissionGrants.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var resourceSpecificPermissionGrantIdOption = new Option("--resource-specific-permission-grant-id", description: "The unique identifier of resourceSpecificPermissionGrant") { }; resourceSpecificPermissionGrantIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/permissionGrants/{resourceSpecificPermissionGrant%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 4001ae04d4d..e6132567004 100644 --- a/src/generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/generated/RoleManagement/DirectoryNamespace/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -20,11 +20,11 @@ namespace ApiSdk.RoleManagement.DirectoryNamespace.RoleAssignments.Item.RoleDefi /// public class RoleDefinitionRequestBuilder : BaseCliRequestBuilder { /// - /// The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded. + /// The roleDefinition the assignment is for. Supports $expand. /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded."; + command.Description = "The roleDefinition the assignment is for. Supports $expand."; var unifiedRoleAssignmentIdOption = new Option("--unified-role-assignment-id", description: "The unique identifier of unifiedRoleAssignment") { }; unifiedRoleAssignmentIdOption.IsRequired = true; @@ -82,7 +82,7 @@ public RoleDefinitionRequestBuilder(Dictionary pathParameters) : public RoleDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/roleManagement/directory/roleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24select,%24expand}", rawUrl) { } /// - /// The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded. + /// The roleDefinition the assignment is for. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToGetRequestInformation(Action - /// The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded. + /// The roleDefinition the assignment is for. Supports $expand. /// public class RoleDefinitionRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs index ec47a463e39..37f26bacfbe 100644 --- a/src/generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/generated/RoleManagement/DirectoryNamespace/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -97,12 +97,12 @@ public Command BuildCreateCommand() { return command; } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra entitlement management) /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management)\n\nFind more info here:\n https://learn.microsoft.com/graph/api/rbacapplication-list-roleassignments?view=graph-rest-1.0"; + command.Description = "Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra entitlement management)\n\nFind more info here:\n https://learn.microsoft.com/graph/api/rbacapplication-list-roleassignments?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -202,7 +202,7 @@ public RoleAssignmentsRequestBuilder(Dictionary pathParameters) public RoleAssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/roleManagement/directory/roleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra entitlement management) /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -236,7 +236,7 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignment body, A return requestInfo; } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra entitlement management) /// public class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs b/src/generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs index 7ad7f78ab95..329ea9f60cb 100644 --- a/src/generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs +++ b/src/generated/RoleManagement/EntitlementManagement/RoleAssignments/Item/RoleDefinition/RoleDefinitionRequestBuilder.cs @@ -20,11 +20,11 @@ namespace ApiSdk.RoleManagement.EntitlementManagement.RoleAssignments.Item.RoleD /// public class RoleDefinitionRequestBuilder : BaseCliRequestBuilder { /// - /// The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded. + /// The roleDefinition the assignment is for. Supports $expand. /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded."; + command.Description = "The roleDefinition the assignment is for. Supports $expand."; var unifiedRoleAssignmentIdOption = new Option("--unified-role-assignment-id", description: "The unique identifier of unifiedRoleAssignment") { }; unifiedRoleAssignmentIdOption.IsRequired = true; @@ -82,7 +82,7 @@ public RoleDefinitionRequestBuilder(Dictionary pathParameters) : public RoleDefinitionRequestBuilder(string rawUrl) : base("{+baseurl}/roleManagement/entitlementManagement/roleAssignments/{unifiedRoleAssignment%2Did}/roleDefinition{?%24select,%24expand}", rawUrl) { } /// - /// The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded. + /// The roleDefinition the assignment is for. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,7 +98,7 @@ public RequestInformation ToGetRequestInformation(Action - /// The roleDefinition the assignment is for. Supports $expand. roleDefinition.Id will be auto expanded. + /// The roleDefinition the assignment is for. Supports $expand. /// public class RoleDefinitionRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs b/src/generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs index 8fd91b96ff1..a192542485c 100644 --- a/src/generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs +++ b/src/generated/RoleManagement/EntitlementManagement/RoleAssignments/RoleAssignmentsRequestBuilder.cs @@ -97,12 +97,12 @@ public Command BuildCreateCommand() { return command; } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra entitlement management) /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management)\n\nFind more info here:\n https://learn.microsoft.com/graph/api/rbacapplication-list-roleassignments?view=graph-rest-1.0"; + command.Description = "Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra entitlement management)\n\nFind more info here:\n https://learn.microsoft.com/graph/api/rbacapplication-list-roleassignments?view=graph-rest-1.0"; var topOption = new Option("--top", description: "Show only the first n items") { }; topOption.IsRequired = false; @@ -202,7 +202,7 @@ public RoleAssignmentsRequestBuilder(Dictionary pathParameters) public RoleAssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/roleManagement/entitlementManagement/roleAssignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra entitlement management) /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -236,7 +236,7 @@ public RequestInformation ToPostRequestInformation(UnifiedRoleAssignment body, A return requestInfo; } /// - /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra Entitlement Management) + /// Get a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:- directory (Microsoft Entra ID)- entitlement management (Microsoft Entra entitlement management) /// public class RoleAssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs b/src/generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs index 8171f148a47..d64e4e38d14 100644 --- a/src/generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/ServicePrincipals/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.ServicePrincipals.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var servicePrincipalIdOption = new Option("--service-principal-id", description: "The unique identifier of servicePrincipal") { }; servicePrincipalIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs new file mode 100644 index 00000000000..57009eb9f96 --- /dev/null +++ b/src/generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -0,0 +1,104 @@ +// +using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace ApiSdk.Shares.Item.List.Items.Item.CreateLink { + public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The expirationDateTime property + public DateTimeOffset? ExpirationDateTime { get; set; } + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Message { get; set; } +#nullable restore +#else + public string Message { get; set; } +#endif + /// The password property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Password { get; set; } +#nullable restore +#else + public string Password { get; set; } +#endif + /// The recipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Recipients { get; set; } +#nullable restore +#else + public List Recipients { get; set; } +#endif + /// The retainInheritedPermissions property + public bool? RetainInheritedPermissions { get; set; } + /// The scope property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Scope { get; set; } +#nullable restore +#else + public string Scope { get; set; } +#endif + /// The sendNotification property + public bool? SendNotification { get; set; } + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new createLinkPostRequestBody and sets the default values. + /// + public CreateLinkPostRequestBody() { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CreateLinkPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"message", n => { Message = n.GetStringValue(); } }, + {"password", n => { Password = n.GetStringValue(); } }, + {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, + {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, + {"type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("password", Password); + writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); + writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs new file mode 100644 index 00000000000..e4c99768db8 --- /dev/null +++ b/src/generated/Shares/Item/List/Items/Item/CreateLink/CreateLinkRequestBuilder.cs @@ -0,0 +1,108 @@ +// +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.Shares.Item.List.Items.Item.CreateLink { + /// + /// Provides operations to call the createLink method. + /// + public class CreateLinkRequestBuilder : BaseCliRequestBuilder { + /// + /// Invoke action createLink + /// + public Command BuildPostCommand() { + var command = new Command("post"); + command.Description = "Invoke action createLink"; + var sharedDriveItemIdOption = new Option("--shared-drive-item-id", description: "The unique identifier of sharedDriveItem") { + }; + sharedDriveItemIdOption.IsRequired = true; + command.AddOption(sharedDriveItemIdOption); + var listItemIdOption = new Option("--list-item-id", description: "The unique identifier of listItem") { + }; + listItemIdOption.IsRequired = true; + command.AddOption(listItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var sharedDriveItemId = invocationContext.ParseResult.GetValueForOption(sharedDriveItemIdOption); + var listItemId = invocationContext.ParseResult.GetValueForOption(listItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); + var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); + var model = parseNode.GetObjectValue(CreateLinkPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (sharedDriveItemId is not null) requestInfo.PathParameters.Add("sharedDriveItem%2Did", sharedDriveItemId); + if (listItemId is not null) requestInfo.PathParameters.Add("listItem%2Did", listItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CreateLinkRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CreateLinkRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/createLink", pathParameters) { + } + /// + /// Instantiates a new CreateLinkRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/shares/{sharedDriveItem%2Did}/list/items/{listItem%2Did}/createLink", rawUrl) { + } + /// + /// Invoke action createLink + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} diff --git a/src/generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs b/src/generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs index f54a079aa62..21848b602b2 100644 --- a/src/generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/generated/Shares/Item/List/Items/Item/ListItemItemRequestBuilder.cs @@ -2,6 +2,7 @@ using ApiSdk.Models.ODataErrors; using ApiSdk.Models; using ApiSdk.Shares.Item.List.Items.Item.Analytics; +using ApiSdk.Shares.Item.List.Items.Item.CreateLink; using ApiSdk.Shares.Item.List.Items.Item.CreatedByUser; using ApiSdk.Shares.Item.List.Items.Item.DocumentSetVersions; using ApiSdk.Shares.Item.List.Items.Item.DriveItem; @@ -66,6 +67,21 @@ public Command BuildCreatedByUserNavCommand() { return command; } /// + /// Provides operations to call the createLink method. + /// + public Command BuildCreateLinkNavCommand() { + var command = new Command("create-link"); + command.Description = "Provides operations to call the createLink method."; + var builder = new CreateLinkRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Removes an item from a [list][]. /// Find more info here /// diff --git a/src/generated/Shares/Item/List/Items/ItemsRequestBuilder.cs b/src/generated/Shares/Item/List/Items/ItemsRequestBuilder.cs index 32a4accd4f1..1ce112c2fdb 100644 --- a/src/generated/Shares/Item/List/Items/ItemsRequestBuilder.cs +++ b/src/generated/Shares/Item/List/Items/ItemsRequestBuilder.cs @@ -29,6 +29,7 @@ public Tuple, List> BuildCommand() { var builder = new ListItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildAnalyticsNavCommand()); commands.Add(builder.BuildCreatedByUserNavCommand()); + commands.Add(builder.BuildCreateLinkNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDocumentSetVersionsNavCommand()); commands.Add(builder.BuildDriveItemNavCommand()); diff --git a/src/generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs b/src/generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs new file mode 100644 index 00000000000..a4b9b740912 --- /dev/null +++ b/src/generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkPostRequestBody.cs @@ -0,0 +1,104 @@ +// +using ApiSdk.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace ApiSdk.Sites.Item.Lists.Item.Items.Item.CreateLink { + public class CreateLinkPostRequestBody : IAdditionalDataHolder, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The expirationDateTime property + public DateTimeOffset? ExpirationDateTime { get; set; } + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Message { get; set; } +#nullable restore +#else + public string Message { get; set; } +#endif + /// The password property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Password { get; set; } +#nullable restore +#else + public string Password { get; set; } +#endif + /// The recipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Recipients { get; set; } +#nullable restore +#else + public List Recipients { get; set; } +#endif + /// The retainInheritedPermissions property + public bool? RetainInheritedPermissions { get; set; } + /// The scope property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Scope { get; set; } +#nullable restore +#else + public string Scope { get; set; } +#endif + /// The sendNotification property + public bool? SendNotification { get; set; } + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new createLinkPostRequestBody and sets the default values. + /// + public CreateLinkPostRequestBody() { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static CreateLinkPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CreateLinkPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"message", n => { Message = n.GetStringValue(); } }, + {"password", n => { Password = n.GetStringValue(); } }, + {"recipients", n => { Recipients = n.GetCollectionOfObjectValues(DriveRecipient.CreateFromDiscriminatorValue)?.ToList(); } }, + {"retainInheritedPermissions", n => { RetainInheritedPermissions = n.GetBoolValue(); } }, + {"scope", n => { Scope = n.GetStringValue(); } }, + {"sendNotification", n => { SendNotification = n.GetBoolValue(); } }, + {"type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("password", Password); + writer.WriteCollectionOfObjectValues("recipients", Recipients); + writer.WriteBoolValue("retainInheritedPermissions", RetainInheritedPermissions); + writer.WriteStringValue("scope", Scope); + writer.WriteBoolValue("sendNotification", SendNotification); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs b/src/generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs new file mode 100644 index 00000000000..982717b40ae --- /dev/null +++ b/src/generated/Sites/Item/Lists/Item/Items/Item/CreateLink/CreateLinkRequestBuilder.cs @@ -0,0 +1,114 @@ +// +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.Sites.Item.Lists.Item.Items.Item.CreateLink { + /// + /// Provides operations to call the createLink method. + /// + public class CreateLinkRequestBuilder : BaseCliRequestBuilder { + /// + /// Invoke action createLink + /// + public Command BuildPostCommand() { + var command = new Command("post"); + command.Description = "Invoke action createLink"; + var siteIdOption = new Option("--site-id", description: "The unique identifier of site") { + }; + siteIdOption.IsRequired = true; + command.AddOption(siteIdOption); + var listIdOption = new Option("--list-id", description: "The unique identifier of list") { + }; + listIdOption.IsRequired = true; + command.AddOption(listIdOption); + var listItemIdOption = new Option("--list-item-id", description: "The unique identifier of listItem") { + }; + listItemIdOption.IsRequired = true; + command.AddOption(listItemIdOption); + var bodyOption = new Option("--body", description: "The request body") { + }; + bodyOption.IsRequired = true; + command.AddOption(bodyOption); + var outputOption = new Option("--output", () => FormatterType.JSON); + command.AddOption(outputOption); + var queryOption = new Option("--query"); + command.AddOption(queryOption); + command.SetHandler(async (invocationContext) => { + var siteId = invocationContext.ParseResult.GetValueForOption(siteIdOption); + var listId = invocationContext.ParseResult.GetValueForOption(listIdOption); + var listItemId = invocationContext.ParseResult.GetValueForOption(listItemIdOption); + var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty; + var output = invocationContext.ParseResult.GetValueForOption(outputOption); + var query = invocationContext.ParseResult.GetValueForOption(queryOption); + IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter"); + IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory"); + var cancellationToken = invocationContext.GetCancellationToken(); + var reqAdapter = invocationContext.GetRequestAdapter(); + using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body)); + var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream); + var model = parseNode.GetObjectValue(CreateLinkPostRequestBody.CreateFromDiscriminatorValue); + if (model is null) { + Console.Error.WriteLine("No model data to send."); + return; + } + var requestInfo = ToPostRequestInformation(model, q => { + }); + if (siteId is not null) requestInfo.PathParameters.Add("site%2Did", siteId); + if (listId is not null) requestInfo.PathParameters.Add("list%2Did", listId); + if (listItemId is not null) requestInfo.PathParameters.Add("listItem%2Did", listItemId); + requestInfo.SetContentFromParsable(reqAdapter, "application/json", model); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null; + response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response; + var formatter = outputFormatterFactory.GetFormatter(output); + await formatter.WriteOutputAsync(response, cancellationToken); + }); + return command; + } + /// + /// Instantiates a new CreateLinkRequestBuilder and sets the default values. + /// + /// Path parameters for the request + public CreateLinkRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createLink", pathParameters) { + } + /// + /// Instantiates a new CreateLinkRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + public CreateLinkRequestBuilder(string rawUrl) : base("{+baseurl}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/createLink", rawUrl) { + } + /// + /// Invoke action createLink + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CreateLinkPostRequestBody body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + } +} diff --git a/src/generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs b/src/generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs index 4e1ae47cf99..d73484654ca 100644 --- a/src/generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs +++ b/src/generated/Sites/Item/Lists/Item/Items/Item/ListItemItemRequestBuilder.cs @@ -2,6 +2,7 @@ using ApiSdk.Models.ODataErrors; using ApiSdk.Models; using ApiSdk.Sites.Item.Lists.Item.Items.Item.Analytics; +using ApiSdk.Sites.Item.Lists.Item.Items.Item.CreateLink; using ApiSdk.Sites.Item.Lists.Item.Items.Item.CreatedByUser; using ApiSdk.Sites.Item.Lists.Item.Items.Item.DocumentSetVersions; using ApiSdk.Sites.Item.Lists.Item.Items.Item.DriveItem; @@ -66,6 +67,21 @@ public Command BuildCreatedByUserNavCommand() { return command; } /// + /// Provides operations to call the createLink method. + /// + public Command BuildCreateLinkNavCommand() { + var command = new Command("create-link"); + command.Description = "Provides operations to call the createLink method."; + var builder = new CreateLinkRequestBuilder(PathParameters); + var execCommands = new List(); + execCommands.Add(builder.BuildPostCommand()); + foreach (var cmd in execCommands) + { + command.AddCommand(cmd); + } + return command; + } + /// /// Removes an item from a [list][]. /// Find more info here /// diff --git a/src/generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs b/src/generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs index 6a1462f5326..065de4ed242 100644 --- a/src/generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs +++ b/src/generated/Sites/Item/Lists/Item/Items/ItemsRequestBuilder.cs @@ -29,6 +29,7 @@ public Tuple, List> BuildCommand() { var builder = new ListItemItemRequestBuilder(PathParameters); commands.Add(builder.BuildAnalyticsNavCommand()); commands.Add(builder.BuildCreatedByUserNavCommand()); + commands.Add(builder.BuildCreateLinkNavCommand()); executables.Add(builder.BuildDeleteCommand()); commands.Add(builder.BuildDocumentSetVersionsNavCommand()); commands.Add(builder.BuildDriveItemNavCommand()); diff --git a/src/generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index f9fbc4edfd4..5d3694e76c1 100644 --- a/src/generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Teams.Item.Channels.Item.Members.Item { /// public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a conversationMember from a channel. - /// Find more info here + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete a conversationMember from a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0"; + command.Description = "Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0"; var teamIdOption = new Option("--team-id", description: "The unique identifier of team") { }; teamIdOption.IsRequired = true; @@ -203,7 +203,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs index bc2d1d3616c..08effd21186 100644 --- a/src/generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var teamIdOption = new Option("--team-id", description: "The unique identifier of team") { }; teamIdOption.IsRequired = true; @@ -253,7 +253,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index a8e6b52343d..b51bd0ff7bc 100644 --- a/src/generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Teams.Item.PrimaryChannel.Members.Item { /// public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a conversationMember from a channel. - /// Find more info here + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete a conversationMember from a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0"; + command.Description = "Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0"; var teamIdOption = new Option("--team-id", description: "The unique identifier of team") { }; teamIdOption.IsRequired = true; @@ -185,7 +185,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/teams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 1d8500ce4b7..ec44e667186 100644 --- a/src/generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var teamIdOption = new Option("--team-id", description: "The unique identifier of team") { }; teamIdOption.IsRequired = true; @@ -241,7 +241,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 989cc9d2437..dd0ab72d72a 100644 --- a/src/generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Teamwork.DeletedTeams.Item.Channels.Item.Members.Item { /// public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a conversationMember from a channel. - /// Find more info here + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete a conversationMember from a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0"; + command.Description = "Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0"; var deletedTeamIdOption = new Option("--deleted-team-id", description: "The unique identifier of deletedTeam") { }; deletedTeamIdOption.IsRequired = true; @@ -203,7 +203,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 95d4e657539..8a35a0c8edd 100644 --- a/src/generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var deletedTeamIdOption = new Option("--deleted-team-id", description: "The unique identifier of deletedTeam") { }; deletedTeamIdOption.IsRequired = true; @@ -253,7 +253,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 13c528688ba..aeb0c53b4e1 100644 --- a/src/generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 11f5c872ca0..cfe2cb1efc5 100644 --- a/src/generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index cf6c178d4f6..d082198dd75 100644 --- a/src/generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index a22387e8873..e180fbcef25 100644 --- a/src/generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index acd67bbc43e..abb011417e2 100644 --- a/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -270,7 +270,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 55bf505c5c5..48d74f8a4d2 100644 --- a/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -282,7 +282,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index d27ebe2bfe8..0105e79c92d 100644 --- a/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -270,7 +270,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0cc9f67c59b..7c41cc13f7e 100644 --- a/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -282,7 +282,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 7f4dcf684cc..96abe546a92 100644 --- a/src/generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 1e5c0a3f5b2..4be7bf73eba 100644 --- a/src/generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index cbee20d3ba7..f3bafc7550b 100644 --- a/src/generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 878f1301a08..95c936a3f2d 100644 --- a/src/generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -270,7 +270,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 6bd772ee644..3024a023f05 100644 --- a/src/generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 07ee6fcc651..93711d51255 100644 --- a/src/generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -270,7 +270,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index c11408a49c7..77b50dde3db 100644 --- a/src/generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -66,12 +66,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 userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -218,7 +218,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 @@ -252,7 +252,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/Users/Item/Events/EventsRequestBuilder.cs b/src/generated/Users/Item/Events/EventsRequestBuilder.cs index 42b2abd65fd..baa6de83ffb 100644 --- a/src/generated/Users/Item/Events/EventsRequestBuilder.cs +++ b/src/generated/Users/Item/Events/EventsRequestBuilder.cs @@ -61,12 +61,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/singlevaluelegacyextendedproperty-post-singlevalueextendedproperties?view=graph-rest-1.0"; + command.Description = "Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/multivaluelegacyextendedproperty-post-multivalueextendedproperties?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -247,7 +247,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index f222240d4e0..872292df085 100644 --- a/src/generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 95004b0c9e8..fb98eb11696 100644 --- a/src/generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/event-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index aa06fe11ce5..c7d2ea6c2a3 100644 --- a/src/generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Users.Item.JoinedTeams.Item.Channels.Item.Members.Item { /// public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a conversationMember from a channel. - /// Find more info here + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete a conversationMember from a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0"; + command.Description = "Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -221,7 +221,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 80b8753dbc8..7ebc7d0a655 100644 --- a/src/generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -265,7 +265,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 9379e6ad6a4..2f800c761d1 100644 --- a/src/generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Users.Item.JoinedTeams.Item.PrimaryChannel.Members.Item { /// public class ConversationMemberItemRequestBuilder : BaseCliRequestBuilder { /// - /// Delete a conversationMember from a channel. - /// Find more info here + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Delete a conversationMember from a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0"; + command.Description = "Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -203,7 +203,7 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl) : base("{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete a conversationMember from a channel. + /// Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 821f006c7a1..52900337ac0 100644 --- a/src/generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -64,12 +64,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Add a conversationMember to a channel. - /// Find more info here + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Add a conversationMember to a channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-add?view=graph-rest-1.0"; + command.Description = "Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -253,7 +253,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Add a conversationMember to a channel. + /// Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index a65717864d9..dd6cc89e321 100644 --- a/src/generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -258,7 +258,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs index 5c3ba8c28d4..36d5cf61c27 100644 --- a/src/generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -235,12 +235,12 @@ public Command BuildMoveNavCommand() { return command; } /// - /// Update the writable properties of a mailSearchFolder object. - /// Find more info here + /// Update the properties of mailfolder object. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the writable properties of a mailSearchFolder object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/mailsearchfolder-update?view=graph-rest-1.0"; + command.Description = "Update the properties of mailfolder object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/mailfolder-update?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -335,7 +335,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable properties of a mailSearchFolder object. + /// Update the properties of mailfolder object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 90baa6602ca..39181fb5bf0 100644 --- a/src/generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -246,7 +246,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index faf77147aab..f16e0685d6e 100644 --- a/src/generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,12 +48,12 @@ public Command BuildCountNavCommand() { return command; } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Find more info here /// public Command BuildCreateCommand() { var command = new Command("create"); - command.Description = "Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/eventmessage-post-attachments?view=graph-rest-1.0"; + command.Description = "Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/message-post-attachments?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -234,7 +234,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index 7d0d689565e..47b2df83933 100644 --- a/src/generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -215,11 +215,11 @@ public Command BuildForwardNavCommand() { } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "The messages in a mailbox or folder. Read-only. Nullable.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0"; + command.Description = "The messages in a mailbox or folder. Read-only. Nullable.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/message-get?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; diff --git a/src/generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index 0948e6db4ca..8e0980d5bd6 100644 --- a/src/generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -20,11 +20,11 @@ namespace ApiSdk.Users.Item.Messages.Item.Value { public class ContentRequestBuilder : BaseCliRequestBuilder { /// /// Get media content for the navigation property messages from users - /// Find more info here + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Get media content for the navigation property messages from users\n\nFind more info here:\n https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0"; + command.Description = "Get media content for the navigation property messages from users\n\nFind more info here:\n https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; diff --git a/src/generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/generated/Users/Item/Messages/MessagesRequestBuilder.cs index a03a12a9169..076e66414c7 100644 --- a/src/generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -128,11 +128,11 @@ public Command BuildDeltaNavCommand() { } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "The messages in a mailbox or folder. Read-only. Nullable.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/user-list-messages?view=graph-rest-1.0"; + command.Description = "The messages in a mailbox or folder. Read-only. Nullable.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/opentypeextension-get?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; diff --git a/src/generated/Users/Item/Presence/PresenceRequestBuilder.cs b/src/generated/Users/Item/Presence/PresenceRequestBuilder.cs index 2944789044a..7cfbb2eef8c 100644 --- a/src/generated/Users/Item/Presence/PresenceRequestBuilder.cs +++ b/src/generated/Users/Item/Presence/PresenceRequestBuilder.cs @@ -88,12 +88,12 @@ public Command BuildDeleteCommand() { return command; } /// - /// Set a presence status message for a user. An optional expiration date and time can be supplied. - /// Find more info here + /// Get a user's presence information. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Set a presence status message for a user. An optional expiration date and time can be supplied.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-1.0"; + command.Description = "Get a user's presence information.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/presence-get?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -261,7 +261,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Set a presence status message for a user. An optional expiration date and time can be supplied. + /// Get a user's presence information. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -295,7 +295,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Presence body, return requestInfo; } /// - /// Set a presence status message for a user. An optional expiration date and time can be supplied. + /// Get a user's presence information. /// public class PresenceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/Users/Item/Restore/RestoreRequestBuilder.cs b/src/generated/Users/Item/Restore/RestoreRequestBuilder.cs index f03a866287b..0e600aabad0 100644 --- a/src/generated/Users/Item/Restore/RestoreRequestBuilder.cs +++ b/src/generated/Users/Item/Restore/RestoreRequestBuilder.cs @@ -20,12 +20,12 @@ namespace ApiSdk.Users.Item.Restore { /// public class RestoreRequestBuilder : BaseCliRequestBuilder { /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// Find more info here /// public Command BuildPostCommand() { var command = new Command("post"); - command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; + command.Description = "Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -69,7 +69,7 @@ public RestoreRequestBuilder(Dictionary pathParameters) : base(" public RestoreRequestBuilder(string rawUrl) : base("{+baseurl}/users/{user%2Did}/restore", rawUrl) { } /// - /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. + /// Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/generated/Users/Item/UserItemRequestBuilder.cs b/src/generated/Users/Item/UserItemRequestBuilder.cs index 05e6096ea91..9ed0ee979bd 100644 --- a/src/generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/generated/Users/Item/UserItemRequestBuilder.cs @@ -463,12 +463,12 @@ public Command BuildCreatedObjectsNavCommand() { return command; } /// - /// Deletes a user. - /// Find more info here + /// Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. + /// Find more info here /// public Command BuildDeleteCommand() { var command = new Command("delete"); - command.Description = "Deletes a user.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0"; + command.Description = "Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/user-delete?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -745,12 +745,12 @@ public Command BuildFollowedSitesNavCommand() { return command; } /// - /// Read properties and relationships of the user object. - /// Find more info here + /// Retrieve the properties and relationships of user object. + /// Find more info here /// public Command BuildGetCommand() { var command = new Command("get"); - command.Description = "Read properties and relationships of the user object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0"; + command.Description = "Retrieve the properties and relationships of user object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/user-get?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -1306,12 +1306,12 @@ public Command BuildOwnedObjectsNavCommand() { return command; } /// - /// Update the properties of a user object. - /// Find more info here + /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. + /// Find more info here /// public Command BuildPatchCommand() { var command = new Command("patch"); - command.Description = "Update the properties of a user object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-user-update?view=graph-rest-1.0"; + command.Description = "Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0"; var userIdOption = new Option("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") { }; userIdOption.IsRequired = true; @@ -1795,7 +1795,7 @@ public UserItemRequestBuilder(Dictionary pathParameters) : base( public UserItemRequestBuilder(string rawUrl) : base("{+baseurl}/users/{user%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a user. + /// Delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1811,7 +1811,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the user object. + /// Retrieve the properties and relationships of user object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1827,7 +1827,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a user object. + /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -1845,7 +1845,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.User body, Act return requestInfo; } /// - /// Read properties and relationships of the user object. + /// Retrieve the properties and relationships of user object. /// public class UserItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/generated/Users/UsersRequestBuilder.cs b/src/generated/Users/UsersRequestBuilder.cs index 445a55015b3..d1dfa26a91a 100644 --- a/src/generated/Users/UsersRequestBuilder.cs +++ b/src/generated/Users/UsersRequestBuilder.cs @@ -215,11 +215,11 @@ public Command BuildGetByIdsNavCommand() { } /// /// List properties and relationships of the user objects. - /// Find more info here + /// Find more info here /// public Command BuildListCommand() { var command = new Command("list"); - command.Description = "List properties and relationships of the user objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-user-list?view=graph-rest-1.0"; + command.Description = "List properties and relationships of the user objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-user-list?view=graph-rest-1.0"; var consistencyLevelOption = new Option("--consistency-level", description: "Indicates the requested consistency level. Documentation URL: https://docs.microsoft.com/graph/aad-advanced-queries") { Arity = ArgumentArity.ZeroOrMore }; diff --git a/src/generated/kiota-lock.json b/src/generated/kiota-lock.json index ff92b74f781..33a068c1f5f 100644 --- a/src/generated/kiota-lock.json +++ b/src/generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "6DA35D9AA714EDF973538BF50655E022B6E70EF14FADCAC442DBACA93805F256BE1A51AADD1370D41EAE6B31585988CD2EA7B576565F796613288F79B96785A3", + "descriptionHash": "1A2EC9B85AF656A207E9D1A367742B384CFF56F7A0A6F76C104205ADB7ECF6E57BF9BFE9830127B3E9E44CCCB7A5C18F45B048A0477048FC3EB6C372AACAA288", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.9.0", + "kiotaVersion": "1.10.0", "clientClassName": "GraphClient", "clientNamespaceName": "ApiSdk", "language": "CLI",