diff --git a/src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs
index c98991de9fe..3f9eb6535aa 100644
--- a/src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs
@@ -4,6 +4,7 @@
using Microsoft.Graph.Beta.Admin.Dynamics;
using Microsoft.Graph.Beta.Admin.Edge;
using Microsoft.Graph.Beta.Admin.Entra;
+using Microsoft.Graph.Beta.Admin.Exchange;
using Microsoft.Graph.Beta.Admin.Forms;
using Microsoft.Graph.Beta.Admin.Microsoft365Apps;
using Microsoft.Graph.Beta.Admin.People;
@@ -50,6 +51,11 @@ public partial class AdminRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Beta.Admin.Entra.EntraRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to manage the exchange property of the microsoft.graph.admin entity.
+ public global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder Exchange
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the forms property of the microsoft.graph.admin entity.
public global::Microsoft.Graph.Beta.Admin.Forms.FormsRequestBuilder Forms
{
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/ExchangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/ExchangeRequestBuilder.cs
new file mode 100644
index 00000000000..608c01f5353
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/ExchangeRequestBuilder.cs
@@ -0,0 +1,250 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes;
+using Microsoft.Graph.Beta.Admin.Exchange.MessageTraces;
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange
+{
+ ///
+ /// Provides operations to manage the exchange property of the microsoft.graph.admin entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExchangeRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to manage the mailboxes property of the microsoft.graph.exchangeAdmin entity.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.MailboxesRequestBuilder Mailboxes
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.MailboxesRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the messageTraces property of the microsoft.graph.exchangeAdmin entity.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.MessageTraces.MessageTracesRequestBuilder MessageTraces
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.MessageTraces.MessageTracesRequestBuilder(PathParameters, RequestAdapter);
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ExchangeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange{?%24expand,%24select}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public ExchangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property exchange for admin
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// A container for the Exchange admin functionality. Read-only.
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.ExchangeAdmin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Update the navigation property exchange in admin
+ ///
+ /// A
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(global::Microsoft.Graph.Beta.Models.ExchangeAdmin body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Beta.Models.ExchangeAdmin body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.ExchangeAdmin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property exchange for admin
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// A container for the Exchange admin functionality. Read-only.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Update the navigation property exchange in admin
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Beta.Models.ExchangeAdmin body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Beta.Models.ExchangeAdmin body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.ExchangeRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExchangeRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// A container for the Exchange admin functionality. Read-only.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExchangeRequestBuilderGetQueryParameters
+ {
+ /// 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExchangeRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ExchangeRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Education/SynchronizationProfiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilder.cs
similarity index 67%
rename from src/Microsoft.Graph/Generated/Education/SynchronizationProfiles/Count/CountRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilder.cs
index cb401604b42..d333a45f518 100644
--- a/src/Microsoft.Graph/Generated/Education/SynchronizationProfiles/Count/CountRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Count/CountRequestBuilder.cs
@@ -9,7 +9,7 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.Beta.Education.SynchronizationProfiles.Count
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Count
{
///
/// Provides operations to count the resources in the collection.
@@ -18,19 +18,19 @@ namespace Microsoft.Graph.Beta.Education.SynchronizationProfiles.Count
public partial class CountRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new 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}/education/synchronizationProfiles/$count{?%24filter,%24search}", pathParameters)
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new 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}/education/synchronizationProfiles/$count{?%24filter,%24search}", rawUrl)
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/$count{?%24filter,%24search}", rawUrl)
{
}
///
@@ -40,14 +40,14 @@ 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.
/// When receiving a 4XX or 5XX status code
- [Obsolete("The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles")]
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
@@ -62,14 +62,14 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
- [Obsolete("The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles")]
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -80,12 +80,12 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- [Obsolete("The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles")]
- public global::Microsoft.Graph.Beta.Education.SynchronizationProfiles.Count.CountRequestBuilder WithUrl(string rawUrl)
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Count.CountRequestBuilder WithUrl(string rawUrl)
{
- return new global::Microsoft.Graph.Beta.Education.SynchronizationProfiles.Count.CountRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Count.CountRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Get the number of the resource
@@ -119,7 +119,7 @@ public partial class CountRequestBuilderGetQueryParameters
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration
+ public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration
{
}
}
diff --git a/src/Microsoft.Graph/Generated/Education/SynchronizationProfiles/Item/Resume/ResumeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilder.cs
similarity index 54%
rename from src/Microsoft.Graph/Generated/Education/SynchronizationProfiles/Item/Resume/ResumeRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilder.cs
index 1ffdd375a4c..b95a6fc7af2 100644
--- a/src/Microsoft.Graph/Generated/Education/SynchronizationProfiles/Item/Resume/ResumeRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/CreateImportSession/CreateImportSessionRequestBuilder.cs
@@ -1,6 +1,7 @@
//
#pragma warning disable CS0618
using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Graph.Beta.Models;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
@@ -9,44 +10,46 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.Beta.Education.SynchronizationProfiles.Item.Resume
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.CreateImportSession
{
///
- /// Provides operations to call the resume method.
+ /// Provides operations to call the createImportSession method.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class ResumeRequestBuilder : BaseRequestBuilder
+ public partial class CreateImportSessionRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public ResumeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/synchronizationProfiles/{educationSynchronizationProfile%2Did}/resume", pathParameters)
+ public CreateImportSessionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/createImportSession", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public ResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/synchronizationProfiles/{educationSynchronizationProfile%2Did}/resume", rawUrl)
+ public CreateImportSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/createImportSession", rawUrl)
{
}
///
- /// Invoke action resume
+ /// Create a session to import an Exchange mailbox item using its FastTransfer stream (FTS) format.
+ /// Find more info here
///
+ /// A
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 4XX or 5XX status code
- [Obsolete("The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles")]
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToPostRequestInformation(requestConfiguration);
@@ -54,14 +57,14 @@ public async Task PostAsync(Action>
{
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
- await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.MailboxItemImportSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Invoke action resume
+ /// Create a session to import an Exchange mailbox item using its FastTransfer stream (FTS) format.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
- [Obsolete("The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles")]
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default)
@@ -79,19 +82,19 @@ public RequestInformation ToPostRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- [Obsolete("The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles")]
- public global::Microsoft.Graph.Beta.Education.SynchronizationProfiles.Item.Resume.ResumeRequestBuilder WithUrl(string rawUrl)
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.CreateImportSession.CreateImportSessionRequestBuilder WithUrl(string rawUrl)
{
- return new global::Microsoft.Graph.Beta.Education.SynchronizationProfiles.Item.Resume.ResumeRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.CreateImportSession.CreateImportSessionRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class ResumeRequestBuilderPostRequestConfiguration : RequestConfiguration
+ public partial class CreateImportSessionRequestBuilderPostRequestConfiguration : RequestConfiguration
{
}
}
diff --git a/src/Microsoft.Graph/Generated/AppRoleAssignments/Item/Restore/RestorePostRequestBody.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostRequestBody.cs
similarity index 67%
rename from src/Microsoft.Graph/Generated/AppRoleAssignments/Item/Restore/RestorePostRequestBody.cs
rename to src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostRequestBody.cs
index a63c85c2f79..3f797c2636e 100644
--- a/src/Microsoft.Graph/Generated/AppRoleAssignments/Item/Restore/RestorePostRequestBody.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostRequestBody.cs
@@ -6,11 +6,11 @@
using System.Collections.Generic;
using System.IO;
using System;
-namespace Microsoft.Graph.Beta.AppRoleAssignments.Item.Restore
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
- public partial class RestorePostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
+ public partial class ExportItemsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
#pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -21,26 +21,26 @@ public IDictionary AdditionalData
}
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
- /// The newUserPrincipalName property
+ /// The ItemIds property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public string? NewUserPrincipalName
+ public List? ItemIds
{
- get { return BackingStore?.Get("newUserPrincipalName"); }
- set { BackingStore?.Set("newUserPrincipalName", value); }
+ get { return BackingStore?.Get?>("ItemIds"); }
+ set { BackingStore?.Set("ItemIds", value); }
}
#nullable restore
#else
- public string NewUserPrincipalName
+ public List ItemIds
{
- get { return BackingStore?.Get("newUserPrincipalName"); }
- set { BackingStore?.Set("newUserPrincipalName", value); }
+ get { return BackingStore?.Get>("ItemIds"); }
+ set { BackingStore?.Set("ItemIds", value); }
}
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
- public RestorePostRequestBody()
+ public ExportItemsPostRequestBody()
{
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
AdditionalData = new Dictionary();
@@ -48,12 +48,12 @@ public RestorePostRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static global::Microsoft.Graph.Beta.AppRoleAssignments.Item.Restore.RestorePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new global::Microsoft.Graph.Beta.AppRoleAssignments.Item.Restore.RestorePostRequestBody();
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -63,7 +63,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- { "newUserPrincipalName", n => { NewUserPrincipalName = n.GetStringValue(); } },
+ { "ItemIds", n => { ItemIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
};
}
///
@@ -73,7 +73,7 @@ public virtual IDictionary> GetFieldDeserializers()
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
- writer.WriteStringValue("newUserPrincipalName", NewUserPrincipalName);
+ writer.WriteCollectionOfPrimitiveValues("ItemIds", ItemIds);
writer.WriteAdditionalData(AdditionalData);
}
}
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostResponse.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostResponse.cs
new file mode 100644
index 00000000000..73d98f8c8f4
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsPostResponse.cs
@@ -0,0 +1,65 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class ExportItemsPostResponse : global::Microsoft.Graph.Beta.Models.BaseCollectionPaginationCountResponse, IParsable
+ #pragma warning restore CS1591
+ {
+ /// The value property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Value
+ {
+ get { return BackingStore?.Get?>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#nullable restore
+#else
+ public List Value
+ {
+ get { return BackingStore?.Get>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#endif
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostResponse();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public override IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>(base.GetFieldDeserializers())
+ {
+ { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Beta.Models.ExportItemResponse.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public override void Serialize(ISerializationWriter writer)
+ {
+ _ = writer ?? throw new ArgumentNullException(nameof(writer));
+ base.Serialize(writer);
+ writer.WriteCollectionOfObjectValues("value", Value);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/AppRoleAssignments/GetByIds/GetByIdsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilder.cs
similarity index 50%
rename from src/Microsoft.Graph/Generated/AppRoleAssignments/GetByIds/GetByIdsRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilder.cs
index 32587b8f790..db5b7173478 100644
--- a/src/Microsoft.Graph/Generated/AppRoleAssignments/GetByIds/GetByIdsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsRequestBuilder.cs
@@ -9,46 +9,47 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.Beta.AppRoleAssignments.GetByIds
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems
{
///
- /// Provides operations to call the getByIds method.
+ /// Provides operations to call the exportItems method.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class GetByIdsRequestBuilder : BaseRequestBuilder
+ public partial class ExportItemsRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public GetByIdsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appRoleAssignments/getByIds", pathParameters)
+ public ExportItemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/exportItems", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appRoleAssignments/getByIds", rawUrl)
+ public ExportItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/exportItems", rawUrl)
{
}
///
- /// Return the directory objects specified in a list of IDs. Some common uses for this function are to:
- /// Find more info here
+ /// Export Exchange mailboxItem objects in full-fidelity FastTransfer stream format for backup purposes. This item format can be restored to the same mailbox or a different one. You can export up to 20 items in a single export request.
+ /// Find more info here
///
- /// A
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsGetByIdsPostResponseAsync(global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsExportItemsPostResponseAsync(global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsGetByIdsPostResponseAsync(global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsExportItemsPostResponseAsync(global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -57,25 +58,25 @@ public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b
{
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Return the directory objects specified in a list of IDs. Some common uses for this function are to:
- /// Find more info here
+ /// Export Exchange mailboxItem objects in full-fidelity FastTransfer stream format for backup purposes. This item format can be restored to the same mailbox or a different one. You can export up to 20 items in a single export request.
+ /// Find more info here
///
- /// A
+ /// A
/// The request body
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
/// When receiving a 4XX or 5XX status code
- [Obsolete("This method is obsolete. Use PostAsGetByIdsPostResponseAsync instead.")]
+ [Obsolete("This method is obsolete. Use PostAsExportItemsPostResponseAsync instead.")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public async Task PostAsync(global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -84,21 +85,22 @@ public GetByIdsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b
{
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Return the directory objects specified in a list of IDs. Some common uses for this function are to:
+ /// Export Exchange mailboxItem objects in full-fidelity FastTransfer stream format for backup purposes. This item format can be restored to the same mailbox or a different one. You can export up to 20 items in a single export request.
///
/// A
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -111,18 +113,19 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Beta.
///
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsRequestBuilder WithUrl(string rawUrl)
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsRequestBuilder WithUrl(string rawUrl)
{
- return new global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsRequestBuilder(rawUrl, RequestAdapter);
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class GetByIdsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ public partial class ExportItemsRequestBuilderPostRequestConfiguration : RequestConfiguration
{
}
}
diff --git a/src/Microsoft.Graph/Generated/AppRoleAssignments/GetByIds/GetByIdsResponse.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsResponse.cs
similarity index 55%
rename from src/Microsoft.Graph/Generated/AppRoleAssignments/GetByIds/GetByIdsResponse.cs
rename to src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsResponse.cs
index 5812c6cdba2..33f939be741 100644
--- a/src/Microsoft.Graph/Generated/AppRoleAssignments/GetByIds/GetByIdsResponse.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/ExportItems/ExportItemsResponse.cs
@@ -5,23 +5,23 @@
using System.Collections.Generic;
using System.IO;
using System;
-namespace Microsoft.Graph.Beta.AppRoleAssignments.GetByIds
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems
{
- [Obsolete("This class is obsolete. Use GetByIdsPostResponse instead.")]
+ [Obsolete("This class is obsolete. Use ExportItemsPostResponse instead.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
- public partial class GetByIdsResponse : global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsPostResponse, IParsable
+ public partial class ExportItemsResponse : global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsPostResponse, IParsable
#pragma warning restore CS1591
{
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static new global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new global::Microsoft.Graph.Beta.AppRoleAssignments.GetByIds.GetByIdsResponse();
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.ExportItems.ExportItemsResponse();
}
}
}
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..7eb415362c9
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Count/CountRequestBuilder.cs
@@ -0,0 +1,127 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Count
+{
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new 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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/$count{?%24filter,%24search}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new 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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/$count{?%24filter,%24search}", rawUrl)
+ {
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Count.CountRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/AppRoleAssignments/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaGetResponse.cs
similarity index 72%
rename from src/Microsoft.Graph/Generated/AppRoleAssignments/Delta/DeltaGetResponse.cs
rename to src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaGetResponse.cs
index 982e4367815..f0ce37b6c83 100644
--- a/src/Microsoft.Graph/Generated/AppRoleAssignments/Delta/DeltaGetResponse.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaGetResponse.cs
@@ -6,7 +6,7 @@
using System.Collections.Generic;
using System.IO;
using System;
-namespace Microsoft.Graph.Beta.AppRoleAssignments.Delta
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
@@ -16,28 +16,28 @@ public partial class DeltaGetResponse : global::Microsoft.Graph.Beta.Models.Base
/// The value property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public List? Value
+ public List? Value
{
- get { return BackingStore?.Get?>("value"); }
+ get { return BackingStore?.Get?>("value"); }
set { BackingStore?.Set("value", value); }
}
#nullable restore
#else
- public List Value
+ public List Value
{
- get { return BackingStore?.Get>("value"); }
+ get { return BackingStore?.Get>("value"); }
set { BackingStore?.Set("value", value); }
}
#endif
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static new global::Microsoft.Graph.Beta.AppRoleAssignments.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new global::Microsoft.Graph.Beta.AppRoleAssignments.Delta.DeltaGetResponse();
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaGetResponse();
}
///
/// The deserialization information for the current model
@@ -47,7 +47,7 @@ public override IDictionary> GetFieldDeserializers()
{
return new Dictionary>(base.GetFieldDeserializers())
{
- { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Beta.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } },
+ { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Beta.Models.MailboxFolder.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
///
@@ -58,7 +58,7 @@ public override void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
- writer.WriteCollectionOfObjectValues("value", Value);
+ writer.WriteCollectionOfObjectValues("value", Value);
}
}
}
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilder.cs
new file mode 100644
index 00000000000..cd9e889f42e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaRequestBuilder.cs
@@ -0,0 +1,192 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta
+{
+ ///
+ /// Provides operations to call the delta method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for 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 folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for 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 folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("This method is obsolete. Use GetAsDeltaGetResponseAsync instead.")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for 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 folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for 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 folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilderGetQueryParameters
+ {
+ /// 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/AppRoleAssignments/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaResponse.cs
similarity index 65%
rename from src/Microsoft.Graph/Generated/AppRoleAssignments/Delta/DeltaResponse.cs
rename to src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaResponse.cs
index 6999c4dd190..105a07f504e 100644
--- a/src/Microsoft.Graph/Generated/AppRoleAssignments/Delta/DeltaResponse.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Delta/DeltaResponse.cs
@@ -5,23 +5,23 @@
using System.Collections.Generic;
using System.IO;
using System;
-namespace Microsoft.Graph.Beta.AppRoleAssignments.Delta
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta
{
[Obsolete("This class is obsolete. Use DeltaGetResponse instead.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
- public partial class DeltaResponse : global::Microsoft.Graph.Beta.AppRoleAssignments.Delta.DeltaGetResponse, IParsable
+ public partial class DeltaResponse : global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaGetResponse, IParsable
#pragma warning restore CS1591
{
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static new global::Microsoft.Graph.Beta.AppRoleAssignments.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new global::Microsoft.Graph.Beta.AppRoleAssignments.Delta.DeltaResponse();
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaResponse();
}
}
}
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilder.cs
new file mode 100644
index 00000000000..d62b2e38f92
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/FoldersRequestBuilder.cs
@@ -0,0 +1,196 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Count;
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta;
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item;
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders
+{
+ ///
+ /// Provides operations to manage the folders property of the microsoft.graph.mailbox entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class FoldersRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the delta method.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaRequestBuilder Delta
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the folders property of the microsoft.graph.mailbox entity.
+ /// The unique identifier of mailboxFolder
+ /// A
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.MailboxFolderItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("mailboxFolder%2Did", position);
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.MailboxFolderItemRequestBuilder(urlTplParams, RequestAdapter);
+ }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public FoldersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public FoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get all the mailboxFolder objects in the specified mailbox, including any search folders.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.MailboxFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get all the mailboxFolder objects in the specified mailbox, including any search folders.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.FoldersRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.FoldersRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get all the mailboxFolder objects in the specified mailbox, including any search folders.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class FoldersRequestBuilderGetQueryParameters
+ {
+ /// 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class FoldersRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilder.cs
new file mode 100644
index 00000000000..8e1ca65f516
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/ChildFoldersRequestBuilder.cs
@@ -0,0 +1,196 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Count;
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta;
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item;
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders
+{
+ ///
+ /// Provides operations to manage the childFolders property of the microsoft.graph.mailboxFolder entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ChildFoldersRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the delta method.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaRequestBuilder Delta
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the childFolders property of the microsoft.graph.mailboxFolder entity.
+ /// The unique identifier of mailboxFolder
+ /// A
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.MailboxFolderItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("mailboxFolder%2Did1", position);
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.MailboxFolderItemRequestBuilder(urlTplParams, RequestAdapter);
+ }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ChildFoldersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public ChildFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.MailboxFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.ChildFoldersRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.ChildFoldersRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get the mailboxFolder collection under the specified mailboxFolder in a mailbox.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ChildFoldersRequestBuilderGetQueryParameters
+ {
+ /// 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ChildFoldersRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..9b6e88d8737
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Count/CountRequestBuilder.cs
@@ -0,0 +1,127 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Count
+{
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new 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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/$count{?%24filter,%24search}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new 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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/$count{?%24filter,%24search}", rawUrl)
+ {
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Count.CountRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaGetResponse.cs
new file mode 100644
index 00000000000..d768d3f848e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaGetResponse.cs
@@ -0,0 +1,65 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class DeltaGetResponse : global::Microsoft.Graph.Beta.Models.BaseDeltaFunctionResponse, IParsable
+ #pragma warning restore CS1591
+ {
+ /// The value property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Value
+ {
+ get { return BackingStore?.Get?>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#nullable restore
+#else
+ public List Value
+ {
+ get { return BackingStore?.Get>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#endif
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaGetResponse();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public override IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>(base.GetFieldDeserializers())
+ {
+ { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Beta.Models.MailboxFolder.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public override void Serialize(ISerializationWriter writer)
+ {
+ _ = writer ?? throw new ArgumentNullException(nameof(writer));
+ base.Serialize(writer);
+ writer.WriteCollectionOfObjectValues("value", Value);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs
new file mode 100644
index 00000000000..a4ad4b90d00
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs
@@ -0,0 +1,192 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta
+{
+ ///
+ /// Provides operations to call the delta method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for 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 folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for 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 folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("This method is obsolete. Use GetAsDeltaGetResponseAsync instead.")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for 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 folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get a set of mailboxFolder objects that have been added, deleted, or removed from the user's mailbox. A delta function call for 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 folders. This approach allows you to maintain and synchronize a local store of a user's mail folders without having to fetch all the folders of that mailbox from the server every time.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilderGetQueryParameters
+ {
+ /// 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/AppRoleAssignments/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaResponse.cs
similarity index 53%
rename from src/Microsoft.Graph/Generated/AppRoleAssignments/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs
rename to src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaResponse.cs
index 71876e4a281..8ab551b9b52 100644
--- a/src/Microsoft.Graph/Generated/AppRoleAssignments/Item/CheckMemberGroups/CheckMemberGroupsResponse.cs
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Delta/DeltaResponse.cs
@@ -5,23 +5,23 @@
using System.Collections.Generic;
using System.IO;
using System;
-namespace Microsoft.Graph.Beta.AppRoleAssignments.Item.CheckMemberGroups
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta
{
- [Obsolete("This class is obsolete. Use CheckMemberGroupsPostResponse instead.")]
+ [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
- public partial class CheckMemberGroupsResponse : global::Microsoft.Graph.Beta.AppRoleAssignments.Item.CheckMemberGroups.CheckMemberGroupsPostResponse, IParsable
+ public partial class DeltaResponse : global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaGetResponse, IParsable
#pragma warning restore CS1591
{
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static new global::Microsoft.Graph.Beta.AppRoleAssignments.Item.CheckMemberGroups.CheckMemberGroupsResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new global::Microsoft.Graph.Beta.AppRoleAssignments.Item.CheckMemberGroups.CheckMemberGroupsResponse();
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Delta.DeltaResponse();
}
}
}
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..668e164a52e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Count/CountRequestBuilder.cs
@@ -0,0 +1,127 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Count
+{
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new 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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/$count{?%24filter,%24search}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new 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}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/$count{?%24filter,%24search}", rawUrl)
+ {
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Count.CountRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaGetResponse.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaGetResponse.cs
new file mode 100644
index 00000000000..9df7da9b71d
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaGetResponse.cs
@@ -0,0 +1,65 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class DeltaGetResponse : global::Microsoft.Graph.Beta.Models.BaseDeltaFunctionResponse, IParsable
+ #pragma warning restore CS1591
+ {
+ /// The value property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Value
+ {
+ get { return BackingStore?.Get?>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#nullable restore
+#else
+ public List Value
+ {
+ get { return BackingStore?.Get>("value"); }
+ set { BackingStore?.Set("value", value); }
+ }
+#endif
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaGetResponse();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public override IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>(base.GetFieldDeserializers())
+ {
+ { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Beta.Models.MailboxItem.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public override void Serialize(ISerializationWriter writer)
+ {
+ _ = writer ?? throw new ArgumentNullException(nameof(writer));
+ base.Serialize(writer);
+ writer.WriteCollectionOfObjectValues("value", Value);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilder.cs
new file mode 100644
index 00000000000..fabcc6e34c2
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaRequestBuilder.cs
@@ -0,0 +1,190 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta
+{
+ ///
+ /// Provides operations to call the delta method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items 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 items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time.
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ var requestInfo = ToGetRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items 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 items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time.
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("This method is obsolete. Use GetAsDeltaGetResponseAsync instead.")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items 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 items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get a set of mailboxItem objects that have been added, deleted, or updated in a specified mailboxFolder. A delta function call for items 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 items in that folder. This approach allows you to maintain and synchronize a local store of a user's mailbox items without having to fetch the entire set of items from the server every time.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilderGetQueryParameters
+ {
+ /// 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaResponse.cs
new file mode 100644
index 00000000000..2bec976e2e7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Delta/DeltaResponse.cs
@@ -0,0 +1,28 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta
+{
+ [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class DeltaResponse : global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaGetResponse, IParsable
+ #pragma warning restore CS1591
+ {
+ ///
+ /// Creates a new instance of the appropriate class based on discriminator value
+ ///
+ /// A
+ /// The parse node to use to read the discriminator value and create the object
+ public static new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaResponse();
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.cs
new file mode 100644
index 00000000000..9c22a5d3db9
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/Item/MailboxItemItemRequestBuilder.cs
@@ -0,0 +1,128 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Item
+{
+ ///
+ /// Provides operations to manage the items property of the microsoft.graph.mailboxFolder entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MailboxItemItemRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public MailboxItemItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/{mailboxItem%2Did}{?%24expand,%24select}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public MailboxItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items/{mailboxItem%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// The collection of items in this folder.
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.MailboxItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// The collection of items in this folder.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Item.MailboxItemItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Item.MailboxItemItemRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// The collection of items in this folder.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MailboxItemItemRequestBuilderGetQueryParameters
+ {
+ /// 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MailboxItemItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilder.cs
new file mode 100644
index 00000000000..378421356d7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/Items/ItemsRequestBuilder.cs
@@ -0,0 +1,195 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Count;
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta;
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Item;
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items
+{
+ ///
+ /// Provides operations to manage the items property of the microsoft.graph.mailboxFolder entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ItemsRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to call the delta method.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaRequestBuilder Delta
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the items property of the microsoft.graph.mailboxFolder entity.
+ /// The unique identifier of mailboxItem
+ /// A
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Item.MailboxItemItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("mailboxItem%2Did", position);
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.Item.MailboxItemItemRequestBuilder(urlTplParams, RequestAdapter);
+ }
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ItemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// The collection of items in this folder.
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.MailboxItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// The collection of items in this folder.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.ItemsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.ItemsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// The collection of items in this folder.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ItemsRequestBuilderGetQueryParameters
+ {
+ /// 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.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ItemsRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilder.cs
new file mode 100644
index 00000000000..b44c6ccbe1e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Admin/Exchange/Mailboxes/Item/Folders/Item/ChildFolders/Item/MailboxFolderItemRequestBuilder.cs
@@ -0,0 +1,135 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items;
+using Microsoft.Graph.Beta.Models.ODataErrors;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions;
+using System.Collections.Generic;
+using System.IO;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item
+{
+ ///
+ /// Provides operations to manage the childFolders property of the microsoft.graph.mailboxFolder entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MailboxFolderItemRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to manage the items property of the microsoft.graph.mailboxFolder entity.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+ public global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.ItemsRequestBuilder Items
+ {
+ get => new global::Microsoft.Graph.Beta.Admin.Exchange.Mailboxes.Item.Folders.Item.ChildFolders.Item.Items.ItemsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public MailboxFolderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}{?%24expand,%24select}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public MailboxFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/exchange/mailboxes/{mailbox%2Did}/folders/{mailboxFolder%2Did}/childFolders/{mailboxFolder%2Did1}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// The collection of child folders in this folder.
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#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>
+ {
+ { "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Beta.Models.MailboxFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// The collection of child folders in this folder.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete("Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///