diff --git a/CHANGELOG.md b/CHANGELOG.md index 2baf504309a..624c900b11b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [Unreleased] +## [5.19.0] - 2023-07-19 + +- Latest metadata updates from 18th July 2023. + ## [5.18.0] - 2023-07-12 - Fixes missing odata cast paths for `Directory Role` in `memberOf` and `transitiveMemberOf`(https://github.com/microsoftgraph/msgraph-metadata/issues/372). diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs index e09caf89972..741f855d7ab 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/FileRequestBuilder.cs @@ -52,7 +52,7 @@ public async Task DeleteAsync(Action - /// Retrieve the details of the default file for an agreement, including the language and version information. The file information is specified through the agreementFile object. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the **Accept-Language** header. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the details of the default file for an agreement, including the language and version information. The file information is specified through the agreementFile object. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the **Accept-Language** header. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -187,7 +187,7 @@ public FileRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the details of the default file for an agreement, including the language and version information. The file information is specified through the agreementFile object. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the **Accept-Language** header. /// public class FileRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs index bc6c4ac82ea..6bb8e83014f 100644 --- a/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs @@ -40,7 +40,8 @@ public LocalizationsRequestBuilder(Dictionary pathParameters, IR public LocalizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agreements/{agreement%2Did}/file/localizations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The localized version of the terms of use agreement files attached to the agreement. + /// Get a list of the default and localized agreement files. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -80,7 +81,7 @@ public async Task PostAsync(AgreementFileLocalization return await RequestAdapter.SendAsync(requestInfo, AgreementFileLocalization.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// The localized version of the terms of use agreement files attached to the agreement. + /// Get a list of the default and localized agreement files. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +135,7 @@ public RequestInformation ToPostRequestInformation(AgreementFileLocalization bod return requestInfo; } /// - /// The localized version of the terms of use agreement files attached to the agreement. + /// Get a list of the default and localized agreement files. /// public class LocalizationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs index 3b92dec0d26..8db44fd5b36 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs @@ -28,7 +28,7 @@ public RefRequestBuilder(Dictionary pathParameters, IRequestAdap public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Assign a tokenLifetimePolicy to an application. + /// Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. /// Find more info here /// /// The request body @@ -70,7 +70,7 @@ public async Task PostAsync(ReferenceCreate body, Action - /// List the tokenLifetimePolicy objects that are assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -96,7 +96,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Assign a tokenLifetimePolicy to an application. + /// Assign a tokenLifetimePolicy to an application. You can have multiple tokenLifetimePolicy policies in a tenant but can assign only one tokenLifetimePolicy per application. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -123,7 +123,7 @@ public RequestInformation ToPostRequestInformation(ReferenceCreate body, Action< return requestInfo; } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// public class RefRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs index a2db2a18aba..a5a736450af 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/TokenLifetimePoliciesRequestBuilder.cs @@ -45,7 +45,7 @@ public TokenLifetimePoliciesRequestBuilder(Dictionary pathParame public TokenLifetimePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -65,7 +65,7 @@ public async Task GetAsync(Action(requestInfo, TokenLifetimePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// List the tokenLifetimePolicy objects that are assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -91,7 +91,7 @@ public RequestInformation ToGetRequestInformation(Action - /// List the tokenLifetimePolicy objects that are assigned to an application. + /// List the tokenLifetimePolicy objects that are assigned to an application. Only one object is returned in the collection because only one tokenLifetimePolicy can be assigned to an application. /// public class TokenLifetimePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs new file mode 100644 index 00000000000..ee74bc6d3d7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ApplicationsWithAppId/ApplicationsWithAppIdRequestBuilder.cs @@ -0,0 +1,248 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.ApplicationsWithAppId { + /// + /// Provides operations to manage the collection of application entities. + /// + public class ApplicationsWithAppIdRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ApplicationsWithAppIdRequestBuilder and sets the default values. + /// + /// Alternate key of application + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApplicationsWithAppIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string appId = "") : base(requestAdapter, "{+baseurl}/applications(appId='{appId}'){?%24select,%24expand}", pathParameters) { + if (!string.IsNullOrWhiteSpace(appId)) PathParameters.Add("appId", appId); + } + /// + /// Instantiates a new ApplicationsWithAppIdRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApplicationsWithAppIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications(appId='{appId}'){?%24select,%24expand}", rawUrl) { + } + /// + /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the properties and relationships of an application object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the properties of an application object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Application body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Application body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Application.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete an application object. When deleted, apps are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the properties and relationships of an application object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ApplicationsWithAppIdRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of an application object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Application body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Application body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new applicationsWithAppIdRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public ApplicationsWithAppIdRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get the properties and relationships of an application object. + /// + public class ApplicationsWithAppIdRequestBuilderGetQueryParameters { + /// 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 + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApplicationsWithAppIdRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ApplicationsWithAppIdRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ApplicationsWithAppIdRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new applicationsWithAppIdRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ApplicationsWithAppIdRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new applicationsWithAppIdRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public ApplicationsWithAppIdRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs b/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs index 79706d4b59b..74a9983892d 100644 --- a/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs +++ b/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs @@ -4,6 +4,7 @@ using Microsoft.Graph.AppCatalogs; using Microsoft.Graph.ApplicationTemplates; using Microsoft.Graph.Applications; +using Microsoft.Graph.ApplicationsWithAppId; using Microsoft.Graph.AuditLogs; using Microsoft.Graph.AuthenticationMethodConfigurations; using Microsoft.Graph.AuthenticationMethodsPolicy; @@ -18,10 +19,12 @@ using Microsoft.Graph.DeviceAppManagement; using Microsoft.Graph.DeviceManagement; using Microsoft.Graph.Devices; +using Microsoft.Graph.DevicesWithDeviceId; using Microsoft.Graph.DirectoryNamespace; using Microsoft.Graph.DirectoryObjects; using Microsoft.Graph.DirectoryRoleTemplates; using Microsoft.Graph.DirectoryRoles; +using Microsoft.Graph.DirectoryRolesWithRoleTemplateId; using Microsoft.Graph.DomainDnsRecords; using Microsoft.Graph.Domains; using Microsoft.Graph.Drives; @@ -57,6 +60,7 @@ using Microsoft.Graph.Search; using Microsoft.Graph.Security; using Microsoft.Graph.ServicePrincipals; +using Microsoft.Graph.ServicePrincipalsWithAppId; using Microsoft.Graph.Shares; using Microsoft.Graph.Sites; using Microsoft.Graph.Solutions; @@ -360,6 +364,14 @@ public class BaseGraphServiceClient : BaseRequestBuilder { new UsersRequestBuilder(PathParameters, RequestAdapter); } /// + /// Provides operations to manage the collection of application entities. + /// + /// Alternate key of application + public ApplicationsWithAppIdRequestBuilder ApplicationsWithAppId(string appId) { + if(string.IsNullOrEmpty(appId)) throw new ArgumentNullException(nameof(appId)); + return new ApplicationsWithAppIdRequestBuilder(PathParameters, RequestAdapter, appId); + } + /// /// Instantiates a new BaseGraphServiceClient and sets the default values. /// /// The backing store to use for the models. @@ -377,5 +389,29 @@ public class BaseGraphServiceClient : BaseRequestBuilder { PathParameters.TryAdd("baseurl", RequestAdapter.BaseUrl); RequestAdapter.EnableBackingStore(backingStore); } + /// + /// Provides operations to manage the collection of device entities. + /// + /// Alternate key of device + public DevicesWithDeviceIdRequestBuilder DevicesWithDeviceId(string deviceId) { + if(string.IsNullOrEmpty(deviceId)) throw new ArgumentNullException(nameof(deviceId)); + return new DevicesWithDeviceIdRequestBuilder(PathParameters, RequestAdapter, deviceId); + } + /// + /// Provides operations to manage the collection of directoryRole entities. + /// + /// Alternate key of directoryRole + public DirectoryRolesWithRoleTemplateIdRequestBuilder DirectoryRolesWithRoleTemplateId(string roleTemplateId) { + if(string.IsNullOrEmpty(roleTemplateId)) throw new ArgumentNullException(nameof(roleTemplateId)); + return new DirectoryRolesWithRoleTemplateIdRequestBuilder(PathParameters, RequestAdapter, roleTemplateId); + } + /// + /// Provides operations to manage the collection of servicePrincipal entities. + /// + /// Alternate key of servicePrincipal + public ServicePrincipalsWithAppIdRequestBuilder ServicePrincipalsWithAppId(string appId) { + if(string.IsNullOrEmpty(appId)) throw new ArgumentNullException(nameof(appId)); + return new ServicePrincipalsWithAppIdRequestBuilder(PathParameters, RequestAdapter, appId); + } } } diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 6fc7c92d902..62ed3992c86 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -48,8 +48,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. - /// Find more info here + /// Retrieve a conversationMember from a chat. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,7 +183,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs index ebb8e2f76bf..0bb1445adca 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs index 426576afa0c..4de2b4c3d51 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -344,7 +344,7 @@ public GetEffectivePermissionsWithScopeRequestBuilder GetEffectivePermissionsWit } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs new file mode 100644 index 00000000000..df54f82388d --- /dev/null +++ b/src/Microsoft.Graph/Generated/DevicesWithDeviceId/DevicesWithDeviceIdRequestBuilder.cs @@ -0,0 +1,248 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DevicesWithDeviceId { + /// + /// Provides operations to manage the collection of device entities. + /// + public class DevicesWithDeviceIdRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new DevicesWithDeviceIdRequestBuilder and sets the default values. + /// + /// Alternate key of device + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DevicesWithDeviceIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string deviceId = "") : base(requestAdapter, "{+baseurl}/devices(deviceId='{deviceId}'){?%24select,%24expand}", pathParameters) { + if (!string.IsNullOrWhiteSpace(deviceId)) PathParameters.Add("deviceId", deviceId); + } + /// + /// Instantiates a new DevicesWithDeviceIdRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DevicesWithDeviceIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices(deviceId='{deviceId}'){?%24select,%24expand}", rawUrl) { + } + /// + /// Delete a registered device. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the properties and relationships of a device object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.Device body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.Device body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete a registered device. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new DevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get the properties and relationships of a device object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DevicesWithDeviceIdRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the properties of a registered device. Only certain properties of a device can be updated through approved Mobile Device Managment (MDM) apps. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Device body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Device body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new DevicesWithDeviceIdRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new devicesWithDeviceIdRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public DevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get the properties and relationships of a device object. + /// + public class DevicesWithDeviceIdRequestBuilderGetQueryParameters { + /// 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 + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DevicesWithDeviceIdRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DevicesWithDeviceIdRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DevicesWithDeviceIdRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new devicesWithDeviceIdRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DevicesWithDeviceIdRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DevicesWithDeviceIdRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new devicesWithDeviceIdRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public DevicesWithDeviceIdRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs new file mode 100644 index 00000000000..8fbf8857af1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRolesWithRoleTemplateId/DirectoryRolesWithRoleTemplateIdRequestBuilder.cs @@ -0,0 +1,246 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.DirectoryRolesWithRoleTemplateId { + /// + /// Provides operations to manage the collection of directoryRole entities. + /// + public class DirectoryRolesWithRoleTemplateIdRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new DirectoryRolesWithRoleTemplateIdRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + /// Alternate key of directoryRole + public DirectoryRolesWithRoleTemplateIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string roleTemplateId = "") : base(requestAdapter, "{+baseurl}/directoryRoles(roleTemplateId='{roleTemplateId}'){?%24select,%24expand}", pathParameters) { + if (!string.IsNullOrWhiteSpace(roleTemplateId)) PathParameters.Add("roleTemplateId", roleTemplateId); + } + /// + /// Instantiates a new DirectoryRolesWithRoleTemplateIdRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DirectoryRolesWithRoleTemplateIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles(roleTemplateId='{roleTemplateId}'){?%24select,%24expand}", rawUrl) { + } + /// + /// Delete entity from directoryRoles by roleTemplateId + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the **directoryRole** with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update entity in directoryRoles by roleTemplateId + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(DirectoryRole body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(DirectoryRole body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DirectoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete entity from directoryRoles by roleTemplateId + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new DirectoryRolesWithRoleTemplateIdRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the **directoryRole** with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DirectoryRolesWithRoleTemplateIdRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update entity in directoryRoles by roleTemplateId + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(DirectoryRole body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(DirectoryRole body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new DirectoryRolesWithRoleTemplateIdRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DirectoryRolesWithRoleTemplateIdRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new directoryRolesWithRoleTemplateIdRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public DirectoryRolesWithRoleTemplateIdRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Retrieve the properties of a directoryRole object. The role must be activated in tenant for a successful response. You can use both the object ID and template ID of the **directoryRole** with this API. The template ID of a built-in role is immutable and can be seen in the role description on the Azure portal. For details, see Role template IDs. + /// + public class DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters { + /// 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 + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DirectoryRolesWithRoleTemplateIdRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DirectoryRolesWithRoleTemplateIdRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new directoryRolesWithRoleTemplateIdRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DirectoryRolesWithRoleTemplateIdRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DirectoryRolesWithRoleTemplateIdRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new directoryRolesWithRoleTemplateIdRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public DirectoryRolesWithRoleTemplateIdRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs index 8d60f1c4b8e..c1817533c18 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -17,6 +17,7 @@ using Microsoft.Graph.Drives.Item.Items.Item.Invite; using Microsoft.Graph.Drives.Item.Items.Item.LastModifiedByUser; using Microsoft.Graph.Drives.Item.Items.Item.ListItem; +using Microsoft.Graph.Drives.Item.Items.Item.PermanentDelete; using Microsoft.Graph.Drives.Item.Items.Item.Permissions; using Microsoft.Graph.Drives.Item.Items.Item.Preview; using Microsoft.Graph.Drives.Item.Items.Item.Restore; @@ -110,6 +111,10 @@ public class DriveItemItemRequestBuilder : BaseRequestBuilder { public ListItemRequestBuilder ListItem { get => new ListItemRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the permanentDelete method. + public PermanentDeleteRequestBuilder PermanentDelete { get => + new PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the permissions property of the microsoft.graph.driveItem entity. public PermissionsRequestBuilder Permissions { get => new PermissionsRequestBuilder(PathParameters, RequestAdapter); @@ -220,8 +225,8 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// To move a DriveItem to a new parent item, your app requests to update the **parentReference** of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. - /// Find more info here + /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's **parentReference** property. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -300,7 +305,7 @@ public RequestInformation ToGetRequestInformation(Action - /// To move a DriveItem to a new parent item, your app requests to update the **parentReference** of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. + /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's **parentReference** property. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..e99293c0729 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,89 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Drives.Item.Items.Item.PermanentDelete { + /// + /// Provides operations to call the permanentDelete method. + /// + public class PermanentDeleteRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permanentDelete", pathParameters) { + } + /// + /// Instantiates a new PermanentDeleteRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permanentDelete", rawUrl) { + } + /// + /// Invoke action permanentDelete + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action permanentDelete + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new PermanentDeleteRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class PermanentDeleteRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new permanentDeleteRequestBuilderPostRequestConfiguration and sets the default values. + /// + public PermanentDeleteRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs index d0c94daf406..46f08e18b67 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -28,8 +28,8 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Retrieve the properties and relationships of range object. - /// Find more info here + /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of range object. + /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. /// /// 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/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs index 444c4c72fb9..4d4ed8349f9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -47,7 +47,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs index da095281e07..57613ca5c7b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs @@ -42,7 +42,7 @@ public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chartseries objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs index e79554ef4ea..c57256d145a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -28,8 +28,8 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Retrieve the properties and relationships of range object. - /// Find more info here + /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve the properties and relationships of range object. + /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. /// /// 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/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs index 63ebd5d2cc3..72f30b1d2a5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -47,7 +47,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs index b6931e15191..3283f95bd3b 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -46,7 +46,7 @@ public WorksheetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Retrieve a list of worksheet objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 6fa4de77270..bee30c09546 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 3201506fa76..00a7cf4fa9a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index fd0bc374f8b..5aaa5b5eb1c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index b3450969346..fb0a4fa5243 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 895fb0960a2..3d7fdefd4e4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index e068f2a9769..03d3ae9c8b8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 28c40bf4552..bfbc04d53c7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -53,8 +53,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of conversation object. - /// Find more info here + /// The group's conversations. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -97,7 +97,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of conversation object. + /// The group's conversations. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -139,7 +139,7 @@ public ConversationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of conversation object. + /// The group's conversations. /// public class ConversationItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index a0f263e1a7c..16294e986cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 8e0694eac3d..3ff74b2cd95 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index a9444a54a9e..9c88eb24865 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs index 8f4aa66be7f..11fbeb624d6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index ab8cf078c9d..e9e9ce473f2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 52826af59fc..2dc50467071 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs index d2e495804bc..f610082d1b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index dda6616e03e..285aab11558 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index 005598f745a..29b263eaf4b 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -48,8 +48,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a namedLocation object. - /// Find more info here + /// Retrieve the properties and relationships of an ipNamedLocation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the properties of an ipNamedLocation object. - /// Find more info here + /// Update the properties of a countryNamedLocation object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ipNamedLocation object. + /// Update the properties of a countryNamedLocation object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -184,7 +184,7 @@ public NamedLocationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. /// public class NamedLocationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs index 785aef48c9e..f3e0f2acff5 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs @@ -63,8 +63,8 @@ public async Task DeleteAsync(Action - /// Retrieve all localized files related to an agreement. - /// Find more info here + /// Retrieve the properties and relationships of an agreement object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve all localized files related to an agreement. + /// Retrieve the properties and relationships of an agreement object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -199,7 +199,7 @@ public AgreementItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve all localized files related to an agreement. + /// Retrieve the properties and relationships of an agreement object. /// public class AgreementItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs index b9fd20ac15e..92be4e0c369 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/FileRequestBuilder.cs @@ -52,7 +52,7 @@ public async Task DeleteAsync(Action - /// Retrieve the details of the default file for an agreement, including the language and version information. The file information is specified through the agreementFile object. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the **Accept-Language** header. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the details of the default file for an agreement, including the language and version information. The file information is specified through the agreementFile object. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the **Accept-Language** header. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -187,7 +187,7 @@ public FileRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the details of the default file for an agreement, including the language and version information. The file information is specified through the agreementFile object. + /// Retrieve the details of an agreement file, including the language and version information. The default file can have multiple versions, each with its own language, that can be retrieved by specifying the **Accept-Language** header. /// public class FileRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs index 229f555941c..647e8e249fb 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/FileNamespace/Localizations/LocalizationsRequestBuilder.cs @@ -40,7 +40,8 @@ public LocalizationsRequestBuilder(Dictionary pathParameters, IR public LocalizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/termsOfUse/agreements/{agreement%2Did}/file/localizations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// The localized version of the terms of use agreement files attached to the agreement. + /// Get a list of the default and localized agreement files. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -80,7 +81,7 @@ public async Task PostAsync(AgreementFileLocalization return await RequestAdapter.SendAsync(requestInfo, AgreementFileLocalization.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// The localized version of the terms of use agreement files attached to the agreement. + /// Get a list of the default and localized agreement files. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +135,7 @@ public RequestInformation ToPostRequestInformation(AgreementFileLocalization bod return requestInfo; } /// - /// The localized version of the terms of use agreement files attached to the agreement. + /// Get a list of the default and localized agreement files. /// public class LocalizationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs index a0195690874..1f935f43721 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs @@ -71,8 +71,8 @@ public async Task GetAsync(Action(requestInfo, ActivityHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete an existing history item for an existing user activity. - /// Find more info here + /// Create a new or replace an existing history item for an existing user activity. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Delete an existing history item for an existing user activity. + /// Create a new or replace an existing history item for an existing user activity. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 938e4807abd..3ad5acd1505 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index d041db6d856..f997ce9dc11 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 13ae6bd641f..c73ba7d68ba 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index ce00ab4b99e..ed8f2397acc 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 3edcd2f8c3f..e8f16825a6a 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c365e24deff..71d23f983f6 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 66aa620ab42..cc8bacd4311 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0a1b155bb82..ddad796b12e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index fb29926075f..b9acd3c5f9e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 463167bf071..79299955a1f 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index f0fa64ea1c1..0e61972e648 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f76bc6256b9..9b7d22b4564 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 4d7955c51bb..d6ceb9a69cf 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index b92b6ec7525..9c2d39f2016 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index fba5ada22a6..8f453acab6e 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -48,8 +48,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. - /// Find more info here + /// Retrieve a conversationMember from a chat. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,7 +183,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs index 25997044bb3..6ac50954884 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 2104c1e2376..c1bbe8df1bd 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 3e379df420e..2e8845438e5 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 46a6260c713..56d86aab240 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index a4e71b1e762..68cacc76271 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 4b5feeb2361..307fa64c935 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 8dd97b040cd..18d83c98ce6 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 4f4e167d65e..1f40f122671 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 725a3b30c39..e24b957b421 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index ad4f59c8e6b..9880f270c19 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new mailSearchFolder in the specified user's mailbox. - /// Find more info here + /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new mailSearchFolder in the specified user's mailbox. + /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index bffc5c47514..50c06a40554 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 can add 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 can add 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/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 04969f540fc..2ff66e7403d 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 can add 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 can add 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/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 9b87e26e054..d49ada906d3 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 can add 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 can add 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/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index 1ce5cdcdc19..a2ec5f9f862 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -88,8 +88,8 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// - /// Delete eventMessage. - /// Find more info here + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,7 +109,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,8 +128,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the properties of a message object. - /// Find more info here + /// Update the properties of an eventMessage object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -150,7 +150,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete eventMessage. + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a message object. + /// Update the properties of an eventMessage object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs index bbe0395dffa..bb0c2a119ac 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -28,7 +28,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from me - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index 5526e4fbfee..b8b356c25e9 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -46,7 +46,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Models/ComplianceInformation.cs b/src/Microsoft.Graph/Generated/Models/ComplianceInformation.cs index a9af76dace5..b6033e2f0f9 100644 --- a/src/Microsoft.Graph/Generated/Models/ComplianceInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/ComplianceInformation.cs @@ -13,7 +13,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Collection of the certification controls associated with certification + /// Collection of the certification controls associated with the certification. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? CertificationControls { @@ -27,7 +27,7 @@ public List CertificationControls { set { BackingStore?.Set("certificationControls", value); } } #endif - /// Compliance certification name (for example, ISO 27018:2014, GDPR, FedRAMP, NIST 800-171) + /// The name of the compliance certification, for example, ISO 27018:2014, GDPR, FedRAMP, and NIST 800-171. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CertificationName { diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs b/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs index a433a7cf6a3..6e846e1c7b9 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryAudit.cs @@ -10,7 +10,7 @@ public DateTimeOffset? ActivityDateTime { get { return BackingStore?.Get("activityDateTime"); } set { BackingStore?.Set("activityDateTime", value); } } - /// Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For full list, see Azure AD activity list. + /// Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For a list of activities logged, refer to Azure AD audit log categories and activities. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ActivityDisplayName { @@ -38,7 +38,7 @@ public List AdditionalDetails { set { BackingStore?.Set("additionalDetails", value); } } #endif - /// Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. + /// Indicates which resource category that's targeted by the activity. For example: UserManagement, GroupManagement, ApplicationManagement, RoleManagement. For a list of categories for activities logged, refer to Azure AD audit log categories and activities. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Category { diff --git a/src/Microsoft.Graph/Generated/Models/Domain.cs b/src/Microsoft.Graph/Generated/Models/Domain.cs index 7dacb69d943..41a0080abae 100644 --- a/src/Microsoft.Graph/Generated/Models/Domain.cs +++ b/src/Microsoft.Graph/Generated/Models/Domain.cs @@ -5,7 +5,7 @@ using System; namespace Microsoft.Graph.Models { public class Domain : Entity, IParsable { - /// Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. This property is read-only and is not nullable. + /// Indicates the configured authentication type for the domain. The value is either Managed or Federated. Managed indicates a cloud managed domain where Azure AD performs user authentication. Federated indicates authentication is federated with an identity provider such as the tenant's on-premises Active Directory via Active Directory Federation Services. Not nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AuthenticationType { diff --git a/src/Microsoft.Graph/Generated/Models/TenantInformation.cs b/src/Microsoft.Graph/Generated/Models/TenantInformation.cs new file mode 100644 index 00000000000..3b7897da82a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/TenantInformation.cs @@ -0,0 +1,127 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class TenantInformation : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The defaultDomainName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DefaultDomainName { + get { return BackingStore?.Get("defaultDomainName"); } + set { BackingStore?.Set("defaultDomainName", value); } + } +#nullable restore +#else + public string DefaultDomainName { + get { return BackingStore?.Get("defaultDomainName"); } + set { BackingStore?.Set("defaultDomainName", value); } + } +#endif + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The federationBrandName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FederationBrandName { + get { return BackingStore?.Get("federationBrandName"); } + set { BackingStore?.Set("federationBrandName", value); } + } +#nullable restore +#else + public string FederationBrandName { + get { return BackingStore?.Get("federationBrandName"); } + set { BackingStore?.Set("federationBrandName", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The tenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#nullable restore +#else + public string TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#endif + /// + /// Instantiates a new tenantInformation and sets the default values. + /// + public TenantInformation() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + 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 TenantInformation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new TenantInformation(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"defaultDomainName", n => { DefaultDomainName = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"federationBrandName", n => { FederationBrandName = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"tenantId", n => { TenantId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("defaultDomainName", DefaultDomainName); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteStringValue("federationBrandName", FederationBrandName); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantId", TenantId); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs index cf8cba19301..3cbc446072f 100644 --- a/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/CrossTenantAccessPolicy/Partners/Item/IdentitySynchronization/IdentitySynchronizationRequestBuilder.cs @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, CrossTenantIdentitySyncPolicyPartner.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a cross-tenant user synchronization policy for a partner-specific configuration. - /// Find more info here + /// Update the user synchronization policy of a partner-specific configuration. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a cross-tenant user synchronization policy for a partner-specific configuration. + /// Update the user synchronization policy of a partner-specific configuration. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs index b6f8da69148..279aad1b182 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs @@ -27,7 +27,8 @@ public MicrosoftGraphSecurityExportRequestBuilder(Dictionary pat public MicrosoftGraphSecurityExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/microsoft.graph.security.export", rawUrl) { } /// - /// Invoke action export + /// Initiate an export from a ediscoveryReviewSet. For details, see Export documents from a review set in eDiscovery (Premium). + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -48,7 +49,7 @@ public async Task PostAsync(ExportPostRequestBody body, Action - /// Invoke action export + /// Initiate an export from a ediscoveryReviewSet. For details, see Export documents from a review set in eDiscovery (Premium). /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs index d2901d77885..0821ea33a2f 100644 --- a/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/Cases/EdiscoveryCases/Item/ReviewSets/Item/Queries/Item/MicrosoftGraphSecurityExport/MicrosoftGraphSecurityExportRequestBuilder.cs @@ -27,7 +27,8 @@ public MicrosoftGraphSecurityExportRequestBuilder(Dictionary pat public MicrosoftGraphSecurityExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/cases/ediscoveryCases/{ediscoveryCase%2Did}/reviewSets/{ediscoveryReviewSet%2Did}/queries/{ediscoveryReviewSetQuery%2Did}/microsoft.graph.security.export", rawUrl) { } /// - /// Invoke action export + /// Initiate an export from a microsoft.graph.security.ediscoveryReviewSetQuery. For details, see Export documents from a review set in eDiscovery (Premium). + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -48,7 +49,7 @@ public async Task PostAsync(ExportPostRequestBody body, Action - /// Invoke action export + /// Initiate an export from a microsoft.graph.security.ediscoveryReviewSetQuery. For details, see Export documents from a review set in eDiscovery (Premium). /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs index a4a45404ec8..ac656f6ed40 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/IntelligenceProfileIndicatorsRequestBuilder.cs @@ -40,7 +40,7 @@ public IntelligenceProfileIndicatorsRequestBuilder(Dictionary pa public IntelligenceProfileIndicatorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/threatIntelligence/intelligenceProfileIndicators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get intelligenceProfileIndicators from security + /// Read the properties and relationships of a intelligenceProfileIndicator object. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -80,7 +80,7 @@ public async Task PostAsync(IntelligenceProfileInd return await RequestAdapter.SendAsync(requestInfo, IntelligenceProfileIndicator.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get intelligenceProfileIndicators from security + /// Read the properties and relationships of a intelligenceProfileIndicator object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -134,7 +134,7 @@ public RequestInformation ToPostRequestInformation(IntelligenceProfileIndicator return requestInfo; } /// - /// Get intelligenceProfileIndicators from security + /// Read the properties and relationships of a intelligenceProfileIndicator object. /// public class IntelligenceProfileIndicatorsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs index a26bbbdf4ed..c15cf44544b 100644 --- a/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/ThreatIntelligence/IntelligenceProfileIndicators/Item/IntelligenceProfileIndicatorItemRequestBuilder.cs @@ -52,7 +52,8 @@ public async Task DeleteAsync(Action - /// Get intelligenceProfileIndicators from security + /// Read the properties and relationships of a intelligenceProfileIndicator object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -116,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get intelligenceProfileIndicators from security + /// Read the properties and relationships of a intelligenceProfileIndicator object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +187,7 @@ public IntelligenceProfileIndicatorItemRequestBuilderDeleteRequestConfiguration( } } /// - /// Get intelligenceProfileIndicators from security + /// Read the properties and relationships of a intelligenceProfileIndicator object. /// public class IntelligenceProfileIndicatorItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs new file mode 100644 index 00000000000..c37ff9e5251 --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipalsWithAppId/ServicePrincipalsWithAppIdRequestBuilder.cs @@ -0,0 +1,247 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.ServicePrincipalsWithAppId { + /// + /// Provides operations to manage the collection of servicePrincipal entities. + /// + public class ServicePrincipalsWithAppIdRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new ServicePrincipalsWithAppIdRequestBuilder and sets the default values. + /// + /// Alternate key of servicePrincipal + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServicePrincipalsWithAppIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string appId = "") : base(requestAdapter, "{+baseurl}/servicePrincipals(appId='{appId}'){?%24select,%24expand}", pathParameters) { + if (!string.IsNullOrWhiteSpace(appId)) PathParameters.Add("appId", appId); + } + /// + /// Instantiates a new ServicePrincipalsWithAppIdRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServicePrincipalsWithAppIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals(appId='{appId}'){?%24select,%24expand}", rawUrl) { + } + /// + /// Delete a servicePrincipal object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Retrieve the properties and relationships of a servicePrincipal object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update entity in servicePrincipals by appId + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(ServicePrincipal body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(ServicePrincipal body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete a servicePrincipal object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new ServicePrincipalsWithAppIdRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Retrieve the properties and relationships of a servicePrincipal object. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ServicePrincipalsWithAppIdRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update entity in servicePrincipals by appId + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(ServicePrincipal body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(ServicePrincipal body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new ServicePrincipalsWithAppIdRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServicePrincipalsWithAppIdRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new servicePrincipalsWithAppIdRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public ServicePrincipalsWithAppIdRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Retrieve the properties and relationships of a servicePrincipal object. + /// + public class ServicePrincipalsWithAppIdRequestBuilderGetQueryParameters { + /// 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 + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServicePrincipalsWithAppIdRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ServicePrincipalsWithAppIdRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ServicePrincipalsWithAppIdRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new servicePrincipalsWithAppIdRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ServicePrincipalsWithAppIdRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ServicePrincipalsWithAppIdRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new servicePrincipalsWithAppIdRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public ServicePrincipalsWithAppIdRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index ace0635b98c..c56e1514c09 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 95d13e5a356..f536dcc8fa2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 240fc535b73..a1880dc674b 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index dd359d711a1..abbcc654103 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 4905195bd23..83173c8de3d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 21aa351bf54..c73a9a6eeae 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 7380fcd99c4..80dff385085 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 2ef6be5cd28..d1533aff390 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 3aab159971b..d3039965c29 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.cs new file mode 100644 index 00000000000..6ee045ab0f1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByDomainNameWithDomainName/FindTenantInformationByDomainNameWithDomainNameRequestBuilder.cs @@ -0,0 +1,93 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.TenantRelationships.FindTenantInformationByDomainNameWithDomainName { + /// + /// Provides operations to call the findTenantInformationByDomainName method. + /// + public class FindTenantInformationByDomainNameWithDomainNameRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FindTenantInformationByDomainNameWithDomainNameRequestBuilder and sets the default values. + /// + /// Usage: domainName='{domainName}' + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FindTenantInformationByDomainNameWithDomainNameRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string domainName = "") : base(requestAdapter, "{+baseurl}/tenantRelationships/findTenantInformationByDomainName(domainName='{domainName}')", pathParameters) { + if (!string.IsNullOrWhiteSpace(domainName)) PathParameters.Add("domainName", domainName); + } + /// + /// Instantiates a new FindTenantInformationByDomainNameWithDomainNameRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FindTenantInformationByDomainNameWithDomainNameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/findTenantInformationByDomainName(domainName='{domainName}')", rawUrl) { + } + /// + /// Invoke function findTenantInformationByDomainName + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TenantInformation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function findTenantInformationByDomainName + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FindTenantInformationByDomainNameWithDomainNameRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FindTenantInformationByDomainNameWithDomainNameRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new findTenantInformationByDomainNameWithDomainNameRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FindTenantInformationByDomainNameWithDomainNameRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.cs new file mode 100644 index 00000000000..85ae6741589 --- /dev/null +++ b/src/Microsoft.Graph/Generated/TenantRelationships/FindTenantInformationByTenantIdWithTenantId/FindTenantInformationByTenantIdWithTenantIdRequestBuilder.cs @@ -0,0 +1,93 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.TenantRelationships.FindTenantInformationByTenantIdWithTenantId { + /// + /// Provides operations to call the findTenantInformationByTenantId method. + /// + public class FindTenantInformationByTenantIdWithTenantIdRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new FindTenantInformationByTenantIdWithTenantIdRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + /// Usage: tenantId='{tenantId}' + public FindTenantInformationByTenantIdWithTenantIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string tenantId = "") : base(requestAdapter, "{+baseurl}/tenantRelationships/findTenantInformationByTenantId(tenantId='{tenantId}')", pathParameters) { + if (!string.IsNullOrWhiteSpace(tenantId)) PathParameters.Add("tenantId", tenantId); + } + /// + /// Instantiates a new FindTenantInformationByTenantIdWithTenantIdRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FindTenantInformationByTenantIdWithTenantIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships/findTenantInformationByTenantId(tenantId='{tenantId}')", rawUrl) { + } + /// + /// Invoke function findTenantInformationByTenantId + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, TenantInformation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function findTenantInformationByTenantId + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new FindTenantInformationByTenantIdWithTenantIdRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class FindTenantInformationByTenantIdWithTenantIdRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new findTenantInformationByTenantIdWithTenantIdRequestBuilderGetRequestConfiguration and sets the default values. + /// + public FindTenantInformationByTenantIdWithTenantIdRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs index fbe19c6c383..a7c32a38f3a 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/TenantRelationshipsRequestBuilder.cs @@ -2,6 +2,8 @@ using Microsoft.Graph.Models; using Microsoft.Graph.TenantRelationships.DelegatedAdminCustomers; using Microsoft.Graph.TenantRelationships.DelegatedAdminRelationships; +using Microsoft.Graph.TenantRelationships.FindTenantInformationByDomainNameWithDomainName; +using Microsoft.Graph.TenantRelationships.FindTenantInformationByTenantIdWithTenantId; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -38,6 +40,22 @@ public TenantRelationshipsRequestBuilder(Dictionary pathParamete public TenantRelationshipsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tenantRelationships{?%24select,%24expand}", rawUrl) { } /// + /// Provides operations to call the findTenantInformationByDomainName method. + /// + /// Usage: domainName='{domainName}' + public FindTenantInformationByDomainNameWithDomainNameRequestBuilder FindTenantInformationByDomainNameWithDomainName(string domainName) { + if(string.IsNullOrEmpty(domainName)) throw new ArgumentNullException(nameof(domainName)); + return new FindTenantInformationByDomainNameWithDomainNameRequestBuilder(PathParameters, RequestAdapter, domainName); + } + /// + /// Provides operations to call the findTenantInformationByTenantId method. + /// + /// Usage: tenantId='{tenantId}' + public FindTenantInformationByTenantIdWithTenantIdRequestBuilder FindTenantInformationByTenantIdWithTenantId(string tenantId) { + if(string.IsNullOrEmpty(tenantId)) throw new ArgumentNullException(nameof(tenantId)); + return new FindTenantInformationByTenantIdWithTenantIdRequestBuilder(PathParameters, RequestAdapter, tenantId); + } + /// /// Get tenantRelationships /// /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs index d043463b7bc..f72ca267054 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs @@ -71,8 +71,8 @@ public async Task GetAsync(Action(requestInfo, ActivityHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete an existing history item for an existing user activity. - /// Find more info here + /// Create a new or replace an existing history item for an existing user activity. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -143,7 +143,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Delete an existing history item for an existing user activity. + /// Create a new or replace an existing history item for an existing user activity. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 0aba6404e50..05e77d3d46a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 075cbfcccfb..cf06252259f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index efc264b45e0..7df62266153 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index df42e83a065..3746bfbb906 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index eb608936605..7f0a4ee57d0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 6d541699846..b12d89b750e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index b7f0fae5ec4..31452e15268 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index e987d59621f..2027b935949 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index e3723811ebb..31dabbf9ae3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 866e92ca483..a82c5e648b1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 86da955ca8b..984d634b8b4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0fdd7fc86ad..c036ce9549f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index fca4d8d2811..e6f54c287f0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c6225c818a2..b4a1dd4be38 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 42406ad1c86..5838eba9f0c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -48,8 +48,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. - /// Find more info here + /// Retrieve a conversationMember from a chat. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,7 +183,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs index e336fe61753..951b99649d0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 85933317ab7..2daee0033d0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index d3f39c6da14..161ea616b21 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index d307e94861c..2fa0fb82c62 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs index 99cd2673b33..9e285e4961c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 36d21edda28..5d17dfc8d94 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 14fbe53a2e6..2fd0f35bcbd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -28,8 +28,8 @@ public ConversationMemberItemRequestBuilder(Dictionary pathParam public ConversationMemberItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/members/{conversationMember%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// 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 + /// Delete a conversationMember from a channel. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. - /// Find more info here + /// Update the role of a conversationMember in a team or channel. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -90,7 +90,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a conversationMember from a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Delete a conversationMember from a channel. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a **membershipType** value of `private` or `shared`. + /// Update the role of a conversationMember in a team or channel. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs index 2927fe7ad00..6042901bc09 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index a9b3d527337..ddf2a5045cd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index a9892a52285..7c39ea82656 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new mailSearchFolder in the specified user's mailbox. - /// Find more info here + /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new mailSearchFolder in the specified user's mailbox. + /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the **isHidden** property to `true` on creation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 351366f1734..62993250b8f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 can add 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 can add 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/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index c46dc680370..28482133c06 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 can add 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 can add 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/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 5ded0bccdb6..c5edee5de8d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -65,8 +65,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 can add 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -113,7 +113,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 can add 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/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index e75d562efbc..a46dac835bd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -88,8 +88,8 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// - /// Delete eventMessage. - /// Find more info here + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,7 +109,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,8 +128,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the properties of a message object. - /// Find more info here + /// Update the properties of an eventMessage object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -150,7 +150,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete eventMessage. + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a message object. + /// Update the properties of an eventMessage object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index 554503bc2cc..d12a99b4546 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -28,7 +28,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index ccb98dc3bd9..2bb97628895 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -46,7 +46,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index a61c59d5544..8bea0eb54b2 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "485E7716C00C32C6C4A421484208938794C2DC15B997C94D3EA26025484ED9F40C1467DBEEA88A85035A56A316F9094B2E6D9B84A511F0F0023259289E8FD695", + "descriptionHash": "F92B13BAE36EAAA79E949CB1D6A4FE8619AD8FF993741240693884E7112C18B41DE086A12CDEA1541478EECDC37258482B8FBCD30EEB50FC7EA19664BA0F8304", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.4.0", + "kiotaVersion": "1.5.0", "clientClassName": "BaseGraphServiceClient", "clientNamespaceName": "Microsoft.Graph", "language": "CSharp", diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index 54d9145f392..ce5708ae379 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -22,7 +22,7 @@ false 35MSSharedLib1024.snk true - 5.18.0 + 5.19.0 diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExcelTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExcelTests.cs index 8edfd419994..be0ea35231a 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExcelTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExcelTests.cs @@ -42,7 +42,7 @@ private async Task OneDriveSearchForTestFile(string fileName = "_excelTestResour continue; else { - Assert.True(false, "Test cleanup is not removing the test Excel file from the test tenant. Please check the cleanup code."); + Assert.Fail("Test cleanup is not removing the test Excel file from the test tenant. Please check the cleanup code."); } } } @@ -98,9 +98,9 @@ internal async Task OneDriveDeleteTestFile(string fileId, int delayInMillisecond catch (ODataError e) { if (e.Error.Code == "resourceModified") - Assert.True(false, "Error code: " + e.Error.Code + ", message: " + e.Error.Message); + Assert.Fail("Error code: " + e.Error.Code + ", message: " + e.Error.Message); else - Assert.True(false, "Something happened. Error code: " + e.Error.Code); + Assert.Fail("Something happened. Error code: " + e.Error.Code); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExtensionTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExtensionTests.cs index 0a8c66f038f..7db24e248e2 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExtensionTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ExtensionTests.cs @@ -31,7 +31,7 @@ public async Task ExtensionAddRoamingProfile() { if (e.Error.Message == "An extension already exists with given id.") { - Assert.True(false, "The extension already exists. Delete the extension step missing." ); + Assert.Fail("The extension already exists. Delete the extension step missing."); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/GroupTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/GroupTests.cs index e96e373f64d..df5d350bbbf 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/GroupTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/GroupTests.cs @@ -33,7 +33,7 @@ public async Task GroupCreateTeam() } catch (ODataError e) { - Assert.True(false, e.Error.ToString()); + Assert.Fail(e.Error.ToString()); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/MailTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/MailTests.cs index c7c8745fcf3..4060bb47714 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/MailTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/MailTests.cs @@ -68,7 +68,7 @@ public async System.Threading.Tasks.Task MailSendMail() } catch (ApiException e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Message); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Message); } } @@ -101,7 +101,7 @@ public async System.Threading.Tasks.Task MailSendMailWithFileAttachment() } catch (ApiException e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Message); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Message); } } @@ -131,7 +131,7 @@ public async System.Threading.Tasks.Task MailGetMailWithFileAttachment() } catch (ApiException e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Message); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Message); } } @@ -154,7 +154,7 @@ public async System.Threading.Tasks.Task MailNextPageRequest() } catch (ApiException e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Message); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Message); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/MiscTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/MiscTests.cs index eee98258605..58fefff9318 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/MiscTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/MiscTests.cs @@ -36,7 +36,7 @@ public async Task GroupCreateExtension() } catch (ODataError e) { - Assert.True(false, e.Error.ToString()); + Assert.Fail(e.Error.ToString()); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneDriveTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneDriveTests.cs index 1380d5226ce..2ade2ff67da 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneDriveTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneDriveTests.cs @@ -128,7 +128,7 @@ public async Task OneDriveDownloadLargeFile() } catch (ODataError e) { - Assert.True(false, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -153,7 +153,7 @@ public async Task OneDriveNextPageRequest() } catch (ODataError e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Error.Code); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Error.Code); } } @@ -179,7 +179,7 @@ public async Task OneDriveGetContent() } catch (ODataError e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Error.Code); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Error.Code); } } @@ -220,7 +220,7 @@ public async Task OneDriveGetSetPermissions() } catch (ODataError e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Error.Code); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Error.Code); } } @@ -240,7 +240,7 @@ public async Task OneDriveSearchFile() } catch (ODataError e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Error.Code); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Error.Code); } } @@ -269,7 +269,7 @@ public async Task OneDriveCreateSharingLink() } catch (ODataError e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Error.Code); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Error.Code); } } @@ -319,7 +319,7 @@ public async Task OneDriveInvite() } catch (ODataError e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Error.Code); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Error.Code); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneNoteTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneNoteTests.cs index 6a0d801f754..1513216bb4c 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneNoteTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/OneNoteTests.cs @@ -57,12 +57,12 @@ public async Task OneNoteGetNotebooks() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -85,12 +85,12 @@ public async Task OneNoteListPages() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -113,12 +113,12 @@ public async Task OneNoteListSections() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -141,12 +141,12 @@ public async Task OneNoteGetSectionGroups() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -170,12 +170,12 @@ public async Task OneNoteGetNotebooksExpandSection() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -198,12 +198,12 @@ public async Task OneNoteGetRecentNotebooks() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -236,12 +236,12 @@ public async Task OneNotePagePreview() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -265,12 +265,12 @@ public async Task OneNoteGetResource() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -296,7 +296,7 @@ public async Task OneNoteTryCreateNotebookWithInvalidChars() catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -324,7 +324,7 @@ public async Task OneNoteCreateNotebook() catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -372,12 +372,12 @@ public async Task OneNoteAddPageHtmlWorkaround() } catch (ApiException e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -425,12 +425,12 @@ public async Task OneNoteAddPageHtmlWithStreamWorkaround() } catch (ODataError e) { - Assert.True(false, $"Error code: {e.Error.Code}"); + Assert.Fail($"Error code: {e.Error.Code}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -491,12 +491,12 @@ public async Task OneNoteAddPageMultipartWorkaround() } catch (ODataError e) { - Assert.True(false, $"Error code: {e.Error.Code}"); + Assert.Fail($"Error code: {e.Error.Code}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -555,12 +555,12 @@ public async Task OneNoteUpdatePage() } catch (ODataError e) { - Assert.True(false, $"Error code: {e.Error.Code}"); + Assert.Fail($"Error code: {e.Error.Code}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -677,12 +677,12 @@ public async Task OneNoteAddPageWithMultipart() } catch (ODataError e) { - Assert.True(false, $"Error code: {e.Error.Code}"); + Assert.Fail($"Error code: {e.Error.Code}"); } catch (Exception e) { - Assert.True(false, $"Error code: {e.Message}"); + Assert.Fail($"Error code: {e.Message}"); } } @@ -703,7 +703,7 @@ public async Task It_accesses_a_sites_OneNote_notebooks() } catch (Exception) { - Assert.True(false, "An unexpected exception was thrown. This test case failed."); + Assert.Fail("An unexpected exception was thrown. This test case failed."); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/PlannerTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/PlannerTests.cs index 76e993171cf..d806f8f8890 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/PlannerTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/PlannerTests.cs @@ -9,7 +9,7 @@ public class PlannerTests : GraphTestBase { - private Group testGroup; + private readonly Group testGroup = new (); private async void TestCleanUp() { @@ -74,7 +74,7 @@ public async Task PlannerGetPlannerPlan() } catch (ApiException e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Message); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Message); } } @@ -91,7 +91,7 @@ public async Task GetPlannerPlan(string planId = "") } catch (ApiException e) { - Assert.True(false, $"Tried to get a PlannerPlan and failed. Error: {e.Message}"); + Assert.Fail($"Tried to get a PlannerPlan and failed. Error: {e.Message}"); } return null; } @@ -112,7 +112,7 @@ public async Task PlannerGetPlannerTasks() } catch (ApiException e) { - Assert.True(false, $"Something happened, check out a trace. Error: {e.Message}"); + Assert.Fail($"Something happened, check out a trace. Error: {e.Message}"); } } /* diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ReportTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ReportTests.cs index cd47bb986f5..dcd08d73b7b 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ReportTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/ReportTests.cs @@ -37,7 +37,7 @@ public async Task ReportingGetUserCounts() } catch (ODataError e) { - Assert.False(true, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/SchemaExtensionTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/SchemaExtensionTests.cs index a21bc4db8e0..b2a53e41694 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/SchemaExtensionTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/SchemaExtensionTests.cs @@ -100,7 +100,7 @@ public async Async.Task SchemaExtensionTest() try { var deletedSchemaExtension = await graphClient.SchemaExtensions[extensionFromGet.Id].GetAsync(); - Assert.False(true, "Expected: ServiceException since the schema extension ws deleted; Actual: the GET on the supposedly deleted schema extension returned successfully."); + Assert.Fail("Expected: ServiceException since the schema extension ws deleted; Actual: the GET on the supposedly deleted schema extension returned successfully."); } catch (ODataError e) { @@ -114,7 +114,7 @@ public async Async.Task SchemaExtensionTest() } catch (ODataError e) { - Assert.False(true, ($"Error: {e.Error.ToString()}")); + Assert.Fail(($"Error: {e.Error.ToString()}")); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/SharePointTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/SharePointTests.cs index d9a57122457..20a6cdf63f0 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/SharePointTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/SharePointTests.cs @@ -25,7 +25,7 @@ public async Task It_searches_the_SharePoint_Site_and_returns_results() } catch (ODataError e) { - Assert.False(true, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -48,7 +48,7 @@ public async Task It_gets_the_sites_drives() } catch (ODataError e) { - Assert.False(true, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -82,7 +82,7 @@ public async Task It_gets_the_sites_drives_root_children() } catch (ODataError e) { - Assert.False(true, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -100,7 +100,7 @@ public async Task It_gets_a_site_by_URL() } catch (ODataError e) { - Assert.False(true, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/UserActivitiesTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/UserActivitiesTests.cs index f4017dac061..1699ec87885 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/UserActivitiesTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/UserActivitiesTests.cs @@ -70,12 +70,12 @@ public async Task ActivitiesCreateActivityAndGetBack() if (getResponse.Value.First().Id != createResponse.Id) { - Assert.True(false, "Ids not equal in create and get responses"); + Assert.Fail("Ids not equal in create and get responses"); } } catch (ODataError e) { - Assert.True(false, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -107,18 +107,18 @@ public async Task ActivitiesCreateHistoryAndGetBack() if (getResponse.Value.First().Id != createActivityResponse.Id) { - Assert.False(true, "Activity ids not equal in create and get responses"); + Assert.Fail("Activity ids not equal in create and get responses"); } if (getResponse.Value.First().HistoryItems.FirstOrDefault() == null || !getResponse.Value.First().HistoryItems.Any(x => x.Id == createHistoryResponse.Id)) { - Assert.False(true, "History ids not equal in create and get responses"); + Assert.Fail("History ids not equal in create and get responses"); } } catch (ODataError e) { - Assert.False(true, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -151,18 +151,18 @@ public async Task ActivitiesGetRecentActivities() if (getRecentResponse.Value.First().Id != createActivityResponse.Id) { - Assert.False(true, "Activity ids not equal in create and get responses"); + Assert.Fail("Activity ids not equal in create and get responses"); } if (getRecentResponse.Value.First().HistoryItems.FirstOrDefault() == null || !getRecentResponse.Value.First().HistoryItems.Any(x => x.Id == createHistoryResponse.Id)) { - Assert.False(true, "History ids not equal in create and get responses"); + Assert.Fail("History ids not equal in create and get responses"); } } catch (ODataError e) { - Assert.False(true, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -190,12 +190,12 @@ public async Task ActivitiesDeleteActivityAndGetBack() if (getResponse.Value.Any(x => x.Id == createResponse.Id)) { - Assert.False(true, "Activity has not been deleted"); + Assert.Fail("Activity has not been deleted"); } } catch (ODataError e) { - Assert.False(true, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -231,18 +231,18 @@ public async Task ActivitiesDeleteHistoryAndGetBack() if (getResponse.Value.First().Id != createActivityResponse.Id) { - Assert.True(false, "Activity ids not equal in create and get responses"); + Assert.Fail("Activity ids not equal in create and get responses"); } if (getResponse.Value.First().HistoryItems?.FirstOrDefault() != null && getResponse.Value.First().HistoryItems.Any(x => x.Id == createHistoryResponse.Id)) { - Assert.True(false, "History ids not equal in create and get responses"); + Assert.Fail("History ids not equal in create and get responses"); } } catch (ODataError e) { - Assert.True(false, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } } diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/UserTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/UserTests.cs index 3e1413baff6..00d506faffa 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/UserTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/UserTests.cs @@ -46,7 +46,7 @@ public async Task UserGetMailtipsTestEnumFlags() } catch (Exception e) { - Assert.True(false, "Something happened, check out a trace. Error code: " + e.Message); + Assert.Fail("Something happened, check out a trace. Error code: " + e.Message); } } @@ -186,7 +186,7 @@ public async Task UserFilterStartsWith() } catch (ODataError e) { - Assert.True(false, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -207,11 +207,11 @@ public async Task UserGetPhoto() { if (e.Error.Code == "ErrorItemNotFound") { - Assert.True(false, "We didn't get a photo back from the service. Check that the target account has a photo."); + Assert.Fail("We didn't get a photo back from the service. Check that the target account has a photo."); } else { - Assert.True(false, "Something happened. Catch the HTTP traffic and find out what happened."); + Assert.Fail("Something happened. Catch the HTTP traffic and find out what happened."); } } } @@ -232,7 +232,7 @@ public async Task UserUpdatePhoto() } catch (ODataError e) { - Assert.True(false, $"Something happened, check out a trace. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened, check out a trace. Error code: {e.Error.Code}"); } } @@ -247,7 +247,7 @@ public async Task UserGetUser() } catch (ODataError e) { - Assert.True(false, $"Something happened. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened. Error code: {e.Error.Code}"); } } @@ -263,7 +263,7 @@ public async Task UserGetManager() } catch (ODataError e) { - Assert.True(false, $"Something happened. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened. Error code: {e.Error.Code}"); } } @@ -288,7 +288,7 @@ public async Task UserUpdateManager() } catch (ODataError e) { - Assert.True(false, $"Something happened. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened. Error code: {e.Error.Code}"); } } @@ -335,7 +335,7 @@ public async Task UserGetMemberGroups_SecurityEnabledOnly_ValueSet() } catch (ODataError e) { - Assert.True(false, $"Something happened. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened. Error code: {e.Error.Code}"); } } @@ -385,7 +385,7 @@ public async Task UpdateUser() } catch (ODataError e) { - Assert.True(false, $"Something happened. Error code: {e.Error.Code}"); + Assert.Fail($"Something happened. Error code: {e.Error.Code}"); } } }