diff --git a/.github/workflows/projectbot.yml b/.github/workflows/projectbot.yml index 6cb6ef99983..e25f1dd9a3b 100644 --- a/.github/workflows/projectbot.yml +++ b/.github/workflows/projectbot.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 + uses: tibdex/github-app-token@0d49dd721133f900ebd5e0dff2810704e8defbc6 with: app_id: ${{ secrets.GRAPHBOT_APP_ID }} private_key: ${{ secrets.GRAPHBOT_APP_PEM }} diff --git a/.github/workflows/validatePullRequest.yml b/.github/workflows/validatePullRequest.yml index a05dd161ba9..5534ed12663 100644 --- a/.github/workflows/validatePullRequest.yml +++ b/.github/workflows/validatePullRequest.yml @@ -13,7 +13,7 @@ jobs: env: solutionName: Microsoft.Graph.sln steps: - - uses: actions/checkout@v3.6.0 + - uses: actions/checkout@v4.0.0 - name: Setup .NET uses: actions/setup-dotnet@v3.2.0 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index b137237594a..667ce5e4409 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [Unreleased] + +## [5.26.0] - 2023-09-06 + +- Fixes serialization and deserialization of bitwise enums. +- Latest metadata updates from 6th September 2023. + ## [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) diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs index 26c7663e1a0..20c53477da0 100644 --- a/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/PresenceItemRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Communications.Presences.Item.ClearPresence; using Microsoft.Graph.Communications.Presences.Item.ClearUserPreferredPresence; using Microsoft.Graph.Communications.Presences.Item.SetPresence; +using Microsoft.Graph.Communications.Presences.Item.SetStatusMessage; using Microsoft.Graph.Communications.Presences.Item.SetUserPreferredPresence; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; @@ -30,6 +31,10 @@ public class PresenceItemRequestBuilder : BaseRequestBuilder { public SetPresenceRequestBuilder SetPresence { get => new SetPresenceRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the setStatusMessage method. + public SetStatusMessageRequestBuilder SetStatusMessage { get => + new SetStatusMessageRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the setUserPreferredPresence method. public SetUserPreferredPresenceRequestBuilder SetUserPreferredPresence { get => new SetUserPreferredPresenceRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs new file mode 100644 index 00000000000..c500e8a84d6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessagePostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Communications.Presences.Item.SetStatusMessage { + public class SetStatusMessagePostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The statusMessage property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PresenceStatusMessage? StatusMessage { + get { return BackingStore?.Get("statusMessage"); } + set { BackingStore?.Set("statusMessage", value); } + } +#nullable restore +#else + public PresenceStatusMessage StatusMessage { + get { return BackingStore?.Get("statusMessage"); } + set { BackingStore?.Set("statusMessage", value); } + } +#endif + /// + /// Instantiates a new setStatusMessagePostRequestBody and sets the default values. + /// + public SetStatusMessagePostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static SetStatusMessagePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SetStatusMessagePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"statusMessage", n => { StatusMessage = n.GetObjectValue(PresenceStatusMessage.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("statusMessage", StatusMessage); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs new file mode 100644 index 00000000000..84038fb4b7c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Communications/Presences/Item/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Communications.Presences.Item.SetStatusMessage { + /// + /// Provides operations to call the setStatusMessage method. + /// + public class SetStatusMessageRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new SetStatusMessageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetStatusMessageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage", pathParameters) { + } + /// + /// Instantiates a new SetStatusMessageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetStatusMessageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/presences/{presence%2Did}/setStatusMessage", rawUrl) { + } + /// + /// Invoke action setStatusMessage + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(SetStatusMessagePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(SetStatusMessagePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action setStatusMessage + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SetStatusMessageRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SetStatusMessageRequestBuilder WithUrl(string rawUrl) { + return new SetStatusMessageRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SetStatusMessageRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new setStatusMessageRequestBuilderPostRequestConfiguration and sets the default values. + /// + public SetStatusMessageRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index fe967d65030..530362dd8a0 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 7e11da57498..5073978917b 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 targetedManagedAppProtection 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. @@ -118,7 +118,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the targetedManagedAppProtection 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 @@ -195,7 +195,7 @@ public ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the targetedManagedAppProtection 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 e049e2a8690..fc561edbd1c 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/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs index 1c266b4abb2..9b69ece33f8 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs @@ -42,8 +42,8 @@ public ManagedAppPoliciesRequestBuilder(Dictionary pathParameter public ManagedAppPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedAppPolicy objects. - /// Find more info here + /// List properties and relationships of the managedAppConfiguration objects. + /// 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(ManagedAppPolicy body, Action(requestInfo, ManagedAppPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// List properties and relationships of the managedAppPolicy objects. + /// List properties and relationships of the managedAppConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -144,7 +144,7 @@ public ManagedAppPoliciesRequestBuilder WithUrl(string rawUrl) { return new ManagedAppPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedAppPolicy objects. + /// List properties and relationships of the managedAppConfiguration objects. /// public class ManagedAppPoliciesRequestBuilderGetQueryParameters { /// Include count of items 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 1bce1340e1d..f13c75002ff 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 111ce665e63..05da4b48bf6 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 609e1403fed..1456538d02d 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. @@ -128,7 +128,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 @@ -205,7 +205,7 @@ public ManagedAppRegistrationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// 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 ebb382af794..6993d3b2584 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 androidManagedAppRegistration objects. - /// Find more info here + /// List properties and relationships of the managedAppRegistration 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); } /// - /// List properties and relationships of the androidManagedAppRegistration objects. + /// List properties and relationships of the managedAppRegistration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -150,7 +150,7 @@ public ManagedAppRegistrationsRequestBuilder WithUrl(string rawUrl) { return new ManagedAppRegistrationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the androidManagedAppRegistration objects. + /// List properties and relationships of the managedAppRegistration objects. /// public class ManagedAppRegistrationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs index a2c74c1ea80..7af26a3dbe2 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. @@ -113,7 +113,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 @@ -190,7 +190,7 @@ public ManagedAppStatusItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// 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/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs index 277fe2b3609..d3a91c66b50 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, ManagedEBookAssignmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new iosVppEBookAssignment object. - /// Find more info here + /// Create a new managedEBookAssignment object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new iosVppEBookAssignment object. + /// Create a new managedEBookAssignment object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. 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 f0358868394..851307203a2 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 @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the properties of a managedEBookAssignment object. - /// Find more info here + /// Update the properties of a iosVppEBookAssignment object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a managedEBookAssignment object. + /// Update the properties of a iosVppEBookAssignment object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/ManagedEBooksRequestBuilder.cs index 0d805c03a7d..c31a18bf2e2 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 iosVppEBook objects. - /// Find more info here + /// List properties and relationships of the managedEBook 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); } /// - /// List properties and relationships of the iosVppEBook objects. + /// List properties and relationships of the managedEBook objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public ManagedEBooksRequestBuilder WithUrl(string rawUrl) { return new ManagedEBooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the iosVppEBook objects. + /// List properties and relationships of the managedEBook objects. /// public class ManagedEBooksRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs index 5193d66e36c..26f0842f731 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. + /// Read properties and relationships of the iosMobileAppConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -222,7 +222,7 @@ public ManagedDeviceMobileAppConfigurationItemRequestBuilderDeleteRequestConfigu } } /// - /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. + /// Read properties and relationships of the iosMobileAppConfiguration object. /// public class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs index 3871274c580..8f610b9850d 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); } /// - /// 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 @@ -145,7 +145,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 fd0f1f66dd7..16ad82d2c2c 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -54,8 +54,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 webApp. + /// 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 - /// Read properties and relationships of the win32LobApp object. - /// Find more info here + /// Read properties and relationships of the iosLobApp object. + /// 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 GetAsync(Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the properties of a webApp object. - /// Find more info here + /// Update the properties of a windowsAppX object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public async Task PatchAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Deletes a managedIOSLobApp. + /// Deletes a webApp. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,7 +140,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the win32LobApp object. + /// Read properties and relationships of the iosLobApp object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,7 +166,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a webApp object. + /// Update the properties of a windowsAppX object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -217,7 +217,7 @@ public MobileAppItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the win32LobApp object. + /// Read properties and relationships of the iosLobApp 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 6ed0d17c38e..4fbe295c909 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -52,8 +52,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 win32LobApp objects. - /// Find more info here + /// List properties and relationships of the windowsUniversalAppX objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -72,8 +72,8 @@ public async Task GetAsync(Action(requestInfo, MobileAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new webApp object. - /// Find more info here + /// Create a new macOSOfficeSuiteApp object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -94,7 +94,7 @@ public async Task PostAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// List properties and relationships of the win32LobApp objects. + /// List properties and relationships of the windowsUniversalAppX 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 webApp object. + /// Create a new macOSOfficeSuiteApp object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public MobileAppsRequestBuilder WithUrl(string rawUrl) { return new MobileAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the win32LobApp objects. + /// List properties and relationships of the windowsUniversalAppX 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 9655e2fee3a..d9026e27f5f 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a new androidCompliancePolicy object. - /// Find more info here + /// Create a new androidWorkProfileCompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new androidCompliancePolicy object. + /// Create a new androidWorkProfileCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index 342eff9f66d..4142f7c71e2 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 windowsPhone81CompliancePolicy. - /// Find more info here + /// Deletes a androidWorkProfileCompliancePolicy. + /// 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); } /// - /// Update the properties of a windows10MobileCompliancePolicy object. - /// Find more info here + /// Update the properties of a androidCompliancePolicy 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); } /// - /// Deletes a windowsPhone81CompliancePolicy. + /// Deletes a androidWorkProfileCompliancePolicy. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -186,7 +186,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a windows10MobileCompliancePolicy object. + /// Update the properties of a androidCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index 23da136fca1..b2d48cfe71b 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 androidWorkProfileGeneralDeviceConfiguration objects. - /// Find more info here + /// List properties and relationships of the androidWorkProfileCustomConfiguration 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); } /// - /// Create a new iosUpdateConfiguration object. - /// Find more info here + /// Create a new windowsPhone81GeneralConfiguration 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); } /// - /// List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects. + /// List properties and relationships of the androidWorkProfileCustomConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new iosUpdateConfiguration object. + /// Create a new windowsPhone81GeneralConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public DeviceConfigurationsRequestBuilder WithUrl(string rawUrl) { return new DeviceConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the androidWorkProfileGeneralDeviceConfiguration objects. + /// List properties and relationships of the androidWorkProfileCustomConfiguration 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 286bfc84d94..1725dbf5329 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 macOSGeneralDeviceConfiguration. - /// Find more info here + /// Deletes a windows10EnterpriseModernAppManagementConfiguration. + /// 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 iosDeviceFeaturesConfiguration object. - /// Find more info here + /// Read properties and relationships of the windowsDefenderAdvancedThreatProtectionConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,8 +113,8 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder GetOm return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(PathParameters, RequestAdapter, secretReferenceValueId); } /// - /// Update the properties of a androidWorkProfileCustomConfiguration object. - /// Find more info here + /// Update the properties of a macOSCustomConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -135,7 +135,7 @@ public async Task PatchAsync(DeviceConfiguration body, Acti return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Deletes a macOSGeneralDeviceConfiguration. + /// Deletes a windows10EnterpriseModernAppManagementConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -159,7 +159,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosDeviceFeaturesConfiguration object. + /// Read properties and relationships of the windowsDefenderAdvancedThreatProtectionConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -185,7 +185,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a androidWorkProfileCustomConfiguration object. + /// Update the properties of a macOSCustomConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -236,7 +236,7 @@ public DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read properties and relationships of the iosDeviceFeaturesConfiguration object. + /// Read properties and relationships of the windowsDefenderAdvancedThreatProtectionConfiguration 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 c8b904c2d5e..ea3ae6878a6 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 deviceEnrollmentPlatformRestrictionsConfiguration 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); } /// - /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration 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); } /// - /// List properties and relationships of the deviceEnrollmentConfiguration objects. + /// List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,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 deviceEnrollmentPlatformRestrictionsConfiguration 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 251428ded36..0f4e0ae9a02 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 deviceEnrollmentPlatformRestrictionsConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -64,8 +64,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. - /// Find more info here + /// Read properties and relationships of the deviceEnrollmentConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public async Task PatchAsync(DeviceEnrollmentConf return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Deletes a deviceEnrollmentWindowsHelloForBusinessConfiguration. + /// Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. + /// Read properties and relationships of the deviceEnrollmentConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -207,7 +207,7 @@ public DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration } } /// - /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. + /// Read properties and relationships of the deviceEnrollmentConfiguration object. /// public class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs index d708b5c9625..551cec47802 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -317,7 +317,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. @@ -345,7 +345,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 b9fefd153cb..5e047d040aa 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. @@ -74,8 +74,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the properties of a roleDefinition object. - /// Find more info here + /// Update the properties of a deviceAndAppManagementRoleDefinition 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); } /// - /// 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 @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a roleDefinition object. + /// Update the properties of a deviceAndAppManagementRoleDefinition object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index f93d7dc1e44..ce419b33f43 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -42,8 +42,8 @@ public RoleDefinitionsRequestBuilder(Dictionary pathParameters, public RoleDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/roleDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. - /// Find more info here + /// List properties and relationships of the roleDefinition 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 GetAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + /// List properties and relationships of the roleDefinition objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public RoleDefinitionsRequestBuilder WithUrl(string rawUrl) { return new RoleDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + /// List properties and relationships of the roleDefinition objects. /// public class RoleDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs index cdc7490d844..d69a9bf9d8a 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -226,8 +226,8 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. - /// Find more info here + /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -306,7 +306,7 @@ public RequestInformation ToGetRequestInformation(Action - /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. + /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs index b4fd80b65ec..fb16460344b 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/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs index 8856efbcf93..1b077cf9e3a 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/Worksheets/Item/Charts/ChartsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs index 2a858d347a7..324b415bbcf 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 663679775e3..293fffdb284 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); } /// - /// 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 @@ -154,7 +154,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/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs index 87ef8327a00..32f13fc34cb 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/WorksheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs index fafcb7073e1..bed55245a78 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -48,7 +48,7 @@ public WorksheetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Retrieve a list of worksheet objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 61988f77e91..fa697faef1f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 72f8f5d3250..c71752115bd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d7ae05e51f3..8464ce9259c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index f66531f6b72..9af16c89abb 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 4e2471e047a..d89fb6dcac7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 9fa25f728d4..90bc05baa2a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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 daa46c86627..64829cfc34b 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); } /// - /// 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 @@ -110,7 +110,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 4c8103140a8..e44fb705061 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -35,7 +35,7 @@ public ConversationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap } /// /// Delete conversation. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 845fd5e5f0c..1823a42ab7e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index fd3512dbbac..e14623339cf 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 700284ff823..f3b3254ad5f 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,8 @@ 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) { } /// - /// 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 + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, 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. + /// 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. /// /// 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 68527a3c413..1c15f6a7a49 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,8 @@ 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) { } /// - /// 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 + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, 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. + /// 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. /// /// 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 263f6164237..5d288cc6897 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 posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Find more info here /// /// 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); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PostsRequestBuilder WithUrl(string rawUrl) { return new PostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 51059335a5c..5e1e2942ed2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index ee691e10e64..9cd8038a3ac 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index 60d790262b7..42fe0bfd7b7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -88,8 +88,8 @@ public async Task DeleteAsync(Action - /// Returns the metadata for a [list][]. - /// Find more info here + /// Get a list of rich long-running operations associated with a list. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for a [list][]. + /// Get a list of rich long-running operations associated with a list. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public ListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the metadata for a [list][]. + /// Get a list of rich long-running operations associated with a list. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs index ce4c0aca04c..7b9ebe010b7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Clone/CloneRequestBuilder.cs @@ -28,7 +28,7 @@ public CloneRequestBuilder(Dictionary pathParameters, IRequestAd public CloneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/clone", rawUrl) { } /// - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClonePostRequestBody body, Action - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. /// /// 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/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 16e4dd1db45..7e2d7e587a2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d4eed4e3e86..9b974a281ef 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts/{post%2Did}/inReplyTo/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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 f254b1be964..92b20f5bf8a 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,8 @@ 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) { } /// - /// 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 + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, 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. + /// 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. /// /// 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 72e635a958b..18e352a2ef0 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,8 @@ 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) { } /// - /// 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 + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, 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. + /// 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. /// /// 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 73124071d84..b8c6374915f 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 posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. - /// Find more info here + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Find more info here /// /// 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); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,7 +95,7 @@ public PostsRequestBuilder WithUrl(string rawUrl) { return new PostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index adb281f2f4a..7e3abdf0f51 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 a countryNamedLocation 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. @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a countryNamedLocation object. - /// Find more info here + /// Retrieve the properties and relationships of 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. @@ -91,7 +91,7 @@ public async Task PatchAsync(NamedLocation body, Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete a countryNamedLocation 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 @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a countryNamedLocation object. + /// Retrieve the properties and relationships of a namedLocation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,7 +192,7 @@ public NamedLocationItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Retrieve the properties and relationships of a countryNamedLocation object. + /// Retrieve the properties and relationships of a namedLocation object. /// public class NamedLocationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs index f0c28c53a0f..49d9a60110d 100644 --- a/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs @@ -72,8 +72,8 @@ public async Task GetAsync(Action(requestInfo, ActivityHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete an existing history item for an existing user activity. - /// Find more info here + /// Create a new or replace an existing history item for an existing user activity. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Delete an existing history item for an existing user activity. + /// Create a new or replace an existing history item for an existing user activity. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 8b67588d865..9547906c610 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index bbb00072817..e2dc2216016 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 72eaf2af274..f5e1709f6d9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 9b2cec2bda3..b263d908712 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index cb7b26049a2..2ac9dee8e00 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 9311b6de328..6d2742abcbb 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d382920b5ff..687ad6b8c89 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index ba85b61094f..05159a2899e 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 0475be32eac..19ec4f18bed 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 9b5ba3a8622..1e0c7bca0fa 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 0ef9378ea43..76f5541b838 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d722e034efd..2f2cfcd7aae 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index ad13134f109..1fc449448bd 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 96f8d5963d6..ea2f9d988b3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 4453f67f540..50e7123376f 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index e7c835444c6..efd6b7d5c3e 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs index 3b49f50866b..771d7710040 100644 --- a/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/GetMailTips/GetMailTipsRequestBuilder.cs @@ -28,7 +28,7 @@ public GetMailTipsRequestBuilder(Dictionary pathParameters, IReq public GetMailTipsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/getMailTips", rawUrl) { } /// - /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips to be returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(GetMailTipsPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetMailTipsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips to be returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. /// /// 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/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs index 5c7f0a8e2af..edf11badcd8 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Clone/CloneRequestBuilder.cs @@ -28,7 +28,7 @@ public CloneRequestBuilder(Dictionary pathParameters, IRequestAd public CloneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/joinedTeams/{team%2Did}/clone", rawUrl) { } /// - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClonePostRequestBody body, Action - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs index 50341e94b0a..409ebbf1cd9 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index e07a5fedd99..2207844450c 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index 9b750b7bc9a..5ec49767178 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. /// Find more info here /// /// The request body @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. /// /// 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/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 2f773d8c87f..109d0ba3612 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items 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 c6a8a585a3f..ddd3ca86033 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 @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// 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 /// /// The request body @@ -115,7 +115,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 can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d1b3b23eb72..959ceb34bc8 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index cd95978a2a5..0edf8c9ec9c 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 0a9e414c909..2fe524430df 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// /// 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/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 91071c5ad44..a7dfdfb6850 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// /// 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/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index a47ceaaeca9..00aade6abda 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. /// Find more info here /// /// The request body @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index a07325addf1..7533ac19895 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// 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 efa0459db76..4b8bf37769d 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 @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// 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 /// /// The request body @@ -115,7 +115,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 can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index cfe991206ab..5eeaf3658b6 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index f3995028f5d..8cd634f4424 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index f89560c0871..b2ebb57a7e1 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 870d4408c94..4a8d2775250 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// /// 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/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs index 126f1ef41d3..f426421bf34 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// 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 5332dfee5c1..fb1f2811ce0 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// 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 /// /// The request body @@ -115,7 +115,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 can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index c01f83ff464..453352b68e3 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 4b53dd24281..e1582b71a8a 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 0fe57a03db5..f59107358ed 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index 43f905cd24a..98fe76e8be8 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. @@ -129,8 +129,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the properties of an eventMessage object. - /// Find more info here + /// Update the properties of a message object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete eventMessage. + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an eventMessage object. + /// Update the properties of a message object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs index e98ddcb3741..6244d2d6f1f 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// /// 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 2c11d5c2bd4..c8b323cb062 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); } /// - /// 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 @@ -115,7 +115,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/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs index f2c74252f30..5dafabc07c9 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName property once you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName propertyonce you have created the category. /// Find more info here /// /// The request body @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName property once you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName propertyonce you have created the category. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs index b1ae1831404..05c44ce1c36 100644 --- a/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs @@ -28,7 +28,7 @@ public SupportedLanguagesRequestBuilder(Dictionary pathParameter public SupportedLanguagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/outlook/supportedLanguages(){?%24top,%24skip,%24search,%24filter,%24count}", rawUrl) { } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language by getting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, SupportedLanguagesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language by getting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public SupportedLanguagesRequestBuilder WithUrl(string rawUrl) { return new SupportedLanguagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language by getting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. /// public class SupportedLanguagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs index 2c3643b2b58..53d6f2fdd0d 100644 --- a/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Presence/PresenceRequestBuilder.cs @@ -2,6 +2,7 @@ using Microsoft.Graph.Me.Presence.ClearPresence; using Microsoft.Graph.Me.Presence.ClearUserPreferredPresence; using Microsoft.Graph.Me.Presence.SetPresence; +using Microsoft.Graph.Me.Presence.SetStatusMessage; using Microsoft.Graph.Me.Presence.SetUserPreferredPresence; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; @@ -30,6 +31,10 @@ public class PresenceRequestBuilder : BaseRequestBuilder { public SetPresenceRequestBuilder SetPresence { get => new SetPresenceRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the setStatusMessage method. + public SetStatusMessageRequestBuilder SetStatusMessage { get => + new SetStatusMessageRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the setUserPreferredPresence method. public SetUserPreferredPresenceRequestBuilder SetUserPreferredPresence { get => new SetUserPreferredPresenceRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs new file mode 100644 index 00000000000..e8c53778f82 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Me.Presence.SetStatusMessage { + public class SetStatusMessagePostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The statusMessage property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PresenceStatusMessage? StatusMessage { + get { return BackingStore?.Get("statusMessage"); } + set { BackingStore?.Set("statusMessage", value); } + } +#nullable restore +#else + public PresenceStatusMessage StatusMessage { + get { return BackingStore?.Get("statusMessage"); } + set { BackingStore?.Set("statusMessage", value); } + } +#endif + /// + /// Instantiates a new setStatusMessagePostRequestBody and sets the default values. + /// + public SetStatusMessagePostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static SetStatusMessagePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SetStatusMessagePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"statusMessage", n => { StatusMessage = n.GetObjectValue(PresenceStatusMessage.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("statusMessage", StatusMessage); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs new file mode 100644 index 00000000000..170def611da --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Me.Presence.SetStatusMessage { + /// + /// Provides operations to call the setStatusMessage method. + /// + public class SetStatusMessageRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new SetStatusMessageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetStatusMessageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/presence/setStatusMessage", pathParameters) { + } + /// + /// Instantiates a new SetStatusMessageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetStatusMessageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/presence/setStatusMessage", rawUrl) { + } + /// + /// Invoke action setStatusMessage + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(SetStatusMessagePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(SetStatusMessagePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action setStatusMessage + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SetStatusMessageRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SetStatusMessageRequestBuilder WithUrl(string rawUrl) { + return new SetStatusMessageRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SetStatusMessageRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new setStatusMessageRequestBuilderPostRequestConfiguration and sets the default values. + /// + public SetStatusMessageRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs index cde30edbe60..e44dd34c66a 100644 --- a/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/SendMail/SendMailRequestBuilder.cs @@ -28,7 +28,7 @@ public SendMailRequestBuilder(Dictionary pathParameters, IReques public SendMailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/sendMail", rawUrl) { } /// - /// Send the message specified in the request body using either JSON or MIME format. When using JSON format you can include a file attachment in the same sendMail action call. 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. This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. + /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendMailPostRequestBody body, Action - /// Send the message specified in the request body using either JSON or MIME format. When using JSON format you can include a file attachment in the same sendMail action call. 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. This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. + /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModes.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModes.cs index 9fbee609f8f..676892661cb 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModes.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethodModes.cs @@ -2,40 +2,41 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum AuthenticationMethodModes { [EnumMember(Value = "password")] - Password, + Password = 1, [EnumMember(Value = "voice")] - Voice, + Voice = 2, [EnumMember(Value = "hardwareOath")] - HardwareOath, + HardwareOath = 4, [EnumMember(Value = "softwareOath")] - SoftwareOath, + SoftwareOath = 8, [EnumMember(Value = "sms")] - Sms, + Sms = 16, [EnumMember(Value = "fido2")] - Fido2, + Fido2 = 32, [EnumMember(Value = "windowsHelloForBusiness")] - WindowsHelloForBusiness, + WindowsHelloForBusiness = 64, [EnumMember(Value = "microsoftAuthenticatorPush")] - MicrosoftAuthenticatorPush, + MicrosoftAuthenticatorPush = 128, [EnumMember(Value = "deviceBasedPush")] - DeviceBasedPush, + DeviceBasedPush = 256, [EnumMember(Value = "temporaryAccessPassOneTime")] - TemporaryAccessPassOneTime, + TemporaryAccessPassOneTime = 512, [EnumMember(Value = "temporaryAccessPassMultiUse")] - TemporaryAccessPassMultiUse, + TemporaryAccessPassMultiUse = 1024, [EnumMember(Value = "email")] - Email, + Email = 2048, [EnumMember(Value = "x509CertificateSingleFactor")] - X509CertificateSingleFactor, + X509CertificateSingleFactor = 4096, [EnumMember(Value = "x509CertificateMultiFactor")] - X509CertificateMultiFactor, + X509CertificateMultiFactor = 8192, [EnumMember(Value = "federatedSingleFactor")] - FederatedSingleFactor, + FederatedSingleFactor = 16384, [EnumMember(Value = "federatedMultiFactor")] - FederatedMultiFactor, + FederatedMultiFactor = 32768, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 65536, } } diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRequirements.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRequirements.cs index 51721d2eec2..2ff1081909a 100644 --- a/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRequirements.cs +++ b/src/Microsoft.Graph/Generated/Models/AuthenticationStrengthRequirements.cs @@ -2,12 +2,13 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum AuthenticationStrengthRequirements { [EnumMember(Value = "none")] - None, + None = 1, [EnumMember(Value = "mfa")] - Mfa, + Mfa = 2, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 4, } } diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessageActions.cs b/src/Microsoft.Graph/Generated/Models/ChatMessageActions.cs index 20c97a4903f..d7d11bc6b0d 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessageActions.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessageActions.cs @@ -2,14 +2,15 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum ChatMessageActions { [EnumMember(Value = "reactionAdded")] - ReactionAdded, + ReactionAdded = 1, [EnumMember(Value = "reactionRemoved")] - ReactionRemoved, + ReactionRemoved = 2, [EnumMember(Value = "actionUndefined")] - ActionUndefined, + ActionUndefined = 4, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 8, } } diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationDlpActionTypes.cs b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationDlpActionTypes.cs index 4e7dcea2953..5e16e797d52 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationDlpActionTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationDlpActionTypes.cs @@ -2,14 +2,15 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum ChatMessagePolicyViolationDlpActionTypes { [EnumMember(Value = "none")] - None, + None = 1, [EnumMember(Value = "notifySender")] - NotifySender, + NotifySender = 2, [EnumMember(Value = "blockAccess")] - BlockAccess, + BlockAccess = 4, [EnumMember(Value = "blockAccessExternal")] - BlockAccessExternal, + BlockAccessExternal = 8, } } diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationUserActionTypes.cs b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationUserActionTypes.cs index 50b8a91e539..80b0f9c77b2 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationUserActionTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationUserActionTypes.cs @@ -2,12 +2,13 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum ChatMessagePolicyViolationUserActionTypes { [EnumMember(Value = "none")] - None, + None = 1, [EnumMember(Value = "override")] - Override, + Override = 2, [EnumMember(Value = "reportFalsePositive")] - ReportFalsePositive, + ReportFalsePositive = 4, } } diff --git a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationVerdictDetailsTypes.cs b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationVerdictDetailsTypes.cs index 2463fed85d1..9b0b3feddc9 100644 --- a/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationVerdictDetailsTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ChatMessagePolicyViolationVerdictDetailsTypes.cs @@ -2,14 +2,15 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum ChatMessagePolicyViolationVerdictDetailsTypes { [EnumMember(Value = "none")] - None, + None = 1, [EnumMember(Value = "allowFalsePositiveOverride")] - AllowFalsePositiveOverride, + AllowFalsePositiveOverride = 2, [EnumMember(Value = "allowOverrideWithoutJustification")] - AllowOverrideWithoutJustification, + AllowOverrideWithoutJustification = 4, [EnumMember(Value = "allowOverrideWithJustification")] - AllowOverrideWithJustification, + AllowOverrideWithJustification = 8, } } diff --git a/src/Microsoft.Graph/Generated/Models/ClonableTeamParts.cs b/src/Microsoft.Graph/Generated/Models/ClonableTeamParts.cs index 2e1ca64090b..defd4cda63c 100644 --- a/src/Microsoft.Graph/Generated/Models/ClonableTeamParts.cs +++ b/src/Microsoft.Graph/Generated/Models/ClonableTeamParts.cs @@ -2,16 +2,17 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum ClonableTeamParts { [EnumMember(Value = "apps")] - Apps, + Apps = 1, [EnumMember(Value = "tabs")] - Tabs, + Tabs = 2, [EnumMember(Value = "settings")] - Settings, + Settings = 4, [EnumMember(Value = "channels")] - Channels, + Channels = 8, [EnumMember(Value = "members")] - Members, + Members = 16, } } diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGuestOrExternalUserTypes.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGuestOrExternalUserTypes.cs index f3131d73987..bc677e63dd5 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessGuestOrExternalUserTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessGuestOrExternalUserTypes.cs @@ -2,22 +2,23 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum ConditionalAccessGuestOrExternalUserTypes { [EnumMember(Value = "none")] - None, + None = 1, [EnumMember(Value = "internalGuest")] - InternalGuest, + InternalGuest = 2, [EnumMember(Value = "b2bCollaborationGuest")] - B2bCollaborationGuest, + B2bCollaborationGuest = 4, [EnumMember(Value = "b2bCollaborationMember")] - B2bCollaborationMember, + B2bCollaborationMember = 8, [EnumMember(Value = "b2bDirectConnectUser")] - B2bDirectConnectUser, + B2bDirectConnectUser = 16, [EnumMember(Value = "otherExternalUser")] - OtherExternalUser, + OtherExternalUser = 32, [EnumMember(Value = "serviceProvider")] - ServiceProvider, + ServiceProvider = 64, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 128, } } diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryDefinitionDiscoverabilities.cs b/src/Microsoft.Graph/Generated/Models/DirectoryDefinitionDiscoverabilities.cs index 9d4fa82201e..6d059c0f353 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryDefinitionDiscoverabilities.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryDefinitionDiscoverabilities.cs @@ -2,18 +2,19 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum DirectoryDefinitionDiscoverabilities { [EnumMember(Value = "None")] - None, + None = 1, [EnumMember(Value = "AttributeNames")] - AttributeNames, + AttributeNames = 2, [EnumMember(Value = "AttributeDataTypes")] - AttributeDataTypes, + AttributeDataTypes = 4, [EnumMember(Value = "AttributeReadOnly")] - AttributeReadOnly, + AttributeReadOnly = 8, [EnumMember(Value = "ReferenceAttributes")] - ReferenceAttributes, + ReferenceAttributes = 16, [EnumMember(Value = "UnknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 32, } } diff --git a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleTaskCategory.cs b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleTaskCategory.cs index d2bb233cf2e..f648a21f08a 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleTaskCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentityGovernance/LifecycleTaskCategory.cs @@ -2,14 +2,15 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models.IdentityGovernance { + [Flags] public enum LifecycleTaskCategory { [EnumMember(Value = "joiner")] - Joiner, + Joiner = 1, [EnumMember(Value = "leaver")] - Leaver, + Leaver = 2, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 4, [EnumMember(Value = "mover")] - Mover, + Mover = 8, } } diff --git a/src/Microsoft.Graph/Generated/Models/LearningSelfInitiatedCourse.cs b/src/Microsoft.Graph/Generated/Models/LearningSelfInitiatedCourse.cs index 2b85cf276ce..4bcaa7e6a61 100644 --- a/src/Microsoft.Graph/Generated/Models/LearningSelfInitiatedCourse.cs +++ b/src/Microsoft.Graph/Generated/Models/LearningSelfInitiatedCourse.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class LearningSelfInitiatedCourse : LearningCourseActivity, IParsable { - /// The date time value on which the self-initiated course was started by the learner. Optional. + /// The date and time on which the self-initiated course was started by the learner. Optional. public DateTimeOffset? StartedDateTime { get { return BackingStore?.Get("startedDateTime"); } set { BackingStore?.Set("startedDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Models/MailTipsType.cs b/src/Microsoft.Graph/Generated/Models/MailTipsType.cs index ca7ec83383c..2e4436dcba6 100644 --- a/src/Microsoft.Graph/Generated/Models/MailTipsType.cs +++ b/src/Microsoft.Graph/Generated/Models/MailTipsType.cs @@ -2,26 +2,27 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum MailTipsType { [EnumMember(Value = "automaticReplies")] - AutomaticReplies, + AutomaticReplies = 1, [EnumMember(Value = "mailboxFullStatus")] - MailboxFullStatus, + MailboxFullStatus = 2, [EnumMember(Value = "customMailTip")] - CustomMailTip, + CustomMailTip = 4, [EnumMember(Value = "externalMemberCount")] - ExternalMemberCount, + ExternalMemberCount = 8, [EnumMember(Value = "totalMemberCount")] - TotalMemberCount, + TotalMemberCount = 16, [EnumMember(Value = "maxMessageSize")] - MaxMessageSize, + MaxMessageSize = 32, [EnumMember(Value = "deliveryRestriction")] - DeliveryRestriction, + DeliveryRestriction = 64, [EnumMember(Value = "moderationStatus")] - ModerationStatus, + ModerationStatus = 128, [EnumMember(Value = "recipientScope")] - RecipientScope, + RecipientScope = 256, [EnumMember(Value = "recipientSuggestions")] - RecipientSuggestions, + RecipientSuggestions = 512, } } diff --git a/src/Microsoft.Graph/Generated/Models/ManagedBrowserType.cs b/src/Microsoft.Graph/Generated/Models/ManagedBrowserType.cs index 090b2798e7a..81056c074f6 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedBrowserType.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedBrowserType.cs @@ -3,12 +3,13 @@ using System; namespace Microsoft.Graph.Models { /// Type of managed browser + [Flags] public enum ManagedBrowserType { /// Not configured [EnumMember(Value = "notConfigured")] - NotConfigured, + NotConfigured = 1, /// Microsoft Edge [EnumMember(Value = "microsoftEdge")] - MicrosoftEdge, + MicrosoftEdge = 2, } } diff --git a/src/Microsoft.Graph/Generated/Models/NotificationTemplateBrandingOptions.cs b/src/Microsoft.Graph/Generated/Models/NotificationTemplateBrandingOptions.cs index 8a8d7c7faeb..64cfe678657 100644 --- a/src/Microsoft.Graph/Generated/Models/NotificationTemplateBrandingOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/NotificationTemplateBrandingOptions.cs @@ -3,27 +3,28 @@ using System; namespace Microsoft.Graph.Models { /// Branding Options for the Message Template. Branding is defined in the Intune Admin Console. + [Flags] public enum NotificationTemplateBrandingOptions { /// Indicates that no branding options are set in the message template. [EnumMember(Value = "none")] - None, + None = 1, /// Indicates to include company logo in the message template. [EnumMember(Value = "includeCompanyLogo")] - IncludeCompanyLogo, + IncludeCompanyLogo = 2, /// Indicates to include company name in the message template. [EnumMember(Value = "includeCompanyName")] - IncludeCompanyName, + IncludeCompanyName = 4, /// Indicates to include contact information in the message template. [EnumMember(Value = "includeContactInformation")] - IncludeContactInformation, + IncludeContactInformation = 8, /// Indicates to include company portal website link in the message template. [EnumMember(Value = "includeCompanyPortalLink")] - IncludeCompanyPortalLink, + IncludeCompanyPortalLink = 16, /// Indicates to include device details in the message template. [EnumMember(Value = "includeDeviceDetails")] - IncludeDeviceDetails, + IncludeDeviceDetails = 32, /// Evolvable enumeration sentinel value. Do not use. [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 64, } } diff --git a/src/Microsoft.Graph/Generated/Models/ObjectFlowTypes.cs b/src/Microsoft.Graph/Generated/Models/ObjectFlowTypes.cs index 6fed12be332..951a8e0cc5e 100644 --- a/src/Microsoft.Graph/Generated/Models/ObjectFlowTypes.cs +++ b/src/Microsoft.Graph/Generated/Models/ObjectFlowTypes.cs @@ -2,14 +2,15 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum ObjectFlowTypes { [EnumMember(Value = "None")] - None, + None = 1, [EnumMember(Value = "Add")] - Add, + Add = 2, [EnumMember(Value = "Update")] - Update, + Update = 4, [EnumMember(Value = "Delete")] - Delete, + Delete = 8, } } diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingContentSharingDisabledReason.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingContentSharingDisabledReason.cs index 791e9f63262..6dddece60b3 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeetingContentSharingDisabledReason.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingContentSharingDisabledReason.cs @@ -2,10 +2,11 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum OnlineMeetingContentSharingDisabledReason { [EnumMember(Value = "watermarkProtection")] - WatermarkProtection, + WatermarkProtection = 1, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 2, } } diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingVideoDisabledReason.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingVideoDisabledReason.cs index 92a9e7596a7..72ec7eb49de 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeetingVideoDisabledReason.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingVideoDisabledReason.cs @@ -2,10 +2,11 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum OnlineMeetingVideoDisabledReason { [EnumMember(Value = "watermarkProtection")] - WatermarkProtection, + WatermarkProtection = 1, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 2, } } diff --git a/src/Microsoft.Graph/Generated/Models/Presence.cs b/src/Microsoft.Graph/Generated/Models/Presence.cs index 57ebea93f92..a9162356cff 100644 --- a/src/Microsoft.Graph/Generated/Models/Presence.cs +++ b/src/Microsoft.Graph/Generated/Models/Presence.cs @@ -33,6 +33,20 @@ public string Availability { get { return BackingStore?.Get("availability"); } set { BackingStore?.Set("availability", value); } } +#endif + /// The statusMessage property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PresenceStatusMessage? StatusMessage { + get { return BackingStore?.Get("statusMessage"); } + set { BackingStore?.Set("statusMessage", value); } + } +#nullable restore +#else + public PresenceStatusMessage StatusMessage { + get { return BackingStore?.Get("statusMessage"); } + set { BackingStore?.Set("statusMessage", value); } + } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -49,6 +63,7 @@ public string Availability { return new Dictionary>(base.GetFieldDeserializers()) { {"activity", n => { Activity = n.GetStringValue(); } }, {"availability", n => { Availability = n.GetStringValue(); } }, + {"statusMessage", n => { StatusMessage = n.GetObjectValue(PresenceStatusMessage.CreateFromDiscriminatorValue); } }, }; } /// @@ -60,6 +75,7 @@ public string Availability { base.Serialize(writer); writer.WriteStringValue("activity", Activity); writer.WriteStringValue("availability", Availability); + writer.WriteObjectValue("statusMessage", StatusMessage); } } } diff --git a/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs b/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs new file mode 100644 index 00000000000..be383932bce --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PresenceStatusMessage.cs @@ -0,0 +1,103 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class PresenceStatusMessage : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The expiryDateTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DateTimeTimeZone? ExpiryDateTime { + get { return BackingStore?.Get("expiryDateTime"); } + set { BackingStore?.Set("expiryDateTime", value); } + } +#nullable restore +#else + public DateTimeTimeZone ExpiryDateTime { + get { return BackingStore?.Get("expiryDateTime"); } + set { BackingStore?.Set("expiryDateTime", value); } + } +#endif + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public ItemBody? Message { + get { return BackingStore?.Get("message"); } + set { BackingStore?.Set("message", value); } + } +#nullable restore +#else + public ItemBody Message { + get { return BackingStore?.Get("message"); } + set { BackingStore?.Set("message", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// The publishedDateTime property + public DateTimeOffset? PublishedDateTime { + get { return BackingStore?.Get("publishedDateTime"); } + set { BackingStore?.Set("publishedDateTime", value); } + } + /// + /// Instantiates a new presenceStatusMessage and sets the default values. + /// + public PresenceStatusMessage() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static PresenceStatusMessage CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PresenceStatusMessage(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"expiryDateTime", n => { ExpiryDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + {"message", n => { Message = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"publishedDateTime", n => { PublishedDateTime = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("expiryDateTime", ExpiryDateTime); + writer.WriteObjectValue("message", Message); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteDateTimeOffsetValue("publishedDateTime", PublishedDateTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PublicationFacet.cs b/src/Microsoft.Graph/Generated/Models/PublicationFacet.cs index e0bcede87e4..6814f4a6967 100644 --- a/src/Microsoft.Graph/Generated/Models/PublicationFacet.cs +++ b/src/Microsoft.Graph/Generated/Models/PublicationFacet.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The checkedOutBy property + /// User who has checked out the file. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public IdentitySet? CheckedOutBy { diff --git a/src/Microsoft.Graph/Generated/Models/RecipientScopeType.cs b/src/Microsoft.Graph/Generated/Models/RecipientScopeType.cs index 67eefc36daf..3b7f12a80b3 100644 --- a/src/Microsoft.Graph/Generated/Models/RecipientScopeType.cs +++ b/src/Microsoft.Graph/Generated/Models/RecipientScopeType.cs @@ -2,16 +2,17 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum RecipientScopeType { [EnumMember(Value = "none")] - None, + None = 1, [EnumMember(Value = "internal")] - Internal, + Internal = 2, [EnumMember(Value = "external")] - External, + External = 4, [EnumMember(Value = "externalPartner")] - ExternalPartner, + ExternalPartner = 8, [EnumMember(Value = "externalNonPartner")] - ExternalNonPartner, + ExternalNonPartner = 16, } } diff --git a/src/Microsoft.Graph/Generated/Models/SearchContent.cs b/src/Microsoft.Graph/Generated/Models/SearchContent.cs index 50fb51f5cc1..73dc973b51e 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchContent.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchContent.cs @@ -2,12 +2,13 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum SearchContent { [EnumMember(Value = "sharedContent")] - SharedContent, + SharedContent = 1, [EnumMember(Value = "privateContent")] - PrivateContent, + PrivateContent = 2, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 4, } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/AdditionalDataOptions.cs b/src/Microsoft.Graph/Generated/Models/Security/AdditionalDataOptions.cs index afa3fa5ff1b..2fd1d89b02b 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AdditionalDataOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AdditionalDataOptions.cs @@ -2,12 +2,13 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models.Security { + [Flags] public enum AdditionalDataOptions { [EnumMember(Value = "allVersions")] - AllVersions, + AllVersions = 1, [EnumMember(Value = "linkedFiles")] - LinkedFiles, + LinkedFiles = 2, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 4, } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/DataSourceScopes.cs b/src/Microsoft.Graph/Generated/Models/Security/DataSourceScopes.cs index 126ea9e642e..1ed180dde11 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/DataSourceScopes.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/DataSourceScopes.cs @@ -2,18 +2,19 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models.Security { + [Flags] public enum DataSourceScopes { [EnumMember(Value = "none")] - None, + None = 1, [EnumMember(Value = "allTenantMailboxes")] - AllTenantMailboxes, + AllTenantMailboxes = 2, [EnumMember(Value = "allTenantSites")] - AllTenantSites, + AllTenantSites = 4, [EnumMember(Value = "allCaseCustodians")] - AllCaseCustodians, + AllCaseCustodians = 8, [EnumMember(Value = "allCaseNoncustodialDataSources")] - AllCaseNoncustodialDataSources, + AllCaseNoncustodialDataSources = 16, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 32, } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/ExportOptions.cs b/src/Microsoft.Graph/Generated/Models/Security/ExportOptions.cs index 03a757e66f9..9e2c1ccdc97 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/ExportOptions.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/ExportOptions.cs @@ -2,16 +2,17 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models.Security { + [Flags] public enum ExportOptions { [EnumMember(Value = "originalFiles")] - OriginalFiles, + OriginalFiles = 1, [EnumMember(Value = "text")] - Text, + Text = 2, [EnumMember(Value = "pdfReplacement")] - PdfReplacement, + PdfReplacement = 4, [EnumMember(Value = "tags")] - Tags, + Tags = 8, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 16, } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/PurgeAreas.cs b/src/Microsoft.Graph/Generated/Models/Security/PurgeAreas.cs index ed5efb2f475..b155a58eeaa 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/PurgeAreas.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/PurgeAreas.cs @@ -2,12 +2,13 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models.Security { + [Flags] public enum PurgeAreas { [EnumMember(Value = "mailboxes")] - Mailboxes, + Mailboxes = 1, [EnumMember(Value = "teamsMessages")] - TeamsMessages, + TeamsMessages = 2, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 4, } } diff --git a/src/Microsoft.Graph/Generated/Models/Security/Security.cs b/src/Microsoft.Graph/Generated/Models/Security/Security.cs index b592af54d11..e02ef542dce 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Security.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Security.cs @@ -103,6 +103,20 @@ public List SecureScores { get { return BackingStore?.Get>("secureScores"); } set { BackingStore?.Set("secureScores", value); } } +#endif + /// The subjectRightsRequests property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SubjectRightsRequests { + get { return BackingStore?.Get?>("subjectRightsRequests"); } + set { BackingStore?.Set("subjectRightsRequests", value); } + } +#nullable restore +#else + public List SubjectRightsRequests { + get { return BackingStore?.Get>("subjectRightsRequests"); } + set { BackingStore?.Set("subjectRightsRequests", value); } + } #endif /// The threatIntelligence property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -166,6 +180,7 @@ public TriggerTypesRoot TriggerTypes { {"incidents", n => { Incidents = n.GetCollectionOfObjectValues(Incident.CreateFromDiscriminatorValue)?.ToList(); } }, {"secureScoreControlProfiles", n => { SecureScoreControlProfiles = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.SecureScoreControlProfile.CreateFromDiscriminatorValue)?.ToList(); } }, {"secureScores", n => { SecureScores = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.SecureScore.CreateFromDiscriminatorValue)?.ToList(); } }, + {"subjectRightsRequests", n => { SubjectRightsRequests = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.SubjectRightsRequest.CreateFromDiscriminatorValue)?.ToList(); } }, {"threatIntelligence", n => { ThreatIntelligence = n.GetObjectValue(Microsoft.Graph.Models.Security.ThreatIntelligence.CreateFromDiscriminatorValue); } }, {"triggers", n => { Triggers = n.GetObjectValue(TriggersRoot.CreateFromDiscriminatorValue); } }, {"triggerTypes", n => { TriggerTypes = n.GetObjectValue(TriggerTypesRoot.CreateFromDiscriminatorValue); } }, @@ -185,6 +200,7 @@ public TriggerTypesRoot TriggerTypes { writer.WriteCollectionOfObjectValues("incidents", Incidents); writer.WriteCollectionOfObjectValues("secureScoreControlProfiles", SecureScoreControlProfiles); writer.WriteCollectionOfObjectValues("secureScores", SecureScores); + writer.WriteCollectionOfObjectValues("subjectRightsRequests", SubjectRightsRequests); writer.WriteObjectValue("threatIntelligence", ThreatIntelligence); writer.WriteObjectValue("triggers", Triggers); writer.WriteObjectValue("triggerTypes", TriggerTypes); diff --git a/src/Microsoft.Graph/Generated/Models/Security/SourceType.cs b/src/Microsoft.Graph/Generated/Models/Security/SourceType.cs index d8bed1ddff4..2853abda1c6 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/SourceType.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/SourceType.cs @@ -2,12 +2,13 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models.Security { + [Flags] public enum SourceType { [EnumMember(Value = "mailbox")] - Mailbox, + Mailbox = 1, [EnumMember(Value = "site")] - Site, + Site = 2, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 4, } } diff --git a/src/Microsoft.Graph/Generated/Models/SharedPCAllowedAccountType.cs b/src/Microsoft.Graph/Generated/Models/SharedPCAllowedAccountType.cs index 3f65404dddb..a815daffb33 100644 --- a/src/Microsoft.Graph/Generated/Models/SharedPCAllowedAccountType.cs +++ b/src/Microsoft.Graph/Generated/Models/SharedPCAllowedAccountType.cs @@ -3,12 +3,13 @@ using System; namespace Microsoft.Graph.Models { /// Type of accounts that are allowed to share the PC. + [Flags] public enum SharedPCAllowedAccountType { /// Only guest accounts. [EnumMember(Value = "guest")] - Guest, + Guest = 1, /// Only domain-joined accounts. [EnumMember(Value = "domain")] - Domain, + Domain = 2, } } diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs index 2af53795a61..8d1f9826287 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequest.cs @@ -6,6 +6,20 @@ using System; namespace Microsoft.Graph.Models { public class SubjectRightsRequest : Entity, IParsable { + /// The approvers property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Approvers { + get { return BackingStore?.Get?>("approvers"); } + set { BackingStore?.Set("approvers", value); } + } +#nullable restore +#else + public List Approvers { + get { return BackingStore?.Get>("approvers"); } + set { BackingStore?.Set("approvers", value); } + } +#endif /// Identity that the request is assigned to. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -25,6 +39,34 @@ public DateTimeOffset? ClosedDateTime { get { return BackingStore?.Get("closedDateTime"); } set { BackingStore?.Set("closedDateTime", value); } } + /// The collaborators property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Collaborators { + get { return BackingStore?.Get?>("collaborators"); } + set { BackingStore?.Set("collaborators", value); } + } +#nullable restore +#else + public List Collaborators { + get { return BackingStore?.Get>("collaborators"); } + set { BackingStore?.Set("collaborators", value); } + } +#endif + /// The contentQuery property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ContentQuery { + get { return BackingStore?.Get("contentQuery"); } + set { BackingStore?.Set("contentQuery", value); } + } +#nullable restore +#else + public string ContentQuery { + get { return BackingStore?.Get("contentQuery"); } + set { BackingStore?.Set("contentQuery", value); } + } +#endif /// Identity information for the entity that created the request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +132,20 @@ public string DisplayName { get { return BackingStore?.Get("displayName"); } set { BackingStore?.Set("displayName", value); } } +#endif + /// The externalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ExternalId { + get { return BackingStore?.Get("externalId"); } + set { BackingStore?.Set("externalId", value); } + } +#nullable restore +#else + public string ExternalId { + get { return BackingStore?.Get("externalId"); } + set { BackingStore?.Set("externalId", value); } + } #endif /// Collection of history change events. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,6 +161,16 @@ public List History { set { BackingStore?.Set("history", value); } } #endif + /// The includeAllVersions property + public bool? IncludeAllVersions { + get { return BackingStore?.Get("includeAllVersions"); } + set { BackingStore?.Set("includeAllVersions", value); } + } + /// The includeAuthoredContent property + public bool? IncludeAuthoredContent { + get { return BackingStore?.Get("includeAuthoredContent"); } + set { BackingStore?.Set("includeAuthoredContent", value); } + } /// Insight about the request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -143,6 +209,20 @@ public DateTimeOffset? LastModifiedDateTime { get { return BackingStore?.Get("lastModifiedDateTime"); } set { BackingStore?.Set("lastModifiedDateTime", value); } } + /// The mailboxlocations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public SubjectRightsRequestMailboxLocation? Mailboxlocations { + get { return BackingStore?.Get("mailboxlocations"); } + set { BackingStore?.Set("mailboxlocations", value); } + } +#nullable restore +#else + public SubjectRightsRequestMailboxLocation Mailboxlocations { + get { return BackingStore?.Get("mailboxlocations"); } + set { BackingStore?.Set("mailboxlocations", value); } + } +#endif /// List of notes associcated with the request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -157,6 +237,11 @@ public List Notes { set { BackingStore?.Set("notes", value); } } #endif + /// The pauseAfterEstimate property + public bool? PauseAfterEstimate { + get { return BackingStore?.Get("pauseAfterEstimate"); } + set { BackingStore?.Set("pauseAfterEstimate", value); } + } /// List of regulations that this request will fulfill. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -170,6 +255,20 @@ public List Regulations { get { return BackingStore?.Get>("regulations"); } set { BackingStore?.Set("regulations", value); } } +#endif + /// The sitelocations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public SubjectRightsRequestSiteLocation? Sitelocations { + get { return BackingStore?.Get("sitelocations"); } + set { BackingStore?.Set("sitelocations", value); } + } +#nullable restore +#else + public SubjectRightsRequestSiteLocation Sitelocations { + get { return BackingStore?.Get("sitelocations"); } + set { BackingStore?.Set("sitelocations", value); } + } #endif /// Information about the different stages for the request. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -222,21 +321,30 @@ public SubjectRightsRequestType? Type { /// public new IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"approvers", n => { Approvers = n.GetCollectionOfObjectValues(User.CreateFromDiscriminatorValue)?.ToList(); } }, {"assignedTo", n => { AssignedTo = n.GetObjectValue(Identity.CreateFromDiscriminatorValue); } }, {"closedDateTime", n => { ClosedDateTime = n.GetDateTimeOffsetValue(); } }, + {"collaborators", n => { Collaborators = n.GetCollectionOfObjectValues(User.CreateFromDiscriminatorValue)?.ToList(); } }, + {"contentQuery", n => { ContentQuery = n.GetStringValue(); } }, {"createdBy", n => { CreatedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"dataSubject", n => { DataSubject = n.GetObjectValue(Microsoft.Graph.Models.DataSubject.CreateFromDiscriminatorValue); } }, {"dataSubjectType", n => { DataSubjectType = n.GetEnumValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"externalId", n => { ExternalId = n.GetStringValue(); } }, {"history", n => { History = n.GetCollectionOfObjectValues(SubjectRightsRequestHistory.CreateFromDiscriminatorValue)?.ToList(); } }, + {"includeAllVersions", n => { IncludeAllVersions = n.GetBoolValue(); } }, + {"includeAuthoredContent", n => { IncludeAuthoredContent = n.GetBoolValue(); } }, {"insight", n => { Insight = n.GetObjectValue(SubjectRightsRequestDetail.CreateFromDiscriminatorValue); } }, {"internalDueDateTime", n => { InternalDueDateTime = n.GetDateTimeOffsetValue(); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"mailboxlocations", n => { Mailboxlocations = n.GetObjectValue(SubjectRightsRequestMailboxLocation.CreateFromDiscriminatorValue); } }, {"notes", n => { Notes = n.GetCollectionOfObjectValues(AuthoredNote.CreateFromDiscriminatorValue)?.ToList(); } }, + {"pauseAfterEstimate", n => { PauseAfterEstimate = n.GetBoolValue(); } }, {"regulations", n => { Regulations = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"sitelocations", n => { Sitelocations = n.GetObjectValue(SubjectRightsRequestSiteLocation.CreateFromDiscriminatorValue); } }, {"stages", n => { Stages = n.GetCollectionOfObjectValues(SubjectRightsRequestStageDetail.CreateFromDiscriminatorValue)?.ToList(); } }, {"status", n => { Status = n.GetEnumValue(); } }, {"team", n => { Team = n.GetObjectValue(Microsoft.Graph.Models.Team.CreateFromDiscriminatorValue); } }, @@ -250,21 +358,30 @@ public SubjectRightsRequestType? Type { public new void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("approvers", Approvers); writer.WriteObjectValue("assignedTo", AssignedTo); writer.WriteDateTimeOffsetValue("closedDateTime", ClosedDateTime); + writer.WriteCollectionOfObjectValues("collaborators", Collaborators); + writer.WriteStringValue("contentQuery", ContentQuery); writer.WriteObjectValue("createdBy", CreatedBy); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("dataSubject", DataSubject); writer.WriteEnumValue("dataSubjectType", DataSubjectType); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); + writer.WriteStringValue("externalId", ExternalId); writer.WriteCollectionOfObjectValues("history", History); + writer.WriteBoolValue("includeAllVersions", IncludeAllVersions); + writer.WriteBoolValue("includeAuthoredContent", IncludeAuthoredContent); writer.WriteObjectValue("insight", Insight); writer.WriteDateTimeOffsetValue("internalDueDateTime", InternalDueDateTime); writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteObjectValue("mailboxlocations", Mailboxlocations); writer.WriteCollectionOfObjectValues("notes", Notes); + writer.WriteBoolValue("pauseAfterEstimate", PauseAfterEstimate); writer.WriteCollectionOfPrimitiveValues("regulations", Regulations); + writer.WriteObjectValue("sitelocations", Sitelocations); writer.WriteCollectionOfObjectValues("stages", Stages); writer.WriteEnumValue("status", Status); writer.WriteObjectValue("team", Team); diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllMailboxLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllMailboxLocation.cs new file mode 100644 index 00000000000..ac0f3c00419 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllMailboxLocation.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class SubjectRightsRequestAllMailboxLocation : SubjectRightsRequestMailboxLocation, IParsable { + /// + /// Instantiates a new subjectRightsRequestAllMailboxLocation and sets the default values. + /// + public SubjectRightsRequestAllMailboxLocation() : base() { + OdataType = "#microsoft.graph.subjectRightsRequestAllMailboxLocation"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SubjectRightsRequestAllMailboxLocation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SubjectRightsRequestAllMailboxLocation(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllSiteLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllSiteLocation.cs new file mode 100644 index 00000000000..d0d91bbdfa0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestAllSiteLocation.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class SubjectRightsRequestAllSiteLocation : SubjectRightsRequestSiteLocation, IParsable { + /// + /// Instantiates a new subjectRightsRequestAllSiteLocation and sets the default values. + /// + public SubjectRightsRequestAllSiteLocation() : base() { + OdataType = "#microsoft.graph.subjectRightsRequestAllSiteLocation"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SubjectRightsRequestAllSiteLocation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SubjectRightsRequestAllSiteLocation(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedMailboxLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedMailboxLocation.cs new file mode 100644 index 00000000000..d5b9f2a2cb9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedMailboxLocation.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class SubjectRightsRequestEnumeratedMailboxLocation : SubjectRightsRequestMailboxLocation, IParsable { + /// The userPrincipalNames property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? UserPrincipalNames { + get { return BackingStore?.Get?>("userPrincipalNames"); } + set { BackingStore?.Set("userPrincipalNames", value); } + } +#nullable restore +#else + public List UserPrincipalNames { + get { return BackingStore?.Get>("userPrincipalNames"); } + set { BackingStore?.Set("userPrincipalNames", value); } + } +#endif + /// + /// Instantiates a new subjectRightsRequestEnumeratedMailboxLocation and sets the default values. + /// + public SubjectRightsRequestEnumeratedMailboxLocation() : base() { + OdataType = "#microsoft.graph.subjectRightsRequestEnumeratedMailboxLocation"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SubjectRightsRequestEnumeratedMailboxLocation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SubjectRightsRequestEnumeratedMailboxLocation(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"userPrincipalNames", n => { UserPrincipalNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("userPrincipalNames", UserPrincipalNames); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedSiteLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedSiteLocation.cs new file mode 100644 index 00000000000..b09faa80c22 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestEnumeratedSiteLocation.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class SubjectRightsRequestEnumeratedSiteLocation : SubjectRightsRequestSiteLocation, IParsable { + /// The urls property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Urls { + get { return BackingStore?.Get?>("urls"); } + set { BackingStore?.Set("urls", value); } + } +#nullable restore +#else + public List Urls { + get { return BackingStore?.Get>("urls"); } + set { BackingStore?.Set("urls", value); } + } +#endif + /// + /// Instantiates a new subjectRightsRequestEnumeratedSiteLocation and sets the default values. + /// + public SubjectRightsRequestEnumeratedSiteLocation() : base() { + OdataType = "#microsoft.graph.subjectRightsRequestEnumeratedSiteLocation"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SubjectRightsRequestEnumeratedSiteLocation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SubjectRightsRequestEnumeratedSiteLocation(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"urls", n => { Urls = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfPrimitiveValues("urls", Urls); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestMailboxLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestMailboxLocation.cs new file mode 100644 index 00000000000..b28816bb134 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestMailboxLocation.cs @@ -0,0 +1,69 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class SubjectRightsRequestMailboxLocation : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new subjectRightsRequestMailboxLocation and sets the default values. + /// + public SubjectRightsRequestMailboxLocation() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static SubjectRightsRequestMailboxLocation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.subjectRightsRequestAllMailboxLocation" => new SubjectRightsRequestAllMailboxLocation(), + "#microsoft.graph.subjectRightsRequestEnumeratedMailboxLocation" => new SubjectRightsRequestEnumeratedMailboxLocation(), + _ => new SubjectRightsRequestMailboxLocation(), + }; + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestSiteLocation.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestSiteLocation.cs new file mode 100644 index 00000000000..3a27239ef69 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestSiteLocation.cs @@ -0,0 +1,69 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class SubjectRightsRequestSiteLocation : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new subjectRightsRequestSiteLocation and sets the default values. + /// + public SubjectRightsRequestSiteLocation() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static SubjectRightsRequestSiteLocation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.subjectRightsRequestAllSiteLocation" => new SubjectRightsRequestAllSiteLocation(), + "#microsoft.graph.subjectRightsRequestEnumeratedSiteLocation" => new SubjectRightsRequestEnumeratedSiteLocation(), + _ => new SubjectRightsRequestSiteLocation(), + }; + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs index d72e5fba95b..248bfa920db 100644 --- a/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs +++ b/src/Microsoft.Graph/Generated/Models/SubjectRightsRequestStage.cs @@ -17,5 +17,7 @@ public enum SubjectRightsRequestStage { ContentEstimate, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, + [EnumMember(Value = "approval")] + Approval, } } diff --git a/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartScope.cs b/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartScope.cs index 4850dd52911..5a17d5270f1 100644 --- a/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartScope.cs +++ b/src/Microsoft.Graph/Generated/Models/SynchronizationJobRestartScope.cs @@ -2,20 +2,21 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum SynchronizationJobRestartScope { [EnumMember(Value = "None")] - None, + None = 1, [EnumMember(Value = "ConnectorDataStore")] - ConnectorDataStore, + ConnectorDataStore = 2, [EnumMember(Value = "Escrows")] - Escrows, + Escrows = 4, [EnumMember(Value = "Watermark")] - Watermark, + Watermark = 8, [EnumMember(Value = "QuarantineState")] - QuarantineState, + QuarantineState = 16, [EnumMember(Value = "Full")] - Full, + Full = 32, [EnumMember(Value = "ForceDeletes")] - ForceDeletes, + ForceDeletes = 64, } } diff --git a/src/Microsoft.Graph/Generated/Models/TemplateScenarios.cs b/src/Microsoft.Graph/Generated/Models/TemplateScenarios.cs index b06496201ca..1dd8b666701 100644 --- a/src/Microsoft.Graph/Generated/Models/TemplateScenarios.cs +++ b/src/Microsoft.Graph/Generated/Models/TemplateScenarios.cs @@ -2,20 +2,21 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum TemplateScenarios { [EnumMember(Value = "new")] - New, + New = 1, [EnumMember(Value = "secureFoundation")] - SecureFoundation, + SecureFoundation = 2, [EnumMember(Value = "zeroTrust")] - ZeroTrust, + ZeroTrust = 4, [EnumMember(Value = "remoteWork")] - RemoteWork, + RemoteWork = 8, [EnumMember(Value = "protectAdmins")] - ProtectAdmins, + ProtectAdmins = 16, [EnumMember(Value = "emergingThreats")] - EmergingThreats, + EmergingThreats = 32, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 64, } } diff --git a/src/Microsoft.Graph/Generated/Models/WeakAlgorithms.cs b/src/Microsoft.Graph/Generated/Models/WeakAlgorithms.cs index 0875b29f255..b54b0cebc59 100644 --- a/src/Microsoft.Graph/Generated/Models/WeakAlgorithms.cs +++ b/src/Microsoft.Graph/Generated/Models/WeakAlgorithms.cs @@ -2,10 +2,11 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum WeakAlgorithms { [EnumMember(Value = "rsaSha1")] - RsaSha1, + RsaSha1 = 1, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 2, } } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsArchitecture.cs b/src/Microsoft.Graph/Generated/Models/WindowsArchitecture.cs index 29818ea46c3..fd1b678cc69 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsArchitecture.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsArchitecture.cs @@ -3,21 +3,22 @@ using System; namespace Microsoft.Graph.Models { /// Contains properties for Windows architecture. + [Flags] public enum WindowsArchitecture { /// No flags set. [EnumMember(Value = "none")] - None, + None = 1, /// Whether or not the X86 Windows architecture type is supported. [EnumMember(Value = "x86")] - X86, + X86 = 2, /// Whether or not the X64 Windows architecture type is supported. [EnumMember(Value = "x64")] - X64, + X64 = 4, /// Whether or not the Arm Windows architecture type is supported. [EnumMember(Value = "arm")] - Arm, + Arm = 8, /// Whether or not the Neutral Windows architecture type is supported. [EnumMember(Value = "neutral")] - Neutral, + Neutral = 16, } } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDefenderProductStatus.cs b/src/Microsoft.Graph/Generated/Models/WindowsDefenderProductStatus.cs index eb9c6a5c855..9b69620df0d 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDefenderProductStatus.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDefenderProductStatus.cs @@ -3,84 +3,85 @@ using System; namespace Microsoft.Graph.Models { /// Product Status of Windows Defender + [Flags] public enum WindowsDefenderProductStatus { /// No status [EnumMember(Value = "noStatus")] - NoStatus, + NoStatus = 1, /// Service not running [EnumMember(Value = "serviceNotRunning")] - ServiceNotRunning, + ServiceNotRunning = 2, /// Service started without any malware protection engine [EnumMember(Value = "serviceStartedWithoutMalwareProtection")] - ServiceStartedWithoutMalwareProtection, + ServiceStartedWithoutMalwareProtection = 4, /// Pending full scan due to threat action [EnumMember(Value = "pendingFullScanDueToThreatAction")] - PendingFullScanDueToThreatAction, + PendingFullScanDueToThreatAction = 8, /// Pending reboot due to threat action [EnumMember(Value = "pendingRebootDueToThreatAction")] - PendingRebootDueToThreatAction, + PendingRebootDueToThreatAction = 16, /// Pending manual steps due to threat action [EnumMember(Value = "pendingManualStepsDueToThreatAction")] - PendingManualStepsDueToThreatAction, + PendingManualStepsDueToThreatAction = 32, /// AV signatures out of date [EnumMember(Value = "avSignaturesOutOfDate")] - AvSignaturesOutOfDate, + AvSignaturesOutOfDate = 64, /// AS signatures out of date [EnumMember(Value = "asSignaturesOutOfDate")] - AsSignaturesOutOfDate, + AsSignaturesOutOfDate = 128, /// No quick scan has happened for a specified period [EnumMember(Value = "noQuickScanHappenedForSpecifiedPeriod")] - NoQuickScanHappenedForSpecifiedPeriod, + NoQuickScanHappenedForSpecifiedPeriod = 256, /// No full scan has happened for a specified period [EnumMember(Value = "noFullScanHappenedForSpecifiedPeriod")] - NoFullScanHappenedForSpecifiedPeriod, + NoFullScanHappenedForSpecifiedPeriod = 512, /// System initiated scan in progress [EnumMember(Value = "systemInitiatedScanInProgress")] - SystemInitiatedScanInProgress, + SystemInitiatedScanInProgress = 1024, /// System initiated clean in progress [EnumMember(Value = "systemInitiatedCleanInProgress")] - SystemInitiatedCleanInProgress, + SystemInitiatedCleanInProgress = 2048, /// There are samples pending submission [EnumMember(Value = "samplesPendingSubmission")] - SamplesPendingSubmission, + SamplesPendingSubmission = 4096, /// Product running in evaluation mode [EnumMember(Value = "productRunningInEvaluationMode")] - ProductRunningInEvaluationMode, + ProductRunningInEvaluationMode = 8192, /// Product running in non-genuine Windows mode [EnumMember(Value = "productRunningInNonGenuineMode")] - ProductRunningInNonGenuineMode, + ProductRunningInNonGenuineMode = 16384, /// Product expired [EnumMember(Value = "productExpired")] - ProductExpired, + ProductExpired = 32768, /// Off-line scan required [EnumMember(Value = "offlineScanRequired")] - OfflineScanRequired, + OfflineScanRequired = 65536, /// Service is shutting down as part of system shutdown [EnumMember(Value = "serviceShutdownAsPartOfSystemShutdown")] - ServiceShutdownAsPartOfSystemShutdown, + ServiceShutdownAsPartOfSystemShutdown = 131072, /// Threat remediation failed critically [EnumMember(Value = "threatRemediationFailedCritically")] - ThreatRemediationFailedCritically, + ThreatRemediationFailedCritically = 262144, /// Threat remediation failed non-critically [EnumMember(Value = "threatRemediationFailedNonCritically")] - ThreatRemediationFailedNonCritically, + ThreatRemediationFailedNonCritically = 524288, /// No status flags set (well initialized state) [EnumMember(Value = "noStatusFlagsSet")] - NoStatusFlagsSet, + NoStatusFlagsSet = 1048576, /// Platform is out of date [EnumMember(Value = "platformOutOfDate")] - PlatformOutOfDate, + PlatformOutOfDate = 2097152, /// Platform update is in progress [EnumMember(Value = "platformUpdateInProgress")] - PlatformUpdateInProgress, + PlatformUpdateInProgress = 4194304, /// Platform is about to be outdated [EnumMember(Value = "platformAboutToBeOutdated")] - PlatformAboutToBeOutdated, + PlatformAboutToBeOutdated = 8388608, /// Signature or platform end of life is past or is impending [EnumMember(Value = "signatureOrPlatformEndOfLifeIsPastOrIsImpending")] - SignatureOrPlatformEndOfLifeIsPastOrIsImpending, + SignatureOrPlatformEndOfLifeIsPastOrIsImpending = 16777216, /// Windows SMode signatures still in use on non-Win10S install [EnumMember(Value = "windowsSModeSignaturesInUseOnNonWin10SInstall")] - WindowsSModeSignaturesInUseOnNonWin10SInstall, + WindowsSModeSignaturesInUseOnNonWin10SInstall = 33554432, } } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeviceHealthState.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeviceHealthState.cs index ffa9b348981..2ae4c7d1f09 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeviceHealthState.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeviceHealthState.cs @@ -3,24 +3,25 @@ using System; namespace Microsoft.Graph.Models { /// Computer endpoint protection state + [Flags] public enum WindowsDeviceHealthState { /// Computer is clean and no action is required [EnumMember(Value = "clean")] - Clean, + Clean = 1, /// Computer is in pending full scan state [EnumMember(Value = "fullScanPending")] - FullScanPending, + FullScanPending = 2, /// Computer is in pending reboot state [EnumMember(Value = "rebootPending")] - RebootPending, + RebootPending = 4, /// Computer is in pending manual steps state [EnumMember(Value = "manualStepsPending")] - ManualStepsPending, + ManualStepsPending = 8, /// Computer is in pending offline scan state [EnumMember(Value = "offlineScanPending")] - OfflineScanPending, + OfflineScanPending = 16, /// Computer is in critical failure state [EnumMember(Value = "critical")] - Critical, + Critical = 32, } } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsDeviceType.cs b/src/Microsoft.Graph/Generated/Models/WindowsDeviceType.cs index 4c9d5410a8a..2ce197fd456 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsDeviceType.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsDeviceType.cs @@ -3,21 +3,22 @@ using System; namespace Microsoft.Graph.Models { /// Contains properties for Windows device type. + [Flags] public enum WindowsDeviceType { /// No flags set. [EnumMember(Value = "none")] - None, + None = 1, /// Whether or not the Desktop Windows device type is supported. [EnumMember(Value = "desktop")] - Desktop, + Desktop = 2, /// Whether or not the Mobile Windows device type is supported. [EnumMember(Value = "mobile")] - Mobile, + Mobile = 4, /// Whether or not the Holographic Windows device type is supported. [EnumMember(Value = "holographic")] - Holographic, + Holographic = 8, /// Whether or not the Team Windows device type is supported. [EnumMember(Value = "team")] - Team, + Team = 16, } } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsStartMenuAppListVisibilityType.cs b/src/Microsoft.Graph/Generated/Models/WindowsStartMenuAppListVisibilityType.cs index c46061d7450..d4f11b549ae 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsStartMenuAppListVisibilityType.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsStartMenuAppListVisibilityType.cs @@ -3,18 +3,19 @@ using System; namespace Microsoft.Graph.Models { /// Type of start menu app list visibility. + [Flags] public enum WindowsStartMenuAppListVisibilityType { /// User defined. Default value. [EnumMember(Value = "userDefined")] - UserDefined, + UserDefined = 1, /// Collapse the app list on the start menu. [EnumMember(Value = "collapse")] - Collapse, + Collapse = 2, /// Removes the app list entirely from the start menu. [EnumMember(Value = "remove")] - Remove, + Remove = 4, /// Disables the corresponding toggle (Collapse or Remove) in the Settings app. [EnumMember(Value = "disableSettingsApp")] - DisableSettingsApp, + DisableSettingsApp = 8, } } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessUpdateWeeks.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessUpdateWeeks.cs index 309050c15f5..75bb148048d 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessUpdateWeeks.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdateForBusinessUpdateWeeks.cs @@ -3,27 +3,28 @@ using System; namespace Microsoft.Graph.Models { /// Scheduled the update installation on the weeks of the month + [Flags] public enum WindowsUpdateForBusinessUpdateWeeks { /// Allow the user to set. [EnumMember(Value = "userDefined")] - UserDefined, + UserDefined = 1, /// Scheduled the update installation on the first week of the month [EnumMember(Value = "firstWeek")] - FirstWeek, + FirstWeek = 2, /// Scheduled the update installation on the second week of the month [EnumMember(Value = "secondWeek")] - SecondWeek, + SecondWeek = 4, /// Scheduled the update installation on the third week of the month [EnumMember(Value = "thirdWeek")] - ThirdWeek, + ThirdWeek = 8, /// Scheduled the update installation on the fourth week of the month [EnumMember(Value = "fourthWeek")] - FourthWeek, + FourthWeek = 16, /// Scheduled the update installation on every week of the month [EnumMember(Value = "everyWeek")] - EveryWeek, + EveryWeek = 32, /// Evolvable enum member [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 64, } } diff --git a/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationSupportedEntities.cs b/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationSupportedEntities.cs index 300163afbb5..a5417fc1093 100644 --- a/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationSupportedEntities.cs +++ b/src/Microsoft.Graph/Generated/Models/WorkforceIntegrationSupportedEntities.cs @@ -2,22 +2,23 @@ using System.Runtime.Serialization; using System; namespace Microsoft.Graph.Models { + [Flags] public enum WorkforceIntegrationSupportedEntities { [EnumMember(Value = "none")] - None, + None = 1, [EnumMember(Value = "shift")] - Shift, + Shift = 2, [EnumMember(Value = "swapRequest")] - SwapRequest, + SwapRequest = 4, [EnumMember(Value = "userShiftPreferences")] - UserShiftPreferences, + UserShiftPreferences = 8, [EnumMember(Value = "openShift")] - OpenShift, + OpenShift = 16, [EnumMember(Value = "openShiftRequest")] - OpenShiftRequest, + OpenShiftRequest = 32, [EnumMember(Value = "offerShiftRequest")] - OfferShiftRequest, + OfferShiftRequest = 64, [EnumMember(Value = "unknownFutureValue")] - UnknownFutureValue, + UnknownFutureValue = 128, } } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.cs index e1f9bf0c358..8d5a16d7ece 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Count/CountRequestBuilder.cs @@ -32,6 +32,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -50,6 +51,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Get the number of the resource /// /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -76,6 +78,7 @@ public RequestInformation ToGetRequestInformation(Action /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public CountRequestBuilder WithUrl(string rawUrl) { return new CountRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs new file mode 100644 index 00000000000..855264482d7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs @@ -0,0 +1,184 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Count; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers { + /// + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// + public class ApproversRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// The unique identifier of user + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ApproversRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApproversRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ApproversRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApproversRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get approvers from privacy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get approvers from privacy + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ApproversRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public ApproversRequestBuilder WithUrl(string rawUrl) { + return new ApproversRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get approvers from privacy + /// + public class ApproversRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApproversRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ApproversRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ApproversRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new approversRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ApproversRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e95c23d94d3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs @@ -0,0 +1,129 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..c635de3b4e6 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,197 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item.MailboxSettings { + /// + /// Builds and executes requests for operations under \privacy\subjectRightsRequests\{subjectRightsRequest-id}\approvers\{user-id}\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public MailboxSettingsRequestBuilder WithUrl(string rawUrl) { + return new MailboxSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..aad388ba44e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs @@ -0,0 +1,136 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item.MailboxSettings; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers.Item { + /// + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// + public class UserItemRequestBuilder : BaseRequestBuilder { + /// The mailboxSettings property + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Get approvers from privacy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get approvers from privacy + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public UserItemRequestBuilder WithUrl(string rawUrl) { + return new UserItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get approvers from privacy + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs new file mode 100644 index 00000000000..e96451e09d9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs @@ -0,0 +1,184 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Count; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators { + /// + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// + public class CollaboratorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// The unique identifier of user + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CollaboratorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CollaboratorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CollaboratorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CollaboratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get collaborators from privacy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get collaborators from privacy + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CollaboratorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CollaboratorsRequestBuilder WithUrl(string rawUrl) { + return new CollaboratorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get collaborators from privacy + /// + public class CollaboratorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CollaboratorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CollaboratorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CollaboratorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new collaboratorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CollaboratorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..32a361b7ed1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs @@ -0,0 +1,129 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..860b5501122 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,197 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item.MailboxSettings { + /// + /// Builds and executes requests for operations under \privacy\subjectRightsRequests\{subjectRightsRequest-id}\collaborators\{user-id}\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public MailboxSettingsRequestBuilder WithUrl(string rawUrl) { + return new MailboxSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..7739e3dc3b4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs @@ -0,0 +1,136 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item.MailboxSettings; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators.Item { + /// + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// + public class UserItemRequestBuilder : BaseRequestBuilder { + /// The mailboxSettings property + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/privacy/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Get collaborators from privacy + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get collaborators from privacy + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public UserItemRequestBuilder WithUrl(string rawUrl) { + return new UserItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get collaborators from privacy + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs index db2f9ed8b4c..301c94b5d79 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs @@ -32,6 +32,7 @@ public GetFinalAttachmentRequestBuilder(string rawUrl, IRequestAdapter requestAd /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -50,6 +51,7 @@ public async Task GetAsync(Action /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -74,6 +76,7 @@ public RequestInformation ToGetRequestInformation(Action /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public GetFinalAttachmentRequestBuilder WithUrl(string rawUrl) { return new GetFinalAttachmentRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs index c4ffc1ce1d9..19b6351ad84 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs @@ -32,6 +32,7 @@ public GetFinalReportRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -50,6 +51,7 @@ public async Task GetAsync(Action /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -74,6 +76,7 @@ public RequestInformation ToGetRequestInformation(Action /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public GetFinalReportRequestBuilder WithUrl(string rawUrl) { return new GetFinalReportRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs index b97b743cc76..efeb7779505 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs @@ -32,6 +32,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -50,6 +51,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Get the number of the resource /// /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -76,6 +78,7 @@ public RequestInformation ToGetRequestInformation(Action /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public CountRequestBuilder WithUrl(string rawUrl) { return new CountRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs index d3e8bd89eb3..34e60b33e2b 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs @@ -33,6 +33,7 @@ public AuthoredNoteItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -52,6 +53,7 @@ public async Task DeleteAsync(Action /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -72,6 +74,7 @@ public async Task GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PatchAsync(AuthoredNote body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -91,6 +94,7 @@ public async Task PatchAsync(AuthoredNote body, Action /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { @@ -115,6 +119,7 @@ public RequestInformation ToDeleteRequestInformation(Action /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -142,6 +147,7 @@ public RequestInformation ToGetRequestInformation(Action /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToPatchRequestInformation(AuthoredNote body, Action? requestConfiguration = default) { @@ -169,6 +175,7 @@ public RequestInformation ToPatchRequestInformation(AuthoredNote body, Action /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public AuthoredNoteItemRequestBuilder WithUrl(string rawUrl) { return new AuthoredNoteItemRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs index bfa8c122865..8b7c0dbaeae 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs @@ -17,11 +17,13 @@ namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Notes { /// public class NotesRequestBuilder : BaseRequestBuilder { /// Provides operations to count the resources in the collection. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity. /// The unique identifier of authoredNote + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public AuthoredNoteItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("authoredNote%2Did", position); @@ -47,6 +49,7 @@ public NotesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -68,6 +71,7 @@ public async Task GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(AuthoredNote body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -87,6 +91,7 @@ public async Task PostAsync(AuthoredNote body, Action /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -114,6 +119,7 @@ public RequestInformation ToGetRequestInformation(Action /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToPostRequestInformation(AuthoredNote body, Action? requestConfiguration = default) { @@ -141,6 +147,7 @@ public RequestInformation ToPostRequestInformation(AuthoredNote body, Action /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public NotesRequestBuilder WithUrl(string rawUrl) { return new NotesRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs index d30d1d07a78..6edd10e7bf0 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs @@ -1,6 +1,8 @@ // using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Models; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Approvers; +using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Collaborators; using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.GetFinalAttachment; using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.GetFinalReport; using Microsoft.Graph.Privacy.SubjectRightsRequests.Item.Notes; @@ -18,19 +20,33 @@ namespace Microsoft.Graph.Privacy.SubjectRightsRequests.Item { /// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.privacy entity. /// public class SubjectRightsRequestItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public ApproversRequestBuilder Approvers { get => + new ApproversRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] + public CollaboratorsRequestBuilder Collaborators { get => + new CollaboratorsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getFinalAttachment method. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public GetFinalAttachmentRequestBuilder GetFinalAttachment { get => new GetFinalAttachmentRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to call the getFinalReport method. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public GetFinalReportRequestBuilder GetFinalReport { get => new GetFinalReportRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public NotesRequestBuilder Notes { get => new NotesRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to manage the team property of the microsoft.graph.subjectRightsRequest entity. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public TeamRequestBuilder Team { get => new TeamRequestBuilder(PathParameters, RequestAdapter); } @@ -53,6 +69,7 @@ public SubjectRightsRequestItemRequestBuilder(string rawUrl, IRequestAdapter req /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -73,6 +90,7 @@ public async Task DeleteAsync(Action /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -94,6 +112,7 @@ public async Task GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PatchAsync(SubjectRightsRequest body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -113,6 +132,7 @@ public async Task PatchAsync(SubjectRightsRequest body, Ac /// Delete navigation property subjectRightsRequests for privacy /// /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { @@ -137,6 +157,7 @@ public RequestInformation ToDeleteRequestInformation(Action /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -164,6 +185,7 @@ public RequestInformation ToGetRequestInformation(Action /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToPatchRequestInformation(SubjectRightsRequest body, Action? requestConfiguration = default) { @@ -191,6 +213,7 @@ public RequestInformation ToPatchRequestInformation(SubjectRightsRequest body, A /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public SubjectRightsRequestItemRequestBuilder WithUrl(string rawUrl) { return new SubjectRightsRequestItemRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs index 0d5a4f3e24c..09e6dfd050a 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs @@ -33,6 +33,7 @@ public TeamRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -51,6 +52,7 @@ public TeamRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Information about the Microsoft Teams team that was created for the request. /// /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -77,6 +79,7 @@ public RequestInformation ToGetRequestInformation(Action /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public TeamRequestBuilder WithUrl(string rawUrl) { return new TeamRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs index 80df4ffb69d..3f7bc2a8293 100644 --- a/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Privacy/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs @@ -17,11 +17,13 @@ namespace Microsoft.Graph.Privacy.SubjectRightsRequests { /// public class SubjectRightsRequestsRequestBuilder : BaseRequestBuilder { /// Provides operations to count the resources in the collection. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.privacy entity. /// The unique identifier of subjectRightsRequest + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public SubjectRightsRequestItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("subjectRightsRequest%2Did", position); @@ -47,6 +49,7 @@ public SubjectRightsRequestsRequestBuilder(string rawUrl, IRequestAdapter reques /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -68,6 +71,7 @@ public async Task GetAsync(ActionThe request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PostAsync(SubjectRightsRequest body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -87,6 +91,7 @@ public async Task PostAsync(SubjectRightsRequest body, Act /// Get a list of subjectRightsRequest objects and their properties. /// /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { @@ -114,6 +119,7 @@ public RequestInformation ToGetRequestInformation(Action /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToPostRequestInformation(SubjectRightsRequest body, Action? requestConfiguration = default) { @@ -141,6 +147,7 @@ public RequestInformation ToPostRequestInformation(SubjectRightsRequest body, Ac /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// The raw URL to use for the request builder. + [Obsolete("The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate on 2022-03-22 and will be removed 2025-03-20")] public SubjectRightsRequestsRequestBuilder WithUrl(string rawUrl) { return new SubjectRightsRequestsRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs index 73555aab469..23f77c4c2ec 100644 --- a/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs @@ -9,6 +9,7 @@ using Microsoft.Graph.Security.MicrosoftGraphSecurityRunHuntingQuery; using Microsoft.Graph.Security.SecureScoreControlProfiles; using Microsoft.Graph.Security.SecureScores; +using Microsoft.Graph.Security.SubjectRightsRequests; using Microsoft.Graph.Security.ThreatIntelligence; using Microsoft.Graph.Security.TriggerTypes; using Microsoft.Graph.Security.Triggers; @@ -57,6 +58,10 @@ public class SecurityRequestBuilder : BaseRequestBuilder { public SecureScoresRequestBuilder SecureScores { get => new SecureScoresRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. + public SubjectRightsRequestsRequestBuilder SubjectRightsRequests { get => + new SubjectRightsRequestsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the threatIntelligence property of the microsoft.graph.security entity. public ThreatIntelligenceRequestBuilder ThreatIntelligence { get => new ThreatIntelligenceRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..de2d9206307 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs new file mode 100644 index 00000000000..d545787123f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/ApproversRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Count; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers { + /// + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// + public class ApproversRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// The unique identifier of user + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new ApproversRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApproversRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new ApproversRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApproversRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get approvers from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get approvers from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new ApproversRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ApproversRequestBuilder WithUrl(string rawUrl) { + return new ApproversRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get approvers from security + /// + public class ApproversRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class ApproversRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public ApproversRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ApproversRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new approversRequestBuilderGetRequestConfiguration and sets the default values. + /// + public ApproversRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..29214995449 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..338e014f8be --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,192 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item.MailboxSettings { + /// + /// Builds and executes requests for operations under \security\subjectRightsRequests\{subjectRightsRequest-id}\approvers\{user-id}\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MailboxSettingsRequestBuilder WithUrl(string rawUrl) { + return new MailboxSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..c287491a2ad --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Approvers/Item/UserItemRequestBuilder.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item.MailboxSettings; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers.Item { + /// + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + /// + public class UserItemRequestBuilder : BaseRequestBuilder { + /// The mailboxSettings property + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/approvers/{user%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Get approvers from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get approvers from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public UserItemRequestBuilder WithUrl(string rawUrl) { + return new UserItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get approvers from security + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs new file mode 100644 index 00000000000..ef4f353cafd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/CollaboratorsRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Count; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators { + /// + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// + public class CollaboratorsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// The unique identifier of user + public UserItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new CollaboratorsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CollaboratorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new CollaboratorsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CollaboratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get collaborators from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, UserCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get collaborators from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new CollaboratorsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CollaboratorsRequestBuilder WithUrl(string rawUrl) { + return new CollaboratorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get collaborators from security + /// + public class CollaboratorsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CollaboratorsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CollaboratorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CollaboratorsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new collaboratorsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CollaboratorsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..30cab020f22 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..9fbb4a73cfe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,192 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item.MailboxSettings { + /// + /// Builds and executes requests for operations under \security\subjectRightsRequests\{subjectRightsRequest-id}\collaborators\{user-id}\mailboxSettings + /// + public class MailboxSettingsRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/mailboxSettings{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new MailboxSettingsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}/mailboxSettings{?%24select,%24expand}", rawUrl) { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.MailboxSettings body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new MailboxSettingsRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public MailboxSettingsRequestBuilder WithUrl(string rawUrl) { + return new MailboxSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale and time zone. Returned only on $select. + /// + public class MailboxSettingsRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public MailboxSettingsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MailboxSettingsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new mailboxSettingsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class MailboxSettingsRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new mailboxSettingsRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public MailboxSettingsRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..8ff0881598d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Collaborators/Item/UserItemRequestBuilder.cs @@ -0,0 +1,132 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item.MailboxSettings; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators.Item { + /// + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + /// + public class UserItemRequestBuilder : BaseRequestBuilder { + /// The mailboxSettings property + public MailboxSettingsRequestBuilder MailboxSettings { get => + new MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new UserItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/collaborators/{user%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Get collaborators from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get collaborators from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new UserItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public UserItemRequestBuilder WithUrl(string rawUrl) { + return new UserItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get collaborators from security + /// + public class UserItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class UserItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public UserItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new UserItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new UserItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public UserItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs new file mode 100644 index 00000000000..1965f2409c1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalAttachment/GetFinalAttachmentRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.GetFinalAttachment { + /// + /// Provides operations to call the getFinalAttachment method. + /// + public class GetFinalAttachmentRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new GetFinalAttachmentRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetFinalAttachmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/getFinalAttachment()", pathParameters) { + } + /// + /// Instantiates a new GetFinalAttachmentRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetFinalAttachmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/getFinalAttachment()", rawUrl) { + } + /// + /// Invoke function getFinalAttachment + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke function getFinalAttachment + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new GetFinalAttachmentRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GetFinalAttachmentRequestBuilder WithUrl(string rawUrl) { + return new GetFinalAttachmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GetFinalAttachmentRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new getFinalAttachmentRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GetFinalAttachmentRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs new file mode 100644 index 00000000000..ed2d4200bf1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/GetFinalReport/GetFinalReportRequestBuilder.cs @@ -0,0 +1,97 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.GetFinalReport { + /// + /// Provides operations to call the getFinalReport method. + /// + public class GetFinalReportRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new GetFinalReportRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetFinalReportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/getFinalReport()", pathParameters) { + } + /// + /// Instantiates a new GetFinalReportRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetFinalReportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/getFinalReport()", rawUrl) { + } + /// + /// Invoke function getFinalReport + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke function getFinalReport + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new GetFinalReportRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public GetFinalReportRequestBuilder WithUrl(string rawUrl) { + return new GetFinalReportRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class GetFinalReportRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new getFinalReportRequestBuilderGetRequestConfiguration and sets the default values. + /// + public GetFinalReportRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..eee7e007d3b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Count/CountRequestBuilder.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Notes.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/notes/$count{?%24search,%24filter}", pathParameters) { + } + /// + /// Instantiates a new CountRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/notes/$count{?%24search,%24filter}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get the number of the resource + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "text/plain"); + if (requestConfiguration != null) { + var requestConfig = new CountRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public class CountRequestBuilderGetQueryParameters { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class CountRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values. + /// + public CountRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs new file mode 100644 index 00000000000..0ee61603001 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/Item/AuthoredNoteItemRequestBuilder.cs @@ -0,0 +1,251 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Notes.Item { + /// + /// Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity. + /// + public class AuthoredNoteItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new AuthoredNoteItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AuthoredNoteItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/notes/{authoredNote%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new AuthoredNoteItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AuthoredNoteItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/notes/{authoredNote%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property notes for security + /// + /// 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); + } + /// + /// List of notes associcated with the request. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthoredNote.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property notes in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(AuthoredNote body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(AuthoredNote body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthoredNote.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property notes for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new AuthoredNoteItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// List of notes associcated with the request. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new AuthoredNoteItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property notes in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(AuthoredNote body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(AuthoredNote body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new AuthoredNoteItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public AuthoredNoteItemRequestBuilder WithUrl(string rawUrl) { + return new AuthoredNoteItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthoredNoteItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthoredNoteItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public AuthoredNoteItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// List of notes associcated with the request. + /// + public class AuthoredNoteItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthoredNoteItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public AuthoredNoteItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AuthoredNoteItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new AuthoredNoteItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public AuthoredNoteItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class AuthoredNoteItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new AuthoredNoteItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public AuthoredNoteItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs new file mode 100644 index 00000000000..2e1505edb32 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Notes/NotesRequestBuilder.cs @@ -0,0 +1,246 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Notes.Count; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Notes.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Notes { + /// + /// Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity. + /// + public class NotesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity. + /// The unique identifier of authoredNote + public AuthoredNoteItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("authoredNote%2Did", position); + return new AuthoredNoteItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new NotesRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public NotesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/notes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new NotesRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public NotesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/notes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get the list of authored notes assoicated with a subject rights request. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthoredNoteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create a new authoredNote object. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(AuthoredNote body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(AuthoredNote body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AuthoredNote.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get the list of authored notes assoicated with a subject rights request. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new NotesRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create a new authoredNote object. + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(AuthoredNote body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(AuthoredNote body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new NotesRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public NotesRequestBuilder WithUrl(string rawUrl) { + return new NotesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the list of authored notes assoicated with a subject rights request. + /// + public class NotesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class NotesRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public NotesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new NotesRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new notesRequestBuilderGetRequestConfiguration and sets the default values. + /// + public NotesRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class NotesRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new notesRequestBuilderPostRequestConfiguration and sets the default values. + /// + public NotesRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs new file mode 100644 index 00000000000..873e151a795 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/SubjectRightsRequestItemRequestBuilder.cs @@ -0,0 +1,281 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Approvers; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Collaborators; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.GetFinalAttachment; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.GetFinalReport; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Notes; +using Microsoft.Graph.Security.SubjectRightsRequests.Item.Team; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item { + /// + /// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. + /// + public class SubjectRightsRequestItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. + public ApproversRequestBuilder Approvers { get => + new ApproversRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. + public CollaboratorsRequestBuilder Collaborators { get => + new CollaboratorsRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the getFinalAttachment method. + public GetFinalAttachmentRequestBuilder GetFinalAttachment { get => + new GetFinalAttachmentRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to call the getFinalReport method. + public GetFinalReportRequestBuilder GetFinalReport { get => + new GetFinalReportRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the notes property of the microsoft.graph.subjectRightsRequest entity. + public NotesRequestBuilder Notes { get => + new NotesRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the team property of the microsoft.graph.subjectRightsRequest entity. + public TeamRequestBuilder Team { get => + new TeamRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new SubjectRightsRequestItemRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectRightsRequestItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SubjectRightsRequestItemRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectRightsRequestItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}{?%24select,%24expand}", rawUrl) { + } + /// + /// Delete navigation property subjectRightsRequests for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Get subjectRightsRequests from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubjectRightsRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Update the navigation property subjectRightsRequests in security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(SubjectRightsRequest body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(SubjectRightsRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubjectRightsRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Delete navigation property subjectRightsRequests for security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.DELETE, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + if (requestConfiguration != null) { + var requestConfig = new SubjectRightsRequestItemRequestBuilderDeleteRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Get subjectRightsRequests from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SubjectRightsRequestItemRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Update the navigation property subjectRightsRequests in security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(SubjectRightsRequest body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(SubjectRightsRequest body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.PATCH, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SubjectRightsRequestItemRequestBuilderPatchRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SubjectRightsRequestItemRequestBuilder WithUrl(string rawUrl) { + return new SubjectRightsRequestItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubjectRightsRequestItemRequestBuilderDeleteRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new SubjectRightsRequestItemRequestBuilderDeleteRequestConfiguration and sets the default values. + /// + public SubjectRightsRequestItemRequestBuilderDeleteRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Get subjectRightsRequests from security + /// + public class SubjectRightsRequestItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubjectRightsRequestItemRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SubjectRightsRequestItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SubjectRightsRequestItemRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new SubjectRightsRequestItemRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SubjectRightsRequestItemRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubjectRightsRequestItemRequestBuilderPatchRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new SubjectRightsRequestItemRequestBuilderPatchRequestConfiguration and sets the default values. + /// + public SubjectRightsRequestItemRequestBuilderPatchRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs new file mode 100644 index 00000000000..5c37ca68d26 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/Item/Team/TeamRequestBuilder.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests.Item.Team { + /// + /// Provides operations to manage the team property of the microsoft.graph.subjectRightsRequest entity. + /// + public class TeamRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new TeamRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TeamRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/team{?%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new TeamRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TeamRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests/{subjectRightsRequest%2Did}/team{?%24select,%24expand}", rawUrl) { + } + /// + /// Information about the Microsoft Teams team that was created for the request. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Team.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Information about the Microsoft Teams team that was created for the request. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new TeamRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public TeamRequestBuilder WithUrl(string rawUrl) { + return new TeamRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Information about the Microsoft Teams team that was created for the request. + /// + public class TeamRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class TeamRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public TeamRequestBuilderGetQueryParameters QueryParameters { get; set; } = new TeamRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new teamRequestBuilderGetRequestConfiguration and sets the default values. + /// + public TeamRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs new file mode 100644 index 00000000000..05a2b068226 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/SubjectRightsRequests/SubjectRightsRequestsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.Models; +using Microsoft.Graph.Security.SubjectRightsRequests.Count; +using Microsoft.Graph.Security.SubjectRightsRequests.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Security.SubjectRightsRequests { + /// + /// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. + /// + public class SubjectRightsRequestsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the subjectRightsRequests property of the microsoft.graph.security entity. + /// The unique identifier of subjectRightsRequest + public SubjectRightsRequestItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("subjectRightsRequest%2Did", position); + return new SubjectRightsRequestItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new SubjectRightsRequestsRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectRightsRequestsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) { + } + /// + /// Instantiates a new SubjectRightsRequestsRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectRightsRequestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/subjectRightsRequests{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { + } + /// + /// Get subjectRightsRequests from security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubjectRightsRequestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Create new navigation property to subjectRightsRequests for security + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(SubjectRightsRequest body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(SubjectRightsRequest body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, SubjectRightsRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Get subjectRightsRequests from security + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new SubjectRightsRequestsRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Create new navigation property to subjectRightsRequests for security + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(SubjectRightsRequest body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(SubjectRightsRequest body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SubjectRightsRequestsRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SubjectRightsRequestsRequestBuilder WithUrl(string rawUrl) { + return new SubjectRightsRequestsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get subjectRightsRequests from security + /// + public class SubjectRightsRequestsRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubjectRightsRequestsRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public SubjectRightsRequestsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SubjectRightsRequestsRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new subjectRightsRequestsRequestBuilderGetRequestConfiguration and sets the default values. + /// + public SubjectRightsRequestsRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SubjectRightsRequestsRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new subjectRightsRequestsRequestBuilderPostRequestConfiguration and sets the default values. + /// + public SubjectRightsRequestsRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index b25738a89cb..f6259a49f3a 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -88,8 +88,8 @@ public async Task DeleteAsync(Action - /// Returns the metadata for a [list][]. - /// Find more info here + /// Get a list of rich long-running operations associated with a list. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for a [list][]. + /// Get a list of rich long-running operations associated with a list. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -230,7 +230,7 @@ public ListItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Returns the metadata for a [list][]. + /// Get a list of rich long-running operations associated with a list. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs index 1e235b7d68d..40ce1bee457 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Clone/CloneRequestBuilder.cs @@ -28,7 +28,7 @@ public CloneRequestBuilder(Dictionary pathParameters, IRequestAd public CloneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/clone", rawUrl) { } /// - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClonePostRequestBody body, Action - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs index 794bf5f7c32..69b65e13e9a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs @@ -72,8 +72,8 @@ public async Task GetAsync(Action(requestInfo, ActivityHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete an existing history item for an existing user activity. - /// Find more info here + /// Create a new or replace an existing history item for an existing user activity. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Delete an existing history item for an existing user activity. + /// Create a new or replace an existing history item for an existing user activity. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index a67896fb5b5..e3d647de377 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 96f0c0442b0..cef2d5c1cf5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d906d8c17b7..b76dd4302e0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index d3f412297d9..dc580c4c2c1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 90eff3d0cc6..fd5346b26d4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 161146042af..5825c318c7e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index fd95467daa4..c8da45d310a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 894a1d83efb..df22a7e417a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index f063b8a6f10..0f7571fd937 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 73bdaf02233..4ed28528595 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 42b4eddc776..e763481bb33 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index f68056049a9..60e454f1aa5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 900ede7ee0c..390a9f155a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index b0a7cf811cf..82d47a92912 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index c16b276eb30..b2778f7151b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 8910b762c16..915f1a858e1 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs index c93c3c2d136..4500fc6365e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/GetMailTips/GetMailTipsRequestBuilder.cs @@ -28,7 +28,7 @@ public GetMailTipsRequestBuilder(Dictionary pathParameters, IReq public GetMailTipsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/getMailTips", rawUrl) { } /// - /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips to be returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(GetMailTipsPostRequestBody body return await RequestAdapter.SendAsync(requestInfo, GetMailTipsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips to be returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. + /// Get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. /// /// 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/Clone/CloneRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs index 519ed206dd4..6e067d54915 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Clone/CloneRequestBuilder.cs @@ -28,7 +28,7 @@ public CloneRequestBuilder(Dictionary pathParameters, IRequestAd public CloneRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/clone", rawUrl) { } /// - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(ClonePostRequestBody body, Action - /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation.After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. + /// Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they are put into an unconfigured state - they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.) Cloning is a long-running operation. After the POST clone returns, you need to GET the operation to see if it's 'running' or 'succeeded' or 'failed'. You should continue to GET until the status is not 'running'. The recommended delay between GETs is 5 seconds. /// /// 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/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs index d9fe3716438..0e7bb3dfa49 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs index 0d8d6b7d388..6ac0764a4ad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the mail folders. This allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. + /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index 47290033644..eb3773ca7a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. /// Find more info here /// /// The request body @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. /// /// 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/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index 9680328ed63..81d0ab2558a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// Include count of items 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 951a75aff67..3e268ab3c94 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 @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// 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 /// /// The request body @@ -115,7 +115,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 can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 91a2d82c829..fa357a6190b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// 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/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 154c3b477c7..44bbad4042f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index faecaf0a525..5155a30df9f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// /// 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/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index 1b60427b2ca..d39065f8fe5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// /// 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/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index 0fc50a99af0..f9319861bf5 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. /// Find more info here /// /// The request body @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs index ec6bd7a916e..7d57a468cad 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// 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 8e176ecbeeb..e9e1c40a2c1 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 @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// 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 /// /// The request body @@ -115,7 +115,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 can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index aae8c11d2c5..a99542683ef 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index a06c8d40eef..8c1ec113386 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index 299d98042dc..2f5ca0cfe6c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs index c5acaf986ee..a4463ef26a2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// /// 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/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs index b0ea291bdfb..8eac003d5df 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Delta/DeltaRequestBuilder.cs @@ -28,7 +28,7 @@ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAd public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) { } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public DeltaRequestBuilder WithUrl(string rawUrl) { return new DeltaRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can [query for incremental changes in the messages in that folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages without having to fetch the entire set of messages from the server every time. + /// Get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. /// public class DeltaRequestBuilderGetQueryParameters { /// 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 b03718d08ea..eba6fa2f87e 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 @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// 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 /// /// The request body @@ -115,7 +115,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 can add an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. + /// Use this API to add an attachment to a message. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. You can add an attachment to an existing message by posting to its attachments collection, or you canadd an attachment to a message that is being created and sent on the fly. This operation limits the size of the attachment you can add to under 3 MB. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs index 1adf8ecb0c1..ed055e913c2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateUploadSessionRequestBuilder(Dictionary pathParamete public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments/createUploadSession", rawUrl) { } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public async Task PostAsync(CreateUploadSessionPostRequestBody bo return await RequestAdapter.SendAsync(requestInfo, UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to the specified Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 263d289729c..b15d1cef8be 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -141,7 +141,7 @@ public AttachmentItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. /// public class AttachmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs index c378a125118..aece1a1b6e7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/CreateReplyAll/CreateReplyAllRequestBuilder.cs @@ -29,7 +29,7 @@ public CreateReplyAllRequestBuilder(Dictionary pathParameters, I public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/createReplyAll", rawUrl) { } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// Find more info here /// /// The request body @@ -51,7 +51,7 @@ public CreateReplyAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. + /// Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft later to add reply 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. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index c3f348d8b06..b47f1d40755 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. @@ -129,8 +129,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the properties of an eventMessage object. - /// Find more info here + /// Update the properties of a message object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Delete eventMessage. + /// Delete a message in the specified user's mailbox, or delete a relationship of the message. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -201,7 +201,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an eventMessage object. + /// Update the properties of a message object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs index b37ff8fbc3a..cb3d34f263e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Send/SendRequestBuilder.cs @@ -28,7 +28,7 @@ public SendRequestBuilder(Dictionary pathParameters, IRequestAda public SendRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/send", rawUrl) { } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task PostAsync(Action r await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); } /// - /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. + /// Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. /// /// 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 9904b6e355b..25515338d42 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); } /// - /// 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 @@ -115,7 +115,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/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs index 90ee929b1ab..c54898416d6 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/MasterCategories/Item/OutlookCategoryItemRequestBuilder.cs @@ -69,7 +69,7 @@ public async Task GetAsync(Action(requestInfo, OutlookCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName property once you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName propertyonce you have created the category. /// Find more info here /// /// The request body @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName property once you have created the category. + /// Update the writable property, color, of the specified outlookCategory object. You cannot modify the displayName propertyonce you have created the category. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs index 1ae9b04448c..78f0640cc0b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Outlook/SupportedLanguages/SupportedLanguagesRequestBuilder.cs @@ -28,7 +28,7 @@ public SupportedLanguagesRequestBuilder(Dictionary pathParameter public SupportedLanguagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/supportedLanguages(){?%24top,%24skip,%24search,%24filter,%24count}", rawUrl) { } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language by getting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -48,7 +48,7 @@ public async Task GetAsync(Action(requestInfo, SupportedLanguagesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language by getting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -81,7 +81,7 @@ public SupportedLanguagesRequestBuilder WithUrl(string rawUrl) { return new SupportedLanguagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language by getting the user's mailbox settings. + /// Get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. /// public class SupportedLanguagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs index 4107e093dbb..0b9e8386116 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/PresenceRequestBuilder.cs @@ -4,6 +4,7 @@ using Microsoft.Graph.Users.Item.Presence.ClearPresence; using Microsoft.Graph.Users.Item.Presence.ClearUserPreferredPresence; using Microsoft.Graph.Users.Item.Presence.SetPresence; +using Microsoft.Graph.Users.Item.Presence.SetStatusMessage; using Microsoft.Graph.Users.Item.Presence.SetUserPreferredPresence; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; @@ -30,6 +31,10 @@ public class PresenceRequestBuilder : BaseRequestBuilder { public SetPresenceRequestBuilder SetPresence { get => new SetPresenceRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the setStatusMessage method. + public SetStatusMessageRequestBuilder SetStatusMessage { get => + new SetStatusMessageRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the setUserPreferredPresence method. public SetUserPreferredPresenceRequestBuilder SetUserPreferredPresence { get => new SetUserPreferredPresenceRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs new file mode 100644 index 00000000000..5bb11a63862 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessagePostRequestBody.cs @@ -0,0 +1,65 @@ +// +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Users.Item.Presence.SetStatusMessage { + public class SetStatusMessagePostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("additionalData"); } + set { BackingStore?.Set("additionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The statusMessage property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PresenceStatusMessage? StatusMessage { + get { return BackingStore?.Get("statusMessage"); } + set { BackingStore?.Set("statusMessage", value); } + } +#nullable restore +#else + public PresenceStatusMessage StatusMessage { + get { return BackingStore?.Get("statusMessage"); } + set { BackingStore?.Set("statusMessage", value); } + } +#endif + /// + /// Instantiates a new setStatusMessagePostRequestBody and sets the default values. + /// + public SetStatusMessagePostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static SetStatusMessagePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SetStatusMessagePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"statusMessage", n => { StatusMessage = n.GetObjectValue(PresenceStatusMessage.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("statusMessage", StatusMessage); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs new file mode 100644 index 00000000000..46349902304 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Presence/SetStatusMessage/SetStatusMessageRequestBuilder.cs @@ -0,0 +1,102 @@ +// +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Users.Item.Presence.SetStatusMessage { + /// + /// Provides operations to call the setStatusMessage method. + /// + public class SetStatusMessageRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new SetStatusMessageRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SetStatusMessageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/presence/setStatusMessage", pathParameters) { + } + /// + /// Instantiates a new SetStatusMessageRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SetStatusMessageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/presence/setStatusMessage", rawUrl) { + } + /// + /// Invoke action setStatusMessage + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(SetStatusMessagePostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(SetStatusMessagePostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); + } + /// + /// Invoke action setStatusMessage + /// + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBody body, Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(SetStatusMessagePostRequestBody body, Action requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation { + HttpMethod = Method.POST, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + if (requestConfiguration != null) { + var requestConfig = new SetStatusMessageRequestBuilderPostRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public SetStatusMessageRequestBuilder WithUrl(string rawUrl) { + return new SetStatusMessageRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class SetStatusMessageRequestBuilderPostRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// + /// Instantiates a new setStatusMessageRequestBuilderPostRequestConfiguration and sets the default values. + /// + public SetStatusMessageRequestBuilderPostRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs index 5cee6861c36..50b33f0ad7b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/SendMail/SendMailRequestBuilder.cs @@ -28,7 +28,7 @@ public SendMailRequestBuilder(Dictionary pathParameters, IReques public SendMailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/sendMail", rawUrl) { } /// - /// Send the message specified in the request body using either JSON or MIME format. When using JSON format you can include a file attachment in the same sendMail action call. 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. This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. + /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. /// Find more info here /// /// The request body @@ -50,7 +50,7 @@ public async Task PostAsync(SendMailPostRequestBody body, Action - /// Send the message specified in the request body using either JSON or MIME format. When using JSON format you can include a file attachment in the same sendMail action call. 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. This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. + /// Send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include a file attachment in the same sendMail action call. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index c2dd3dc002a..085688455be 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -377,7 +377,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. @@ -426,8 +426,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -508,7 +508,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/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 3c6c43033a0..381eda1557d 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "B6370A2E2CB32FE5A17558A29A07DB02DC2185CA17AA4A58B04888FBCF7D395B2E9CB14C6C681925ABBB45100477916F6E21954A430B39359D68C4970D529478", + "descriptionHash": "C4A7623C98F6ABEB4B8870A6321EB305A62025D73C9824FD56A344D4EC571149DD4816435F5D20A1F94F04F2BDC7D97FF1C5F83E9F77020B78505C6611E049C4", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.6.0", diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index eea96c8209f..b0271fcf8a0 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -22,7 +22,7 @@ false 35MSSharedLib1024.snk true - 5.25.0 + 5.26.0 diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/PlannerTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/PlannerTests.cs index d806f8f8890..abc46a6eaa9 100644 --- a/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/PlannerTests.cs +++ b/tests/Microsoft.Graph.DotnetCore.Test/Requests/Functional/PlannerTests.cs @@ -2,6 +2,7 @@ { using System; using System.Collections.Generic; + using System.Linq; using System.Threading.Tasks; using Xunit; using Microsoft.Graph.Models; @@ -9,7 +10,7 @@ public class PlannerTests : GraphTestBase { - private readonly Group testGroup = new (); + private Group testGroup = new (); private async void TestCleanUp() { @@ -115,7 +116,7 @@ public async Task PlannerGetPlannerTasks() Assert.Fail($"Something happened, check out a trace. Error: {e.Message}"); } } -/* + // Successful 4/27/2017 - Creates a task without a bucket. [Fact(Skip = "No CI set up for functional tests")] //https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/planner_post_tasks @@ -131,18 +132,21 @@ public async Task PlannerTaskCreate() taskToCreate.PlanId = plannerPlan.Id; taskToCreate.Title = "New task title"; taskToCreate.Assignments = new PlannerAssignments(); - taskToCreate.Assignments.AddAssignee("me"); + taskToCreate.Assignments.AdditionalData["me"] = new PlannerAssignment + { + OrderHint = " !" + }; taskToCreate.AppliedCategories = new PlannerAppliedCategories(); - taskToCreate.AppliedCategories.Category3 = true; + taskToCreate.AppliedCategories.AdditionalData["category3"] = true; taskToCreate.DueDateTime = DateTimeOffset.UtcNow.AddDays(3); PlannerTask createdTask = await graphClient.Planner.Tasks.PostAsync(taskToCreate); Assert.NotNull(createdTask); + Assert.NotNull(createdTask.Assignments); Assert.Equal(taskToCreate.Title, createdTask.Title); - Assert.Equal(1, createdTask.Assignments.Count); - Assert.Equal(createdTask.Assignments.Assignees.First(), createdTask.Assignments.First().Value.AssignedBy.User.Id); - Assert.Equal(true, createdTask.AppliedCategories.Category3); + Assert.Single(createdTask.Assignments.AdditionalData); + Assert.Equal(true, createdTask.AppliedCategories.AdditionalData["category3"]); Assert.Equal(taskToCreate.DueDateTime, createdTask.DueDateTime); } @@ -162,25 +166,40 @@ public async Task PlannerTaskDetailsUpdate() PlannerTaskDetails taskDetailsToUpdate = new PlannerTaskDetails(); taskDetailsToUpdate.Checklist = new PlannerChecklistItems(); - string checklistItemId1 = taskDetailsToUpdate.Checklist.AddChecklistItem("Do something"); - string checklistItemId2 = taskDetailsToUpdate.Checklist.AddChecklistItem("Do something else"); - + string checklistItemId1 = Guid.NewGuid().ToString(); + taskDetailsToUpdate.Checklist.AdditionalData[checklistItemId1] = new PlannerCheckListItem() + { + Title = "Do Something" + }; + string checklistItemId2 = Guid.NewGuid().ToString(); + taskDetailsToUpdate.Checklist.AdditionalData[checklistItemId1] = new PlannerCheckListItem() + { + Title = "Do Something else" + }; taskDetailsToUpdate.References = new PlannerExternalReferences(); - taskDetailsToUpdate.References.AddReference("http://developer.microsoft.com", "Developer resources"); + taskDetailsToUpdate.References.AdditionalData["http://developer.microsoft.com"]= new PlannerExternalReference() + { + Alias = "Developer resources" + }; taskDetailsToUpdate.PreviewType = PlannerPreviewType.Checklist; taskDetailsToUpdate.Description = "Description of the task"; - string etag = taskDetails.GetEtag(); - PlannerTaskDetails updatedTaskDetails = await graphClient.Planner.Tasks[createdTask.Id].Details.Header("If-Match", etag).Header("Prefer", "return=representation").UpdateAsync(taskDetailsToUpdate); + string etag = taskDetails.AdditionalData["@odata.etag"].ToString(); + PlannerTaskDetails updatedTaskDetails = await graphClient.Planner.Tasks[createdTask.Id].Details + .PatchAsync(taskDetailsToUpdate, requestConfiguration => + { + requestConfiguration.Headers.Add("If-Match", etag); + requestConfiguration.Headers.Add("Prefer", "return=representation"); + }); Assert.Equal("Description of the task", updatedTaskDetails.Description); Assert.Equal(PlannerPreviewType.Checklist, updatedTaskDetails.PreviewType); - Assert.Equal(2, updatedTaskDetails.Checklist.Count()); - Assert.Equal("Do something", updatedTaskDetails.Checklist[checklistItemId1]?.Title); - Assert.Equal("Do something else", updatedTaskDetails.Checklist[checklistItemId2]?.Title); - Assert.Equal(1, updatedTaskDetails.References.Count()); - Assert.Equal("Developer resources", updatedTaskDetails.References["http://developer.microsoft.com"]?.Alias); + Assert.Equal(2, updatedTaskDetails.Checklist.AdditionalData.Count()); + Assert.Equal("Do something", ((PlannerCheckListItem)updatedTaskDetails.Checklist.AdditionalData[checklistItemId1])?.Title); + Assert.Equal("Do something else", ((PlannerCheckListItem)updatedTaskDetails.Checklist.AdditionalData[checklistItemId2])?.Title); + Assert.Equal(1, updatedTaskDetails.References.AdditionalData.Count()); + Assert.Equal("Developer resources", ((PlannerExternalReference)updatedTaskDetails.References.AdditionalData["http://developer.microsoft.com"])?.Alias); } [Fact(Skip = "No CI set up for functional tests")] @@ -193,21 +212,25 @@ public async Task PlannerPlanDetailsUpdate() PlannerPlanDetails planDetails = await graphClient.Planner.Plans[plannerPlan.Id].Details.GetAsync(); - string etag = planDetails.GetEtag(); + string etag = planDetails.AdditionalData["@odata.etag"].ToString(); PlannerPlanDetails planDetailsToUpdate = new PlannerPlanDetails(); planDetailsToUpdate.CategoryDescriptions = new PlannerCategoryDescriptions(); planDetailsToUpdate.CategoryDescriptions.Category1 = "First category"; planDetailsToUpdate.CategoryDescriptions.Category4 = "Category 4"; planDetailsToUpdate.SharedWith = new PlannerUserIds(); - planDetailsToUpdate.SharedWith.Add("me"); + planDetailsToUpdate.SharedWith.AdditionalData["me"]=true; - PlannerPlanDetails updatedPlanDetails = await graphClient.Planner.Plans[plannerPlan.Id].Details.Header("If-Match", etag).Header("Prefer", "return=representation").UpdateAsync(planDetailsToUpdate); + PlannerPlanDetails updatedPlanDetails = await graphClient.Planner.Plans[plannerPlan.Id].Details.PatchAsync(planDetailsToUpdate, requestConfiguration => + { + requestConfiguration.Headers.Add("If-Match", etag); + requestConfiguration.Headers.Add("Prefer", "return=representation"); + }); Assert.Equal("First category", updatedPlanDetails.CategoryDescriptions.Category1); Assert.Equal("Category 4", updatedPlanDetails.CategoryDescriptions.Category4); // plan creator is the current user as well, we can get the id from there. - Assert.True(updatedPlanDetails.SharedWith.Contains(plannerPlan.CreatedBy.User.Id)); + Assert.True(updatedPlanDetails.SharedWith.AdditionalData.ContainsKey(plannerPlan.CreatedBy.User.Id)); } [Fact(Skip = "No CI set up for functional tests")] @@ -221,7 +244,10 @@ public async Task PlannerTaskAssignedToTaskBoardFormatUpdate() taskToCreate.PlanId = plannerPlan.Id; taskToCreate.Title = "Top"; taskToCreate.Assignments = new PlannerAssignments(); - taskToCreate.Assignments.AddAssignee("me"); + taskToCreate.Assignments.AdditionalData["me"] = new PlannerAssignment() + { + OrderHint = " !" + }; PlannerTask topTask = await graphClient.Planner.Tasks.PostAsync(taskToCreate); @@ -229,7 +255,10 @@ public async Task PlannerTaskAssignedToTaskBoardFormatUpdate() taskToCreate.PlanId = plannerPlan.Id; taskToCreate.Title = "Bottom"; taskToCreate.Assignments = new PlannerAssignments(); - taskToCreate.Assignments.AddAssignee("me"); + taskToCreate.Assignments.AdditionalData["me"] = new PlannerAssignment() + { + OrderHint = " !" + }; PlannerTask bottomTask = await graphClient.Planner.Tasks.PostAsync(taskToCreate); @@ -237,7 +266,10 @@ public async Task PlannerTaskAssignedToTaskBoardFormatUpdate() taskToCreate.PlanId = plannerPlan.Id; taskToCreate.Title = "Middle"; taskToCreate.Assignments = new PlannerAssignments(); - taskToCreate.Assignments.AddAssignee("me"); + taskToCreate.Assignments.AdditionalData["me"] = new PlannerAssignment() + { + OrderHint = " !" + }; PlannerTask middleTask = await graphClient.Planner.Tasks.PostAsync(taskToCreate); @@ -247,43 +279,49 @@ public async Task PlannerTaskAssignedToTaskBoardFormatUpdate() var myUserId = plannerPlan.CreatedBy.User.Id; // get assigned to task board formats of the tasks in plan. - var taskIdsWithTaskBoardFormats = await graphClient.Planner.Plans[plannerPlan.Id].Tasks.Request().Select("id").Expand("assignedToTaskBoardFormat").GetAsync(); - IDictionary formatsByTasks = taskIdsWithTaskBoardFormats.ToDictionary(item => item.Id, item => item.AssignedToTaskBoardFormat); + var taskIdsWithTaskBoardFormats = await graphClient.Planner.Plans[plannerPlan.Id].Tasks.GetAsync( requestConfiguration => + { + requestConfiguration.QueryParameters.Select = new[] { "id" }; + requestConfiguration.QueryParameters.Expand = new[] { "assignedToTaskBoardFormat" }; + }); + IDictionary formatsByTasks = taskIdsWithTaskBoardFormats.Value.ToDictionary(item => item.Id, item => item.AssignedToTaskBoardFormat); var bottomTaskFormatUpdate = new PlannerAssignedToTaskBoardTaskFormat(); bottomTaskFormatUpdate.OrderHintsByAssignee = new PlannerOrderHintsByAssignee(); - bottomTaskFormatUpdate.OrderHintsByAssignee[myUserId] = $"{formatsByTasks[topTask.Id].GetOrderHintForAssignee(myUserId)} !"; // after top task. + bottomTaskFormatUpdate.OrderHintsByAssignee.AdditionalData[myUserId] = $"{formatsByTasks[topTask.Id].OrderHintsByAssignee.AdditionalData[myUserId]} !"; // after top task. var middleTaskFormatUpdate = new PlannerAssignedToTaskBoardTaskFormat(); middleTaskFormatUpdate.OrderHintsByAssignee = new PlannerOrderHintsByAssignee(); - middleTaskFormatUpdate.OrderHintsByAssignee[myUserId] = $"{formatsByTasks[topTask.Id].GetOrderHintForAssignee(myUserId)} {bottomTaskFormatUpdate.GetOrderHintForAssignee(myUserId)}!"; // after top task, before bottom task's client side new value. + middleTaskFormatUpdate.OrderHintsByAssignee.AdditionalData[myUserId] = $"{formatsByTasks[topTask.Id].OrderHintsByAssignee.AdditionalData[myUserId]} {bottomTaskFormatUpdate.OrderHintsByAssignee.AdditionalData[myUserId]}!"; // after top task, before bottom task's client side new value. - string etag = formatsByTasks[bottomTask.Id].GetEtag(); + string etag = formatsByTasks[bottomTask.Id].AdditionalData["@odata.etag"].ToString(); formatsByTasks[bottomTask.Id] = await graphClient .Planner .Tasks[bottomTask.Id] .AssignedToTaskBoardFormat - .Request() - .Header("If-Match", etag) - .Header("Prefer", "return=representation") - .UpdateAsync(bottomTaskFormatUpdate); + .PatchAsync(bottomTaskFormatUpdate, requestConfiguration => + { + requestConfiguration.Headers.Add("If-Match", etag); + requestConfiguration.Headers.Add("Prefer", "return=representation"); + }); - etag = formatsByTasks[middleTask.Id].GetEtag(); + etag = formatsByTasks[middleTask.Id].AdditionalData["@odata.etag"].ToString(); formatsByTasks[middleTask.Id] = await graphClient .Planner .Tasks[middleTask.Id] .AssignedToTaskBoardFormat - .Request() - .Header("If-Match", etag) - .Header("Prefer", "return=representation") - .UpdateAsync(middleTaskFormatUpdate); + .PatchAsync(middleTaskFormatUpdate, requestConfiguration => + { + requestConfiguration.Headers.Add("If-Match", etag); + requestConfiguration.Headers.Add("Prefer", "return=representation"); + }); // verify final order - var orderedTaskFormats = formatsByTasks.OrderBy(kvp => kvp.Value.GetOrderHintForAssignee(myUserId), StringComparer.Ordinal).ToList(); + var orderedTaskFormats = formatsByTasks.OrderBy(kvp => kvp.Value.OrderHintsByAssignee.AdditionalData[myUserId].ToString(), StringComparer.Ordinal).ToList(); Assert.Equal(topTask.Id, orderedTaskFormats[0].Key); Assert.Equal(middleTask.Id, orderedTaskFormats[1].Key); Assert.Equal(bottomTask.Id, orderedTaskFormats[2].Key); } -*/ + } }