diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs
index 5209f73b73f..c5b818240b4 100644
--- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs
@@ -9,6 +9,7 @@
using Microsoft.Graph.DirectoryNamespace.OnPremisesSynchronization;
using Microsoft.Graph.DirectoryNamespace.PublicKeyInfrastructure;
using Microsoft.Graph.DirectoryNamespace.Recovery;
+using Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups;
using Microsoft.Graph.DirectoryNamespace.Subscriptions;
using Microsoft.Graph.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId;
using Microsoft.Graph.Models.ODataErrors;
@@ -74,6 +75,11 @@ public partial class DirectoryRequestBuilder : BaseRequestBuilder
{
get => new global::Microsoft.Graph.DirectoryNamespace.Recovery.RecoveryRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
+ public global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder RemoteTenantGroups
+ {
+ get => new global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Provides operations to manage the subscriptions property of the microsoft.graph.directory entity.
public global::Microsoft.Graph.DirectoryNamespace.Subscriptions.SubscriptionsRequestBuilder Subscriptions
{
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..d7c53808976
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs
@@ -0,0 +1,127 @@
+//
+#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.DirectoryNamespace.RemoteTenantGroups.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}/directory/remoteTenantGroups/$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}/directory/remoteTenantGroups/$count{?%24filter,%24search}", rawUrl)
+ {
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#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.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.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/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs
new file mode 100644
index 00000000000..d2d274de71e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs
@@ -0,0 +1,237 @@
+//
+#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.RemoteTenantGroups.Item
+{
+ ///
+ /// Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupItemRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public RemoteTenantGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/{remoteTenantGroup%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 RemoteTenantGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/{remoteTenantGroup%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property remoteTenantGroups for directory
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#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);
+ }
+ ///
+ /// Read the properties and relationships of a remoteTenantGroup object.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#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.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Update the navigation property remoteTenantGroups in directory
+ ///
+ /// A
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PatchAsync(global::Microsoft.Graph.Models.RemoteTenantGroup body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Models.RemoteTenantGroup body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property remoteTenantGroups for directory
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#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;
+ }
+ ///
+ /// Read the properties and relationships of a remoteTenantGroup object.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Update the navigation property remoteTenantGroups in directory
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.RemoteTenantGroup body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.RemoteTenantGroup body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder(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 RemoteTenantGroupItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Read the properties and relationships of a remoteTenantGroup object.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupItemRequestBuilderGetQueryParameters
+ {
+ /// 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 RemoteTenantGroupItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs
new file mode 100644
index 00000000000..0a6b1fbfd3d
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs
@@ -0,0 +1,246 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.Count;
+using Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.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.DirectoryNamespace.RemoteTenantGroups
+{
+ ///
+ /// Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupsRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
+ /// The unique identifier of remoteTenantGroup
+ /// A
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("remoteTenantGroup%2Did", position);
+ return new global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder(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 RemoteTenantGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups{?%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 RemoteTenantGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get a list of the remoteTenantGroup objects and their properties.
+ /// Find more info here
+ ///
+ /// A
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#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.RemoteTenantGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Create new navigation property to remoteTenantGroups for directory
+ ///
+ /// A
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ /// When receiving a 4XX or 5XX status code
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(global::Microsoft.Graph.Models.RemoteTenantGroup body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Models.RemoteTenantGroup 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.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get a list of the remoteTenantGroup objects and their properties.
+ ///
+ /// A
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#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;
+ }
+ ///
+ /// Create new navigation property to remoteTenantGroups for directory
+ ///
+ /// A
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.RemoteTenantGroup body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.RemoteTenantGroup 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.
+ [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")]
+ public global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get a list of the remoteTenantGroup objects and their properties.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupsRequestBuilderGetQueryParameters
+ {
+ /// 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 RemoteTenantGroupsRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RemoteTenantGroupsRequestBuilderPostRequestConfiguration : 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 dfbe022ced0..bae7848e34a 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
@@ -63,7 +63,7 @@ public async Task DeleteAsync(Action
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re
{
}
///
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class PermissionItemRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs
index 8ada263c522..f8286980074 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs
@@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
{
}
///
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
return new global::Microsoft.Graph.Drives.Item.List.Items.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter);
}
///
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class PermissionsRequestBuilderGetQueryParameters
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 dd14a65046b..a9b52fc5c6e 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
@@ -63,7 +63,7 @@ public async Task DeleteAsync(Action
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re
{
}
///
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class PermissionItemRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/PermissionsRequestBuilder.cs
index 2b11fa40f0b..7df972b5557 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/PermissionsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/List/Permissions/PermissionsRequestBuilder.cs
@@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
{
}
///
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
return new global::Microsoft.Graph.Drives.Item.List.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter);
}
///
- /// Get permissions from drives
+ /// The set of permissions for the item. Read-only. Nullable.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class PermissionsRequestBuilderGetQueryParameters
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 e9d03dedfc8..9d7dd6d1f48 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
@@ -63,7 +63,7 @@ public async Task DeleteAsync(Action
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re
{
}
///
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class PermissionItemRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs
index 724175260fa..b2970a881a0 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs
@@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
{
}
///
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
return new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter);
}
///
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class PermissionsRequestBuilderGetQueryParameters
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 6bfe85e9c3f..a9e53c8cc69 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
@@ -63,7 +63,7 @@ public async Task DeleteAsync(Action
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re
{
}
///
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class PermissionItemRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs
index c0dbf12ab64..19d2c3fcff7 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs
@@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
{
}
///
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Cancellation token to use when cancelling requests
@@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
///
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
return new global::Microsoft.Graph.Groups.Item.Sites.Item.Lists.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter);
}
///
- /// Get permissions from groups
+ /// The set of permissions for the item. Read-only. Nullable.
///
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class PermissionsRequestBuilderGetQueryParameters
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/CatalogsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/CatalogsRequestBuilder.cs
new file mode 100644
index 00000000000..7b3ad6d5f50
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/CatalogsRequestBuilder.cs
@@ -0,0 +1,238 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.IdentityGovernance.Catalogs.Count;
+using Microsoft.Graph.IdentityGovernance.Catalogs.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.IdentityGovernance.Catalogs
+{
+ ///
+ /// Provides operations to manage the catalogs property of the microsoft.graph.identityGovernance entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CatalogsRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the catalogs property of the microsoft.graph.identityGovernance entity.
+ /// The unique identifier of accessPackageCatalog
+ /// A
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackageCatalogItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("accessPackageCatalog%2Did", position);
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackageCatalogItemRequestBuilder(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 CatalogsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs{?%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 CatalogsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get catalogs from identityGovernance
+ ///
+ /// 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.AccessPackageCatalogCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Create new navigation property to catalogs for identityGovernance
+ ///
+ /// 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.Models.AccessPackageCatalog body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Models.AccessPackageCatalog 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.AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get catalogs from identityGovernance
+ ///
+ /// 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;
+ }
+ ///
+ /// Create new navigation property to catalogs for identityGovernance
+ ///
+ /// 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.Models.AccessPackageCatalog body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.AccessPackageCatalog 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.IdentityGovernance.Catalogs.CatalogsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.CatalogsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get catalogs from identityGovernance
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CatalogsRequestBuilderGetQueryParameters
+ {
+ /// 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 CatalogsRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CatalogsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..8bb24a0c053
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/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.IdentityGovernance.Catalogs.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}/identityGovernance/catalogs/$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}/identityGovernance/catalogs/$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.IdentityGovernance.Catalogs.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.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/IdentityGovernance/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs
new file mode 100644
index 00000000000..579d9340d9b
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs
@@ -0,0 +1,259 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages;
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions;
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles;
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceScopes;
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.Resources;
+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.IdentityGovernance.Catalogs.Item
+{
+ ///
+ /// Provides operations to manage the catalogs property of the microsoft.graph.identityGovernance entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackageCatalogItemRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to manage the accessPackages property of the microsoft.graph.accessPackageCatalog entity.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.AccessPackagesRequestBuilder AccessPackages
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.AccessPackagesRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the customWorkflowExtensions property of the microsoft.graph.accessPackageCatalog entity.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.CustomWorkflowExtensionsRequestBuilder CustomWorkflowExtensions
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.CustomWorkflowExtensionsRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the resourceRoles property of the microsoft.graph.accessPackageCatalog entity.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.ResourceRolesRequestBuilder ResourceRoles
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.ResourceRolesRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the resources property of the microsoft.graph.accessPackageCatalog entity.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.Resources.ResourcesRequestBuilder Resources
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.Resources.ResourcesRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the resourceScopes property of the microsoft.graph.accessPackageCatalog entity.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceScopes.ResourceScopesRequestBuilder ResourceScopes
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceScopes.ResourceScopesRequestBuilder(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 AccessPackageCatalogItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%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 AccessPackageCatalogItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property catalogs for identityGovernance
+ ///
+ /// 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);
+ }
+ ///
+ /// Get catalogs from identityGovernance
+ ///
+ /// 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.AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Update the navigation property catalogs in identityGovernance
+ ///
+ /// 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 PatchAsync(global::Microsoft.Graph.Models.AccessPackageCatalog body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Models.AccessPackageCatalog body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property catalogs for identityGovernance
+ ///
+ /// 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;
+ }
+ ///
+ /// Get catalogs from identityGovernance
+ ///
+ /// 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;
+ }
+ ///
+ /// Update the navigation property catalogs in identityGovernance
+ ///
+ /// 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 ToPatchRequestInformation(global::Microsoft.Graph.Models.AccessPackageCatalog body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.AccessPackageCatalog body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackageCatalogItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackageCatalogItemRequestBuilder(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 AccessPackageCatalogItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Get catalogs from identityGovernance
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackageCatalogItemRequestBuilderGetQueryParameters
+ {
+ /// 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 AccessPackageCatalogItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackageCatalogItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs
new file mode 100644
index 00000000000..b81df58bf0a
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs
@@ -0,0 +1,183 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.Count;
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.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.IdentityGovernance.Catalogs.Item.AccessPackages
+{
+ ///
+ /// Provides operations to manage the accessPackages property of the microsoft.graph.accessPackageCatalog entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackagesRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the accessPackages property of the microsoft.graph.accessPackageCatalog entity.
+ /// The unique identifier of accessPackage
+ /// A
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.Item.AccessPackageItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("accessPackage%2Did", position);
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.Item.AccessPackageItemRequestBuilder(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 AccessPackagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages{?%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 AccessPackagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// The access packages in this catalog. Read-only. Nullable.
+ ///
+ /// 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.AccessPackageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// The access packages in this catalog. Read-only. Nullable.
+ ///
+ /// 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.IdentityGovernance.Catalogs.Item.AccessPackages.AccessPackagesRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.AccessPackagesRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// The access packages in this catalog. Read-only. Nullable.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackagesRequestBuilderGetQueryParameters
+ {
+ /// 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 AccessPackagesRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..dd3e31ff917
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackages/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.IdentityGovernance.Catalogs.Item.AccessPackages.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}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages/$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}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages/$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.IdentityGovernance.Catalogs.Item.AccessPackages.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.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/IdentityGovernance/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs
new file mode 100644
index 00000000000..8e7e78caff3
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.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.IdentityGovernance.Catalogs.Item.AccessPackages.Item
+{
+ ///
+ /// Provides operations to manage the accessPackages property of the microsoft.graph.accessPackageCatalog entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackageItemRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public AccessPackageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%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 AccessPackageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// The access packages in this catalog. Read-only. Nullable.
+ ///
+ /// 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.AccessPackage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// The access packages in this catalog. Read-only. Nullable.
+ ///
+ /// 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.IdentityGovernance.Catalogs.Item.AccessPackages.Item.AccessPackageItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.AccessPackages.Item.AccessPackageItemRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// The access packages in this catalog. Read-only. Nullable.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackageItemRequestBuilderGetQueryParameters
+ {
+ /// 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 AccessPackageItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..f0d9b22b8c2
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/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.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.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}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/$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}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/$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.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.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/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs
new file mode 100644
index 00000000000..3e09e317f01
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs
@@ -0,0 +1,238 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count;
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.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.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions
+{
+ ///
+ /// Provides operations to manage the customWorkflowExtensions property of the microsoft.graph.accessPackageCatalog entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CustomWorkflowExtensionsRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to count the resources in the collection.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count.CountRequestBuilder Count
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count.CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Provides operations to manage the customWorkflowExtensions property of the microsoft.graph.accessPackageCatalog entity.
+ /// The unique identifier of customCalloutExtension
+ /// A
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item.CustomCalloutExtensionItemRequestBuilder this[string position]
+ {
+ get
+ {
+ var urlTplParams = new Dictionary(PathParameters);
+ urlTplParams.Add("customCalloutExtension%2Did", position);
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item.CustomCalloutExtensionItemRequestBuilder(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 CustomWorkflowExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions{?%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 CustomWorkflowExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
+ {
+ }
+ ///
+ /// Get customWorkflowExtensions from identityGovernance
+ ///
+ /// 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.CustomCalloutExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Create new navigation property to customWorkflowExtensions for identityGovernance
+ ///
+ /// 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.Models.CustomCalloutExtension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PostAsync(global::Microsoft.Graph.Models.CustomCalloutExtension 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.CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Get customWorkflowExtensions from identityGovernance
+ ///
+ /// 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;
+ }
+ ///
+ /// Create new navigation property to customWorkflowExtensions for identityGovernance
+ ///
+ /// 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.Models.CustomCalloutExtension body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.CustomCalloutExtension 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.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.CustomWorkflowExtensionsRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.CustomWorkflowExtensionsRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Get customWorkflowExtensions from identityGovernance
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CustomWorkflowExtensionsRequestBuilderGetQueryParameters
+ {
+ /// 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 CustomWorkflowExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs
new file mode 100644
index 00000000000..10e61afb07c
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs
@@ -0,0 +1,229 @@
+//
+#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.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item
+{
+ ///
+ /// Provides operations to manage the customWorkflowExtensions property of the microsoft.graph.accessPackageCatalog entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CustomCalloutExtensionItemRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CustomCalloutExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%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 CustomCalloutExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property customWorkflowExtensions for identityGovernance
+ ///
+ /// 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);
+ }
+ ///
+ /// Get customWorkflowExtensions from identityGovernance
+ ///
+ /// 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.CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Update the navigation property customWorkflowExtensions in identityGovernance
+ ///
+ /// 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 PatchAsync(global::Microsoft.Graph.Models.CustomCalloutExtension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Models.CustomCalloutExtension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property customWorkflowExtensions for identityGovernance
+ ///
+ /// 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;
+ }
+ ///
+ /// Get customWorkflowExtensions from identityGovernance
+ ///
+ /// 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;
+ }
+ ///
+ /// Update the navigation property customWorkflowExtensions in identityGovernance
+ ///
+ /// 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 ToPatchRequestInformation(global::Microsoft.Graph.Models.CustomCalloutExtension body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.CustomCalloutExtension body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item.CustomCalloutExtensionItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item.CustomCalloutExtensionItemRequestBuilder(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 CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Get customWorkflowExtensions from identityGovernance
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CustomCalloutExtensionItemRequestBuilderGetQueryParameters
+ {
+ /// 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 CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..94082e7a219
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/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.IdentityGovernance.Catalogs.Item.ResourceRoles.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}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/$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}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/$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.IdentityGovernance.Catalogs.Item.ResourceRoles.Count.CountRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.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/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs
new file mode 100644
index 00000000000..83cf4e20d68
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs
@@ -0,0 +1,235 @@
+//
+#pragma warning disable CS0618
+using Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource;
+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.IdentityGovernance.Catalogs.Item.ResourceRoles.Item
+{
+ ///
+ /// Provides operations to manage the resourceRoles property of the microsoft.graph.accessPackageCatalog entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackageResourceRoleItemRequestBuilder : BaseRequestBuilder
+ {
+ /// Provides operations to manage the resource property of the microsoft.graph.accessPackageResourceRole entity.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ResourceRequestBuilder Resource
+ {
+ get => new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ResourceRequestBuilder(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 AccessPackageResourceRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%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 AccessPackageResourceRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property resourceRoles for identityGovernance
+ ///
+ /// 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);
+ }
+ ///
+ /// Get resourceRoles from identityGovernance
+ ///
+ /// 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.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Update the navigation property resourceRoles in identityGovernance
+ ///
+ /// 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 PatchAsync(global::Microsoft.Graph.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#nullable restore
+#else
+ public async Task PatchAsync(global::Microsoft.Graph.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary>
+ {
+ { "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
+ };
+ return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Delete navigation property resourceRoles for identityGovernance
+ ///
+ /// 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;
+ }
+ ///
+ /// Get resourceRoles from identityGovernance
+ ///
+ /// 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;
+ }
+ ///
+ /// Update the navigation property resourceRoles in identityGovernance
+ ///
+ /// 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 ToPatchRequestInformation(global::Microsoft.Graph.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.AccessPackageResourceRole body, Action> requestConfiguration = default)
+ {
+#endif
+ if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ return requestInfo;
+ }
+ ///
+ /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
+ ///
+ /// A
+ /// The raw URL to use for the request builder.
+ public global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.AccessPackageResourceRoleItemRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.AccessPackageResourceRoleItemRequestBuilder(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 AccessPackageResourceRoleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Get resourceRoles from identityGovernance
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackageResourceRoleItemRequestBuilderGetQueryParameters
+ {
+ /// 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 AccessPackageResourceRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs
new file mode 100644
index 00000000000..1063b62162c
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.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.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace
+{
+ ///
+ /// Provides operations to manage the environment property of the microsoft.graph.accessPackageResource entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class EnvironmentRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/environment{?%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 EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.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.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
+ }
+ ///
+ /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.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.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl)
+ {
+ return new global::Microsoft.Graph.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter);
+ }
+ ///
+ /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class EnvironmentRequestBuilderGetQueryParameters
+ {
+ /// 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 EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration
+ {
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Refresh/RefreshRequestBuilder.cs
new file mode 100644
index 00000000000..6253fff3f73
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Refresh/RefreshRequestBuilder.cs
@@ -0,0 +1,96 @@
+//
+#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.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Refresh
+{
+ ///
+ /// Provides operations to call the refresh method.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class RefreshRequestBuilder : BaseRequestBuilder
+ {
+ ///
+ /// Instantiates a new