diff --git a/CHANGELOG.md b/CHANGELOG.md index 11d451cb9b8..bf945edbbc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [Unreleased] +## [5.41.0] - 2024-01-31 + +- Latest metadata updates from 30th January 2024. +- Fixes DateTimeTimeZone.ToDateTime returning incorrect parsed date(https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2286) + ## [5.40.0] - 2024-01-24 - Latest metadata updates from 24th January 2024. @@ -32,7 +37,7 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [5.35.0] - 2023-11-15 -- Fixes `Accept` header values generated by the SDK. +- Fixes `Accept` header values generated by the SDK. - Latest metadata updates from 14th November 2023. ## [5.33.0] - 2023-11-02 @@ -41,7 +46,7 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [5.32.0] - 2023-10-24 -- SDK is compatible with trimming(https://github.com/microsoftgraph/msgraph-sdk-dotnet/pull/2174) +- SDK is compatible with trimming(https://github.com/microsoftgraph/msgraph-sdk-dotnet/pull/2174) - Latest metadata updates from 24th October 2023. ## [5.31.0] - 2023-10-19 @@ -77,7 +82,7 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [5.25.0] - 2023-08-30 -- Add `WithUrl` request builders to allow for easier making of requests with arbitrary Urls(https://github.com/microsoft/kiota/pull/3212) +- Add `WithUrl` request builders to allow for easier making of requests with arbitrary Urls(https://github.com/microsoft/kiota/pull/3212) - Latest metadata updates from 29th August 2023. ## [5.24.0] - 2023-08-23 @@ -185,7 +190,7 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [5.5.0] - 2023-04-06 -### Changed +### Changed - Fixes missing dateTime query parameters for bookingBusinesses (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1791) - Fixes missing exapand clauses for calendars and contactFolder (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1788) @@ -294,7 +299,7 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v - Fixes incorrect types for collection types referencing enums - [Kiota #1846](https://github.com/microsoft/kiota/pull/1846) - Fixes missing return object types for PATCH/POST/PUT calls - https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/issues/478 -- Fixes missing QueryParameters for odata functions e.g delta +- Fixes missing QueryParameters for odata functions e.g delta - Latest metadata updates from 27th September 2022 snapshot ## [5.0.0-preview.11] - 2022-07-20 diff --git a/src/Microsoft.Graph/Extensions/DateTimeTimeZoneExtensions.cs b/src/Microsoft.Graph/Extensions/DateTimeTimeZoneExtensions.cs index c85a8c2043f..13acd0e5b86 100644 --- a/src/Microsoft.Graph/Extensions/DateTimeTimeZoneExtensions.cs +++ b/src/Microsoft.Graph/Extensions/DateTimeTimeZoneExtensions.cs @@ -7,10 +7,10 @@ namespace Microsoft.Graph.Models { + /// /// Implements DateTimeTimeZone Extensions /// - public static class DateTimeTimeZoneExtensions { internal const string DateTimeFormat = "yyyy-MM-ddTHH:mm:ss.fffffffK"; @@ -22,26 +22,37 @@ public static class DateTimeTimeZoneExtensions /// public static DateTime ToDateTime(this DateTimeTimeZone dateTimeTimeZone) { - DateTime dateTime = DateTime.ParseExact(dateTimeTimeZone.DateTime, DateTimeFormat, CultureInfo.InvariantCulture); + DateTime parsedDateTime = DateTime.ParseExact(dateTimeTimeZone.DateTime, DateTimeFormat, CultureInfo.InvariantCulture); // Now we need to determine which DateTimeKind to set based on the time zone specified in the input object. TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById(dateTimeTimeZone.TimeZone); DateTimeKind kind; - if (timeZoneInfo.Id == TimeZoneInfo.Utc.Id) + if(timeZoneInfo.StandardName == TimeZoneInfo.Utc.StandardName) { kind = DateTimeKind.Utc; + // however, if the parsedDateTime.Kind is Local, we need to align to be utc too + if (parsedDateTime.Kind == DateTimeKind.Local) + { + parsedDateTime = parsedDateTime.ToUniversalTime(); + } } - else if (timeZoneInfo.Id == TimeZoneInfo.Local.Id) + else if (timeZoneInfo.StandardName == TimeZoneInfo.Local.StandardName) { kind = DateTimeKind.Local; + // however, if the parsedDateTime.Kind is UTC, we need to align it to be local too + if (parsedDateTime.Kind == DateTimeKind.Utc) + { + parsedDateTime = parsedDateTime.ToLocalTime(); + } } else { - kind = DateTimeKind.Unspecified; + //if timeZoneInfo passed is not UTC or Local, then it is Unspecified + //Infer from parsedDateTime.Kind rather than blindly set it to Unspecified + kind = parsedDateTime.Kind; } - - return DateTime.SpecifyKind(dateTime, kind); + return DateTime.SpecifyKind(parsedDateTime, kind); } /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs index 6aebb8e0013..022ed483d0d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/{appManagementPolicy%2Did}/$ref", rawUrl) { } /// /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs index 60ad6954868..c6a094acd0c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/AppManagementPolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/appManagementPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// 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).ConfigureAwait(false); } /// /// The appManagementPolicy applied to this application. @@ -70,6 +90,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The appManagementPolicy applied to this application. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +148,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an appManagementPolicy policy object from an application or service principal object. When you remove the appManagementPolicy, the application or service principal adopts the tenant-wide tenantAppManagementPolicy setting. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The appManagementPolicy applied to this application. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs index 2b205f0faff..79896dd5663 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs index febfb8837a4..d6632b3f80d 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/Owners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// 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).ConfigureAwait(false); } /// /// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an owner from an application. As a recommended best practice, apps should have at least two owners. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Directory objects that are owners of the application. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs index 0a2f835ce9c..76b0f6f0d93 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/{tokenIssuancePolicy%2Did}/$ref", rawUrl) { } /// /// Remove a tokenIssuancePolicy from an application. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a tokenIssuancePolicy from an application. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs index bd072eee098..89f75fc74ee 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenIssuancePolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenIssuancePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a tokenIssuancePolicy from an application. + /// 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).ConfigureAwait(false); } /// /// List the tokenIssuancePolicy objects that are assigned to an application. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a tokenIssuancePolicy from an application. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List the tokenIssuancePolicy objects that are assigned to an application. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a tokenIssuancePolicy from an application. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List the tokenIssuancePolicy objects that are assigned to an application. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs index ec6ccb7d816..8471b5d0319 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/{tokenLifetimePolicy%2Did}/$ref", rawUrl) { } /// /// Remove a tokenLifetimePolicy from an application. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a tokenLifetimePolicy from an application. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } 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 178c77204bc..b2b4cd8afd7 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/tokenLifetimePolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a tokenLifetimePolicy from an application. + /// 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).ConfigureAwait(false); } /// /// 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. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a tokenLifetimePolicy from an application. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// 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. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a tokenLifetimePolicy from an application. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// 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 { diff --git a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index dfb004b68d1..9faae6f26c8 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index a1393f6bfa9..e41f25b5ea8 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -105,7 +105,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Read properties and relationships of the deviceAppManagement object. - /// 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. @@ -125,7 +125,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Update the properties of a deviceAppManagement 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/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index 9824530056f..f0bec442076 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -53,8 +53,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedAppProtection object. - /// Find more info here + /// Read properties and relationships of the managedAppConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppProtection object. + /// Read properties and relationships of the managedAppConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,7 +158,7 @@ public ManagedAppPolicyItemRequestBuilder WithUrl(string rawUrl) { public class ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the managedAppProtection object. + /// Read properties and relationships of the managedAppConfiguration object. /// public class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index ba47474d85e..c2866d01787 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// 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/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 48907527a73..2718703f046 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// 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/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index d9bc6c34385..37607ca44e6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// 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/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs index 9cee0cbc875..d91adc112b5 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs @@ -63,8 +63,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedAppRegistration object. - /// Find more info here + /// Read properties and relationships of the iosManagedAppRegistration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppRegistration object. + /// Read properties and relationships of the iosManagedAppRegistration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -168,7 +168,7 @@ public ManagedAppRegistrationItemRequestBuilder WithUrl(string rawUrl) { public class ManagedAppRegistrationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the managedAppRegistration object. + /// Read properties and relationships of the iosManagedAppRegistration object. /// public class ManagedAppRegistrationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs index 3b88f6c6649..30ca8b811c4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs @@ -47,8 +47,8 @@ public ManagedAppRegistrationsRequestBuilder(Dictionary pathPara public ManagedAppRegistrationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the iosManagedAppRegistration objects. - /// Find more info here + /// List properties and relationships of the androidManagedAppRegistration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,7 +89,7 @@ public async Task PostAsync(ManagedAppRegistration body, return await RequestAdapter.SendAsync(requestInfo, ManagedAppRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the iosManagedAppRegistration objects. + /// List properties and relationships of the androidManagedAppRegistration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public ManagedAppRegistrationsRequestBuilder WithUrl(string rawUrl) { return new ManagedAppRegistrationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the iosManagedAppRegistration objects. + /// List properties and relationships of the androidManagedAppRegistration objects. /// public class ManagedAppRegistrationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs index 149a1b1a68a..f913a388b58 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs @@ -48,8 +48,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedAppStatusRaw object. - /// Find more info here + /// Read properties and relationships of the managedAppStatus object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -105,7 +105,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppStatusRaw object. + /// Read properties and relationships of the managedAppStatus object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public ManagedAppStatusItemRequestBuilder WithUrl(string rawUrl) { public class ManagedAppStatusItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the managedAppStatusRaw object. + /// Read properties and relationships of the managedAppStatus object. /// public class ManagedAppStatusItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs index 7402b4354db..afcec59e239 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ManagedEBookAssignmentItemRequestBuilder(Dictionary pathP public ManagedEBookAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a managedEBookAssignment. - /// Find more info here + /// Deletes a iosVppEBookAssignment. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosVppEBookAssignment object. - /// Find more info here + /// Read properties and relationships of the managedEBookAssignment object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -91,7 +91,7 @@ public async Task PatchAsync(ManagedEBookAssignment body return await RequestAdapter.SendAsync(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a managedEBookAssignment. + /// Deletes a iosVppEBookAssignment. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -107,7 +107,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBookAssignment object. + /// Read properties and relationships of the managedEBookAssignment object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -155,7 +155,7 @@ public ManagedEBookAssignmentItemRequestBuilder WithUrl(string rawUrl) { public class ManagedEBookAssignmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the iosVppEBookAssignment object. + /// Read properties and relationships of the managedEBookAssignment object. /// public class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs index db41fb49bf3..32580b797ac 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs @@ -74,8 +74,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedEBook object. - /// Find more info here + /// Read properties and relationships of the iosVppEBook object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,7 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedEBook object. + /// Read properties and relationships of the iosVppEBook object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -180,7 +180,7 @@ public ManagedEBookItemRequestBuilder WithUrl(string rawUrl) { public class ManagedEBookItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the managedEBook object. + /// Read properties and relationships of the iosVppEBook object. /// public class ManagedEBookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs index 6615387d637..082c6d91a38 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs @@ -42,8 +42,8 @@ public ManagedEBooksRequestBuilder(Dictionary pathParameters, IR public ManagedEBooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedEBook objects. - /// Find more info here + /// List properties and relationships of the iosVppEBook objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,7 +84,7 @@ public async Task PostAsync(ManagedEBook body, Action(requestInfo, ManagedEBook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedEBook objects. + /// List properties and relationships of the iosVppEBook objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public ManagedEBooksRequestBuilder WithUrl(string rawUrl) { return new ManagedEBooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedEBook objects. + /// List properties and relationships of the iosVppEBook objects. /// public class ManagedEBooksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs index 5a6a45e73a1..fe7ac2581c7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public MobileAppConfigurationsRequestBuilder(Dictionary pathPara public MobileAppConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. - /// Find more info here + /// List properties and relationships of the iosMobileAppConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,7 +84,7 @@ public async Task PostAsync(ManagedDeviceMo return await RequestAdapter.SendAsync(requestInfo, ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// List properties and relationships of the iosMobileAppConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public MobileAppConfigurationsRequestBuilder WithUrl(string rawUrl) { return new MobileAppConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// List properties and relationships of the iosMobileAppConfiguration objects. /// public class MobileAppConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs index fb61cce0515..4e044984782 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -124,8 +124,8 @@ public MobileAppItemRequestBuilder(Dictionary pathParameters, IR public MobileAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a managedIOSLobApp. - /// Find more info here + /// Deletes a windowsUniversalAppX. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,8 +144,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the windowsAppX object. - /// Find more info here + /// Read properties and relationships of the managedIOSStoreApp object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -164,8 +164,8 @@ public async Task GetAsync(Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a managedAndroidStoreApp object. - /// Find more info here + /// Update the properties of a iosLobApp object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -186,7 +186,7 @@ public async Task PatchAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a managedIOSLobApp. + /// Deletes a windowsUniversalAppX. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -202,7 +202,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windowsAppX object. + /// Read properties and relationships of the managedIOSStoreApp object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -218,7 +218,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a managedAndroidStoreApp object. + /// Update the properties of a iosLobApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -250,7 +250,7 @@ public MobileAppItemRequestBuilder WithUrl(string rawUrl) { public class MobileAppItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the windowsAppX object. + /// Read properties and relationships of the managedIOSStoreApp object. /// public class MobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs index 04c8da9ba1d..f74484bfe49 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -122,8 +122,8 @@ public MobileAppsRequestBuilder(Dictionary pathParameters, IRequ public MobileAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the macOSLobApp objects. - /// Find more info here + /// List properties and relationships of the androidStoreApp objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -142,8 +142,8 @@ public async Task GetAsync(Action(requestInfo, MobileAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new macOSMicrosoftEdgeApp object. - /// Find more info here + /// Create a new windowsWebApp object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -164,7 +164,7 @@ public async Task PostAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the macOSLobApp objects. + /// List properties and relationships of the androidStoreApp objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -180,7 +180,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new macOSMicrosoftEdgeApp object. + /// Create a new windowsWebApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -206,7 +206,7 @@ public MobileAppsRequestBuilder WithUrl(string rawUrl) { return new MobileAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the macOSLobApp objects. + /// List properties and relationships of the androidStoreApp objects. /// public class MobileAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs index d88f571f097..634807c52f8 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceCompliancePoliciesRequestBuilder(Dictionary pathPar public DeviceCompliancePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windows10CompliancePolicy objects. - /// Find more info here + /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new windows81CompliancePolicy object. - /// Find more info here + /// Create a new windows10CompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceCompliancePolicy body, return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the windows10CompliancePolicy objects. + /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new windows81CompliancePolicy object. + /// Create a new windows10CompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public DeviceCompliancePoliciesRequestBuilder WithUrl(string rawUrl) { return new DeviceCompliancePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the windows10CompliancePolicy objects. + /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. /// public class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index 34afe385859..bdbe7d4a730 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs @@ -74,8 +74,8 @@ public DeviceCompliancePolicyItemRequestBuilder(Dictionary pathP public DeviceCompliancePolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a androidWorkProfileCompliancePolicy. - /// Find more info here + /// Deletes a androidCompliancePolicy. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -94,8 +94,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the windows81CompliancePolicy object. - /// Find more info here + /// Read properties and relationships of the deviceCompliancePolicy object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,8 +114,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a windows10MobileCompliancePolicy object. - /// Find more info here + /// Update the properties of a macOSCompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -136,7 +136,7 @@ public async Task PatchAsync(DeviceCompliancePolicy body return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a androidWorkProfileCompliancePolicy. + /// Deletes a androidCompliancePolicy. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,7 +152,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windows81CompliancePolicy object. + /// Read properties and relationships of the deviceCompliancePolicy object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -168,7 +168,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windows10MobileCompliancePolicy object. + /// Update the properties of a macOSCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -200,7 +200,7 @@ public DeviceCompliancePolicyItemRequestBuilder WithUrl(string rawUrl) { public class DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the windows81CompliancePolicy object. + /// Read properties and relationships of the deviceCompliancePolicy object. /// public class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index 721b74182be..766f94249d7 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceConfigurationsRequestBuilder(Dictionary pathParamet public DeviceConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the iosCertificateProfile objects. - /// Find more info here + /// List properties and relationships of the macOSCustomConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, DeviceConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new windowsPhone81CustomConfiguration object. - /// Find more info here + /// Create a new windows81GeneralConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceConfiguration body, Actio return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the iosCertificateProfile objects. + /// List properties and relationships of the macOSCustomConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new windowsPhone81CustomConfiguration object. + /// Create a new windows81GeneralConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public DeviceConfigurationsRequestBuilder WithUrl(string rawUrl) { return new DeviceConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the iosCertificateProfile objects. + /// List properties and relationships of the macOSCustomConfiguration objects. /// public class DeviceConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs index 817d8bb267e..9d8a92086e1 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs @@ -65,8 +65,8 @@ public DeviceConfigurationItemRequestBuilder(Dictionary pathPara public DeviceConfigurationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a androidWorkProfileCustomConfiguration. - /// Find more info here + /// Deletes a editionUpgradeConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -85,8 +85,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosUpdateConfiguration object. - /// Find more info here + /// Read properties and relationships of the windows10SecureAssessmentConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -135,7 +135,7 @@ public async Task PatchAsync(DeviceConfiguration body, Acti return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a androidWorkProfileCustomConfiguration. + /// Deletes a editionUpgradeConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosUpdateConfiguration object. + /// Read properties and relationships of the windows10SecureAssessmentConfiguration 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 DeviceConfigurationItemRequestBuilder WithUrl(string rawUrl) { public class DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the iosUpdateConfiguration object. + /// Read properties and relationships of the windows10SecureAssessmentConfiguration object. /// public class DeviceConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs index 75850ebb21a..cd3adb404d4 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceEnrollmentConfigurationsRequestBuilder(Dictionary p public DeviceEnrollmentConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceEnrollmentConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the deviceEnrollmentConfiguration objects. - /// Find more info here + /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new deviceEnrollmentLimitConfiguration object. - /// Find more info here + /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceEnrollmentConfi return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the deviceEnrollmentConfiguration objects. + /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceEnrollmentLimitConfiguration object. + /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public DeviceEnrollmentConfigurationsRequestBuilder WithUrl(string rawUrl) { return new DeviceEnrollmentConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the deviceEnrollmentConfiguration objects. + /// List properties and relationships of the deviceEnrollmentLimitConfiguration objects. /// public class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs index 14e12809047..68b27f749e6 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs @@ -44,8 +44,8 @@ public DeviceEnrollmentConfigurationItemRequestBuilder(Dictionary - /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. - /// Find more info here + /// Deletes a deviceEnrollmentLimitConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. - /// Find more info here + /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -106,7 +106,7 @@ public async Task PatchAsync(DeviceEnrollmentConf return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + /// Deletes a deviceEnrollmentLimitConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +138,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. /// /// 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 dc3198a1924..b2b34423600 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -327,7 +327,7 @@ public DeviceManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdap } /// /// Read properties and relationships of the deviceManagement object. - /// 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. @@ -355,7 +355,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/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs index bb207767ac0..0edea1669fd 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs @@ -34,8 +34,8 @@ public RoleDefinitionItemRequestBuilder(Dictionary pathParameter public RoleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a deviceAndAppManagementRoleDefinition. - /// Find more info here + /// Deletes a roleDefinition. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -54,8 +54,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the roleDefinition object. - /// Find more info here + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -74,8 +74,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a deviceAndAppManagementRoleDefinition object. - /// Find more info here + /// Update the properties of a roleDefinition object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -96,7 +96,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a deviceAndAppManagementRoleDefinition. + /// Deletes a roleDefinition. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -112,7 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the roleDefinition object. + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -128,7 +128,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceAndAppManagementRoleDefinition object. + /// Update the properties of a roleDefinition object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -160,7 +160,7 @@ public RoleDefinitionItemRequestBuilder WithUrl(string rawUrl) { public class RoleDefinitionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the roleDefinition object. + /// Read properties and relationships of the deviceAndAppManagementRoleDefinition object. /// public class RoleDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs index 7b526888f18..0b5aa65e90a 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user as a registered owner of the device. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered owner of the device. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs index 9ff13751faa..1975230e8e3 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredOwners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredOwners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user as a registered owner of the 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).ConfigureAwait(false); } /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user as a registered owner of the 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(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user as a registered owner of the device. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs index d4aeb1bdc2c..c8607a20116 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user as a registered user of the device. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user as a registered user of the device. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs index 6e480b24522..69902c2792f 100644 --- a/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Devices/Item/RegisteredUsers/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/{device%2Did}/registeredUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user as a registered user of the 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).ConfigureAwait(false); } /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user as a registered user of the 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(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user as a registered user of the device. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs index faf42085387..fb8b58952c5 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Use this API to remove a member (user, group, or device) from an administrative unit. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Use this API to remove a member (user, group, or device) from an administrative unit. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs index 6a6ebdd822f..f327a9db61e 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/AdministrativeUnits/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/administrativeUnits/{administrativeUnit%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Use this API to remove a member (user, group, or device) from an administrative unit. + /// 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).ConfigureAwait(false); } /// /// Users and groups that are members of this administrative unit. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Use this API to remove a member (user, group, or device) from an administrative unit. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Users and groups that are members of this administrative unit. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Use this API to remove a member (user, group, or device) from an administrative unit. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Users and groups that are members of this administrative unit. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs index 500bfdce4d9..cbe49f578de 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a member from a directoryRole. 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 Microsoft Entra admin center. For details, see Role template IDs. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a member from a directoryRole. 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 Microsoft Entra admin center. For details, see Role template IDs. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs index d75641ce929..bc0b7fc9a8c 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoles/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directoryRoles/{directoryRole%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a member from a directoryRole. 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 Microsoft Entra admin center. 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 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).ConfigureAwait(false); } /// /// Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a member from a directoryRole. 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 Microsoft Entra admin center. 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 ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a member from a directoryRole. 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 Microsoft Entra admin center. For details, see Role template IDs. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Users that are members of this directory role. HTTP Methods: GET, POST, DELETE. Read-only. Nullable. Supports $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs index f4da1d3125b..fcfd7397819 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs @@ -68,8 +68,8 @@ public async Task GetAsync(Action(requestInfo, ItemRetentionLabel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. - /// Find more info here + /// Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -122,7 +122,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + /// Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. /// /// 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/Workbook/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs index 9fcda74ca37..7ffb4cd416c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs @@ -53,7 +53,7 @@ public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base } /// /// Retrieve a list of nameditem 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/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs index 62cd7971e96..89464f4ace3 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 @@ -49,7 +49,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/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs index 2352767f72e..4319b0e2175 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs @@ -49,7 +49,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow 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/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs index 4c8aba71f9b..9d31cb54d3a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs @@ -30,7 +30,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/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs index 61e92d0e446..a408bcf997d 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs @@ -30,7 +30,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow 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/Tables/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs index bad4ba55142..8d22b5aa65f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -49,7 +49,7 @@ public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of table 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/ChartsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs index b0bb1aaba53..4d182828a82 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs @@ -50,7 +50,7 @@ public ChartsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chart 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/Item/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs index 4dc386f27b7..40a13200cf5 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs @@ -43,8 +43,8 @@ public PointsRequestBuilder(Dictionary pathParameters, IRequestA public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartpoints objects. - /// Find more info here + /// Retrieve a list of chartpoint objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartpoints objects. + /// Retrieve a list of chartpoint objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -135,7 +135,7 @@ public PointsRequestBuilder WithUrl(string rawUrl) { return new PointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartpoints objects. + /// Retrieve a list of chartpoint objects. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs index 6ba8f71ea73..e9b6a7a6f57 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/WorkbookChartSeriesItemRequestBuilder.cs @@ -78,7 +78,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookChartSeries.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of chartseries object. + /// Update the properties of chartSeries object. /// Find more info here /// /// The request body @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of chartseries object. + /// Update the properties of chartSeries object. /// /// 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/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs index 8d6324a8077..31b8def93dc 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/ItemAtWithIndex/Points/PointsRequestBuilder.cs @@ -29,8 +29,8 @@ public PointsRequestBuilder(Dictionary pathParameters, IRequestA public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of chartpoints objects. - /// Find more info here + /// Retrieve a list of chartpoint objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -71,7 +71,7 @@ public async Task PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of chartpoints objects. + /// Retrieve a list of chartpoint objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -113,7 +113,7 @@ public PointsRequestBuilder WithUrl(string rawUrl) { return new PointsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of chartpoints objects. + /// Retrieve a list of chartpoint objects. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items 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 1f94201e2a1..69f4efbef31 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 @@ -49,7 +49,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/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs index dc17b578044..783892917d9 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs @@ -49,7 +49,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow 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/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs index 6046c075275..4480e850be3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs @@ -30,7 +30,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/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs index 7c6cba11779..88bce6dd95c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs @@ -30,7 +30,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow 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/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index a65423adcce..413ee42e83c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) { } /// /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index 058f92382af..88344918685 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// 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).ConfigureAwait(false); } /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index 817c8f24d76..8d73926630c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -29,7 +29,7 @@ public ReassignRequestBuilder(Dictionary pathParameters, IReques public ReassignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) { } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. /// /// 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/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs index 31788a661d1..0344b655875 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/{educationUser%2Did}/$ref", rawUrl) { } /// /// Remove an educationUser from an educationClass. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationUser from an educationClass. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs index c3675217a92..0f2e84aaa9e 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an educationUser from an educationClass. + /// 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).ConfigureAwait(false); } /// /// Retrieves the educationUser members of an educationClass. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an educationUser from an educationClass. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieves the educationUser members of an educationClass. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an educationUser from an educationClass. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieves the educationUser members of an educationClass. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs index bfd3e4124ce..7a2e84e3ea5 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/{educationUser%2Did}/$ref", rawUrl) { } /// /// Remove a teacher from an educationClass. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a teacher from an educationClass. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs index 892f545e280..cd32737ee0c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Teachers/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/teachers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a teacher from an educationClass. + /// 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).ConfigureAwait(false); } /// /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a teacher from an educationClass. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a teacher from an educationClass. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of teachers for a class. Delegated tokens must be members of the class to get the teacher list. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index a0852d7bdcf..13a16fbc285 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) { } /// /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index 83a1a0247d8..16ded7ff612 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// 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).ConfigureAwait(false); } /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index f60c544deb8..7c30180881b 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -29,7 +29,7 @@ public ReassignRequestBuilder(Dictionary pathParameters, IReques public ReassignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) { } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. /// /// 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/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs index 2bb2f7e868a..ce70d0abf5f 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/{educationClass%2Did}/$ref", rawUrl) { } /// /// Delete a class from a school. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a class from a school. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs index 7690ccca9e7..d6ea20b27f8 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Classes/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/classes/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete a class from a school. + /// 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).ConfigureAwait(false); } /// /// Get the educationClass resources owned by an educationSchool. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete a class from a school. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get the educationClass resources owned by an educationSchool. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete a class from a school. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get the educationClass resources owned by an educationSchool. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs index fd60fcf89c5..dad5259d436 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/{educationUser%2Did}/$ref", rawUrl) { } /// /// Delete a user from a school. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete a user from a school. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs index 30c8fa5044d..22247af19ec 100644 --- a/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Schools/Item/Users/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/schools/{educationSchool%2Did}/users/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete a user from a school. + /// 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).ConfigureAwait(false); } /// /// Get the educationUser resources associated with an educationSchool. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete a user from a school. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get the educationUser resources associated with an educationSchool. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete a user from a school. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get the educationUser resources associated with an educationSchool. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs index 5391ed44f61..de542aaac98 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/{educationCategory%2Did}/$ref", rawUrl) { } /// /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs index a441a62d44d..cec556f8c00 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Categories/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/categories/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// 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).ConfigureAwait(false); } /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an educationCategory from an educationAssignment. Only teachers can perform this operation. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List all the categories associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs index 4af28ee3b16..d689cefd52c 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Reassign/ReassignRequestBuilder.cs @@ -29,7 +29,7 @@ public ReassignRequestBuilder(Dictionary pathParameters, IReques public ReassignRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/reassign", rawUrl) { } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -49,7 +49,7 @@ public async Task PostAsync(Action(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission will be treated as a returned submission. This means that the reassigned status will be mapped to the returned status, and reassignedDateTime and reassignedBy properties will be mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. + /// Reassign the submission to the student with feedback for review. Only teachers can perform this action. Include the Prefer: include-unknown-enum-members header when you call this method; otherwise, a reassigned submission is treated as a returned submission. This means that the reassigned status is mapped to the returned status, and reassignedDateTime and reassignedBy properties are mapped to returnedDateTime and returnedBy respectively. If the header Prefer: include-unknown-enum-members is provided, a reassigned submission retains the reassigned status. For details, see the examples section. /// /// 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/EmployeeExperience/EmployeeExperienceRequestBuilder.cs b/src/Microsoft.Graph/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs index f0430262a67..a5b0ca0f96f 100644 --- a/src/Microsoft.Graph/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/EmployeeExperience/EmployeeExperienceRequestBuilder.cs @@ -30,14 +30,14 @@ public class EmployeeExperienceRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EmployeeExperienceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/employeeExperience{?%24select,%24expand}", pathParameters) { + public EmployeeExperienceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/employeeExperience{?%24select}", pathParameters) { } /// /// Instantiates a new EmployeeExperienceRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public EmployeeExperienceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/employeeExperience{?%24select,%24expand}", rawUrl) { + public EmployeeExperienceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/employeeExperience{?%24select}", rawUrl) { } /// /// Get employeeExperience @@ -133,16 +133,6 @@ public EmployeeExperienceRequestBuilder WithUrl(string rawUrl) { /// Get employeeExperience /// public class EmployeeExperienceRequestBuilderGetQueryParameters { - /// 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 diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs index d8c071fa81a..d65a012f9a6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove acceptedSender @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove acceptedSender - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs index d48c7a22c27..126bb1e3cf0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/AcceptedSenders/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/acceptedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove acceptedSender + /// 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).ConfigureAwait(false); } /// /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove acceptedSender + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove acceptedSender + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Users in the accepted senders list can post to conversations of the group (identified in the GET request URL).Make sure you do not specify the same user or group in the accepted senders and rejected senders lists, otherwise you will get an error. /// public class RefRequestBuilderGetQueryParameters { 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 859fafb5f3b..d01e2a9a89c 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 97ba2c92976..a23556e6005 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 86b5e2a67e2..2bb857adfa8 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 7af6de0e5cd..800dbd7891e 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 b5ddc82f128..e22e4900e39 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 d490531b13a..0668bb74273 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index 53c37d2f3b2..f681ffbf1db 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, ConversationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Use reply thread or reply post to further post to that conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Use reply thread or reply post to further post to that conversation. /// /// 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 6bc545cecf1..039b2ffe48e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -54,8 +54,8 @@ public async Task DeleteAsync(Action - /// The group's conversations. - /// Find more info here + /// Retrieve the properties and relationships of conversation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,7 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The group's conversations. + /// Retrieve the properties and relationships of conversation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public ConversationItemRequestBuilder WithUrl(string rawUrl) { public class ConversationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// The group's conversations. + /// Retrieve the properties and relationships of conversation object. /// public class ConversationItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 2c165b96963..c5305665b7a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) { } /// - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. - /// Find more info here + /// Invoke action reply /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Invoke action reply /// /// 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/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index ca8f9023c00..e9e7138331d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) { } /// - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. - /// Find more info here + /// Invoke action reply /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Invoke action reply /// /// 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/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 73591ca6bcc..5a8d71683b9 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -42,8 +42,8 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. - /// Find more info here + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -85,7 +85,7 @@ public PostsRequestBuilder WithUrl(string rawUrl) { return new PostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index ede6354c9c7..74fee5b4127 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. - /// Find more info here + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. /// /// 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/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 44c54714420..76f70a5bb47 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 caa00e63d63..c737ab2f2a8 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/Members/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs index ea2a0af1b65..bb429fdb0fb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs index 570ecbf8fc0..70cb3fd6702 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Members/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/members/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// 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).ConfigureAwait(false); } /// /// The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a member from a group via the members navigation property. You can't remove a member from groups with dynamic memberships. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=members($select=id,userPrincipalName,displayName). /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs index cc754405370..b0e29e9613c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs index 1813ebcf367..fd14a169d9e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Owners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// 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).ConfigureAwait(false); } /// /// The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an owner from a Microsoft 365 group or a security group through the owners navigation property. Once owners are assigned to a group, the last owner (a user object) of the group cannot be removed. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// The owners of the group. Limited to 100 owners. Nullable. If this property is not specified when creating a Microsoft 365 group, the calling user is automatically assigned as the group owner. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs index b3f39494c2d..bdd550f6db8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs @@ -34,25 +34,6 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/photo{?%24select}", rawUrl) { } /// - /// Delete navigation property photo for groups - /// - /// 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).ConfigureAwait(false); - } - /// /// The group's profile photo /// /// Cancellation token to use when cancelling requests @@ -93,22 +74,6 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete navigation property photo for groups - /// - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// /// The group's profile photo /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -151,12 +116,6 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class PhotoRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// /// The group's profile photo /// public class PhotoRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs index c42936a6e69..32a99108c54 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove rejectedSender @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove rejectedSender - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs index caaf1eb0c8d..5aab8c34305 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/RejectedSenders/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/rejectedSenders/$ref{?%24top,%24skip,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove rejectedSender + /// 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).ConfigureAwait(false); } /// /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove rejectedSender + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove rejectedSender + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Users in the rejected senders list can't post to conversations of the group (identified in the GET request URL). Make sure you don't specify the same user or group in the rejected senders and accepted senders lists, otherwise you get an error. /// public class RefRequestBuilderGetQueryParameters { 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 8e83277aee8..c5af64acddc 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 ef0471d1f9e..dd2bc927941 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 9492c78f3af..4c3efa85798 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 89acb8f71a4..2a01509eac2 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 a4958d22ca1..28cd58675a5 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 8c9779bd993..f71eee9623a 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 8b3f76d35a1..0c7581353d8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 5c76504ea60..4f078c9b3da 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/reply", rawUrl) { } /// - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. - /// Find more info here + /// Invoke action reply /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Invoke action reply /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index 5295027a435..540315b5a44 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,7 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/reply", rawUrl) { } /// - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. - /// Find more info here + /// Invoke action reply /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +49,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Invoke action reply /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs index fe8f139738c..db89a0cb9b2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -42,8 +42,8 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. - /// Find more info here + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -85,7 +85,7 @@ public PostsRequestBuilder WithUrl(string rawUrl) { return new PostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 2f28c6bec8a..7c5dc4c2228 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. - /// Find more info here + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a thread in a group conversation and add a new post to it. You can specify the parent conversation in the request, or, you can specify just the thread without the parent conversation. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs index 23e845fb7f0..779c7490489 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/{identityProviderBase%2Did}/$ref", rawUrl) { } /// /// Delete ref of navigation property userFlowIdentityProviders for identity @@ -34,10 +34,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -52,10 +52,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -70,25 +70,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Delete ref of navigation property userFlowIdentityProviders for identity - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs index 640439ea292..66018ca723e 100644 --- a/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/B2xUserFlows/Item/UserFlowIdentityProviders/Ref/RefRequestBuilder.cs @@ -19,14 +19,33 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/b2xUserFlows/{b2xIdentityUserFlow%2Did}/userFlowIdentityProviders/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Delete ref of navigation property userFlowIdentityProviders for identity + /// + /// 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).ConfigureAwait(false); } /// /// Get ref of userFlowIdentityProviders from identity @@ -69,6 +88,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Delete ref of navigation property userFlowIdentityProviders for identity + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get ref of userFlowIdentityProviders from identity /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,6 +146,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Delete ref of navigation property userFlowIdentityProviders for identity + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get ref of userFlowIdentityProviders from identity /// public class RefRequestBuilderGetQueryParameters { 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 96ed4705ee3..5d0677a927d 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -29,8 +29,8 @@ public NamedLocationItemRequestBuilder(Dictionary pathParameters public NamedLocationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Delete an ipNamedLocation object. - /// Find more info here + /// Delete a namedLocation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a countryNamedLocation object. - /// Find more info here + /// Update the properties of an ipNamedLocation object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -91,7 +91,7 @@ public async Task PatchAsync(NamedLocation body, Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an ipNamedLocation object. + /// Delete a namedLocation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a countryNamedLocation object. + /// Update the properties of an ipNamedLocation object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs index 6fd8a17a4b4..f53b281996f 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/{accessPackage%2Did1}/$ref", rawUrl) { } /// /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs index 18176a2a38d..d2f7b32e94b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleAccessPackages/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleAccessPackages/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// 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).ConfigureAwait(false); } /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an access package from the list of access packages that have been marked as incompatible on an accessPackage. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of the accessPackage objects that have been marked as incompatible on an accessPackage. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs index f6c0ffa687a..3538704b529 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/{group%2Did}/$ref", rawUrl) { } /// /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs index c7d44d0d16f..a1d85bfaebe 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/IncompatibleGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/incompatibleGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// 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).ConfigureAwait(false); } /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a group from the list of groups that have been marked as incompatible on an accessPackage. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of the group objects that have been marked as incompatible on an accessPackage. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs index 66aea126d7c..41db7a25e5a 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs index 5761711295f..50eca936d32 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// 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).ConfigureAwait(false); } /// /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user or a group from the connected organization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of a connectedOrganization's external sponsors. The external sponsors are a set of users who can approve requests on behalf of other users from that connected organization. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs index 813b3d84668..fd0cfa905f8 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs index 13394a6f13f..07a55c58fa3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// 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).ConfigureAwait(false); } /// /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a user or a group from the connected organization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of a connectedOrganization's internal sponsors. The internal sponsors are a set of users who can approve requests on behalf of other users from that connected organization. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs index 3015ad6b298..41cf211dcc4 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs @@ -42,8 +42,8 @@ public HistoryRequestBuilder(Dictionary pathParameters, IRequest public HistoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyUsers/{riskyUser%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the riskyUserHistoryItems from the history navigation property. - /// Find more info here + /// Read the properties and relationships of a riskyUserHistoryItem object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -83,7 +83,7 @@ public async Task PostAsync(RiskyUserHistoryItem body, Act return await RequestAdapter.SendAsync(requestInfo, RiskyUserHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Read the properties and relationships of a riskyUserHistoryItem object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public HistoryRequestBuilder WithUrl(string rawUrl) { return new HistoryRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Read the properties and relationships of a riskyUserHistoryItem object. /// public class HistoryRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs index 2377b4f633d..8e09982753b 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarRequestBuilder.cs @@ -58,6 +58,26 @@ public CalendarRequestBuilder(Dictionary pathParameters, IReques public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar{?%24select}", rawUrl) { } /// + /// Delete a calendar other than the default calendar. + /// 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).ConfigureAwait(false); + } + /// /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: /// Find more info here /// @@ -100,6 +120,22 @@ public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// + /// Delete a calendar other than the default calendar. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -142,6 +178,12 @@ public CalendarRequestBuilder WithUrl(string rawUrl) { return new CalendarRequestBuilder(rawUrl, RequestAdapter); } /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CalendarRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: /// public class CalendarRequestBuilderGetQueryParameters { 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 42833476786..3ff1b9ea965 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 b5c933caa19..783c3e78608 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 24cae59bf01..f34b2c700fc 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 52919bc3efc..46ee498127d 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 8c150aa9c6a..b93719df8e6 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 0bb970d5a66..1aa5dff00c4 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 479fd7e3137..bd4dc3868fb 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 c9fb4c67b09..baadad6abce 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 28b48829f96..28070472e08 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 46a670d34a1..f75b75690b3 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 1f4b553443e..06b902579b2 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 598f7bc5790..cbd2fcd2e5a 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 d652915bfb7..285ac97185d 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 f682552d6b3..56cb3a288d6 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 504fce27fc2..a873e7f8c5d 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs index dfe6cab5f94..2cfa822a89d 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: /// /// 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 5b57075fed1..7d5c4c16440 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 7287ec40fd5..b4eef6b8242 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 0b464e4924e..281a57f5407 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 e49a98091cc..0523200630b 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 bd0b405b623..fd4dcb48c20 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 08f524459fc..d449ea591ea 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 a5b8cebb8cc..9b1c62016a1 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 0874e463dbd..2c3b60437c0 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 4fdd32596fb..36c2a5f6d16 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. /// /// 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 3625f3b894d..31fac25180a 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 80351339694..ebc6b467c8a 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 @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 4f5dec297a5..0fab6dd3e88 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 @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 75a1d56d9dc..163563fb8d4 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index c7285aeb971..61a89c70942 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -89,8 +89,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. @@ -110,7 +110,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. @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index 1b163c0c94d..48afae29d2d 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs index 5d1adf36901..d78dc86f70b 100644 --- a/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs @@ -34,25 +34,6 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/photo{?%24select}", rawUrl) { } /// - /// Delete navigation property photo for me - /// - /// 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).ConfigureAwait(false); - } - /// /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. /// Find more info here /// @@ -94,22 +75,6 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete navigation property photo for me - /// - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,12 +117,6 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class PhotoRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. /// public class PhotoRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs index 247f2fc9c8d..83bba04513a 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs @@ -73,8 +73,8 @@ public async Task DeleteAsync(Action - /// Get a user's presence information. - /// Find more info here + /// Set a presence status message for a user. An optional expiration date and time can be supplied. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a user's presence information. + /// Set a presence status message for a user. An optional expiration date and time can be supplied. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -178,7 +178,7 @@ public PresenceRequestBuilder WithUrl(string rawUrl) { public class PresenceRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get a user's presence information. + /// Set a presence status message for a user. An optional expiration date and time can be supplied. /// public class PresenceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs b/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs index 2d57dbc7699..72e1f5c8f3f 100644 --- a/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AppliedConditionalAccessPolicy.cs @@ -56,7 +56,7 @@ public List EnforcedSessionControls { set { BackingStore?.Set("enforcedSessionControls", value); } } #endif - /// An identifier of the conditional access policy. + /// An identifier of the conditional access policy. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Id { @@ -84,7 +84,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions weren't met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue. + /// Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (policy isn't applied because policy conditions weren't met), notEnabled (This is due to the policy in a disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. public AppliedConditionalAccessPolicyResult? Result { get { return BackingStore?.Get("result"); } set { BackingStore?.Set("result", value); } diff --git a/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs b/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs index e6ae24027c9..4e923a5401c 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationSubmission.cs @@ -34,7 +34,7 @@ public IdentitySet ReassignedBy { set { BackingStore?.Set("reassignedBy", value); } } #endif - /// Moment in time when the submission was reassigned. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// Moment in time when the submission was reassigned. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ReassignedDateTime { get { return BackingStore?.Get("reassignedDateTime"); } set { BackingStore?.Set("reassignedDateTime", value); } @@ -95,7 +95,7 @@ public IdentitySet ReturnedBy { set { BackingStore?.Set("returnedBy", value); } } #endif - /// Moment in time when the submission was returned. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// Moment in time when the submission was returned. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ReturnedDateTime { get { return BackingStore?.Get("returnedDateTime"); } set { BackingStore?.Set("returnedDateTime", value); } @@ -119,7 +119,7 @@ public IdentitySet SubmittedBy { set { BackingStore?.Set("submittedBy", value); } } #endif - /// Moment in time when the submission was moved into the submitted state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// Moment in time when the submission was moved into the submitted state. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? SubmittedDateTime { get { return BackingStore?.Get("submittedDateTime"); } set { BackingStore?.Set("submittedDateTime", value); } @@ -152,12 +152,12 @@ public IdentitySet UnsubmittedBy { set { BackingStore?.Set("unsubmittedBy", value); } } #endif - /// Moment in time when the submission was moved from submitted into the working state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// Moment in time when the submission was moved from submitted into the working state. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? UnsubmittedDateTime { get { return BackingStore?.Get("unsubmittedDateTime"); } set { BackingStore?.Set("unsubmittedDateTime", value); } } - /// The webUrl property + /// The deep link URL for the given submission. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? WebUrl { diff --git a/src/Microsoft.Graph/Generated/Models/EntityType.cs b/src/Microsoft.Graph/Generated/Models/EntityType.cs index 56dc4f8c20f..982a2026c65 100644 --- a/src/Microsoft.Graph/Generated/Models/EntityType.cs +++ b/src/Microsoft.Graph/Generated/Models/EntityType.cs @@ -21,13 +21,13 @@ public enum EntityType { Drive, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, - [EnumMember(Value = "acronym")] - Acronym, - [EnumMember(Value = "bookmark")] - Bookmark, [EnumMember(Value = "chatMessage")] ChatMessage, [EnumMember(Value = "person")] Person, + [EnumMember(Value = "acronym")] + Acronym, + [EnumMember(Value = "bookmark")] + Bookmark, } } diff --git a/src/Microsoft.Graph/Generated/Models/PermissionType.cs b/src/Microsoft.Graph/Generated/Models/PermissionType.cs index b7b90b3bda2..8dc11851cf4 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionType.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionType.cs @@ -3,11 +3,11 @@ using System; namespace Microsoft.Graph.Models { public enum PermissionType { - [EnumMember(Value = "application")] - Application, - [EnumMember(Value = "delegated")] - Delegated, [EnumMember(Value = "delegatedUserConsentable")] DelegatedUserConsentable, + [EnumMember(Value = "delegated")] + Delegated, + [EnumMember(Value = "application")] + Application, } } diff --git a/src/Microsoft.Graph/Generated/Models/RiskDetail.cs b/src/Microsoft.Graph/Generated/Models/RiskDetail.cs index 6cc74eef70e..1d7864bd2a0 100644 --- a/src/Microsoft.Graph/Generated/Models/RiskDetail.cs +++ b/src/Microsoft.Graph/Generated/Models/RiskDetail.cs @@ -27,11 +27,11 @@ public enum RiskDetail { AdminConfirmedUserCompromised, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, + [EnumMember(Value = "m365DAdminDismissedDetection")] + M365DAdminDismissedDetection, [EnumMember(Value = "adminConfirmedServicePrincipalCompromised")] AdminConfirmedServicePrincipalCompromised, [EnumMember(Value = "adminDismissedAllRiskForServicePrincipal")] AdminDismissedAllRiskForServicePrincipal, - [EnumMember(Value = "m365DAdminDismissedDetection")] - M365DAdminDismissedDetection, } } diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs index a4defefa5b7..7c016f19a30 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs index e2d3628b41f..ef4e7436fbe 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// 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).ConfigureAwait(false); } /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. @@ -70,6 +90,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,6 +148,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an appliesTo on a featureRolloutPolicy object to remove the directoryObject from feature rollout. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Nullable. Specifies a list of directoryObjects that feature is enabled for. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs index bbbd63f96c4..ba31c180c72 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/{group%2Did}/$ref", rawUrl) { } /// /// Revoke the specified group's access to submit print jobs to the associated printerShare. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Revoke the specified group's access to submit print jobs to the associated printerShare. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs index 48e40743dfb..78bcd733989 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedGroups/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedGroups/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// 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).ConfigureAwait(false); } /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Revoke the specified group's access to submit print jobs to the associated printerShare. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of groups that have been granted access to submit print jobs to the associated printerShare. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs index a9aaf1637de..8a2305b60cf 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/{user%2Did}/$ref", rawUrl) { } /// /// Revoke the specified user's access to submit print jobs to the associated printerShare. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Revoke the specified user's access to submit print jobs to the associated printerShare. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs index 2449d407242..87ca4d73ae1 100644 --- a/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Print/Shares/Item/AllowedUsers/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// 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).ConfigureAwait(false); } /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Revoke the specified user's access to submit print jobs to the associated printerShare. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs index db4d03ef630..77b85c5c072 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/{claimsMappingPolicy%2Did}/$ref", rawUrl) { } /// /// Remove a claimsMappingPolicy from a servicePrincipal. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a claimsMappingPolicy from a servicePrincipal. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs index 939311ebe10..80eddd34269 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ClaimsMappingPolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/claimsMappingPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a claimsMappingPolicy from a servicePrincipal. + /// 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).ConfigureAwait(false); } /// /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a claimsMappingPolicy from a servicePrincipal. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a claimsMappingPolicy from a servicePrincipal. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List the claimsMappingPolicy objects that are assigned to a servicePrincipal. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs index 55aa88e7617..8c83be8a2c9 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/{homeRealmDiscoveryPolicy%2Did}/$ref", rawUrl) { } /// /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs index 749742bdb89..52a1cf5d350 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/HomeRealmDiscoveryPolicies/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/homeRealmDiscoveryPolicies/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// 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).ConfigureAwait(false); } /// /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove a homeRealmDiscoveryPolicy from a servicePrincipal. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// List the homeRealmDiscoveryPolicy objects that are assigned to a servicePrincipal. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs index 71ae3f17b0b..d5df7601f9d 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Item/Ref/RefRequestBuilder.cs @@ -18,14 +18,14 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref{?%40id*}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/{directoryObject%2Did}/$ref", rawUrl) { } /// /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. @@ -35,10 +35,10 @@ public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r /// 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) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { @@ -53,10 +53,10 @@ public async Task DeleteAsync(ActionConfiguration 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,25 +71,10 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// - /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. - /// - public class RefRequestBuilderDeleteQueryParameters { - /// Delete Uri -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%40id")] - public string? Id { get; set; } -#nullable restore -#else - [QueryParameter("%40id")] - public string Id { get; set; } -#endif - } - /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs index e54fb8cf78e..e9378094980 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/Owners/Ref/RefRequestBuilder.cs @@ -19,14 +19,34 @@ public class RefRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", pathParameters) { + public RefRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", pathParameters) { } /// /// Instantiates a new RefRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby}", rawUrl) { + public RefRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%40id*}", rawUrl) { + } + /// + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// 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).ConfigureAwait(false); } /// /// Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. @@ -71,6 +91,22 @@ public async Task PostAsync(ReferenceCreate body, Action + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,6 +149,27 @@ public RefRequestBuilder WithUrl(string rawUrl) { return new RefRequestBuilder(rawUrl, RequestAdapter); } /// + /// Remove an owner from a servicePrincipal object. As a recommended best practice, service principals should have at least two owners. + /// + public class RefRequestBuilderDeleteQueryParameters { + /// The delete Uri +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%40id")] + public string? Id { get; set; } +#nullable restore +#else + [QueryParameter("%40id")] + public string Id { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RefRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Directory objects that are owners of this servicePrincipal. The owners are a set of non-admin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand, $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1), and $select nested in $expand. /// public class RefRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs index f16ae4cab04..c6d157da26c 100644 --- a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs @@ -62,8 +62,8 @@ public SitesRequestBuilder(Dictionary pathParameters, IRequestAd public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. - /// Find more info here + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public SitesRequestBuilder WithUrl(string rawUrl) { return new SitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. /// public class SitesRequestBuilderGetQueryParameters { /// Include count of items 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 2d1cd308b74..505dcc6dafb 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 02d53a60de0..937a4bf5a3a 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 5dd9613a877..e9931bfd92c 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 289213ff591..96d29e5eccd 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 63028e04475..d723965c476 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/MembersRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 678e620da14..f8f33ea905c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index ec4853e685f..36feabadee9 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. /// /// 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 363b5a375df..77309f72ac4 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 6a00daf3341..f60863fa354 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 93ef01dcc62..91cd8acb136 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs index f20e90c4c61..b013584025b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarRequestBuilder.cs @@ -58,6 +58,26 @@ public CalendarRequestBuilder(Dictionary pathParameters, IReques public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar{?%24select}", rawUrl) { } /// + /// Delete a calendar other than the default calendar. + /// 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).ConfigureAwait(false); + } + /// /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: /// Find more info here /// @@ -100,6 +120,22 @@ public CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// + /// Delete a calendar other than the default calendar. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -142,6 +178,12 @@ public CalendarRequestBuilder WithUrl(string rawUrl) { return new CalendarRequestBuilder(rawUrl, RequestAdapter); } /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CalendarRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// /// Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group. There are two scenarios where an app can get another user's calendar: /// public class CalendarRequestBuilderGetQueryParameters { 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 d1414a02182..55c8ea17692 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 2059eec2b39..c87a4830e77 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 a18a76fe8cb..2ff2c3d2d9f 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 fa8727d5468..4b07069c870 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 0c9286ecdd3..f2ba2a27159 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 db0de22c22f..3ad3b7dedea 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 2033156854f..dafc8748f7c 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 cae6e545fd5..f9ce55c9cbc 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 503d373b58f..b0a64b9a311 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 dc7a5ab7fc4..e17516e4657 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 2675d636408..59e8d00a83f 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 893883b9032..bddc57a1b09 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 9670c1d770d..67614383740 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 8f8e646e92d..a35577dd2c2 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index a50f4e8b12a..b51eb79cbc3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in scope of a chat. For more details about sending notifications and the requirements for doing so, see sending Teams activity notifications. + /// Send an activity feed notification in scope of a chat. For more information about sending notifications and the requirements for doing so, see sending Teams activity notifications. /// /// 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/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs index a0bce06ac17..8e0a94be8ae 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create an event in the user's default calendar or specified calendar. By default, the allowNewTimeProposals property is set to true when an event is created, which means invitees can propose a different date/time for the event. See Propose new meeting times for more information on how to propose a time, and how to receive and accept a new time proposal. You can specify the time zone for each of the start and end times of the event as part of their values, because the start and end properties are of dateTimeTimeZone type. First find the supported time zones to make sure you set only time zones that have been configured for the user's mailbox server. When an event is sent, the server sends invitations to all the attendees. Setting the location in an event An Exchange administrator can set up a mailbox and an email address for a resource such as a meeting room, or equipment like a projector. Users can then invite the resource as an attendee to a meeting. On behalf of the resource, the server accepts or rejects the meeting request based on the free/busy schedule of the resource. If the server accepts a meeting for the resource, it creates an event for the meeting in the resource's calendar. If the meeting is rescheduled, the server automatically updates the event in the resource's calendar. Another advantage of setting up a mailbox for a resource is to control scheduling of the resource, for example, only executivesor their delegates can book a private meeting room. If you're organizing an event that involves a meeting location: Additionally, if the meeting location has been set up as a resource, or if the event involves some equipment that has been set up as a resource: /// /// 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 6e77f1c66f7..0a8e96fbe3e 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 ea3a161781b..80bc8a204c3 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 7297074cfdc..b20b0b583a0 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 ecd69980539..a7d56cc5ddc 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 bc08b7ada38..9751025f21e 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 d119281ad8f..80acc9e16ea 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 @@ -29,8 +29,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. @@ -91,7 +91,7 @@ public async Task PatchAsync(ConversationMember body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 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 aebdb5781b6..962e130c075 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMemberCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 3d6723213f1..9f2375dbd90 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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/SendActivityNotification/SendActivityNotificationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs index 868338fdeb0..4c79132e84c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationRequestBuilder.cs @@ -28,7 +28,7 @@ public SendActivityNotificationRequestBuilder(Dictionary pathPar public SendActivityNotificationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/sendActivityNotification", rawUrl) { } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendActivityNotificationPostRequestBody body, Action await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send an activity feed notification in the scope of a team. For more details about sending notifications and the requirements for doing so, seesending Teams activity notifications. + /// Send an activity feed notification in the scope of a team. For more information about sending notifications and the requirements for doing so, seesending Teams activity notifications. /// /// 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 8639d970fdd..47bee41a0d5 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 @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 @@ -105,7 +105,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 3bc0e648161..37f2b5a5834 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 @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 5cac88686f3..5ee6284f9c5 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 @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 1eb6ed87357..e6df056cd60 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 @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 0e6f7a4c87b..321830fadbf 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -89,8 +89,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. @@ -110,7 +110,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. @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// 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 diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index f7bd8785317..b38f27e946b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs index 0bac27a789f..8043b739662 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs @@ -34,25 +34,6 @@ public PhotoRequestBuilder(Dictionary pathParameters, IRequestAd public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/photo{?%24select}", rawUrl) { } /// - /// Delete navigation property photo for users - /// - /// 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).ConfigureAwait(false); - } - /// /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. /// Find more info here /// @@ -94,22 +75,6 @@ public async Task PatchAsync(ProfilePhoto body, Action(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete navigation property photo for users - /// - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. /// /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,12 +117,6 @@ public PhotoRequestBuilder WithUrl(string rawUrl) { return new PhotoRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class PhotoRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// /// Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they're stored in Microsoft Entra ID. You can get the metadata of the largest available photo or specify a size to get the metadata for that photo size.If the size you request is unavailable, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of the photo is available for download. /// public class PhotoRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs index 06aab04176b..47b02ee186b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs @@ -73,8 +73,8 @@ public async Task DeleteAsync(Action - /// Get a user's presence information. - /// Find more info here + /// Set a presence status message for a user. An optional expiration date and time can be supplied. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a user's presence information. + /// Set a presence status message for a user. An optional expiration date and time can be supplied. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -178,7 +178,7 @@ public PresenceRequestBuilder WithUrl(string rawUrl) { public class PresenceRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get a user's presence information. + /// Set a presence status message for a user. An optional expiration date and time can be supplied. /// public class PresenceRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index 617af96edc6..7a678b2663e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -387,7 +387,7 @@ public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// Deletes a user. - /// 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. @@ -436,8 +436,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. - /// Find more info here + /// Update the properties of a user object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -500,7 +500,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a user object. Not all properties can be updated by Member or Guest users with their default permissions without Administrator roles. Compare member and guest default permissions to see properties they can manage. + /// Update the properties of a user object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs index 7e539e5f6dd..cbe48afe37e 100644 --- a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs @@ -62,8 +62,8 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users{?%24top,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the user objects. - /// Find more info here + /// Retrieve a list of user objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,8 +82,8 @@ public async Task GetAsync(Action(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. - /// Find more info here + /// Create a new user object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -104,7 +104,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the user objects. + /// Retrieve a list of user objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,7 +120,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. + /// Create a new user object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -146,7 +146,7 @@ public UsersRequestBuilder WithUrl(string rawUrl) { return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the user objects. + /// Retrieve a list of user objects. /// public class UsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 0649be05190..56c7553eaa8 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "26D59421B9C4582DBA9F8BB3A65FE6435B12AFA0DD784D036FF6032F37E47839D389673C95EAADE48BBC30066575F82ACF41FCE870D036BAB4EE0383D4E1AF2C", + "descriptionHash": "241199A697BA058233491B71BB603A49D6E2F019412591F41B76CCC6ABB3B4463000A1B0C00D7DA806438DE726A1A70CEC347632044D0708A80AF7702669631F", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.11.0", diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index d91df85d879..78f4b9e5047 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -22,7 +22,7 @@ false 35MSSharedLib1024.snk true - 5.40.0 + 5.41.0 diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Models/Extensions/DateTimeZoneExtensionsTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Models/Extensions/DateTimeZoneExtensionsTests.cs index 740630e2b20..a1ca6a5d20d 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Models/Extensions/DateTimeZoneExtensionsTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Models/Extensions/DateTimeZoneExtensionsTests.cs @@ -11,18 +11,106 @@ public class DateTimeZoneExtensionsTests internal const string DateTimeFormat = "yyyy-MM-ddTHH:mm:ss.fffffffK"; [Fact] - public void ToDateTime_Should_Convert_DateTimeTimeZone_To_DateTime() + public void ToDateTime_Should_Correctly_Convert_DateTimeString_To_UTCDateTimeObject() { + var dateTimeString = "2019-01-25T06:37:39.8058788Z"; + var expectedDateTime = DateTime.ParseExact(dateTimeString , DateTimeFormat, CultureInfo.InvariantCulture).ToUniversalTime(); + DateTimeTimeZone dateTimeTimeZone = new DateTimeTimeZone { TimeZone = "UTC", + DateTime = dateTimeString + }; + + var actualDateTime = dateTimeTimeZone.ToDateTime(); + + Assert.Equal(expectedDateTime, actualDateTime); + Assert.Equal(expectedDateTime.Kind, actualDateTime.Kind); + Assert.Equal(DateTimeKind.Utc, actualDateTime.Kind); + + //scenario where the dateTime is not in UTC + dateTimeTimeZone = new DateTimeTimeZone + { + TimeZone = "UTC", + DateTime = "2019-01-25T06:37:39.8058788" + }; + actualDateTime = dateTimeTimeZone.ToDateTime(); + Assert.Equal(expectedDateTime, actualDateTime); + Assert.Equal(expectedDateTime.Kind, actualDateTime.Kind); + Assert.Equal(DateTimeKind.Utc, actualDateTime.Kind); + } + + [Fact] + public void ToDateTime_Should_Correctly_Convert_DateTimeString_To_Local_DateTimeObject_Correctly() + { + var localDateTime = DateTime.Now; + var localDateTimeString = localDateTime.ToString(DateTimeFormat, CultureInfo.InvariantCulture); + DateTimeTimeZone dateTimeTimeZone = new DateTimeTimeZone + { + TimeZone = TimeZoneInfo.Local.Id, + DateTime = localDateTimeString + }; + + var actualDateTime = dateTimeTimeZone.ToDateTime().ToLocalTime(); + var expectedDateTime = localDateTime; + + Assert.Equal(expectedDateTime, actualDateTime); + Assert.Equal(expectedDateTime.Kind, actualDateTime.Kind); + } + + [Fact] + public void ToDateTime_Should_Correctly_Convert_DateTimeString_To_Local_No_timezone_offset_provided() + { + var localDateTime = DateTime.Now; + var localDateTimeString = localDateTime.ToString("yyyy-MM-ddTHH:mm:ss.fffffff", CultureInfo.InvariantCulture); + DateTimeTimeZone dateTimeTimeZone = new DateTimeTimeZone + { + TimeZone = TimeZoneInfo.Local.Id, + DateTime = localDateTimeString + }; + + var actualDateTime = dateTimeTimeZone.ToDateTime().ToLocalTime(); + var expectedDateTime = localDateTime; + Assert.Equal(expectedDateTime, actualDateTime); + Assert.Equal(expectedDateTime.Kind, actualDateTime.Kind); + } + + [Fact] + public void ToDateTime_Should_Correctly_Convert_DateTimeString_To_UnspecifiedDateTimeObject() + { + DateTimeTimeZone dateTimeTimeZone = new DateTimeTimeZone + { + TimeZone = "Asia/Jerusalem", DateTime = "2019-01-25T06:37:39.8058788Z" }; var actualDateTime = dateTimeTimeZone.ToDateTime(); - var expectedDateTime = DateTime.ParseExact(dateTimeTimeZone.DateTime, DateTimeFormat, CultureInfo.InvariantCulture); + var expectedDateTime = DateTime.ParseExact(dateTimeTimeZone.DateTime, DateTimeFormat, CultureInfo.InvariantCulture).ToUniversalTime(); + + Assert.Equal(expectedDateTime, actualDateTime.ToUniversalTime()); + + //scenario where the dateTime is Local but the timezone is unspecified + expectedDateTime = DateTime.Now; + var dateTimeString = expectedDateTime.ToString(DateTimeFormat, CultureInfo.InvariantCulture); + dateTimeTimeZone = new DateTimeTimeZone + { + TimeZone = "Asia/Jerusalem", + DateTime = dateTimeString + }; + actualDateTime = dateTimeTimeZone.ToDateTime(); + Assert.Equal(expectedDateTime, actualDateTime.ToLocalTime()); + + //scenario where the dateTime has no timezone offset and timezone is unspecified + dateTimeTimeZone = new DateTimeTimeZone + { + TimeZone = "Asia/Jerusalem", + DateTime = "2024-01-16T08:30:00.0000000" + }; + actualDateTime = dateTimeTimeZone.ToDateTime(); + expectedDateTime = new DateTime(2024, 1, 16, 08, 30, 0, DateTimeKind.Unspecified); Assert.Equal(expectedDateTime, actualDateTime); + Assert.Equal(DateTimeKind.Unspecified, actualDateTime.Kind); } [Fact]