diff --git a/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs
index 2e307ca7723..a4a91d6bc2b 100644
--- a/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Devices/DevicesRequestBuilder.cs
@@ -5,6 +5,7 @@
using Microsoft.Graph.Devices.GetAvailableExtensionProperties;
using Microsoft.Graph.Devices.GetByIds;
using Microsoft.Graph.Devices.Item;
+using Microsoft.Graph.Devices.Provision;
using Microsoft.Graph.Devices.ValidateProperties;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
@@ -44,6 +45,11 @@ public partial class DevicesRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Devices.GetByIds.GetByIdsRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the provision method.
+ public global::Microsoft.Graph.Devices.Provision.ProvisionRequestBuilder Provision
+ {
+ get => new global::Microsoft.Graph.Devices.Provision.ProvisionRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to call the validateProperties method.
public global::Microsoft.Graph.Devices.ValidateProperties.ValidatePropertiesRequestBuilder ValidateProperties
{
diff --git a/src/Microsoft.Graph/Generated/Devices/Provision/ProvisionPostRequestBody.cs b/src/Microsoft.Graph/Generated/Devices/Provision/ProvisionPostRequestBody.cs
new file mode 100644
index 00000000000..d6406deffd4
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Devices/Provision/ProvisionPostRequestBody.cs
@@ -0,0 +1,81 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Devices.Provision
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class ProvisionPostRequestBody : 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.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The provisioningBlob property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? ProvisioningBlob
+ {
+ get { return BackingStore?.Get("provisioningBlob"); }
+ set { BackingStore?.Set("provisioningBlob", value); }
+ }
+#nullable restore
+#else
+ public string ProvisioningBlob
+ {
+ get { return BackingStore?.Get("provisioningBlob"); }
+ set { BackingStore?.Set("provisioningBlob", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public ProvisionPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// 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 global::Microsoft.Graph.Devices.Provision.ProvisionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Devices.Provision.ProvisionPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "provisioningBlob", n => { ProvisioningBlob = n.GetStringValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteStringValue("provisioningBlob", ProvisioningBlob);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Devices/Provision/ProvisionRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Provision/ProvisionRequestBuilder.cs
new file mode 100644
index 00000000000..891b846dce5
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Devices/Provision/ProvisionRequestBuilder.cs
@@ -0,0 +1,104 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Devices.Provision
+{
+ ///
+ /// Provides operations to call the provision method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ProvisionRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public ProvisionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/provision", 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 ProvisionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/devices/provision", rawUrl)
+ {
+ }
+ ///
+ /// Provision a device on behalf of an approved Virtual Desktop Infrastructure (VDI) provider. This action wraps the Zero Touch Deployment (ZTD) protocol to create a device in a pending state in the customer's directory. The device can't be used for authentication until it completes its registration. The created device is stamped with a system label that identifies the approved VDI provider. Only VDI applications on Microsoft's approved list of VDI providers can successfully call this action. Calls from other applications are blocked even when the application is granted the required permission.
+ /// Find more info here
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Devices.Provision.ProvisionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Devices.Provision.ProvisionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.ProvisionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Provision a device on behalf of an approved Virtual Desktop Infrastructure (VDI) provider. This action wraps the Zero Touch Deployment (ZTD) protocol to create a device in a pending state in the customer's directory. The device can't be used for authentication until it completes its registration. The created device is stamped with a system label that identifies the approved VDI provider. Only VDI applications on Microsoft's approved list of VDI providers can successfully call this action. Calls from other applications are blocked even when the application is granted the required permission.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Devices.Provision.ProvisionPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Devices.Provision.ProvisionPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, 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.
+ public global::Microsoft.Graph.Devices.Provision.ProvisionRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Devices.Provision.ProvisionRequestBuilder(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 ProvisionRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/TenantGovernance/RelatedTenants/RefreshStatus/RefreshStatusRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/TenantGovernance/RelatedTenants/RefreshStatus/RefreshStatusRequestBuilder.cs
new file mode 100644
index 00000000000..0a6ab746ea9
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/TenantGovernance/RelatedTenants/RefreshStatus/RefreshStatusRequestBuilder.cs
@@ -0,0 +1,98 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.DirectoryNamespace.TenantGovernance.RelatedTenants.RefreshStatus
+{
+ ///
+ /// Provides operations to call the refreshStatus method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RefreshStatusRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RefreshStatusRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/tenantGovernance/relatedTenants/refreshStatus()", 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 RefreshStatusRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/tenantGovernance/relatedTenants/refreshStatus()", rawUrl)
+ {
+ }
+ ///
+ /// Invoke function refreshStatus
+ ///
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.RelatedTenantsRefreshStatus.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Invoke function refreshStatus
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// 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.
+ public global::Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.RefreshStatus.RefreshStatusRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.RefreshStatus.RefreshStatusRequestBuilder(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 RefreshStatusRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/TenantGovernance/RelatedTenants/RelatedTenantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/TenantGovernance/RelatedTenants/RelatedTenantsRequestBuilder.cs
index 11508b5d0de..58685353843 100644
--- a/src/Microsoft.Graph/Generated/DirectoryNamespace/TenantGovernance/RelatedTenants/RelatedTenantsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/TenantGovernance/RelatedTenants/RelatedTenantsRequestBuilder.cs
@@ -3,6 +3,7 @@
using Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.Count;
using Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.Item;
using Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.Refresh;
+using Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.RefreshStatus;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
@@ -31,6 +32,11 @@ public partial class RelatedTenantsRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the refreshStatus method.
+ public global::Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.RefreshStatus.RefreshStatusRequestBuilder RefreshStatus
+ {
+ get => new global::Microsoft.Graph.DirectoryNamespace.TenantGovernance.RelatedTenants.RefreshStatus.RefreshStatusRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the relatedTenants property of the microsoft.graph.tenantGovernance entity.
/// The unique identifier of relatedTenant
/// A
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
index 8c0cd39ab70..c69ed8ef150 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
@@ -1,6 +1,7 @@
//
#pragma warning disable CS0618
using Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.Grant;
+using Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
@@ -24,6 +25,11 @@ public partial class PermissionItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.Grant.GrantRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the revokeGrants method.
+ public global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder RevokeGrants
+ {
+ get => new global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(PathParameters, RequestAdapter);
+ }
///
/// Instantiates a new and sets the default values.
///
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
new file mode 100644
index 00000000000..b64a6bc824c
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class RevokeGrantsPostRequestBody : 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.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The grantees property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Grantees
+ {
+ get { return BackingStore?.Get?>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#nullable restore
+#else
+ public List Grantees
+ {
+ get { return BackingStore?.Get>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public RevokeGrantsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// 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 global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "grantees", n => { Grantees = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteCollectionOfObjectValues("grantees", Grantees);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
new file mode 100644
index 00000000000..a6eded19ac7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
@@ -0,0 +1,104 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Drives.Item.Items.Item.Permissions.Item.RevokeGrants
+{
+ ///
+ /// Provides operations to call the revokeGrants method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RevokeGrantsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RevokeGrantsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}/revokeGrants", 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 RevokeGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/permissions/{permission%2Did}/revokeGrants", rawUrl)
+ {
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ /// Find more info here
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, 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.
+ public global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Drives.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(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 RevokeGrantsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
index bae7848e34a..31abd4f39cc 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
@@ -1,6 +1,7 @@
//
#pragma warning disable CS0618
using Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.Grant;
+using Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
@@ -24,6 +25,11 @@ public partial class PermissionItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.Grant.GrantRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the revokeGrants method.
+ public global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder RevokeGrants
+ {
+ get => new global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(PathParameters, RequestAdapter);
+ }
///
/// Instantiates a new and sets the default values.
///
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
new file mode 100644
index 00000000000..119a57338e5
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class RevokeGrantsPostRequestBody : 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.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The grantees property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Grantees
+ {
+ get { return BackingStore?.Get?>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#nullable restore
+#else
+ public List Grantees
+ {
+ get { return BackingStore?.Get>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public RevokeGrantsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// 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 global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "grantees", n => { Grantees = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteCollectionOfObjectValues("grantees", Grantees);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
new file mode 100644
index 00000000000..a76fe9dadbb
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
@@ -0,0 +1,104 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants
+{
+ ///
+ /// Provides operations to call the revokeGrants method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RevokeGrantsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RevokeGrantsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/permissions/{permission%2Did}/revokeGrants", 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 RevokeGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/items/{listItem%2Did}/permissions/{permission%2Did}/revokeGrants", rawUrl)
+ {
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ /// Find more info here
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, 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.
+ public global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(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 RevokeGrantsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs
index a9b52fc5c6e..71200176fe1 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs
@@ -1,6 +1,7 @@
//
#pragma warning disable CS0618
using Microsoft.Graph.Drives.Item.List.Permissions.Item.Grant;
+using Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
@@ -24,6 +25,11 @@ public partial class PermissionItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Drives.Item.List.Permissions.Item.Grant.GrantRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the revokeGrants method.
+ public global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder RevokeGrants
+ {
+ get => new global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(PathParameters, RequestAdapter);
+ }
///
/// Instantiates a new and sets the default values.
///
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
new file mode 100644
index 00000000000..8777192dd8b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class RevokeGrantsPostRequestBody : 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.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The grantees property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Grantees
+ {
+ get { return BackingStore?.Get?>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#nullable restore
+#else
+ public List Grantees
+ {
+ get { return BackingStore?.Get>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public RevokeGrantsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// 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 global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "grantees", n => { Grantees = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteCollectionOfObjectValues("grantees", Grantees);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
new file mode 100644
index 00000000000..9da45f0a014
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
@@ -0,0 +1,104 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Drives.Item.List.Permissions.Item.RevokeGrants
+{
+ ///
+ /// Provides operations to call the revokeGrants method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RevokeGrantsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RevokeGrantsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/permissions/{permission%2Did}/revokeGrants", 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 RevokeGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/list/permissions/{permission%2Did}/revokeGrants", rawUrl)
+ {
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ /// Find more info here
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, 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.
+ public global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Drives.Item.List.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(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 RevokeGrantsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
index 9d7dd6d1f48..44da0e3f67d 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs
@@ -1,6 +1,7 @@
//
#pragma warning disable CS0618
using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.Grant;
+using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
@@ -24,6 +25,11 @@ public partial class PermissionItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.Grant.GrantRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the revokeGrants method.
+ public global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder RevokeGrants
+ {
+ get => new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(PathParameters, RequestAdapter);
+ }
///
/// Instantiates a new and sets the default values.
///
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
new file mode 100644
index 00000000000..822f4633dcd
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class RevokeGrantsPostRequestBody : 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.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The grantees property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Grantees
+ {
+ get { return BackingStore?.Get?>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#nullable restore
+#else
+ public List Grantees
+ {
+ get { return BackingStore?.Get>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public RevokeGrantsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// 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 global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "grantees", n => { Grantees = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteCollectionOfObjectValues("grantees", Grantees);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
new file mode 100644
index 00000000000..a3b92f76bbe
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
@@ -0,0 +1,104 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants
+{
+ ///
+ /// Provides operations to call the revokeGrants method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RevokeGrantsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RevokeGrantsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/permissions/{permission%2Did}/revokeGrants", 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 RevokeGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/items/{listItem%2Did}/permissions/{permission%2Did}/revokeGrants", rawUrl)
+ {
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ /// Find more info here
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, 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.
+ public global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(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 RevokeGrantsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs
index a9e53c8cc69..d7628987e34 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs
@@ -1,6 +1,7 @@
//
#pragma warning disable CS0618
using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.Grant;
+using Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
@@ -24,6 +25,11 @@ public partial class PermissionItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.Grant.GrantRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the revokeGrants method.
+ public global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder RevokeGrants
+ {
+ get => new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(PathParameters, RequestAdapter);
+ }
///
/// Instantiates a new and sets the default values.
///
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
new file mode 100644
index 00000000000..bd80ae9ccff
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class RevokeGrantsPostRequestBody : 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.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The grantees property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Grantees
+ {
+ get { return BackingStore?.Get?>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#nullable restore
+#else
+ public List Grantees
+ {
+ get { return BackingStore?.Get>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public RevokeGrantsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// 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 global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "grantees", n => { Grantees = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteCollectionOfObjectValues("grantees", Grantees);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
new file mode 100644
index 00000000000..ae8054249a8
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
@@ -0,0 +1,104 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants
+{
+ ///
+ /// Provides operations to call the revokeGrants method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RevokeGrantsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RevokeGrantsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/permissions/{permission%2Did}/revokeGrants", 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 RevokeGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/lists/{list%2Did}/permissions/{permission%2Did}/revokeGrants", rawUrl)
+ {
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ /// Find more info here
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, 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.
+ public global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(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 RevokeGrantsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs
index 9df5463150c..24fa43ffb84 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/PermissionItemRequestBuilder.cs
@@ -1,6 +1,7 @@
//
#pragma warning disable CS0618
using Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.Grant;
+using Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
@@ -24,6 +25,11 @@ public partial class PermissionItemRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.Grant.GrantRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to call the revokeGrants method.
+ public global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder RevokeGrants
+ {
+ get => new global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(PathParameters, RequestAdapter);
+ }
///
/// Instantiates a new and sets the default values.
///
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
new file mode 100644
index 00000000000..101f0e46617
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/RevokeGrants/RevokeGrantsPostRequestBody.cs
@@ -0,0 +1,82 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System.Collections.Generic;
+using System.IO;
+using System;
+namespace Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class RevokeGrantsPostRequestBody : 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.
+ public IDictionary AdditionalData
+ {
+ get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
+ set { BackingStore.Set("AdditionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The grantees property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? Grantees
+ {
+ get { return BackingStore?.Get?>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#nullable restore
+#else
+ public List Grantees
+ {
+ get { return BackingStore?.Get>("grantees"); }
+ set { BackingStore?.Set("grantees", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public RevokeGrantsPostRequestBody()
+ {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ }
+ ///
+ /// 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 global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public virtual IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>
+ {
+ { "grantees", n => { Grantees = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.DriveRecipient.CreateFromDiscriminatorValue)?.AsList(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public virtual void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ writer.WriteCollectionOfObjectValues("grantees", Grantees);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
new file mode 100644
index 00000000000..418831b1b18
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Permissions/Item/RevokeGrants/RevokeGrantsRequestBuilder.cs
@@ -0,0 +1,104 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants
+{
+ ///
+ /// Provides operations to call the revokeGrants method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RevokeGrantsRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RevokeGrantsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}/revokeGrants", 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 RevokeGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/permissions/{permission%2Did}/revokeGrants", rawUrl)
+ {
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ /// Find more info here
+ ///
+ /// 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
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Revoke access to a listItem or driveItem granted via a sharing link by removing the specified driveRecipient entries from the link. Recipients who already redeemed the link and recipients who only received an invitation both lose access. Revoking a grant removes the recipient from this sharing link only; it doesn't remove any access the recipient has through a different sharing link, a direct grant, or membership in a group that has access.
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsPostRequestBody body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.POST, 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.
+ public global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Groups.Item.Sites.Item.Permissions.Item.RevokeGrants.RevokeGrantsRequestBuilder(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 RevokeGrantsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/CustomExtensions/CustomExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/CustomExtensions/CustomExtensionsRequestBuilder.cs
index 8630874c8f8..2154e66d76a 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/CustomExtensions/CustomExtensionsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/CustomExtensions/CustomExtensionsRequestBuilder.cs
@@ -54,7 +54,8 @@ public CustomExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdap
{
}
///
- /// Get customExtensions from identityGovernance
+ /// Get a list of roleManagementCustomCalloutExtension objects configured for Privileged Identity Management (PIM).
+ /// Find more info here
///
/// A
/// Cancellation token to use when cancelling requests
@@ -77,7 +78,8 @@ public CustomExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdap
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.RoleManagementCustomCalloutExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Create new navigation property to customExtensions for identityGovernance
+ /// Create a new roleManagementCustomCalloutExtension object for Privileged Identity Management (PIM).
+ /// Find more info here
///
/// A
/// The request body
@@ -102,7 +104,7 @@ public CustomExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdap
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.RoleManagementCustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get customExtensions from identityGovernance
+ /// Get a list of roleManagementCustomCalloutExtension objects configured for Privileged Identity Management (PIM).
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -121,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Create new navigation property to customExtensions for identityGovernance
+ /// Create a new roleManagementCustomCalloutExtension object for Privileged Identity Management (PIM).
///
/// A
/// The request body
@@ -152,7 +154,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
return new global::Microsoft.Graph.IdentityGovernance.PrivilegedAccess.CustomExtensions.CustomExtensionsRequestBuilder(rawUrl, RequestAdapter);
}
///
- /// Get customExtensions from identityGovernance
+ /// Get a list of roleManagementCustomCalloutExtension objects configured for Privileged Identity Management (PIM).
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class CustomExtensionsRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/CustomExtensions/Item/RoleManagementCustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/CustomExtensions/Item/RoleManagementCustomCalloutExtensionItemRequestBuilder.cs
index ca89fa566a8..78fdb205a07 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/CustomExtensions/Item/RoleManagementCustomCalloutExtensionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/CustomExtensions/Item/RoleManagementCustomCalloutExtensionItemRequestBuilder.cs
@@ -35,7 +35,8 @@ public RoleManagementCustomCalloutExtensionItemRequestBuilder(string rawUrl, IRe
{
}
///
- /// Delete navigation property customExtensions for identityGovernance
+ /// Delete a roleManagementCustomCalloutExtension object.
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -57,7 +58,8 @@ public async Task DeleteAsync(Action
- /// Get customExtensions from identityGovernance
+ /// Retrieve the properties of a roleManagementCustomCalloutExtension object.
+ /// Find more info here
///
/// A
/// Cancellation token to use when cancelling requests
@@ -80,7 +82,8 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.Models.RoleManagementCustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Update the navigation property customExtensions in identityGovernance
+ /// Update the properties of a roleManagementCustomCalloutExtension object.
+ /// Find more info here
///
/// A
/// The request body
@@ -105,7 +108,7 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.Models.RoleManagementCustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Delete navigation property customExtensions for identityGovernance
+ /// Delete a roleManagementCustomCalloutExtension object.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -124,7 +127,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Get customExtensions from identityGovernance
+ /// Retrieve the properties of a roleManagementCustomCalloutExtension object.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -143,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Update the navigation property customExtensions in identityGovernance
+ /// Update the properties of a roleManagementCustomCalloutExtension object.
///
/// A
/// The request body
@@ -182,7 +185,7 @@ public partial class RoleManagementCustomCalloutExtensionItemRequestBuilderDelet
{
}
///
- /// Get customExtensions from identityGovernance
+ /// Retrieve the properties of a roleManagementCustomCalloutExtension object.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class RoleManagementCustomCalloutExtensionItemRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/UpdateRequest/UpdateRequestRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/UpdateRequest/UpdateRequestRequestBuilder.cs
index 506eea910c4..10fbd42fc8f 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/UpdateRequest/UpdateRequestRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/PrivilegedAccess/Group/AssignmentScheduleRequests/Item/UpdateRequest/UpdateRequestRequestBuilder.cs
@@ -35,7 +35,8 @@ public UpdateRequestRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
{
}
///
- /// Invoke action updateRequest
+ /// Update a privilegedAccessGroupAssignmentScheduleRequest object with the result of a custom extension evaluation. This action is used to submit the result of a custom extension evaluation for a role assignment request.
+ /// Find more info here
///
/// A
/// The request body
@@ -60,7 +61,7 @@ public UpdateRequestRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.PrivilegedAccessGroupAssignmentScheduleRequest.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Invoke action updateRequest
+ /// Update a privilegedAccessGroupAssignmentScheduleRequest object with the result of a custom extension evaluation. This action is used to submit the result of a custom extension evaluation for a role assignment request.
///
/// A
/// The request body
diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs
index 6b6702af988..0e97571bf1e 100644
--- a/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/AuthenticationRequestBuilder.cs
@@ -9,6 +9,7 @@
using Microsoft.Graph.Me.Authentication.PasswordMethods;
using Microsoft.Graph.Me.Authentication.PhoneMethods;
using Microsoft.Graph.Me.Authentication.PlatformCredentialMethods;
+using Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods;
using Microsoft.Graph.Me.Authentication.SoftwareOathMethods;
using Microsoft.Graph.Me.Authentication.TemporaryAccessPassMethods;
using Microsoft.Graph.Me.Authentication.WindowsHelloForBusinessMethods;
@@ -75,6 +76,11 @@ public partial class AuthenticationRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.Me.Authentication.PlatformCredentialMethods.PlatformCredentialMethodsRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to manage the resourceAccountKeyAuthenticationMethods property of the microsoft.graph.authentication entity.
+ public global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.ResourceAccountKeyAuthenticationMethodsRequestBuilder ResourceAccountKeyAuthenticationMethods
+ {
+ get => new global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.ResourceAccountKeyAuthenticationMethodsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the softwareOathMethods property of the microsoft.graph.authentication entity.
public global::Microsoft.Graph.Me.Authentication.SoftwareOathMethods.SoftwareOathMethodsRequestBuilder SoftwareOathMethods
{
diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..966ba5c6ce7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Count/CountRequestBuilder.cs
@@ -0,0 +1,124 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.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.Me.Authentication.ResourceAccountKeyAuthenticationMethods.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}/me/authentication/resourceAccountKeyAuthenticationMethods/$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}/me/authentication/resourceAccountKeyAuthenticationMethods/$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
+#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.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.
+#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.
+ public global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.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/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Item/Device/DeviceRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Item/Device/DeviceRequestBuilder.cs
new file mode 100644
index 00000000000..9730f430df7
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Item/Device/DeviceRequestBuilder.cs
@@ -0,0 +1,125 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.Device
+{
+ ///
+ /// Provides operations to manage the device property of the microsoft.graph.resourceAccountKeyAuthenticationMethod entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeviceRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public DeviceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/resourceAccountKeyAuthenticationMethods/{resourceAccountKeyAuthenticationMethod%2Did}/device{?%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 DeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/resourceAccountKeyAuthenticationMethods/{resourceAccountKeyAuthenticationMethod%2Did}/device{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// The registered device on which this resource account key resides. Supports $expand.
+ ///
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// The registered device on which this resource account key resides. Supports $expand.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// 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.
+ public global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.Device.DeviceRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.Device.DeviceRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// The registered device on which this resource account key resides. Supports $expand.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DeviceRequestBuilderGetQueryParameters
+ {
+ /// 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 DeviceRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Item/ResourceAccountKeyAuthenticationMethodItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Item/ResourceAccountKeyAuthenticationMethodItemRequestBuilder.cs
new file mode 100644
index 00000000000..8c8c8c7b961
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/Item/ResourceAccountKeyAuthenticationMethodItemRequestBuilder.cs
@@ -0,0 +1,180 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.Device;
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item
+{
+ ///
+ /// Provides operations to manage the resourceAccountKeyAuthenticationMethods property of the microsoft.graph.authentication entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ResourceAccountKeyAuthenticationMethodItemRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to manage the device property of the microsoft.graph.resourceAccountKeyAuthenticationMethod entity.
+ public global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.Device.DeviceRequestBuilder Device
+ {
+ get => new global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.Device.DeviceRequestBuilder(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 ResourceAccountKeyAuthenticationMethodItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/resourceAccountKeyAuthenticationMethods/{resourceAccountKeyAuthenticationMethod%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 ResourceAccountKeyAuthenticationMethodItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/resourceAccountKeyAuthenticationMethods/{resourceAccountKeyAuthenticationMethod%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property resourceAccountKeyAuthenticationMethods for me
+ ///
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Represents the resource account key credentials registered to a user for authentication on shared devices.
+ ///
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.ResourceAccountKeyAuthenticationMethod.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property resourceAccountKeyAuthenticationMethods for me
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Represents the resource account key credentials registered to a user for authentication on shared devices.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// 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.
+ public global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.ResourceAccountKeyAuthenticationMethodItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.ResourceAccountKeyAuthenticationMethodItemRequestBuilder(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 ResourceAccountKeyAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Represents the resource account key credentials registered to a user for authentication on shared devices.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ResourceAccountKeyAuthenticationMethodItemRequestBuilderGetQueryParameters
+ {
+ /// 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 ResourceAccountKeyAuthenticationMethodItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/ResourceAccountKeyAuthenticationMethodsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/ResourceAccountKeyAuthenticationMethodsRequestBuilder.cs
new file mode 100644
index 00000000000..b9522168d40
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Me/Authentication/ResourceAccountKeyAuthenticationMethods/ResourceAccountKeyAuthenticationMethodsRequestBuilder.cs
@@ -0,0 +1,183 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Count;
+using Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item;
+using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.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.Me.Authentication.ResourceAccountKeyAuthenticationMethods
+{
+ ///
+ /// Provides operations to manage the resourceAccountKeyAuthenticationMethods property of the microsoft.graph.authentication entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ResourceAccountKeyAuthenticationMethodsRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ public global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the resourceAccountKeyAuthenticationMethods property of the microsoft.graph.authentication entity.
+ /// The unique identifier of resourceAccountKeyAuthenticationMethod
+ /// A
+ public global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.ResourceAccountKeyAuthenticationMethodItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("resourceAccountKeyAuthenticationMethod%2Did", position);
+ return new global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.Item.ResourceAccountKeyAuthenticationMethodItemRequestBuilder(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 ResourceAccountKeyAuthenticationMethodsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/resourceAccountKeyAuthenticationMethods{?%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 ResourceAccountKeyAuthenticationMethodsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/resourceAccountKeyAuthenticationMethods{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Represents the resource account key credentials registered to a user for authentication on shared devices.
+ ///
+ /// 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
+#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.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.ResourceAccountKeyAuthenticationMethodCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Represents the resource account key credentials registered to a user for authentication on shared devices.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// 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.
+ public global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.ResourceAccountKeyAuthenticationMethodsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.Me.Authentication.ResourceAccountKeyAuthenticationMethods.ResourceAccountKeyAuthenticationMethodsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Represents the resource account key credentials registered to a user for authentication on shared devices.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ResourceAccountKeyAuthenticationMethodsRequestBuilderGetQueryParameters
+ {
+ /// 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 ResourceAccountKeyAuthenticationMethodsRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs
index 6abf07f08e2..c3ec9e45f11 100644
--- a/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Delta/DeltaRequestBuilder.cs
@@ -34,7 +34,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
{
}
///
- /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time.
+ /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. Delta processing may create or update synchronization state stored in the mailbox. These writes are subject to mailbox storage quota enforcement. If a mailbox has reached its applicable storage quota, a mail folder delta request can return 403 ErrorQuotaExceeded, even when ordinary folder read requests continue to succeed. Reduce mailbox usage below the quota and retry the delta request. Applications should handle this error and direct affected users or administrators to address mailbox storage usage.
/// Find more info here
///
/// A
@@ -58,7 +58,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Me.MailFolders.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time.
+ /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. Delta processing may create or update synchronization state stored in the mailbox. These writes are subject to mailbox storage quota enforcement. If a mailbox has reached its applicable storage quota, a mail folder delta request can return 403 ErrorQuotaExceeded, even when ordinary folder read requests continue to succeed. Reduce mailbox usage below the quota and retry the delta request. Applications should handle this error and direct affected users or administrators to address mailbox storage usage.
/// Find more info here
///
/// A
@@ -83,7 +83,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Me.MailFolders.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time.
+ /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. Delta processing may create or update synchronization state stored in the mailbox. These writes are subject to mailbox storage quota enforcement. If a mailbox has reached its applicable storage quota, a mail folder delta request can return 403 ErrorQuotaExceeded, even when ordinary folder read requests continue to succeed. Reduce mailbox usage below the quota and retry the delta request. Applications should handle this error and direct affected users or administrators to address mailbox storage usage.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -111,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time.
+ /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. Delta processing may create or update synchronization state stored in the mailbox. These writes are subject to mailbox storage quota enforcement. If a mailbox has reached its applicable storage quota, a mail folder delta request can return 403 ErrorQuotaExceeded, even when ordinary folder read requests continue to succeed. Reduce mailbox usage below the quota and retry the delta request. Applications should handle this error and direct affected users or administrators to address mailbox storage usage.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class DeltaRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs
index 7d2720a7cc3..fc5f52ae3d7 100644
--- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Delta/DeltaRequestBuilder.cs
@@ -34,7 +34,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
{
}
///
- /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time.
+ /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. Delta processing may create or update synchronization state stored in the mailbox. These writes are subject to mailbox storage quota enforcement. If a mailbox has reached its applicable storage quota, a mail folder delta request can return 403 ErrorQuotaExceeded, even when ordinary folder read requests continue to succeed. Reduce mailbox usage below the quota and retry the delta request. Applications should handle this error and direct affected users or administrators to address mailbox storage usage.
/// Find more info here
///
/// A
@@ -58,7 +58,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Me.MailFolders.Item.ChildFolders.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time.
+ /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. Delta processing may create or update synchronization state stored in the mailbox. These writes are subject to mailbox storage quota enforcement. If a mailbox has reached its applicable storage quota, a mail folder delta request can return 403 ErrorQuotaExceeded, even when ordinary folder read requests continue to succeed. Reduce mailbox usage below the quota and retry the delta request. Applications should handle this error and direct affected users or administrators to address mailbox storage usage.
/// Find more info here
///
/// A
@@ -83,7 +83,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Me.MailFolders.Item.ChildFolders.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time.
+ /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. Delta processing may create or update synchronization state stored in the mailbox. These writes are subject to mailbox storage quota enforcement. If a mailbox has reached its applicable storage quota, a mail folder delta request can return 403 ErrorQuotaExceeded, even when ordinary folder read requests continue to succeed. Reduce mailbox usage below the quota and retry the delta request. Applications should handle this error and direct affected users or administrators to address mailbox storage usage.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -111,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time.
+ /// Get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. Delta processing may create or update synchronization state stored in the mailbox. These writes are subject to mailbox storage quota enforcement. If a mailbox has reached its applicable storage quota, a mail folder delta request can return 403 ErrorQuotaExceeded, even when ordinary folder read requests continue to succeed. Reduce mailbox usage below the quota and retry the delta request. Applications should handle this error and direct affected users or administrators to address mailbox storage usage.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class DeltaRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusyDetail.cs b/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusyDetail.cs
new file mode 100644
index 00000000000..e175fc8a588
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusyDetail.cs
@@ -0,0 +1,53 @@
+//
+#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.Models
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class AnonymousCalendarSharingFreeBusyDetail : global::Microsoft.Graph.Models.M365CapabilityBase, IParsable
+ #pragma warning restore CS1591
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public AnonymousCalendarSharingFreeBusyDetail() : base()
+ {
+ OdataType = "#microsoft.graph.anonymousCalendarSharingFreeBusyDetail";
+ }
+ ///
+ /// 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.Models.AnonymousCalendarSharingFreeBusyDetail CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Models.AnonymousCalendarSharingFreeBusyDetail();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public override IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>(base.GetFieldDeserializers())
+ {
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public override void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ base.Serialize(writer);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusyReviewer.cs b/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusyReviewer.cs
new file mode 100644
index 00000000000..296937d9aa8
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusyReviewer.cs
@@ -0,0 +1,53 @@
+//
+#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.Models
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class AnonymousCalendarSharingFreeBusyReviewer : global::Microsoft.Graph.Models.M365CapabilityBase, IParsable
+ #pragma warning restore CS1591
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public AnonymousCalendarSharingFreeBusyReviewer() : base()
+ {
+ OdataType = "#microsoft.graph.anonymousCalendarSharingFreeBusyReviewer";
+ }
+ ///
+ /// 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.Models.AnonymousCalendarSharingFreeBusyReviewer CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Models.AnonymousCalendarSharingFreeBusyReviewer();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public override IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>(base.GetFieldDeserializers())
+ {
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public override void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ base.Serialize(writer);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusySimple.cs b/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusySimple.cs
new file mode 100644
index 00000000000..e59fc96cf58
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Models/AnonymousCalendarSharingFreeBusySimple.cs
@@ -0,0 +1,53 @@
+//
+#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.Models
+{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ #pragma warning disable CS1591
+ public partial class AnonymousCalendarSharingFreeBusySimple : global::Microsoft.Graph.Models.M365CapabilityBase, IParsable
+ #pragma warning restore CS1591
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ public AnonymousCalendarSharingFreeBusySimple() : base()
+ {
+ OdataType = "#microsoft.graph.anonymousCalendarSharingFreeBusySimple";
+ }
+ ///
+ /// 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.Models.AnonymousCalendarSharingFreeBusySimple CreateFromDiscriminatorValue(IParseNode parseNode)
+ {
+ if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
+ return new global::Microsoft.Graph.Models.AnonymousCalendarSharingFreeBusySimple();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ /// A IDictionary<string, Action<IParseNode>>
+ public override IDictionary> GetFieldDeserializers()
+ {
+ return new Dictionary>(base.GetFieldDeserializers())
+ {
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public override void Serialize(ISerializationWriter writer)
+ {
+ if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
+ base.Serialize(writer);
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/Models/Authentication.cs b/src/Microsoft.Graph/Generated/Models/Authentication.cs
index 609f753f7a7..8e03a3c0cdc 100644
--- a/src/Microsoft.Graph/Generated/Models/Authentication.cs
+++ b/src/Microsoft.Graph/Generated/Models/Authentication.cs
@@ -155,6 +155,22 @@ public partial class Authentication : global::Microsoft.Graph.Models.Entity, IPa
get { return BackingStore?.Get>("platformCredentialMethods"); }
set { BackingStore?.Set("platformCredentialMethods", value); }
}
+#endif
+ /// Represents the resource account key credentials registered to a user for authentication on shared devices.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public List? ResourceAccountKeyAuthenticationMethods
+ {
+ get { return BackingStore?.Get?>("resourceAccountKeyAuthenticationMethods"); }
+ set { BackingStore?.Set("resourceAccountKeyAuthenticationMethods", value); }
+ }
+#nullable restore
+#else
+ public List ResourceAccountKeyAuthenticationMethods
+ {
+ get { return BackingStore?.Get>("resourceAccountKeyAuthenticationMethods"); }
+ set { BackingStore?.Set("resourceAccountKeyAuthenticationMethods", value); }
+ }
#endif
/// The software OATH time-based one-time password (TOTP) applications registered to a user for authentication.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -231,6 +247,7 @@ public override IDictionary> GetFieldDeserializers()
{ "passwordMethods", n => { PasswordMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.PasswordAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
{ "phoneMethods", n => { PhoneMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.PhoneAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
{ "platformCredentialMethods", n => { PlatformCredentialMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.PlatformCredentialAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
+ { "resourceAccountKeyAuthenticationMethods", n => { ResourceAccountKeyAuthenticationMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.ResourceAccountKeyAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
{ "softwareOathMethods", n => { SoftwareOathMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.SoftwareOathAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
{ "temporaryAccessPassMethods", n => { TemporaryAccessPassMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.TemporaryAccessPassAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
{ "windowsHelloForBusinessMethods", n => { WindowsHelloForBusinessMethods = n.GetCollectionOfObjectValues(global::Microsoft.Graph.Models.WindowsHelloForBusinessAuthenticationMethod.CreateFromDiscriminatorValue)?.AsList(); } },
@@ -253,6 +270,7 @@ public override void Serialize(ISerializationWriter writer)
writer.WriteCollectionOfObjectValues("passwordMethods", PasswordMethods);
writer.WriteCollectionOfObjectValues("phoneMethods", PhoneMethods);
writer.WriteCollectionOfObjectValues("platformCredentialMethods", PlatformCredentialMethods);
+ writer.WriteCollectionOfObjectValues("resourceAccountKeyAuthenticationMethods", ResourceAccountKeyAuthenticationMethods);
writer.WriteCollectionOfObjectValues("softwareOathMethods", SoftwareOathMethods);
writer.WriteCollectionOfObjectValues("temporaryAccessPassMethods", TemporaryAccessPassMethods);
writer.WriteCollectionOfObjectValues("windowsHelloForBusinessMethods", WindowsHelloForBusinessMethods);
diff --git a/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs b/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs
index e31e48b2c52..d46b5b3760c 100644
--- a/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs
+++ b/src/Microsoft.Graph/Generated/Models/AuthenticationMethod.cs
@@ -37,6 +37,7 @@ public DateTimeOffset? CreatedDateTime
"#microsoft.graph.phoneAuthenticationMethod" => new global::Microsoft.Graph.Models.PhoneAuthenticationMethod(),
"#microsoft.graph.platformCredentialAuthenticationMethod" => new global::Microsoft.Graph.Models.PlatformCredentialAuthenticationMethod(),
"#microsoft.graph.qrCodePinAuthenticationMethod" => new global::Microsoft.Graph.Models.QrCodePinAuthenticationMethod(),
+ "#microsoft.graph.resourceAccountKeyAuthenticationMethod" => new global::Microsoft.Graph.Models.ResourceAccountKeyAuthenticationMethod(),
"#microsoft.graph.softwareOathAuthenticationMethod" => new global::Microsoft.Graph.Models.SoftwareOathAuthenticationMethod(),
"#microsoft.graph.temporaryAccessPassAuthenticationMethod" => new global::Microsoft.Graph.Models.TemporaryAccessPassAuthenticationMethod(),
"#microsoft.graph.windowsHelloForBusinessAuthenticationMethod" => new global::Microsoft.Graph.Models.WindowsHelloForBusinessAuthenticationMethod(),
diff --git a/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs b/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs
index 5c2c8db2d3b..89e26280fa2 100644
--- a/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs
+++ b/src/Microsoft.Graph/Generated/Models/CustomExtensionClientConfiguration.cs
@@ -21,7 +21,7 @@ public IDictionary AdditionalData
}
/// Stores model information.
public IBackingStore BackingStore { get; private set; }
- /// The max number of retries that Microsoft Entra ID makes to the external API. Values of 0 or 1 are supported. If null, the default for the service applies.
+ /// The max number of retries that Microsoft Entra ID makes to the external API. For a roleManagementCustomCalloutExtension, the valid range is from 0 through 5. For other custom extensions, values of 0 or 1 are supported. If null, the default for the service applies.
public int? MaximumRetries
{
get { return BackingStore?.Get("maximumRetries"); }
@@ -43,7 +43,7 @@ public string OdataType
set { BackingStore?.Set("@odata.type", value); }
}
#endif
- /// The max duration in milliseconds that Microsoft Entra ID waits for a response from the external app before it shuts down the connection. The valid range is between 200 and 2000 milliseconds. Default duration is 1000.
+ /// The max duration in milliseconds that Microsoft Entra ID waits for a response from the external app before it shuts down the connection. For a roleManagementCustomCalloutExtension, the valid range is from 1000 through 60000 milliseconds. For other custom extensions, the valid range is from 200 through 2000 milliseconds and the default is 1000 milliseconds.
public int? TimeoutInMilliseconds
{
get { return BackingStore?.Get("timeoutInMilliseconds"); }
diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs
index dd74a12f8ff..1b38202b3ff 100644
--- a/src/Microsoft.Graph/Generated/Models/Entity.cs
+++ b/src/Microsoft.Graph/Generated/Models/Entity.cs
@@ -145,6 +145,9 @@ public Entity()
"#microsoft.graph.androidWorkProfileCompliancePolicy" => new global::Microsoft.Graph.Models.AndroidWorkProfileCompliancePolicy(),
"#microsoft.graph.androidWorkProfileCustomConfiguration" => new global::Microsoft.Graph.Models.AndroidWorkProfileCustomConfiguration(),
"#microsoft.graph.androidWorkProfileGeneralDeviceConfiguration" => new global::Microsoft.Graph.Models.AndroidWorkProfileGeneralDeviceConfiguration(),
+ "#microsoft.graph.anonymousCalendarSharingFreeBusyDetail" => new global::Microsoft.Graph.Models.AnonymousCalendarSharingFreeBusyDetail(),
+ "#microsoft.graph.anonymousCalendarSharingFreeBusyReviewer" => new global::Microsoft.Graph.Models.AnonymousCalendarSharingFreeBusyReviewer(),
+ "#microsoft.graph.anonymousCalendarSharingFreeBusySimple" => new global::Microsoft.Graph.Models.AnonymousCalendarSharingFreeBusySimple(),
"#microsoft.graph.anonymousGuestConversationMember" => new global::Microsoft.Graph.Models.AnonymousGuestConversationMember(),
"#microsoft.graph.appCatalogs" => new global::Microsoft.Graph.Models.AppCatalogs(),
"#microsoft.graph.appConsentApprovalRoute" => new global::Microsoft.Graph.Models.AppConsentApprovalRoute(),
@@ -831,6 +834,7 @@ public Entity()
"#microsoft.graph.reportsRoot" => new global::Microsoft.Graph.Models.ReportsRoot(),
"#microsoft.graph.request" => new global::Microsoft.Graph.Models.Request(),
"#microsoft.graph.resellerDelegatedAdminRelationship" => new global::Microsoft.Graph.Models.ResellerDelegatedAdminRelationship(),
+ "#microsoft.graph.resourceAccountKeyAuthenticationMethod" => new global::Microsoft.Graph.Models.ResourceAccountKeyAuthenticationMethod(),
"#microsoft.graph.resourceOperation" => new global::Microsoft.Graph.Models.ResourceOperation(),
"#microsoft.graph.resourceSpecificPermissionGrant" => new global::Microsoft.Graph.Models.ResourceSpecificPermissionGrant(),
"#microsoft.graph.restoreArtifactBase" => new global::Microsoft.Graph.Models.RestoreArtifactBase(),
diff --git a/src/Microsoft.Graph/Generated/Models/FileStorageContainerTypeRegistrationSettings.cs b/src/Microsoft.Graph/Generated/Models/FileStorageContainerTypeRegistrationSettings.cs
index 93e938b2776..b44458cd4fc 100644
--- a/src/Microsoft.Graph/Generated/Models/FileStorageContainerTypeRegistrationSettings.cs
+++ b/src/Microsoft.Graph/Generated/Models/FileStorageContainerTypeRegistrationSettings.cs
@@ -33,6 +33,12 @@ public bool? IsItemVersioningEnabled
get { return BackingStore?.Get("isItemVersioningEnabled"); }
set { BackingStore?.Set("isItemVersioningEnabled", value); }
}
+ /// Indicates whether Office apps (Word, Excel, and PowerPoint) for desktop and web are restricted for containers of this container type.
+ public bool? IsOfficeRestricted
+ {
+ get { return BackingStore?.Get("isOfficeRestricted"); }
+ set { BackingStore?.Set("isOfficeRestricted", value); }
+ }
/// Indicates whether search is enabled.
public bool? IsSearchEnabled
{
@@ -123,6 +129,7 @@ public virtual IDictionary> GetFieldDeserializers()
{
{ "isDiscoverabilityEnabled", n => { IsDiscoverabilityEnabled = n.GetBoolValue(); } },
{ "isItemVersioningEnabled", n => { IsItemVersioningEnabled = n.GetBoolValue(); } },
+ { "isOfficeRestricted", n => { IsOfficeRestricted = n.GetBoolValue(); } },
{ "isSearchEnabled", n => { IsSearchEnabled = n.GetBoolValue(); } },
{ "isSharingRestricted", n => { IsSharingRestricted = n.GetBoolValue(); } },
{ "itemMajorVersionLimit", n => { ItemMajorVersionLimit = n.GetLongValue(); } },
@@ -141,6 +148,7 @@ public virtual void Serialize(ISerializationWriter writer)
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteBoolValue("isDiscoverabilityEnabled", IsDiscoverabilityEnabled);
writer.WriteBoolValue("isItemVersioningEnabled", IsItemVersioningEnabled);
+ writer.WriteBoolValue("isOfficeRestricted", IsOfficeRestricted);
writer.WriteBoolValue("isSearchEnabled", IsSearchEnabled);
writer.WriteBoolValue("isSharingRestricted", IsSharingRestricted);
writer.WriteLongValue("itemMajorVersionLimit", ItemMajorVersionLimit);
diff --git a/src/Microsoft.Graph/Generated/Models/FileStorageContainerTypeSettings.cs b/src/Microsoft.Graph/Generated/Models/FileStorageContainerTypeSettings.cs
index 2065248faa3..e51f08acc8c 100644
--- a/src/Microsoft.Graph/Generated/Models/FileStorageContainerTypeSettings.cs
+++ b/src/Microsoft.Graph/Generated/Models/FileStorageContainerTypeSettings.cs
@@ -39,6 +39,12 @@ public bool? IsItemVersioningEnabled
get { return BackingStore?.Get