diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index ec272476..e5a80dfb 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -14,13 +14,13 @@ - - - - - - - + + + + + + + diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs index 134211e1..14141203 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin { /// /// Builds and executes requests for operations under \admin /// - public class AdminRequestBuilder : BaseRequestBuilder { + public class AdminRequestBuilder : BaseRequestBuilder + { /// The realms property - public RealmsRequestBuilder Realms { get => - new RealmsRequestBuilder(PathParameters, RequestAdapter); + public RealmsRequestBuilder Realms + { + get => new RealmsRequestBuilder(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 AdminRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin", pathParameters) { + public AdminRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin", 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 AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin", rawUrl) { + public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AdminEvents/AdminEventsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AdminEvents/AdminEventsRequestBuilder.cs index 0b39bd60..5508bfe8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AdminEvents/AdminEventsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AdminEvents/AdminEventsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents { /// /// Builds and executes requests for operations under \admin\realms\{realm}\admin-events /// - public class AdminEventsRequestBuilder : BaseRequestBuilder { + public class AdminEventsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AdminEventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/admin-events{?authClient*,authIpAddress*,authRealm*,authUser*,dateFrom*,dateTo*,first*,max*,operationTypes*,resourcePath*,resourceTypes*}", pathParameters) { + public AdminEventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/admin-events{?authClient*,authIpAddress*,authRealm*,authUser*,dateFrom*,dateTo*,first*,max*,operationTypes*,resourcePath*,resourceTypes*}", 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 AdminEventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/admin-events{?authClient*,authIpAddress*,authRealm*,authUser*,dateFrom*,dateTo*,first*,max*,operationTypes*,resourcePath*,resourceTypes*}", rawUrl) { + public AdminEventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/admin-events{?authClient*,authIpAddress*,authRealm*,authUser*,dateFrom*,dateTo*,first*,max*,operationTypes*,resourcePath*,resourceTypes*}", rawUrl) + { } /// /// Delete all admin events @@ -34,10 +37,12 @@ public AdminEventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AdminEventRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -66,12 +73,14 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/admin-events", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); return requestInfo; } @@ -82,10 +91,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -97,13 +108,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AdminEventsRequestBuilder WithUrl(string rawUrl) { + public AdminEventsRequestBuilder WithUrl(string rawUrl) + { return new AdminEventsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get admin events Returns all admin events, or filters events based on URL query parameters listed here /// - public class AdminEventsRequestBuilderGetQueryParameters { + public class AdminEventsRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("authClient")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/AttackDetectionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/AttackDetectionRequestBuilder.cs index 2fcba5f5..6ad918c0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/AttackDetectionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/AttackDetectionRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetectio /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection /// - public class AttackDetectionRequestBuilder : BaseRequestBuilder { + public class AttackDetectionRequestBuilder : BaseRequestBuilder + { /// The bruteForce property - public BruteForceRequestBuilder BruteForce { get => - new BruteForceRequestBuilder(PathParameters, RequestAdapter); + public BruteForceRequestBuilder BruteForce + { + get => new BruteForceRequestBuilder(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 AttackDetectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection", pathParameters) { + public AttackDetectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection", 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 AttackDetectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection", rawUrl) { + public AttackDetectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/BruteForceRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/BruteForceRequestBuilder.cs index fbb45939..21715b44 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/BruteForceRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/BruteForceRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetectio /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection\brute-force /// - public class BruteForceRequestBuilder : BaseRequestBuilder { + public class BruteForceRequestBuilder : BaseRequestBuilder + { /// The users property - public UsersRequestBuilder Users { get => - new UsersRequestBuilder(PathParameters, RequestAdapter); + public UsersRequestBuilder Users + { + get => new UsersRequestBuilder(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 BruteForceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force", pathParameters) { + public BruteForceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force", 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 BruteForceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force", rawUrl) { + public BruteForceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserGetResponse.cs index 683572a5..09c775b5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserGetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item { - public class WithUserGetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class WithUserGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public WithUserGetResponse() { + public WithUserGetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public WithUserGetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static WithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static WithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithUserGetResponse(); } @@ -27,15 +32,18 @@ public static WithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserItemRequestBuilder.cs index 7f07e98f..d76e96a1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserItemRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetectio /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection\brute-force\users\{userId} /// - public class WithUserItemRequestBuilder : BaseRequestBuilder { + public class WithUserItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithUserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users/{userId}", pathParameters) { + public WithUserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users/{userId}", 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 WithUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users/{userId}", rawUrl) { + public WithUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users/{userId}", rawUrl) + { } /// /// Clear any user login failures for the user This can release temporary disabled user @@ -33,10 +36,12 @@ public WithUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, WithUserGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -64,10 +71,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -80,10 +89,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,7 +106,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithUserItemRequestBuilder WithUrl(string rawUrl) { + public WithUserItemRequestBuilder WithUrl(string rawUrl) + { return new WithUserItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/UsersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/UsersRequestBuilder.cs index a065b88f..120b1102 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/UsersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/UsersRequestBuilder.cs @@ -12,28 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetectio /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection\brute-force\users /// - public class UsersRequestBuilder : BaseRequestBuilder { + public class UsersRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.attackDetection.bruteForce.users.item collection /// Unique identifier of the item /// A - public WithUserItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("userId", position); - return new WithUserItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithUserItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("userId", position); + return new WithUserItemRequestBuilder(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 UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users", pathParameters) { + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users", 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 UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users", rawUrl) { + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users", rawUrl) + { } /// /// Clear any user login failures for all users This can release temporary disabled users @@ -42,10 +49,12 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -57,10 +66,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -71,7 +82,8 @@ public RequestInformation ToDeleteRequestInformation(Action /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) { + public UsersRequestBuilder WithUrl(string rawUrl) + { return new UsersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticationRequestBuilder.cs index c0c4782b..0a419322 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticationRequestBuilder.cs @@ -21,68 +21,83 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication /// - public class AuthenticationRequestBuilder : BaseRequestBuilder { + public class AuthenticationRequestBuilder : BaseRequestBuilder + { /// The authenticatorProviders property - public AuthenticatorProvidersRequestBuilder AuthenticatorProviders { get => - new AuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); + public AuthenticatorProvidersRequestBuilder AuthenticatorProviders + { + get => new AuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The clientAuthenticatorProviders property - public ClientAuthenticatorProvidersRequestBuilder ClientAuthenticatorProviders { get => - new ClientAuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); + public ClientAuthenticatorProvidersRequestBuilder ClientAuthenticatorProviders + { + get => new ClientAuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(PathParameters, RequestAdapter); + public ConfigRequestBuilder Config + { + get => new ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The configDescription property - public ConfigDescriptionRequestBuilder ConfigDescription { get => - new ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); + public ConfigDescriptionRequestBuilder ConfigDescription + { + get => new ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); } /// The executions property - public ExecutionsRequestBuilder Executions { get => - new ExecutionsRequestBuilder(PathParameters, RequestAdapter); + public ExecutionsRequestBuilder Executions + { + get => new ExecutionsRequestBuilder(PathParameters, RequestAdapter); } /// The flows property - public FlowsRequestBuilder Flows { get => - new FlowsRequestBuilder(PathParameters, RequestAdapter); + public FlowsRequestBuilder Flows + { + get => new FlowsRequestBuilder(PathParameters, RequestAdapter); } /// The formActionProviders property - public FormActionProvidersRequestBuilder FormActionProviders { get => - new FormActionProvidersRequestBuilder(PathParameters, RequestAdapter); + public FormActionProvidersRequestBuilder FormActionProviders + { + get => new FormActionProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The formProviders property - public FormProvidersRequestBuilder FormProviders { get => - new FormProvidersRequestBuilder(PathParameters, RequestAdapter); + public FormProvidersRequestBuilder FormProviders + { + get => new FormProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The perClientConfigDescription property - public PerClientConfigDescriptionRequestBuilder PerClientConfigDescription { get => - new PerClientConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); + public PerClientConfigDescriptionRequestBuilder PerClientConfigDescription + { + get => new PerClientConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); } /// The registerRequiredAction property - public RegisterRequiredActionRequestBuilder RegisterRequiredAction { get => - new RegisterRequiredActionRequestBuilder(PathParameters, RequestAdapter); + public RegisterRequiredActionRequestBuilder RegisterRequiredAction + { + get => new RegisterRequiredActionRequestBuilder(PathParameters, RequestAdapter); } /// The requiredActions property - public RequiredActionsRequestBuilder RequiredActions { get => - new RequiredActionsRequestBuilder(PathParameters, RequestAdapter); + public RequiredActionsRequestBuilder RequiredActions + { + get => new RequiredActionsRequestBuilder(PathParameters, RequestAdapter); } /// The unregisteredRequiredActions property - public UnregisteredRequiredActionsRequestBuilder UnregisteredRequiredActions { get => - new UnregisteredRequiredActionsRequestBuilder(PathParameters, RequestAdapter); + public UnregisteredRequiredActionsRequestBuilder UnregisteredRequiredActions + { + get => new UnregisteredRequiredActionsRequestBuilder(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 AuthenticationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication", pathParameters) { + public AuthenticationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication", 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 AuthenticationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication", rawUrl) { + public AuthenticationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProviders.cs index b56971d4..1180eb96 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProviders.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders { - public class AuthenticatorProviders : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthenticatorProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public AuthenticatorProviders() { + public AuthenticatorProviders() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public AuthenticatorProviders() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticatorProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthenticatorProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthenticatorProviders(); } @@ -27,15 +32,18 @@ public static AuthenticatorProviders CreateFromDiscriminatorValue(IParseNode par /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProvidersRequestBuilder.cs index eb6c0bc1..426a3ffc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProvidersRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\authenticator-providers /// - public class AuthenticatorProvidersRequestBuilder : BaseRequestBuilder { + public class AuthenticatorProvidersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AuthenticatorProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/authenticator-providers", pathParameters) { + public AuthenticatorProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/authenticator-providers", 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 AuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/authenticator-providers", rawUrl) { + public AuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/authenticator-providers", rawUrl) + { } /// /// Get authenticator providers Returns a stream of authenticator providers. @@ -34,10 +37,12 @@ public AuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter reque /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AuthenticatorProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) { + public AuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) + { return new AuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProviders.cs index 6fb2263a..5a7e7a60 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProviders.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders { - public class ClientAuthenticatorProviders : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientAuthenticatorProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ClientAuthenticatorProviders() { + public ClientAuthenticatorProviders() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ClientAuthenticatorProviders() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientAuthenticatorProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientAuthenticatorProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientAuthenticatorProviders(); } @@ -27,15 +32,18 @@ public static ClientAuthenticatorProviders CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProvidersRequestBuilder.cs index fa0e902e..deae920b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProvidersRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\client-authenticator-providers /// - public class ClientAuthenticatorProvidersRequestBuilder : BaseRequestBuilder { + public class ClientAuthenticatorProvidersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientAuthenticatorProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/client-authenticator-providers", pathParameters) { + public ClientAuthenticatorProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/client-authenticator-providers", 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 ClientAuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/client-authenticator-providers", rawUrl) { + public ClientAuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/client-authenticator-providers", rawUrl) + { } /// /// Get client authenticator providers Returns a stream of client authenticator providers. @@ -34,10 +37,12 @@ public ClientAuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientAuthenticatorProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ClientAuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) { + public ClientAuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) + { return new ClientAuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/ConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/ConfigRequestBuilder.cs index d9eaf4fd..ecbb90e0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/ConfigRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/ConfigRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config /// - public class ConfigRequestBuilder : BaseRequestBuilder { + public class ConfigRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.config.item collection /// Configuration id /// A - public ConfigItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ConfigItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ConfigItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new ConfigItemRequestBuilder(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 ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config", pathParameters) { + public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config", 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 ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config", rawUrl) { + public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config", rawUrl) + { } /// /// Create new authenticator configuration @@ -46,10 +53,12 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -64,10 +73,12 @@ public async Task PostAsync(AuthenticatorConfigRepresentation body, Acti [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -81,7 +92,8 @@ public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresenta /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ConfigRequestBuilder WithUrl(string rawUrl) { + public ConfigRequestBuilder WithUrl(string rawUrl) + { return new ConfigRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/Item/ConfigItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/Item/ConfigItemRequestBuilder.cs index dfb9424c..4137c90a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/Item/ConfigItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/Item/ConfigItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config\{id} /// - public class ConfigItemRequestBuilder : BaseRequestBuilder { + public class ConfigItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config/{id}", pathParameters) { + public ConfigItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config/{id}", 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 ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config/{id}", rawUrl) { + public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config/{id}", rawUrl) + { } /// /// Delete authenticator configuration @@ -34,10 +37,12 @@ public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -66,10 +73,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +91,12 @@ public async Task PutAsync(AuthenticatorConfigRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +109,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +129,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -132,7 +147,8 @@ public RequestInformation ToPutRequestInformation(AuthenticatorConfigRepresentat /// /// A /// The raw URL to use for the request builder. - public ConfigItemRequestBuilder WithUrl(string rawUrl) { + public ConfigItemRequestBuilder WithUrl(string rawUrl) + { return new ConfigItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/ConfigDescriptionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/ConfigDescriptionRequestBuilder.cs index efc2e571..4266afbc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/ConfigDescriptionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/ConfigDescriptionRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config-description /// - public class ConfigDescriptionRequestBuilder : BaseRequestBuilder { + public class ConfigDescriptionRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.configDescription.item collection /// Unique identifier of the item /// A - public WithProviderItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("providerId", position); - return new WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithProviderItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("providerId", position); + return new WithProviderItemRequestBuilder(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 ConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description", pathParameters) { + public ConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description", 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 ConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description", rawUrl) { + public ConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/Item/WithProviderItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/Item/WithProviderItemRequestBuilder.cs index d00c9a69..baf8d3ba 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/Item/WithProviderItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/Item/WithProviderItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config-description\{providerId} /// - public class WithProviderItemRequestBuilder : BaseRequestBuilder { + public class WithProviderItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description/{providerId}", pathParameters) { + public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description/{providerId}", 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 WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description/{providerId}", rawUrl) { + public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description/{providerId}", rawUrl) + { } /// /// Get authenticator provider's configuration description @@ -35,10 +38,12 @@ public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, AuthenticatorConfigInfoRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithProviderItemRequestBuilder WithUrl(string rawUrl) { + public WithProviderItemRequestBuilder WithUrl(string rawUrl) + { return new WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/ExecutionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/ExecutionsRequestBuilder.cs index 2df066a6..dd1b4099 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/ExecutionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/ExecutionsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions /// - public class ExecutionsRequestBuilder : BaseRequestBuilder { + public class ExecutionsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.executions.item collection /// Unique identifier of the item /// A - public WithExecutionItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("executionId", position); - return new WithExecutionItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithExecutionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("executionId", position); + return new WithExecutionItemRequestBuilder(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 ExecutionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions", pathParameters) { + public ExecutionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions", 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 ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions", rawUrl) { + public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions", rawUrl) + { } /// /// Add new authentication execution @@ -45,10 +52,12 @@ public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AuthenticationExecutionRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AuthenticationExecutionRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(AuthenticationExecutionRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AuthenticationExecutionRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -62,10 +71,12 @@ public async Task PostAsync(AuthenticationExecutionRepresentation 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(AuthenticationExecutionRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AuthenticationExecutionRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticationExecutionRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AuthenticationExecutionRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -78,7 +89,8 @@ public RequestInformation ToPostRequestInformation(AuthenticationExecutionRepres /// /// A /// The raw URL to use for the request builder. - public ExecutionsRequestBuilder WithUrl(string rawUrl) { + public ExecutionsRequestBuilder WithUrl(string rawUrl) + { return new ExecutionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/ConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/ConfigRequestBuilder.cs index 60eb7afb..ab6e95bd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/ConfigRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/ConfigRequestBuilder.cs @@ -13,29 +13,36 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId}\config /// - public class ConfigRequestBuilder : BaseRequestBuilder { + public class ConfigRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.executions.item.config.item collection /// Configuration id /// A [Obsolete("")] - public ConfigItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ConfigItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ConfigItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new ConfigItemRequestBuilder(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 ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config", pathParameters) { + public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config", 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 ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config", rawUrl) { + public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config", rawUrl) + { } /// /// Update execution with new configuration @@ -46,10 +53,12 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -63,10 +72,12 @@ public async Task PostAsync(AuthenticatorConfigRepresentation body, Acti /// 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(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -79,7 +90,8 @@ public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresenta /// /// A /// The raw URL to use for the request builder. - public ConfigRequestBuilder WithUrl(string rawUrl) { + public ConfigRequestBuilder WithUrl(string rawUrl) + { return new ConfigRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/Item/ConfigItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/Item/ConfigItemRequestBuilder.cs index bd8b775e..3bd7346f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/Item/ConfigItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/Item/ConfigItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId}\config\{id} /// - public class ConfigItemRequestBuilder : BaseRequestBuilder { + public class ConfigItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}", pathParameters) { + public ConfigItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}", 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 ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}", rawUrl) { + public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}", rawUrl) + { } /// /// Get execution's configuration @@ -36,10 +39,12 @@ public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -52,10 +57,12 @@ public async Task GetAsync(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -68,7 +75,8 @@ public RequestInformation ToGetRequestInformation(ActionA /// The raw URL to use for the request builder. [Obsolete("")] - public ConfigItemRequestBuilder WithUrl(string rawUrl) { + public ConfigItemRequestBuilder WithUrl(string rawUrl) + { return new ConfigItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/LowerPriority/LowerPriorityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/LowerPriority/LowerPriorityRequestBuilder.cs index 6abb5618..7f0d838e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/LowerPriority/LowerPriorityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/LowerPriority/LowerPriorityRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId}\lower-priority /// - public class LowerPriorityRequestBuilder : BaseRequestBuilder { + public class LowerPriorityRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LowerPriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority", pathParameters) { + public LowerPriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority", 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 LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority", rawUrl) { + public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority", rawUrl) + { } /// /// Lower execution's priority @@ -33,10 +36,12 @@ public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task PostAsync(Action> /// 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(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public LowerPriorityRequestBuilder WithUrl(string rawUrl) { + public LowerPriorityRequestBuilder WithUrl(string rawUrl) + { return new LowerPriorityRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/RaisePriority/RaisePriorityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/RaisePriority/RaisePriorityRequestBuilder.cs index 15c1dc02..122f0c07 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/RaisePriority/RaisePriorityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/RaisePriority/RaisePriorityRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId}\raise-priority /// - public class RaisePriorityRequestBuilder : BaseRequestBuilder { + public class RaisePriorityRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RaisePriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority", pathParameters) { + public RaisePriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority", 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 RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority", rawUrl) { + public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority", rawUrl) + { } /// /// Raise execution's priority @@ -33,10 +36,12 @@ public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task PostAsync(Action> /// 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(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RaisePriorityRequestBuilder WithUrl(string rawUrl) { + public RaisePriorityRequestBuilder WithUrl(string rawUrl) + { return new RaisePriorityRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/WithExecutionItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/WithExecutionItemRequestBuilder.cs index 389ba274..cf0be5b8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/WithExecutionItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/WithExecutionItemRequestBuilder.cs @@ -14,32 +14,38 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId} /// - public class WithExecutionItemRequestBuilder : BaseRequestBuilder { + public class WithExecutionItemRequestBuilder : BaseRequestBuilder + { /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(PathParameters, RequestAdapter); + public ConfigRequestBuilder Config + { + get => new ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The lowerPriority property - public LowerPriorityRequestBuilder LowerPriority { get => - new LowerPriorityRequestBuilder(PathParameters, RequestAdapter); + public LowerPriorityRequestBuilder LowerPriority + { + get => new LowerPriorityRequestBuilder(PathParameters, RequestAdapter); } /// The raisePriority property - public RaisePriorityRequestBuilder RaisePriority { get => - new RaisePriorityRequestBuilder(PathParameters, RequestAdapter); + public RaisePriorityRequestBuilder RaisePriority + { + get => new RaisePriorityRequestBuilder(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 WithExecutionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}", pathParameters) { + public WithExecutionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}", 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 WithExecutionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}", rawUrl) { + public WithExecutionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}", rawUrl) + { } /// /// Delete execution @@ -48,10 +54,12 @@ public WithExecutionItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -64,10 +72,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +89,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,10 +107,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -109,7 +123,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithExecutionItemRequestBuilder WithUrl(string rawUrl) { + public WithExecutionItemRequestBuilder WithUrl(string rawUrl) + { return new WithExecutionItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/FlowsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/FlowsRequestBuilder.cs index 22c493e1..e08313b2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/FlowsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/FlowsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows /// - public class FlowsRequestBuilder : BaseRequestBuilder { + public class FlowsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.flows.item collection /// Flow id /// A - public FlowAliasItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("flowAlias%2Did", position); - return new FlowAliasItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public FlowAliasItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("flowAlias%2Did", position); + return new FlowAliasItemRequestBuilder(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 FlowsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows", pathParameters) { + public FlowsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows", 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 FlowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows", rawUrl) { + public FlowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows", rawUrl) + { } /// /// Get authentication flows Returns a stream of authentication flows. @@ -44,10 +51,12 @@ public FlowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AuthenticationFlowRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(AuthenticationFlowRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(AuthenticationFlowRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(AuthenticationFlowRepresentation body, Actio /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +109,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticationFlowRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(AuthenticationFlowRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -112,7 +127,8 @@ public RequestInformation ToPostRequestInformation(AuthenticationFlowRepresentat /// /// A /// The raw URL to use for the request builder. - public FlowsRequestBuilder WithUrl(string rawUrl) { + public FlowsRequestBuilder WithUrl(string rawUrl) + { return new FlowsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyPostRequestBody.cs index 5429d54f..2b29dd78 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyPostRequestBody.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy { - public class CopyPostRequestBody : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class CopyPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public CopyPostRequestBody() { + public CopyPostRequestBody() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public CopyPostRequestBody() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CopyPostRequestBody(); } @@ -27,15 +32,18 @@ public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyRequestBuilder.cs index 6541c0e6..3033fa79 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id}\copy /// - public class CopyRequestBuilder : BaseRequestBuilder { + public class CopyRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CopyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/copy", pathParameters) { + public CopyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/copy", 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 CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/copy", rawUrl) { + public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/copy", rawUrl) + { } /// /// Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object @@ -35,10 +38,12 @@ public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CopyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CopyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(CopyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(CopyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PostAsync(CopyPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,7 +75,8 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act /// /// A /// The raw URL to use for the request builder. - public CopyRequestBuilder WithUrl(string rawUrl) { + public CopyRequestBuilder WithUrl(string rawUrl) + { return new CopyRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionPostRequestBody.cs index 1f77683b..a4b24c55 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionPostRequestBody.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution { - public class ExecutionPostRequestBody : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ExecutionPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ExecutionPostRequestBody() { + public ExecutionPostRequestBody() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ExecutionPostRequestBody() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ExecutionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ExecutionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ExecutionPostRequestBody(); } @@ -27,15 +32,18 @@ public static ExecutionPostRequestBody CreateFromDiscriminatorValue(IParseNode p /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionRequestBuilder.cs index b9c3c6a4..91b94484 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id}\executions\execution /// - public class ExecutionRequestBuilder : BaseRequestBuilder { + public class ExecutionRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ExecutionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/execution", pathParameters) { + public ExecutionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/execution", 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 ExecutionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/execution", rawUrl) { + public ExecutionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/execution", rawUrl) + { } /// /// Add new authentication execution to a flow @@ -35,10 +38,12 @@ public ExecutionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ExecutionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ExecutionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ExecutionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ExecutionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PostAsync(ExecutionPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ExecutionPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ExecutionPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExecutionPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ExecutionPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,7 +75,8 @@ public RequestInformation ToPostRequestInformation(ExecutionPostRequestBody body /// /// A /// The raw URL to use for the request builder. - public ExecutionRequestBuilder WithUrl(string rawUrl) { + public ExecutionRequestBuilder WithUrl(string rawUrl) + { return new ExecutionRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/ExecutionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/ExecutionsRequestBuilder.cs index bc8b9c0c..069c5675 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/ExecutionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/ExecutionsRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id}\executions /// - public class ExecutionsRequestBuilder : BaseRequestBuilder { + public class ExecutionsRequestBuilder : BaseRequestBuilder + { /// The execution property - public ExecutionRequestBuilder Execution { get => - new ExecutionRequestBuilder(PathParameters, RequestAdapter); + public ExecutionRequestBuilder Execution + { + get => new ExecutionRequestBuilder(PathParameters, RequestAdapter); } /// The flow property - public FlowRequestBuilder Flow { get => - new FlowRequestBuilder(PathParameters, RequestAdapter); + public FlowRequestBuilder Flow + { + get => new FlowRequestBuilder(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 ExecutionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions", pathParameters) { + public ExecutionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions", 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 ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions", rawUrl) { + public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions", rawUrl) + { } /// /// Get authentication executions for a flow @@ -45,10 +50,12 @@ public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +69,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(AuthenticationExecutionInfoRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(AuthenticationExecutionInfoRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(AuthenticationExecutionInfoRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(AuthenticationExecutionInfoRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -78,10 +87,12 @@ public async Task PutAsync(AuthenticationExecutionInfoRepresentation bod /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,10 +106,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(AuthenticationExecutionInfoRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(AuthenticationExecutionInfoRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(AuthenticationExecutionInfoRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(AuthenticationExecutionInfoRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -111,7 +124,8 @@ public RequestInformation ToPutRequestInformation(AuthenticationExecutionInfoRep /// /// A /// The raw URL to use for the request builder. - public ExecutionsRequestBuilder WithUrl(string rawUrl) { + public ExecutionsRequestBuilder WithUrl(string rawUrl) + { return new ExecutionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowPostRequestBody.cs index f01411c9..536136c2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowPostRequestBody.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow { - public class FlowPostRequestBody : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class FlowPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public FlowPostRequestBody() { + public FlowPostRequestBody() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public FlowPostRequestBody() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static FlowPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static FlowPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FlowPostRequestBody(); } @@ -27,15 +32,18 @@ public static FlowPostRequestBody CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowRequestBuilder.cs index f48352e6..6491789e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id}\executions\flow /// - public class FlowRequestBuilder : BaseRequestBuilder { + public class FlowRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FlowRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/flow", pathParameters) { + public FlowRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/flow", 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 FlowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/flow", rawUrl) { + public FlowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/flow", rawUrl) + { } /// /// Add new flow with new execution to existing flow @@ -35,10 +38,12 @@ public FlowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(FlowPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(FlowPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(FlowPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(FlowPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PostAsync(FlowPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(FlowPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(FlowPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(FlowPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(FlowPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,7 +75,8 @@ public RequestInformation ToPostRequestInformation(FlowPostRequestBody body, Act /// /// A /// The raw URL to use for the request builder. - public FlowRequestBuilder WithUrl(string rawUrl) { + public FlowRequestBuilder WithUrl(string rawUrl) + { return new FlowRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/FlowAliasItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/FlowAliasItemRequestBuilder.cs index 5f9f20f5..e622c232 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/FlowAliasItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/FlowAliasItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id} /// - public class FlowAliasItemRequestBuilder : BaseRequestBuilder { + public class FlowAliasItemRequestBuilder : BaseRequestBuilder + { /// The copy property - public CopyRequestBuilder Copy { get => - new CopyRequestBuilder(PathParameters, RequestAdapter); + public CopyRequestBuilder Copy + { + get => new CopyRequestBuilder(PathParameters, RequestAdapter); } /// The executions property - public ExecutionsRequestBuilder Executions { get => - new ExecutionsRequestBuilder(PathParameters, RequestAdapter); + public ExecutionsRequestBuilder Executions + { + get => new ExecutionsRequestBuilder(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 FlowAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}", pathParameters) { + public FlowAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}", 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 FlowAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}", rawUrl) { + public FlowAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}", rawUrl) + { } /// /// Delete an authentication flow @@ -44,10 +49,12 @@ public FlowAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +67,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, AuthenticationFlowRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -77,10 +86,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(AuthenticationFlowRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(AuthenticationFlowRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -93,10 +104,12 @@ public async Task PutAsync(AuthenticationFlowRepresentation body, Action /// 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -109,10 +122,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -127,10 +142,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(AuthenticationFlowRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(AuthenticationFlowRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -143,7 +160,8 @@ public RequestInformation ToPutRequestInformation(AuthenticationFlowRepresentati /// /// A /// The raw URL to use for the request builder. - public FlowAliasItemRequestBuilder WithUrl(string rawUrl) { + public FlowAliasItemRequestBuilder WithUrl(string rawUrl) + { return new FlowAliasItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProviders.cs index 98efd7f8..bd554a80 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProviders.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders { - public class FormActionProviders : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class FormActionProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public FormActionProviders() { + public FormActionProviders() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public FormActionProviders() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static FormActionProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static FormActionProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FormActionProviders(); } @@ -27,15 +32,18 @@ public static FormActionProviders CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProvidersRequestBuilder.cs index 323ade68..e7817857 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProvidersRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\form-action-providers /// - public class FormActionProvidersRequestBuilder : BaseRequestBuilder { + public class FormActionProvidersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FormActionProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-action-providers", pathParameters) { + public FormActionProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-action-providers", 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 FormActionProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-action-providers", rawUrl) { + public FormActionProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-action-providers", rawUrl) + { } /// /// Get form action providers Returns a stream of form action providers. @@ -34,10 +37,12 @@ public FormActionProvidersRequestBuilder(string rawUrl, IRequestAdapter requestA /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, FormActionProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public FormActionProvidersRequestBuilder WithUrl(string rawUrl) { + public FormActionProvidersRequestBuilder WithUrl(string rawUrl) + { return new FormActionProvidersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProviders.cs index 9c32241b..9a2d6775 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProviders.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders { - public class FormProviders : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class FormProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public FormProviders() { + public FormProviders() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public FormProviders() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static FormProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static FormProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FormProviders(); } @@ -27,15 +32,18 @@ public static FormProviders CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProvidersRequestBuilder.cs index 2813c3fb..3a58798e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProvidersRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\form-providers /// - public class FormProvidersRequestBuilder : BaseRequestBuilder { + public class FormProvidersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FormProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-providers", pathParameters) { + public FormProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-providers", 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 FormProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-providers", rawUrl) { + public FormProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-providers", rawUrl) + { } /// /// Get form providers Returns a stream of form providers. @@ -34,10 +37,12 @@ public FormProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, FormProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public FormProvidersRequestBuilder WithUrl(string rawUrl) { + public FormProvidersRequestBuilder WithUrl(string rawUrl) + { return new FormProvidersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionGetResponse.cs index 85c454bf..c2e126f2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionGetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription { - public class PerClientConfigDescriptionGetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class PerClientConfigDescriptionGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public PerClientConfigDescriptionGetResponse() { + public PerClientConfigDescriptionGetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public PerClientConfigDescriptionGetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static PerClientConfigDescriptionGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static PerClientConfigDescriptionGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PerClientConfigDescriptionGetResponse(); } @@ -27,15 +32,18 @@ public static PerClientConfigDescriptionGetResponse CreateFromDiscriminatorValue /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionRequestBuilder.cs index 7890d05b..29ca47d7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\per-client-config-description /// - public class PerClientConfigDescriptionRequestBuilder : BaseRequestBuilder { + public class PerClientConfigDescriptionRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PerClientConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/per-client-config-description", pathParameters) { + public PerClientConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/per-client-config-description", 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 PerClientConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/per-client-config-description", rawUrl) { + public PerClientConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/per-client-config-description", rawUrl) + { } /// /// Get configuration descriptions for all clients @@ -34,10 +37,12 @@ public PerClientConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter r /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, PerClientConfigDescriptionGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,7 +71,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public PerClientConfigDescriptionRequestBuilder WithUrl(string rawUrl) { + public PerClientConfigDescriptionRequestBuilder WithUrl(string rawUrl) + { return new PerClientConfigDescriptionRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionPostRequestBody.cs index a39c7fe4..62c8448d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionPostRequestBody.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction { - public class RegisterRequiredActionPostRequestBody : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RegisterRequiredActionPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RegisterRequiredActionPostRequestBody() { + public RegisterRequiredActionPostRequestBody() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RegisterRequiredActionPostRequestBody() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RegisterRequiredActionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RegisterRequiredActionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RegisterRequiredActionPostRequestBody(); } @@ -27,15 +32,18 @@ public static RegisterRequiredActionPostRequestBody CreateFromDiscriminatorValue /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionRequestBuilder.cs index 28a6c20d..00e0e88a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\register-required-action /// - public class RegisterRequiredActionRequestBuilder : BaseRequestBuilder { + public class RegisterRequiredActionRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RegisterRequiredActionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/register-required-action", pathParameters) { + public RegisterRequiredActionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/register-required-action", 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 RegisterRequiredActionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/register-required-action", rawUrl) { + public RegisterRequiredActionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/register-required-action", rawUrl) + { } /// /// Register a new required actions @@ -34,10 +37,12 @@ public RegisterRequiredActionRequestBuilder(string rawUrl, IRequestAdapter reque /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RegisterRequiredActionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(RegisterRequiredActionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(RegisterRequiredActionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(RegisterRequiredActionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -51,10 +56,12 @@ public async Task PostAsync(RegisterRequiredActionPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RegisterRequiredActionPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(RegisterRequiredActionPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(RegisterRequiredActionPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(RegisterRequiredActionPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -67,7 +74,8 @@ public RequestInformation ToPostRequestInformation(RegisterRequiredActionPostReq /// /// A /// The raw URL to use for the request builder. - public RegisterRequiredActionRequestBuilder WithUrl(string rawUrl) { + public RegisterRequiredActionRequestBuilder WithUrl(string rawUrl) + { return new RegisterRequiredActionRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/LowerPriority/LowerPriorityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/LowerPriority/LowerPriorityRequestBuilder.cs index 9073ed9b..2bb48383 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/LowerPriority/LowerPriorityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/LowerPriority/LowerPriorityRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias}\lower-priority /// - public class LowerPriorityRequestBuilder : BaseRequestBuilder { + public class LowerPriorityRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LowerPriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority", pathParameters) { + public LowerPriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority", 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 LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority", rawUrl) { + public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority", rawUrl) + { } /// /// Lower required action's priority @@ -33,10 +36,12 @@ public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task PostAsync(Action> /// 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(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public LowerPriorityRequestBuilder WithUrl(string rawUrl) { + public LowerPriorityRequestBuilder WithUrl(string rawUrl) + { return new LowerPriorityRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/RaisePriority/RaisePriorityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/RaisePriority/RaisePriorityRequestBuilder.cs index 1cac212d..261a5b20 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/RaisePriority/RaisePriorityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/RaisePriority/RaisePriorityRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias}\raise-priority /// - public class RaisePriorityRequestBuilder : BaseRequestBuilder { + public class RaisePriorityRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RaisePriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority", pathParameters) { + public RaisePriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority", 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 RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority", rawUrl) { + public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority", rawUrl) + { } /// /// Raise required action's priority @@ -33,10 +36,12 @@ public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task PostAsync(Action> /// 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(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RaisePriorityRequestBuilder WithUrl(string rawUrl) { + public RaisePriorityRequestBuilder WithUrl(string rawUrl) + { return new RaisePriorityRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/WithAliasItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/WithAliasItemRequestBuilder.cs index e878ef7d..17e2794c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/WithAliasItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/WithAliasItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias} /// - public class WithAliasItemRequestBuilder : BaseRequestBuilder { + public class WithAliasItemRequestBuilder : BaseRequestBuilder + { /// The lowerPriority property - public LowerPriorityRequestBuilder LowerPriority { get => - new LowerPriorityRequestBuilder(PathParameters, RequestAdapter); + public LowerPriorityRequestBuilder LowerPriority + { + get => new LowerPriorityRequestBuilder(PathParameters, RequestAdapter); } /// The raisePriority property - public RaisePriorityRequestBuilder RaisePriority { get => - new RaisePriorityRequestBuilder(PathParameters, RequestAdapter); + public RaisePriorityRequestBuilder RaisePriority + { + get => new RaisePriorityRequestBuilder(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 WithAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}", pathParameters) { + public WithAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}", 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 WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}", rawUrl) { + public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}", rawUrl) + { } /// /// Delete required action @@ -44,10 +49,12 @@ public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +67,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, RequiredActionProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -76,10 +85,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RequiredActionProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RequiredActionProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RequiredActionProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RequiredActionProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -92,10 +103,12 @@ public async Task PutAsync(RequiredActionProviderRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -108,10 +121,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -126,10 +141,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RequiredActionProviderRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RequiredActionProviderRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RequiredActionProviderRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RequiredActionProviderRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -142,7 +159,8 @@ public RequestInformation ToPutRequestInformation(RequiredActionProviderRepresen /// /// A /// The raw URL to use for the request builder. - public WithAliasItemRequestBuilder WithUrl(string rawUrl) { + public WithAliasItemRequestBuilder WithUrl(string rawUrl) + { return new WithAliasItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/RequiredActionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/RequiredActionsRequestBuilder.cs index 745fda30..0e6576b5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/RequiredActionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/RequiredActionsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions /// - public class RequiredActionsRequestBuilder : BaseRequestBuilder { + public class RequiredActionsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.requiredActions.item collection /// Alias of required action /// A - public WithAliasItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("alias", position); - return new WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithAliasItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("alias", position); + return new WithAliasItemRequestBuilder(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 RequiredActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions", pathParameters) { + public RequiredActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions", 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 RequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions", rawUrl) { + public RequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions", rawUrl) + { } /// /// Get required actions Returns a stream of required actions. @@ -44,10 +51,12 @@ public RequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RequiredActionProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +86,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RequiredActionsRequestBuilder WithUrl(string rawUrl) { + public RequiredActionsRequestBuilder WithUrl(string rawUrl) + { return new RequiredActionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActions.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActions.cs index 1fef8b22..9f7fd180 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActions.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActions.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions { - public class UnregisteredRequiredActions : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UnregisteredRequiredActions : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UnregisteredRequiredActions() { + public UnregisteredRequiredActions() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UnregisteredRequiredActions() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UnregisteredRequiredActions CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UnregisteredRequiredActions CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UnregisteredRequiredActions(); } @@ -27,15 +32,18 @@ public static UnregisteredRequiredActions CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActionsRequestBuilder.cs index 8a52da70..60841bc2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActionsRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\unregistered-required-actions /// - public class UnregisteredRequiredActionsRequestBuilder : BaseRequestBuilder { + public class UnregisteredRequiredActionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UnregisteredRequiredActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/unregistered-required-actions", pathParameters) { + public UnregisteredRequiredActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/unregistered-required-actions", 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 UnregisteredRequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/unregistered-required-actions", rawUrl) { + public UnregisteredRequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/unregistered-required-actions", rawUrl) + { } /// /// Get unregistered required actions Returns a stream of unregistered required actions. @@ -34,10 +37,12 @@ public UnregisteredRequiredActionsRequestBuilder(string rawUrl, IRequestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UnregisteredRequiredActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public UnregisteredRequiredActionsRequestBuilder WithUrl(string rawUrl) { + public UnregisteredRequiredActionsRequestBuilder WithUrl(string rawUrl) + { return new UnregisteredRequiredActionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientDescriptionConverter/ClientDescriptionConverterRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientDescriptionConverter/ClientDescriptionConverterRequestBuilder.cs index d247fa66..b8098442 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientDescriptionConverter/ClientDescriptionConverterRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientDescriptionConverter/ClientDescriptionConverterRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescript /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-description-converter /// - public class ClientDescriptionConverterRequestBuilder : BaseRequestBuilder { + public class ClientDescriptionConverterRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientDescriptionConverterRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-description-converter", pathParameters) { + public ClientDescriptionConverterRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-description-converter", 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 ClientDescriptionConverterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-description-converter", rawUrl) { + public ClientDescriptionConverterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-description-converter", rawUrl) + { } /// /// Base path for importing clients under this realm. @@ -36,10 +39,12 @@ public ClientDescriptionConverterRequestBuilder(string rawUrl, IRequestAdapter r /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -53,10 +58,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -70,7 +77,8 @@ public RequestInformation ToPostRequestInformation(string body, Action /// A /// The raw URL to use for the request builder. - public ClientDescriptionConverterRequestBuilder WithUrl(string rawUrl) { + public ClientDescriptionConverterRequestBuilder WithUrl(string rawUrl) + { return new ClientDescriptionConverterRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/ClientPoliciesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/ClientPoliciesRequestBuilder.cs index 962f8c77..074b3b4d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/ClientPoliciesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/ClientPoliciesRequestBuilder.cs @@ -11,28 +11,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-policies /// - public class ClientPoliciesRequestBuilder : BaseRequestBuilder { + public class ClientPoliciesRequestBuilder : BaseRequestBuilder + { /// The policies property - public PoliciesRequestBuilder Policies { get => - new PoliciesRequestBuilder(PathParameters, RequestAdapter); + public PoliciesRequestBuilder Policies + { + get => new PoliciesRequestBuilder(PathParameters, RequestAdapter); } /// The profiles property - public ProfilesRequestBuilder Profiles { get => - new ProfilesRequestBuilder(PathParameters, RequestAdapter); + public ProfilesRequestBuilder Profiles + { + get => new ProfilesRequestBuilder(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 ClientPoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies", pathParameters) { + public ClientPoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies", 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 ClientPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies", rawUrl) { + public ClientPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Policies/PoliciesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Policies/PoliciesRequestBuilder.cs index 61fe41fb..d69aae5b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Policies/PoliciesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Policies/PoliciesRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-policies\policies /// - public class PoliciesRequestBuilder : BaseRequestBuilder { + public class PoliciesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/policies", pathParameters) { + public PoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/policies", 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 PoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/policies", rawUrl) { + public PoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/policies", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ClientPoliciesRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -46,10 +51,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientPoliciesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientPoliciesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientPoliciesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientPoliciesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -59,10 +66,12 @@ public async Task PutAsync(ClientPoliciesRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,10 +83,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientPoliciesRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientPoliciesRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientPoliciesRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientPoliciesRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -90,7 +101,8 @@ public RequestInformation ToPutRequestInformation(ClientPoliciesRepresentation b /// /// A /// The raw URL to use for the request builder. - public PoliciesRequestBuilder WithUrl(string rawUrl) { + public PoliciesRequestBuilder WithUrl(string rawUrl) + { return new PoliciesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Profiles/ProfilesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Profiles/ProfilesRequestBuilder.cs index f7fedf5f..587058aa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Profiles/ProfilesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Profiles/ProfilesRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-policies\profiles /// - public class ProfilesRequestBuilder : BaseRequestBuilder { + public class ProfilesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProfilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/profiles{?include%2Dglobal%2Dprofiles*}", pathParameters) { + public ProfilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/profiles{?include%2Dglobal%2Dprofiles*}", 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 ProfilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/profiles{?include%2Dglobal%2Dprofiles*}", rawUrl) { + public ProfilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/profiles{?include%2Dglobal%2Dprofiles*}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ClientProfilesRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -46,10 +51,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientProfilesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientProfilesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientProfilesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientProfilesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -59,10 +66,12 @@ public async Task PutAsync(ClientProfilesRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,13 +83,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientProfilesRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientProfilesRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientProfilesRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientProfilesRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, "{+baseurl}/admin/realms/{realm}/client-policies/profiles", PathParameters); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -90,10 +101,14 @@ public RequestInformation ToPutRequestInformation(ClientProfilesRepresentation b /// /// A /// The raw URL to use for the request builder. - public ProfilesRequestBuilder WithUrl(string rawUrl) { + public ProfilesRequestBuilder WithUrl(string rawUrl) + { return new ProfilesRequestBuilder(rawUrl, RequestAdapter); } - public class ProfilesRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class ProfilesRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("include%2Dglobal%2Dprofiles")] public bool? IncludeGlobalProfiles { get; set; } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/ClientRegistrationPolicyRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/ClientRegistrationPolicyRequestBuilder.cs index 23b41ac2..1e49e408 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/ClientRegistrationPolicyRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/ClientRegistrationPolicyRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistra /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-registration-policy /// - public class ClientRegistrationPolicyRequestBuilder : BaseRequestBuilder { + public class ClientRegistrationPolicyRequestBuilder : BaseRequestBuilder + { /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public ProvidersRequestBuilder Providers + { + get => new ProvidersRequestBuilder(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 ClientRegistrationPolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy", pathParameters) { + public ClientRegistrationPolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy", 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 ClientRegistrationPolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy", rawUrl) { + public ClientRegistrationPolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/Providers/ProvidersRequestBuilder.cs index aed9c629..1a019922 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/Providers/ProvidersRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistra /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-registration-policy\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + public class ProvidersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy/providers", 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 ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy/providers", rawUrl) + { } /// /// Base path for retrieve providers with the configProperties properly filled @@ -35,10 +38,12 @@ public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ComponentTypeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ProvidersRequestBuilder WithUrl(string rawUrl) { + public ProvidersRequestBuilder WithUrl(string rawUrl) + { return new ProvidersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/ClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/ClientScopesRequestBuilder.cs index 47b307fb..9ec2e81e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/ClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/ClientScopesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes { /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes /// - public class ClientScopesRequestBuilder : BaseRequestBuilder { + public class ClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientScopes.item collection /// Unique identifier of the item /// A - public ClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Dscope%2Did", position); - return new ClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Dscope%2Did", position); + return new ClientScopeItemRequestBuilder(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 ClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes", pathParameters) { + public ClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes", 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 ClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes", rawUrl) { + public ClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes", rawUrl) + { } /// /// Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm @@ -44,10 +51,12 @@ public ClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(ClientScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +109,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -112,7 +127,8 @@ public RequestInformation ToPostRequestInformation(ClientScopeRepresentation bod /// /// A /// The raw URL to use for the request builder. - public ClientScopesRequestBuilder WithUrl(string rawUrl) { + public ClientScopesRequestBuilder WithUrl(string rawUrl) + { return new ClientScopesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ClientScopeItemRequestBuilder.cs index 6969bd85..508442e9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ClientScopeItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id} /// - public class ClientScopeItemRequestBuilder : BaseRequestBuilder { + public class ClientScopeItemRequestBuilder : BaseRequestBuilder + { /// The protocolMappers property - public ProtocolMappersRequestBuilder ProtocolMappers { get => - new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + public ProtocolMappersRequestBuilder ProtocolMappers + { + get => new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public ScopeMappingsRequestBuilder ScopeMappings { get => - new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + public ScopeMappingsRequestBuilder ScopeMappings + { + get => new ScopeMappingsRequestBuilder(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 ClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}", pathParameters) { + public ClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}", 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 ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}", rawUrl) { + public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}", rawUrl) + { } /// /// Delete the client scope @@ -45,10 +50,12 @@ public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -61,10 +68,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -78,10 +87,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -94,10 +105,12 @@ public async Task PutAsync(ClientScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -110,10 +123,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -128,10 +143,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -144,7 +161,8 @@ public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body /// /// A /// The raw URL to use for the request builder. - public ClientScopeItemRequestBuilder WithUrl(string rawUrl) { + public ClientScopeItemRequestBuilder WithUrl(string rawUrl) + { return new ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs index 1d32c378..00a21a63 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\add-models /// - public class AddModelsRequestBuilder : BaseRequestBuilder { + public class AddModelsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/add-models", pathParameters) { + public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/add-models", 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 AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/add-models", rawUrl) { + public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/add-models", rawUrl) + { } /// /// Create multiple mappers @@ -35,10 +38,12 @@ public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,7 +75,8 @@ public RequestInformation ToPostRequestInformation(List /// A /// The raw URL to use for the request builder. - public AddModelsRequestBuilder WithUrl(string rawUrl) { + public AddModelsRequestBuilder WithUrl(string rawUrl) + { return new AddModelsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs index 304275af..ea28dd5b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\models\{id} /// - public class ModelsItemRequestBuilder : BaseRequestBuilder { + public class ModelsItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models/{id}", pathParameters) { + public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models/{id}", 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 ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models/{id}", rawUrl) { + public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models/{id}", rawUrl) + { } /// /// Delete the mapper @@ -34,10 +37,12 @@ public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -66,10 +73,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +91,12 @@ public async Task PutAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +109,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +129,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -132,7 +147,8 @@ public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation b /// /// A /// The raw URL to use for the request builder. - public ModelsItemRequestBuilder WithUrl(string rawUrl) { + public ModelsItemRequestBuilder WithUrl(string rawUrl) + { return new ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs index beaf3f0b..76d00275 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\models /// - public class ModelsRequestBuilder : BaseRequestBuilder { + public class ModelsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientScopes.item.protocolMappers.modelsRequests.item collection /// Mapper id /// A - public ModelsItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ModelsItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ModelsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new ModelsItemRequestBuilder(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 ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models", pathParameters) { + public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models", 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 ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models", rawUrl) { + public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models", rawUrl) + { } /// /// Get mappers @@ -44,10 +51,12 @@ public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +109,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -112,7 +127,8 @@ public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation /// /// A /// The raw URL to use for the request builder. - public ModelsRequestBuilder WithUrl(string rawUrl) { + public ModelsRequestBuilder WithUrl(string rawUrl) + { return new ModelsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs index cc6cff0e..e5df31d7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\protocol\{protocol} /// - public class WithProtocolItemRequestBuilder : BaseRequestBuilder { + public class WithProtocolItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", pathParameters) { + public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", 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 WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", rawUrl) { + public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", rawUrl) + { } /// /// Get mappers by name for a specific protocol @@ -35,10 +38,12 @@ public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithProtocolItemRequestBuilder WithUrl(string rawUrl) { + public WithProtocolItemRequestBuilder WithUrl(string rawUrl) + { return new WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs index 49b71633..a6cf5d08 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\protocol /// - public class ProtocolRequestBuilder : BaseRequestBuilder { + public class ProtocolRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientScopes.item.protocolMappers.protocol.item collection /// Unique identifier of the item /// A - public WithProtocolItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("protocol", position); - return new WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithProtocolItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("protocol", position); + return new WithProtocolItemRequestBuilder(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 ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol", pathParameters) { + public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol", 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 ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol", rawUrl) { + public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs index f4fb6617..2d204598 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs @@ -12,32 +12,38 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers /// - public class ProtocolMappersRequestBuilder : BaseRequestBuilder { + public class ProtocolMappersRequestBuilder : BaseRequestBuilder + { /// The addModels property - public AddModelsRequestBuilder AddModels { get => - new AddModelsRequestBuilder(PathParameters, RequestAdapter); + public AddModelsRequestBuilder AddModels + { + get => new AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public ModelsRequestBuilder Models { get => - new ModelsRequestBuilder(PathParameters, RequestAdapter); + public ModelsRequestBuilder Models + { + get => new ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public ProtocolRequestBuilder Protocol { get => - new ProtocolRequestBuilder(PathParameters, RequestAdapter); + public ProtocolRequestBuilder Protocol + { + get => new ProtocolRequestBuilder(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 ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers", pathParameters) { + public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers", 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 ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers", rawUrl) { + public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs index 7ff30528..54d4c91a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientScopes.item.scopeMappings.clients.item collection /// Unique identifier of the item /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new WithClientItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs index 4c6f1481..183c4f7a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\clients\{client}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", rawUrl) + { } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index bf235d25..7e6ef573 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\clients\{client}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs index 83d8d43e..f4f0f6d4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\clients\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + public class WithClientItemRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}", 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 WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}", rawUrl) + { } /// /// Remove client-level roles from the client's scope. @@ -45,10 +50,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { + public WithClientItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs index c7c0e5cb..8c6e8cae 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that are available to attach to this client's scope @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs index fb1c1bc0..12fb05f3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/RealmRequestBuilder.cs index a0fc3211..da06e48d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/RealmRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + public class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm", 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 RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm", rawUrl) + { } /// /// Remove a set of realm-level roles from the client's scope @@ -45,10 +50,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { + public RealmRequestBuilder WithUrl(string rawUrl) + { return new RealmRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs index 8971f1a1..6d959833 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs @@ -14,30 +14,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings /// - public class ScopeMappingsRequestBuilder : BaseRequestBuilder { + public class ScopeMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property [Obsolete("")] - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public ClientsRequestBuilder Clients + { + get => new ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public RealmRequestBuilder Realm + { + get => new RealmRequestBuilder(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 ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings", pathParameters) { + public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings", 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 ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings", rawUrl) { + public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings", rawUrl) + { } /// /// Get all scope mappings for the client @@ -48,10 +53,12 @@ public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -64,10 +71,12 @@ public async Task GetAsync(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -80,7 +89,8 @@ public RequestInformation ToGetRequestInformation(ActionA /// The raw URL to use for the request builder. [Obsolete("")] - public ScopeMappingsRequestBuilder WithUrl(string rawUrl) { + public ScopeMappingsRequestBuilder WithUrl(string rawUrl) + { return new ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStats.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStats.cs index c5d5d8af..a37f08f4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStats.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStats.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats { - public class ClientSessionStats : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientSessionStats : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ClientSessionStats() { + public ClientSessionStats() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ClientSessionStats() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientSessionStats CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientSessionStats CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientSessionStats(); } @@ -27,15 +32,18 @@ public static ClientSessionStats CreateFromDiscriminatorValue(IParseNode parseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStatsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStatsRequestBuilder.cs index 60d8ba7c..41397930 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStatsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStatsRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionS /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-session-stats /// - public class ClientSessionStatsRequestBuilder : BaseRequestBuilder { + public class ClientSessionStatsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientSessionStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-session-stats", pathParameters) { + public ClientSessionStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-session-stats", 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 ClientSessionStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-session-stats", rawUrl) { + public ClientSessionStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-session-stats", rawUrl) + { } /// /// The key is the client id, the value is the number of sessions that currently are active with that client. Only clients that actually have a session associated with them will be in this map. @@ -34,10 +37,12 @@ public ClientSessionStatsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientSessionStats.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ClientSessionStatsRequestBuilder WithUrl(string rawUrl) { + public ClientSessionStatsRequestBuilder WithUrl(string rawUrl) + { return new ClientSessionStatsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/ClientTemplatesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/ClientTemplatesRequestBuilder.cs index 204bcea3..64241efc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/ClientTemplatesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/ClientTemplatesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates /// - public class ClientTemplatesRequestBuilder : BaseRequestBuilder { + public class ClientTemplatesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientTemplates.item collection /// Unique identifier of the item /// A - public ClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Dscope%2Did", position); - return new ClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Dscope%2Did", position); + return new ClientScopeItemRequestBuilder(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 ClientTemplatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates", pathParameters) { + public ClientTemplatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates", 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 ClientTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates", rawUrl) { + public ClientTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates", rawUrl) + { } /// /// Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm @@ -44,10 +51,12 @@ public ClientTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(ClientScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +109,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -112,7 +127,8 @@ public RequestInformation ToPostRequestInformation(ClientScopeRepresentation bod /// /// A /// The raw URL to use for the request builder. - public ClientTemplatesRequestBuilder WithUrl(string rawUrl) { + public ClientTemplatesRequestBuilder WithUrl(string rawUrl) + { return new ClientTemplatesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ClientScopeItemRequestBuilder.cs index 79d4a31d..67af544a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ClientScopeItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id} /// - public class ClientScopeItemRequestBuilder : BaseRequestBuilder { + public class ClientScopeItemRequestBuilder : BaseRequestBuilder + { /// The protocolMappers property - public ProtocolMappersRequestBuilder ProtocolMappers { get => - new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + public ProtocolMappersRequestBuilder ProtocolMappers + { + get => new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public ScopeMappingsRequestBuilder ScopeMappings { get => - new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + public ScopeMappingsRequestBuilder ScopeMappings + { + get => new ScopeMappingsRequestBuilder(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 ClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}", pathParameters) { + public ClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}", 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 ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}", rawUrl) { + public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}", rawUrl) + { } /// /// Delete the client scope @@ -45,10 +50,12 @@ public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -61,10 +68,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -78,10 +87,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -94,10 +105,12 @@ public async Task PutAsync(ClientScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -110,10 +123,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -128,10 +143,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -144,7 +161,8 @@ public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body /// /// A /// The raw URL to use for the request builder. - public ClientScopeItemRequestBuilder WithUrl(string rawUrl) { + public ClientScopeItemRequestBuilder WithUrl(string rawUrl) + { return new ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs index 31bb5eee..4b7ed5ee 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\add-models /// - public class AddModelsRequestBuilder : BaseRequestBuilder { + public class AddModelsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/add-models", pathParameters) { + public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/add-models", 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 AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/add-models", rawUrl) { + public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/add-models", rawUrl) + { } /// /// Create multiple mappers @@ -35,10 +38,12 @@ public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,7 +75,8 @@ public RequestInformation ToPostRequestInformation(List /// A /// The raw URL to use for the request builder. - public AddModelsRequestBuilder WithUrl(string rawUrl) { + public AddModelsRequestBuilder WithUrl(string rawUrl) + { return new AddModelsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs index de49c9f5..0919b377 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\models\{id} /// - public class ModelsItemRequestBuilder : BaseRequestBuilder { + public class ModelsItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models/{id}", pathParameters) { + public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models/{id}", 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 ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models/{id}", rawUrl) { + public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models/{id}", rawUrl) + { } /// /// Delete the mapper @@ -34,10 +37,12 @@ public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -66,10 +73,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +91,12 @@ public async Task PutAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +109,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +129,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -132,7 +147,8 @@ public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation b /// /// A /// The raw URL to use for the request builder. - public ModelsItemRequestBuilder WithUrl(string rawUrl) { + public ModelsItemRequestBuilder WithUrl(string rawUrl) + { return new ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs index 9d0c055d..bafe6731 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\models /// - public class ModelsRequestBuilder : BaseRequestBuilder { + public class ModelsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientTemplates.item.protocolMappers.modelsRequests.item collection /// Mapper id /// A - public ModelsItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ModelsItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ModelsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new ModelsItemRequestBuilder(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 ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models", pathParameters) { + public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models", 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 ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models", rawUrl) { + public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models", rawUrl) + { } /// /// Get mappers @@ -44,10 +51,12 @@ public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +109,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -112,7 +127,8 @@ public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation /// /// A /// The raw URL to use for the request builder. - public ModelsRequestBuilder WithUrl(string rawUrl) { + public ModelsRequestBuilder WithUrl(string rawUrl) + { return new ModelsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs index 22831c7f..2f7965e7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\protocol\{protocol} /// - public class WithProtocolItemRequestBuilder : BaseRequestBuilder { + public class WithProtocolItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", pathParameters) { + public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", 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 WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", rawUrl) { + public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", rawUrl) + { } /// /// Get mappers by name for a specific protocol @@ -35,10 +38,12 @@ public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithProtocolItemRequestBuilder WithUrl(string rawUrl) { + public WithProtocolItemRequestBuilder WithUrl(string rawUrl) + { return new WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs index ed3709d5..7a864324 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\protocol /// - public class ProtocolRequestBuilder : BaseRequestBuilder { + public class ProtocolRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientTemplates.item.protocolMappers.protocol.item collection /// Unique identifier of the item /// A - public WithProtocolItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("protocol", position); - return new WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithProtocolItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("protocol", position); + return new WithProtocolItemRequestBuilder(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 ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol", pathParameters) { + public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol", 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 ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol", rawUrl) { + public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs index cbe7d046..7d87eba9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs @@ -12,32 +12,38 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers /// - public class ProtocolMappersRequestBuilder : BaseRequestBuilder { + public class ProtocolMappersRequestBuilder : BaseRequestBuilder + { /// The addModels property - public AddModelsRequestBuilder AddModels { get => - new AddModelsRequestBuilder(PathParameters, RequestAdapter); + public AddModelsRequestBuilder AddModels + { + get => new AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public ModelsRequestBuilder Models { get => - new ModelsRequestBuilder(PathParameters, RequestAdapter); + public ModelsRequestBuilder Models + { + get => new ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public ProtocolRequestBuilder Protocol { get => - new ProtocolRequestBuilder(PathParameters, RequestAdapter); + public ProtocolRequestBuilder Protocol + { + get => new ProtocolRequestBuilder(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 ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers", pathParameters) { + public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers", 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 ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers", rawUrl) { + public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs index 2175a757..7747f8bb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientTemplates.item.scopeMappings.clients.item collection /// Unique identifier of the item /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new WithClientItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs index ef7318d1..3f66d993 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\clients\{client}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", rawUrl) + { } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index 34ac2db0..cbd5b250 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\clients\{client}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs index d0b90580..78c263d2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\clients\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + public class WithClientItemRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}", 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 WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}", rawUrl) + { } /// /// Remove client-level roles from the client's scope. @@ -45,10 +50,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { + public WithClientItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs index 559e4e1f..a67c4160 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that are available to attach to this client's scope @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs index 6ee9dfce..22a5b284 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/RealmRequestBuilder.cs index fc6474fd..c6df7322 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/RealmRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + public class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm", 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 RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm", rawUrl) + { } /// /// Remove a set of realm-level roles from the client's scope @@ -45,10 +50,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { + public RealmRequestBuilder WithUrl(string rawUrl) + { return new RealmRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs index 0385fe96..f65fa42d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs @@ -14,30 +14,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings /// - public class ScopeMappingsRequestBuilder : BaseRequestBuilder { + public class ScopeMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property [Obsolete("")] - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public ClientsRequestBuilder Clients + { + get => new ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public RealmRequestBuilder Realm + { + get => new RealmRequestBuilder(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 ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings", pathParameters) { + public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings", 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 ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings", rawUrl) { + public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings", rawUrl) + { } /// /// Get all scope mappings for the client @@ -48,10 +53,12 @@ public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -64,10 +71,12 @@ public async Task GetAsync(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -80,7 +89,8 @@ public RequestInformation ToGetRequestInformation(ActionA /// The raw URL to use for the request builder. [Obsolete("")] - public ScopeMappingsRequestBuilder WithUrl(string rawUrl) { + public ScopeMappingsRequestBuilder WithUrl(string rawUrl) + { return new ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/ClientsRequestBuilder.cs index 1c8496e8..10df2d10 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/ClientsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients { /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item collection /// id of client (not client-id!) /// A - public ClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Duuid", position); - return new ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Duuid", position); + return new ClientUuItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients{?clientId*,first*,max*,q*,search*,viewableOnly*}", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients{?clientId*,first*,max*,q*,search*,viewableOnly*}", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients{?clientId*,first*,max*,q*,search*,viewableOnly*}", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients{?clientId*,first*,max*,q*,search*,viewableOnly*}", rawUrl) + { } /// /// If a client can’t be retrieved from the storage due to a problem with the underlying storage, it is silently removed from the returned list. This ensures that concurrent modifications to the list don’t prevent callers from retrieving this list. @@ -44,10 +51,12 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -61,10 +70,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ClientRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ClientRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ClientRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ClientRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -77,10 +88,12 @@ public async Task PostAsync(ClientRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,13 +108,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ClientRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ClientRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClientRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ClientRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -111,13 +126,15 @@ public RequestInformation ToPostRequestInformation(ClientRepresentation body, Ac /// /// A /// The raw URL to use for the request builder. - public ClientsRequestBuilder WithUrl(string rawUrl) { + public ClientsRequestBuilder WithUrl(string rawUrl) + { return new ClientsRequestBuilder(rawUrl, RequestAdapter); } /// /// If a client can’t be retrieved from the storage due to a problem with the underlying storage, it is silently removed from the returned list. This ensures that concurrent modifications to the list don’t prevent callers from retrieving this list. /// - public class ClientsRequestBuilderGetQueryParameters { + public class ClientsRequestBuilderGetQueryParameters + { /// filter by clientId #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/AuthzRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/AuthzRequestBuilder.cs index 6f290727..ba874704 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/AuthzRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/AuthzRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz /// - public class AuthzRequestBuilder : BaseRequestBuilder { + public class AuthzRequestBuilder : BaseRequestBuilder + { /// The resourceServer property - public ResourceServerRequestBuilder ResourceServer { get => - new ResourceServerRequestBuilder(PathParameters, RequestAdapter); + public ResourceServerRequestBuilder ResourceServer + { + get => new ResourceServerRequestBuilder(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 AuthzRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz", pathParameters) { + public AuthzRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz", 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 AuthzRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz", rawUrl) { + public AuthzRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Import/ImportRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Import/ImportRequestBuilder.cs index fa261302..3a24f0ea 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Import/ImportRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Import/ImportRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\import /// - public class ImportRequestBuilder : BaseRequestBuilder { + public class ImportRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ImportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/import", pathParameters) { + public ImportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/import", 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 ImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/import", rawUrl) { + public ImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/import", rawUrl) + { } /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ResourceServerRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ResourceServerRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ResourceServerRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ResourceServerRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -46,10 +51,12 @@ public async Task PostAsync(ResourceServerRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ResourceServerRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ResourceServerRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourceServerRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ResourceServerRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -62,7 +69,8 @@ public RequestInformation ToPostRequestInformation(ResourceServerRepresentation /// /// A /// The raw URL to use for the request builder. - public ImportRequestBuilder WithUrl(string rawUrl) { + public ImportRequestBuilder WithUrl(string rawUrl) + { return new ImportRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Evaluate/EvaluateRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Evaluate/EvaluateRequestBuilder.cs index 774100c0..ac123f30 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Evaluate/EvaluateRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Evaluate/EvaluateRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\permission\evaluate /// - public class EvaluateRequestBuilder : BaseRequestBuilder { + public class EvaluateRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EvaluateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/evaluate", pathParameters) { + public EvaluateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/evaluate", 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 EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/evaluate", rawUrl) { + public EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/evaluate", rawUrl) + { } /// A /// The request body @@ -33,10 +36,12 @@ public EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(PolicyEvaluationRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(PolicyEvaluationRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(PolicyEvaluationRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(PolicyEvaluationRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -47,10 +52,12 @@ public async Task PostAsync(PolicyEvaluationRequest bo /// 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(PolicyEvaluationRequest body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -64,7 +71,8 @@ public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, /// /// A /// The raw URL to use for the request builder. - public EvaluateRequestBuilder WithUrl(string rawUrl) { + public EvaluateRequestBuilder WithUrl(string rawUrl) + { return new EvaluateRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/PermissionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/PermissionRequestBuilder.cs index c43ab9ec..7b0956ef 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/PermissionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/PermissionRequestBuilder.cs @@ -15,42 +15,50 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\permission /// - public class PermissionRequestBuilder : BaseRequestBuilder { + public class PermissionRequestBuilder : BaseRequestBuilder + { /// The evaluate property - public EvaluateRequestBuilder Evaluate { get => - new EvaluateRequestBuilder(PathParameters, RequestAdapter); + public EvaluateRequestBuilder Evaluate + { + get => new EvaluateRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public ProvidersRequestBuilder Providers + { + get => new ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The search property - public SearchRequestBuilder Search { get => - new SearchRequestBuilder(PathParameters, RequestAdapter); + public SearchRequestBuilder Search + { + get => new SearchRequestBuilder(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 PermissionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", pathParameters) { + public PermissionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", 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 PermissionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", rawUrl) { + public PermissionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", rawUrl) + { } /// A List<AbstractPolicyRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -61,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -74,10 +84,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,13 +101,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromScalar(RequestAdapter, "application/json", body); return requestInfo; @@ -105,10 +119,14 @@ public RequestInformation ToPostRequestInformation(string body, Action /// A /// The raw URL to use for the request builder. - public PermissionRequestBuilder WithUrl(string rawUrl) { + public PermissionRequestBuilder WithUrl(string rawUrl) + { return new PermissionRequestBuilder(rawUrl, RequestAdapter); } - public class PermissionRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class PermissionRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("fields")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Providers/ProvidersRequestBuilder.cs index 6b1260cd..e4b1a262 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Providers/ProvidersRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\permission\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + public class ProvidersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/providers", 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 ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/providers", rawUrl) + { } /// A List<PolicyProviderRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PolicyProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -45,10 +50,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,7 +67,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ProvidersRequestBuilder WithUrl(string rawUrl) { + public ProvidersRequestBuilder WithUrl(string rawUrl) + { return new ProvidersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Search/SearchRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Search/SearchRequestBuilder.cs index 072287b2..fa6fe51e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Search/SearchRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Search/SearchRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\permission\search /// - public class SearchRequestBuilder : BaseRequestBuilder { + public class SearchRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/search{?fields*,name*}", pathParameters) { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/search{?fields*,name*}", 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 SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/search{?fields*,name*}", rawUrl) { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/search{?fields*,name*}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -44,10 +49,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -59,10 +66,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SearchRequestBuilder WithUrl(string rawUrl) { + public SearchRequestBuilder WithUrl(string rawUrl) + { return new SearchRequestBuilder(rawUrl, RequestAdapter); } - public class SearchRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class SearchRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("fields")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Evaluate/EvaluateRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Evaluate/EvaluateRequestBuilder.cs index ea4a0d1d..60e713a4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Evaluate/EvaluateRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Evaluate/EvaluateRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\policy\evaluate /// - public class EvaluateRequestBuilder : BaseRequestBuilder { + public class EvaluateRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EvaluateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/evaluate", pathParameters) { + public EvaluateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/evaluate", 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 EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/evaluate", rawUrl) { + public EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/evaluate", rawUrl) + { } /// A /// The request body @@ -33,10 +36,12 @@ public EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(PolicyEvaluationRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(PolicyEvaluationRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(PolicyEvaluationRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(PolicyEvaluationRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -47,10 +52,12 @@ public async Task PostAsync(PolicyEvaluationRequest bo /// 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(PolicyEvaluationRequest body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -64,7 +71,8 @@ public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, /// /// A /// The raw URL to use for the request builder. - public EvaluateRequestBuilder WithUrl(string rawUrl) { + public EvaluateRequestBuilder WithUrl(string rawUrl) + { return new EvaluateRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/PolicyRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/PolicyRequestBuilder.cs index 3de8b466..13a2f9a9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/PolicyRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/PolicyRequestBuilder.cs @@ -15,42 +15,50 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\policy /// - public class PolicyRequestBuilder : BaseRequestBuilder { + public class PolicyRequestBuilder : BaseRequestBuilder + { /// The evaluate property - public EvaluateRequestBuilder Evaluate { get => - new EvaluateRequestBuilder(PathParameters, RequestAdapter); + public EvaluateRequestBuilder Evaluate + { + get => new EvaluateRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public ProvidersRequestBuilder Providers + { + get => new ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The search property - public SearchRequestBuilder Search { get => - new SearchRequestBuilder(PathParameters, RequestAdapter); + public SearchRequestBuilder Search + { + get => new SearchRequestBuilder(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 PolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", pathParameters) { + public PolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", 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 PolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", rawUrl) { + public PolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", rawUrl) + { } /// A List<AbstractPolicyRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -61,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -74,10 +84,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,13 +101,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromScalar(RequestAdapter, "application/json", body); return requestInfo; @@ -105,10 +119,14 @@ public RequestInformation ToPostRequestInformation(string body, Action /// A /// The raw URL to use for the request builder. - public PolicyRequestBuilder WithUrl(string rawUrl) { + public PolicyRequestBuilder WithUrl(string rawUrl) + { return new PolicyRequestBuilder(rawUrl, RequestAdapter); } - public class PolicyRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class PolicyRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("fields")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Providers/ProvidersRequestBuilder.cs index 7e15ec2d..78e8d3cd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Providers/ProvidersRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\policy\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + public class ProvidersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/providers", 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 ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/providers", rawUrl) + { } /// A List<PolicyProviderRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PolicyProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -45,10 +50,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,7 +67,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ProvidersRequestBuilder WithUrl(string rawUrl) { + public ProvidersRequestBuilder WithUrl(string rawUrl) + { return new ProvidersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Search/SearchRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Search/SearchRequestBuilder.cs index 3537b7a0..664fc9b7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Search/SearchRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Search/SearchRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\policy\search /// - public class SearchRequestBuilder : BaseRequestBuilder { + public class SearchRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/search{?fields*,name*}", pathParameters) { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/search{?fields*,name*}", 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 SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/search{?fields*,name*}", rawUrl) { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/search{?fields*,name*}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -44,10 +49,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -59,10 +66,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SearchRequestBuilder WithUrl(string rawUrl) { + public SearchRequestBuilder WithUrl(string rawUrl) + { return new SearchRequestBuilder(rawUrl, RequestAdapter); } - public class SearchRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class SearchRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("fields")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Attributes/AttributesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Attributes/AttributesRequestBuilder.cs index 9ce72fa9..4e855937 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Attributes/AttributesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Attributes/AttributesRequestBuilder.cs @@ -11,30 +11,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\{resource-id}\attributes /// - public class AttributesRequestBuilder : BaseRequestBuilder { + public class AttributesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AttributesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/attributes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public AttributesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/attributes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", 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 AttributesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/attributes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public AttributesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/attributes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -43,10 +48,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,10 +64,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AttributesRequestBuilder WithUrl(string rawUrl) { + public AttributesRequestBuilder WithUrl(string rawUrl) + { return new AttributesRequestBuilder(rawUrl, RequestAdapter); } - public class AttributesRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class AttributesRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Permissions/PermissionsRequestBuilder.cs index 669e0047..5a3ac6dd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Permissions/PermissionsRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\{resource-id}\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + public class PermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/permissions{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/permissions{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", 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 PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/permissions{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/permissions{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } /// A List<PolicyRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -45,10 +50,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +67,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { + public PermissionsRequestBuilder WithUrl(string rawUrl) + { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } - public class PermissionsRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class PermissionsRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/ResourceItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/ResourceItemRequestBuilder.cs index 044d41c4..42511dba 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/ResourceItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/ResourceItemRequestBuilder.cs @@ -15,41 +15,49 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\{resource-id} /// - public class ResourceItemRequestBuilder : BaseRequestBuilder { + public class ResourceItemRequestBuilder : BaseRequestBuilder + { /// The attributes property - public AttributesRequestBuilder Attributes { get => - new AttributesRequestBuilder(PathParameters, RequestAdapter); + public AttributesRequestBuilder Attributes + { + get => new AttributesRequestBuilder(PathParameters, RequestAdapter); } /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public PermissionsRequestBuilder Permissions + { + get => new PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The scopes property - public ScopesRequestBuilder Scopes { get => - new ScopesRequestBuilder(PathParameters, RequestAdapter); + public ScopesRequestBuilder Scopes + { + get => new ScopesRequestBuilder(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 ResourceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public ResourceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", 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 ResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public ResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -59,10 +67,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -72,10 +82,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ResourceRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ResourceRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ResourceRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ResourceRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -85,10 +97,12 @@ public async Task PutAsync(ResourceRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +112,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -113,10 +129,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ResourceRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ResourceRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ResourceRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ResourceRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -129,10 +147,14 @@ public RequestInformation ToPutRequestInformation(ResourceRepresentation body, A /// /// A /// The raw URL to use for the request builder. - public ResourceItemRequestBuilder WithUrl(string rawUrl) { + public ResourceItemRequestBuilder WithUrl(string rawUrl) + { return new ResourceItemRequestBuilder(rawUrl, RequestAdapter); } - public class ResourceItemRequestBuilderDeleteQueryParameters { + #pragma warning disable CS1591 + public class ResourceItemRequestBuilderDeleteQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] @@ -198,7 +220,10 @@ public class ResourceItemRequestBuilderDeleteQueryParameters { public string Uri { get; set; } #endif } - public class ResourceItemRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class ResourceItemRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] @@ -264,7 +289,10 @@ public class ResourceItemRequestBuilderGetQueryParameters { public string Uri { get; set; } #endif } - public class ResourceItemRequestBuilderPutQueryParameters { + #pragma warning disable CS1591 + public class ResourceItemRequestBuilderPutQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Scopes/ScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Scopes/ScopesRequestBuilder.cs index 754ca94c..d3f5333d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Scopes/ScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Scopes/ScopesRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\{resource-id}\scopes /// - public class ScopesRequestBuilder : BaseRequestBuilder { + public class ScopesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/scopes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/scopes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", 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 ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/scopes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/scopes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } /// A List<ScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -45,10 +50,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +67,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ScopesRequestBuilder WithUrl(string rawUrl) { + public ScopesRequestBuilder WithUrl(string rawUrl) + { return new ScopesRequestBuilder(rawUrl, RequestAdapter); } - public class ScopesRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class ScopesRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/ResourceRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/ResourceRequestBuilder.cs index b0d54476..4f67458d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/ResourceRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/ResourceRequestBuilder.cs @@ -14,42 +14,52 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource /// - public class ResourceRequestBuilder : BaseRequestBuilder { + public class ResourceRequestBuilder : BaseRequestBuilder + { /// The search property - public SearchRequestBuilder Search { get => - new SearchRequestBuilder(PathParameters, RequestAdapter); + public SearchRequestBuilder Search + { + get => new SearchRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.authz.resourceServer.resource.item collection /// Unique identifier of the item /// A - public ResourceItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("resource%2Did", position); - return new ResourceItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ResourceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("resource%2Did", position); + return new ResourceItemRequestBuilder(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 ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", 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 ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } /// A List<ResourceRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -61,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ResourceRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ResourceRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ResourceRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ResourceRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -74,10 +86,12 @@ public async Task PostAsync(ResourceRepresentation 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 ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,10 +103,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ResourceRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ResourceRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourceRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ResourceRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -106,10 +122,14 @@ public RequestInformation ToPostRequestInformation(ResourceRepresentation body, /// /// A /// The raw URL to use for the request builder. - public ResourceRequestBuilder WithUrl(string rawUrl) { + public ResourceRequestBuilder WithUrl(string rawUrl) + { return new ResourceRequestBuilder(rawUrl, RequestAdapter); } - public class ResourceRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class ResourceRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] @@ -175,7 +195,10 @@ public class ResourceRequestBuilderGetQueryParameters { public string Uri { get; set; } #endif } - public class ResourceRequestBuilderPostQueryParameters { + #pragma warning disable CS1591 + public class ResourceRequestBuilderPostQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Search/SearchRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Search/SearchRequestBuilder.cs index 2e5ddee5..6574aabc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Search/SearchRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Search/SearchRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\search /// - public class SearchRequestBuilder : BaseRequestBuilder { + public class SearchRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/search{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/search{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", 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 SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/search{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/search{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -44,10 +49,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -59,10 +66,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SearchRequestBuilder WithUrl(string rawUrl) { + public SearchRequestBuilder WithUrl(string rawUrl) + { return new SearchRequestBuilder(rawUrl, RequestAdapter); } - public class SearchRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class SearchRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/ResourceServerRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/ResourceServerRequestBuilder.cs index 4831af19..3eeba36e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/ResourceServerRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/ResourceServerRequestBuilder.cs @@ -18,54 +18,65 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server /// - public class ResourceServerRequestBuilder : BaseRequestBuilder { + public class ResourceServerRequestBuilder : BaseRequestBuilder + { /// The import property - public ImportRequestBuilder Import { get => - new ImportRequestBuilder(PathParameters, RequestAdapter); + public ImportRequestBuilder Import + { + get => new ImportRequestBuilder(PathParameters, RequestAdapter); } /// The permission property - public PermissionRequestBuilder Permission { get => - new PermissionRequestBuilder(PathParameters, RequestAdapter); + public PermissionRequestBuilder Permission + { + get => new PermissionRequestBuilder(PathParameters, RequestAdapter); } /// The policy property - public PolicyRequestBuilder Policy { get => - new PolicyRequestBuilder(PathParameters, RequestAdapter); + public PolicyRequestBuilder Policy + { + get => new PolicyRequestBuilder(PathParameters, RequestAdapter); } /// The resource property - public ResourceRequestBuilder Resource { get => - new ResourceRequestBuilder(PathParameters, RequestAdapter); + public ResourceRequestBuilder Resource + { + get => new ResourceRequestBuilder(PathParameters, RequestAdapter); } /// The scope property - public ScopeRequestBuilder Scope { get => - new ScopeRequestBuilder(PathParameters, RequestAdapter); + public ScopeRequestBuilder Scope + { + get => new ScopeRequestBuilder(PathParameters, RequestAdapter); } /// The settings property - public SettingsRequestBuilder Settings { get => - new SettingsRequestBuilder(PathParameters, RequestAdapter); + public SettingsRequestBuilder Settings + { + get => new SettingsRequestBuilder(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 ResourceServerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server", pathParameters) { + public ResourceServerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server", 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 ResourceServerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server", rawUrl) { + public ResourceServerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ResourceServerRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -75,10 +86,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ResourceServerRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ResourceServerRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ResourceServerRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ResourceServerRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -88,10 +101,12 @@ public async Task PutAsync(ResourceServerRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -103,10 +118,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ResourceServerRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ResourceServerRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ResourceServerRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ResourceServerRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -119,7 +136,8 @@ public RequestInformation ToPutRequestInformation(ResourceServerRepresentation b /// /// A /// The raw URL to use for the request builder. - public ResourceServerRequestBuilder WithUrl(string rawUrl) { + public ResourceServerRequestBuilder WithUrl(string rawUrl) + { return new ResourceServerRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Permissions/PermissionsRequestBuilder.cs index 4a2df966..dceef0ea 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Permissions/PermissionsRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope\{scope-id}\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + public class PermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/permissions", 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 PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/permissions", rawUrl) + { } /// A List<PolicyRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -45,10 +50,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,7 +67,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { + public PermissionsRequestBuilder WithUrl(string rawUrl) + { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Resources/ResourcesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Resources/ResourcesRequestBuilder.cs index 04d22e15..4100968e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Resources/ResourcesRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope\{scope-id}\resources /// - public class ResourcesRequestBuilder : BaseRequestBuilder { + public class ResourcesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResourcesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/resources", pathParameters) { + public ResourcesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/resources", 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 ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/resources", rawUrl) { + public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/resources", rawUrl) + { } /// A List<ResourceRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -45,10 +50,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,7 +67,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ResourcesRequestBuilder WithUrl(string rawUrl) { + public ResourcesRequestBuilder WithUrl(string rawUrl) + { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/ScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/ScopeItemRequestBuilder.cs index c45efffe..94abb135 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/ScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/ScopeItemRequestBuilder.cs @@ -14,38 +14,45 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope\{scope-id} /// - public class ScopeItemRequestBuilder : BaseRequestBuilder { + public class ScopeItemRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public PermissionsRequestBuilder Permissions + { + get => new PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The resources property - public ResourcesRequestBuilder Resources { get => - new ResourcesRequestBuilder(PathParameters, RequestAdapter); + public ResourcesRequestBuilder Resources + { + get => new ResourcesRequestBuilder(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 ScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}", pathParameters) { + public ScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}", 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 ScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}", rawUrl) { + public ScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -55,10 +62,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -69,10 +78,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +93,12 @@ public async Task PutAsync(ScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,10 +108,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -110,10 +125,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -126,7 +143,8 @@ public RequestInformation ToPutRequestInformation(ScopeRepresentation body, Acti /// /// A /// The raw URL to use for the request builder. - public ScopeItemRequestBuilder WithUrl(string rawUrl) { + public ScopeItemRequestBuilder WithUrl(string rawUrl) + { return new ScopeItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/ScopeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/ScopeRequestBuilder.cs index 4ee24d03..ef4f2d81 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/ScopeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/ScopeRequestBuilder.cs @@ -14,42 +14,52 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope /// - public class ScopeRequestBuilder : BaseRequestBuilder { + public class ScopeRequestBuilder : BaseRequestBuilder + { /// The search property - public SearchRequestBuilder Search { get => - new SearchRequestBuilder(PathParameters, RequestAdapter); + public SearchRequestBuilder Search + { + get => new SearchRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.authz.resourceServer.scope.item collection /// Unique identifier of the item /// A - public ScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("scope%2Did", position); - return new ScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("scope%2Did", position); + return new ScopeItemRequestBuilder(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 ScopeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope{?first*,max*,name*,scopeId*}", pathParameters) { + public ScopeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope{?first*,max*,name*,scopeId*}", 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 ScopeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope{?first*,max*,name*,scopeId*}", rawUrl) { + public ScopeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope{?first*,max*,name*,scopeId*}", rawUrl) + { } /// A List<ScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -61,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -74,10 +86,12 @@ public async Task PostAsync(ScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,13 +103,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -105,10 +121,14 @@ public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Act /// /// A /// The raw URL to use for the request builder. - public ScopeRequestBuilder WithUrl(string rawUrl) { + public ScopeRequestBuilder WithUrl(string rawUrl) + { return new ScopeRequestBuilder(rawUrl, RequestAdapter); } - public class ScopeRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class ScopeRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("first")] public int? First { get; set; } [QueryParameter("max")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Search/SearchRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Search/SearchRequestBuilder.cs index 2f5e8927..6a173813 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Search/SearchRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Search/SearchRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope\search /// - public class SearchRequestBuilder : BaseRequestBuilder { + public class SearchRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/search{?name*}", pathParameters) { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/search{?name*}", 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 SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/search{?name*}", rawUrl) { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/search{?name*}", rawUrl) + { } /// A List<ScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -45,10 +50,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +67,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SearchRequestBuilder WithUrl(string rawUrl) { + public SearchRequestBuilder WithUrl(string rawUrl) + { return new SearchRequestBuilder(rawUrl, RequestAdapter); } - public class SearchRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class SearchRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("name")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Settings/SettingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Settings/SettingsRequestBuilder.cs index fd346efa..65dcaee1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Settings/SettingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Settings/SettingsRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\settings /// - public class SettingsRequestBuilder : BaseRequestBuilder { + public class SettingsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/settings", pathParameters) { + public SettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/settings", 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 SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/settings", rawUrl) { + public SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/settings", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ResourceServerRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -44,10 +49,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -59,7 +66,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SettingsRequestBuilder WithUrl(string rawUrl) { + public SettingsRequestBuilder WithUrl(string rawUrl) + { return new SettingsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/CertificatesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/CertificatesRequestBuilder.cs index 93c2d898..59a78f73 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/CertificatesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/CertificatesRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates /// - public class CertificatesRequestBuilder : BaseRequestBuilder { + public class CertificatesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.certificates.item collection /// Unique identifier of the item /// A - public WithAttrItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("attr", position); - return new WithAttrItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithAttrItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attr", position); + return new WithAttrItemRequestBuilder(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 CertificatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates", pathParameters) { + public CertificatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates", 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 CertificatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates", rawUrl) { + public CertificatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Download/DownloadRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Download/DownloadRequestBuilder.cs index 9dad70c0..199217d3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Download/DownloadRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Download/DownloadRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\download /// - public class DownloadRequestBuilder : BaseRequestBuilder { + public class DownloadRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/download", pathParameters) { + public DownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/download", 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 DownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/download", rawUrl) { + public DownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/download", rawUrl) + { } /// /// Get a keystore file for the client, containing private key and public certificate @@ -36,10 +39,12 @@ public DownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(KeyStoreConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(KeyStoreConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(KeyStoreConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(KeyStoreConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -53,10 +58,12 @@ public async Task PostAsync(KeyStoreConfig body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -70,7 +77,8 @@ public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action /// A /// The raw URL to use for the request builder. - public DownloadRequestBuilder WithUrl(string rawUrl) { + public DownloadRequestBuilder WithUrl(string rawUrl) + { return new DownloadRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Generate/GenerateRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Generate/GenerateRequestBuilder.cs index 68186de1..f866a0aa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Generate/GenerateRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Generate/GenerateRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\generate /// - public class GenerateRequestBuilder : BaseRequestBuilder { + public class GenerateRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate", pathParameters) { + public GenerateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate", 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 GenerateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate", rawUrl) { + public GenerateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate", rawUrl) + { } /// /// Generate a new certificate with new key pair @@ -35,10 +38,12 @@ public GenerateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public GenerateRequestBuilder WithUrl(string rawUrl) { + public GenerateRequestBuilder WithUrl(string rawUrl) + { return new GenerateRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/GenerateAndDownload/GenerateAndDownloadRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/GenerateAndDownload/GenerateAndDownloadRequestBuilder.cs index ce96dff1..b896d450 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/GenerateAndDownload/GenerateAndDownloadRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/GenerateAndDownload/GenerateAndDownloadRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\generate-and-download /// - public class GenerateAndDownloadRequestBuilder : BaseRequestBuilder { + public class GenerateAndDownloadRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateAndDownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate-and-download", pathParameters) { + public GenerateAndDownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate-and-download", 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 GenerateAndDownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate-and-download", rawUrl) { + public GenerateAndDownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate-and-download", rawUrl) + { } /// /// Generate a new keypair and certificate, and get the private key fileGenerates a keypair and certificate and serves the private key in a specified keystore format.Only generated public certificate is saved in Keycloak DB - the private key is not. @@ -36,10 +39,12 @@ public GenerateAndDownloadRequestBuilder(string rawUrl, IRequestAdapter requestA /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(KeyStoreConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(KeyStoreConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(KeyStoreConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(KeyStoreConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -53,10 +58,12 @@ public async Task PostAsync(KeyStoreConfig body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -70,7 +77,8 @@ public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action /// A /// The raw URL to use for the request builder. - public GenerateAndDownloadRequestBuilder WithUrl(string rawUrl) { + public GenerateAndDownloadRequestBuilder WithUrl(string rawUrl) + { return new GenerateAndDownloadRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Upload/UploadRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Upload/UploadRequestBuilder.cs index 98bb6a0b..abb27a6b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Upload/UploadRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Upload/UploadRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\upload /// - public class UploadRequestBuilder : BaseRequestBuilder { + public class UploadRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload", pathParameters) { + public UploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload", 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 UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload", rawUrl) { + public UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload", rawUrl) + { } /// /// Upload certificate and eventually private key @@ -35,10 +38,12 @@ public UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public UploadRequestBuilder WithUrl(string rawUrl) { + public UploadRequestBuilder WithUrl(string rawUrl) + { return new UploadRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/UploadCertificate/UploadCertificateRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/UploadCertificate/UploadCertificateRequestBuilder.cs index b743a255..592b5793 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/UploadCertificate/UploadCertificateRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/UploadCertificate/UploadCertificateRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\upload-certificate /// - public class UploadCertificateRequestBuilder : BaseRequestBuilder { + public class UploadCertificateRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UploadCertificateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload-certificate", pathParameters) { + public UploadCertificateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload-certificate", 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 UploadCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload-certificate", rawUrl) { + public UploadCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload-certificate", rawUrl) + { } /// /// Upload only certificate, not private key @@ -35,10 +38,12 @@ public UploadCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public UploadCertificateRequestBuilder WithUrl(string rawUrl) { + public UploadCertificateRequestBuilder WithUrl(string rawUrl) + { return new UploadCertificateRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/WithAttrItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/WithAttrItemRequestBuilder.cs index ff6454ca..2e20a271 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/WithAttrItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/WithAttrItemRequestBuilder.cs @@ -17,40 +17,48 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr} /// - public class WithAttrItemRequestBuilder : BaseRequestBuilder { + public class WithAttrItemRequestBuilder : BaseRequestBuilder + { /// The download property - public DownloadRequestBuilder Download { get => - new DownloadRequestBuilder(PathParameters, RequestAdapter); + public DownloadRequestBuilder Download + { + get => new DownloadRequestBuilder(PathParameters, RequestAdapter); } /// The generate property - public GenerateRequestBuilder Generate { get => - new GenerateRequestBuilder(PathParameters, RequestAdapter); + public GenerateRequestBuilder Generate + { + get => new GenerateRequestBuilder(PathParameters, RequestAdapter); } /// The generateAndDownload property - public GenerateAndDownloadRequestBuilder GenerateAndDownload { get => - new GenerateAndDownloadRequestBuilder(PathParameters, RequestAdapter); + public GenerateAndDownloadRequestBuilder GenerateAndDownload + { + get => new GenerateAndDownloadRequestBuilder(PathParameters, RequestAdapter); } /// The upload property - public UploadRequestBuilder Upload { get => - new UploadRequestBuilder(PathParameters, RequestAdapter); + public UploadRequestBuilder Upload + { + get => new UploadRequestBuilder(PathParameters, RequestAdapter); } /// The uploadCertificate property - public UploadCertificateRequestBuilder UploadCertificate { get => - new UploadCertificateRequestBuilder(PathParameters, RequestAdapter); + public UploadCertificateRequestBuilder UploadCertificate + { + get => new UploadCertificateRequestBuilder(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 WithAttrItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}", pathParameters) { + public WithAttrItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}", 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 WithAttrItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}", rawUrl) { + public WithAttrItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}", rawUrl) + { } /// /// Get key info @@ -60,10 +68,12 @@ public WithAttrItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -75,10 +85,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -90,7 +102,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithAttrItemRequestBuilder WithUrl(string rawUrl) { + public WithAttrItemRequestBuilder WithUrl(string rawUrl) + { return new WithAttrItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/ClientSecretRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/ClientSecretRequestBuilder.cs index 0b4eb310..8ec71e32 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/ClientSecretRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/ClientSecretRequestBuilder.cs @@ -13,24 +13,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\client-secret /// - public class ClientSecretRequestBuilder : BaseRequestBuilder { + public class ClientSecretRequestBuilder : BaseRequestBuilder + { /// The rotated property - public RotatedRequestBuilder Rotated { get => - new RotatedRequestBuilder(PathParameters, RequestAdapter); + public RotatedRequestBuilder Rotated + { + get => new RotatedRequestBuilder(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 ClientSecretRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret", pathParameters) { + public ClientSecretRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret", 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 ClientSecretRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret", rawUrl) { + public ClientSecretRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret", rawUrl) + { } /// /// Get the client secret @@ -40,10 +44,12 @@ public ClientSecretRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -56,10 +62,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -71,10 +79,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -88,10 +98,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -103,7 +115,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ClientSecretRequestBuilder WithUrl(string rawUrl) { + public ClientSecretRequestBuilder WithUrl(string rawUrl) + { return new ClientSecretRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/Rotated/RotatedRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/Rotated/RotatedRequestBuilder.cs index ce37888b..4007043c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/Rotated/RotatedRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/Rotated/RotatedRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\client-secret\rotated /// - public class RotatedRequestBuilder : BaseRequestBuilder { + public class RotatedRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RotatedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret/rotated", pathParameters) { + public RotatedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret/rotated", 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 RotatedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret/rotated", rawUrl) { + public RotatedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret/rotated", rawUrl) + { } /// /// Invalidate the rotated secret for the client @@ -35,10 +38,12 @@ public RotatedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -66,10 +73,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -82,10 +91,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -97,7 +108,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RotatedRequestBuilder WithUrl(string rawUrl) { + public RotatedRequestBuilder WithUrl(string rawUrl) + { return new RotatedRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientUuItemRequestBuilder.cs index 0129be30..8b436b20 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientUuItemRequestBuilder.cs @@ -32,100 +32,123 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item { /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid} /// - public class ClientUuItemRequestBuilder : BaseRequestBuilder { + public class ClientUuItemRequestBuilder : BaseRequestBuilder + { /// The authz property - public AuthzRequestBuilder Authz { get => - new AuthzRequestBuilder(PathParameters, RequestAdapter); + public AuthzRequestBuilder Authz + { + get => new AuthzRequestBuilder(PathParameters, RequestAdapter); } /// The certificates property - public CertificatesRequestBuilder Certificates { get => - new CertificatesRequestBuilder(PathParameters, RequestAdapter); + public CertificatesRequestBuilder Certificates + { + get => new CertificatesRequestBuilder(PathParameters, RequestAdapter); } /// The clientSecret property - public ClientSecretRequestBuilder ClientSecret { get => - new ClientSecretRequestBuilder(PathParameters, RequestAdapter); + public ClientSecretRequestBuilder ClientSecret + { + get => new ClientSecretRequestBuilder(PathParameters, RequestAdapter); } /// The defaultClientScopes property - public DefaultClientScopesRequestBuilder DefaultClientScopes { get => - new DefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); + public DefaultClientScopesRequestBuilder DefaultClientScopes + { + get => new DefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The evaluateScopes property - public EvaluateScopesRequestBuilder EvaluateScopes { get => - new EvaluateScopesRequestBuilder(PathParameters, RequestAdapter); + public EvaluateScopesRequestBuilder EvaluateScopes + { + get => new EvaluateScopesRequestBuilder(PathParameters, RequestAdapter); } /// The installation property - public InstallationRequestBuilder Installation { get => - new InstallationRequestBuilder(PathParameters, RequestAdapter); + public InstallationRequestBuilder Installation + { + get => new InstallationRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public ManagementRequestBuilder Management + { + get => new ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The nodes property - public NodesRequestBuilder Nodes { get => - new NodesRequestBuilder(PathParameters, RequestAdapter); + public NodesRequestBuilder Nodes + { + get => new NodesRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessionCount property - public OfflineSessionCountRequestBuilder OfflineSessionCount { get => - new OfflineSessionCountRequestBuilder(PathParameters, RequestAdapter); + public OfflineSessionCountRequestBuilder OfflineSessionCount + { + get => new OfflineSessionCountRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessions property - public OfflineSessionsRequestBuilder OfflineSessions { get => - new OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); + public OfflineSessionsRequestBuilder OfflineSessions + { + get => new OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); } /// The optionalClientScopes property - public OptionalClientScopesRequestBuilder OptionalClientScopes { get => - new OptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); + public OptionalClientScopesRequestBuilder OptionalClientScopes + { + get => new OptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The protocolMappers property - public ProtocolMappersRequestBuilder ProtocolMappers { get => - new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + public ProtocolMappersRequestBuilder ProtocolMappers + { + get => new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The pushRevocation property - public PushRevocationRequestBuilder PushRevocation { get => - new PushRevocationRequestBuilder(PathParameters, RequestAdapter); + public PushRevocationRequestBuilder PushRevocation + { + get => new PushRevocationRequestBuilder(PathParameters, RequestAdapter); } /// The registrationAccessToken property - public RegistrationAccessTokenRequestBuilder RegistrationAccessToken { get => - new RegistrationAccessTokenRequestBuilder(PathParameters, RequestAdapter); + public RegistrationAccessTokenRequestBuilder RegistrationAccessToken + { + get => new RegistrationAccessTokenRequestBuilder(PathParameters, RequestAdapter); } /// The roles property - public RolesRequestBuilder Roles { get => - new RolesRequestBuilder(PathParameters, RequestAdapter); + public RolesRequestBuilder Roles + { + get => new RolesRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public ScopeMappingsRequestBuilder ScopeMappings { get => - new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + public ScopeMappingsRequestBuilder ScopeMappings + { + get => new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); } /// The serviceAccountUser property - public ServiceAccountUserRequestBuilder ServiceAccountUser { get => - new ServiceAccountUserRequestBuilder(PathParameters, RequestAdapter); + public ServiceAccountUserRequestBuilder ServiceAccountUser + { + get => new ServiceAccountUserRequestBuilder(PathParameters, RequestAdapter); } /// The sessionCount property - public SessionCountRequestBuilder SessionCount { get => - new SessionCountRequestBuilder(PathParameters, RequestAdapter); + public SessionCountRequestBuilder SessionCount + { + get => new SessionCountRequestBuilder(PathParameters, RequestAdapter); } /// The testNodesAvailable property - public TestNodesAvailableRequestBuilder TestNodesAvailable { get => - new TestNodesAvailableRequestBuilder(PathParameters, RequestAdapter); + public TestNodesAvailableRequestBuilder TestNodesAvailable + { + get => new TestNodesAvailableRequestBuilder(PathParameters, RequestAdapter); } /// The userSessions property - public UserSessionsRequestBuilder UserSessions { get => - new UserSessionsRequestBuilder(PathParameters, RequestAdapter); + public UserSessionsRequestBuilder UserSessions + { + get => new UserSessionsRequestBuilder(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 ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}", pathParameters) { + public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}", 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 ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}", rawUrl) { + public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}", rawUrl) + { } /// /// Delete the client @@ -134,10 +157,12 @@ public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -150,10 +175,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -167,10 +194,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ClientRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -183,10 +212,12 @@ public async Task PutAsync(ClientRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -199,10 +230,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -217,10 +250,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ClientRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -233,7 +268,8 @@ public RequestInformation ToPutRequestInformation(ClientRepresentation body, Act /// /// A /// The raw URL to use for the request builder. - public ClientUuItemRequestBuilder WithUrl(string rawUrl) { + public ClientUuItemRequestBuilder WithUrl(string rawUrl) + { return new ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/DefaultClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/DefaultClientScopesRequestBuilder.cs index c89b4805..803f73b7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/DefaultClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/DefaultClientScopesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.D /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\default-client-scopes /// - public class DefaultClientScopesRequestBuilder : BaseRequestBuilder { + public class DefaultClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.defaultClientScopes.item collection /// Unique identifier of the item /// A - public WithClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientScopeId", position); - return new WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientScopeId", position); + return new WithClientScopeItemRequestBuilder(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 DefaultClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes", pathParameters) { + public DefaultClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes", 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 DefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes", rawUrl) { + public DefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes", rawUrl) + { } /// /// Get default client scopes. Only name and ids are returned. @@ -44,10 +51,12 @@ public DefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestA /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +86,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public DefaultClientScopesRequestBuilder WithUrl(string rawUrl) { + public DefaultClientScopesRequestBuilder WithUrl(string rawUrl) + { return new DefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs index 4db64c9e..1afd11bb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs @@ -11,29 +11,34 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.D /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\default-client-scopes\{clientScopeId} /// - public class WithClientScopeItemRequestBuilder : BaseRequestBuilder { + public class WithClientScopeItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes/{clientScopeId}", pathParameters) { + public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes/{clientScopeId}", 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 WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes/{clientScopeId}", rawUrl) { + public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes/{clientScopeId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +47,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +61,12 @@ public async Task PutAsync(Action> /// 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +76,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -81,7 +92,8 @@ public RequestInformation ToPutRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { + public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/EvaluateScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/EvaluateScopesRequestBuilder.cs index 895408f4..3891eba0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/EvaluateScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/EvaluateScopesRequestBuilder.cs @@ -14,40 +14,48 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes /// - public class EvaluateScopesRequestBuilder : BaseRequestBuilder { + public class EvaluateScopesRequestBuilder : BaseRequestBuilder + { /// The generateExampleAccessToken property - public GenerateExampleAccessTokenRequestBuilder GenerateExampleAccessToken { get => - new GenerateExampleAccessTokenRequestBuilder(PathParameters, RequestAdapter); + public GenerateExampleAccessTokenRequestBuilder GenerateExampleAccessToken + { + get => new GenerateExampleAccessTokenRequestBuilder(PathParameters, RequestAdapter); } /// The generateExampleIdToken property - public GenerateExampleIdTokenRequestBuilder GenerateExampleIdToken { get => - new GenerateExampleIdTokenRequestBuilder(PathParameters, RequestAdapter); + public GenerateExampleIdTokenRequestBuilder GenerateExampleIdToken + { + get => new GenerateExampleIdTokenRequestBuilder(PathParameters, RequestAdapter); } /// The generateExampleUserinfo property - public GenerateExampleUserinfoRequestBuilder GenerateExampleUserinfo { get => - new GenerateExampleUserinfoRequestBuilder(PathParameters, RequestAdapter); + public GenerateExampleUserinfoRequestBuilder GenerateExampleUserinfo + { + get => new GenerateExampleUserinfoRequestBuilder(PathParameters, RequestAdapter); } /// The protocolMappers property - public ProtocolMappersRequestBuilder ProtocolMappers { get => - new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + public ProtocolMappersRequestBuilder ProtocolMappers + { + get => new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public ScopeMappingsRequestBuilder ScopeMappings { get => - new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + public ScopeMappingsRequestBuilder ScopeMappings + { + get => new ScopeMappingsRequestBuilder(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 EvaluateScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes", pathParameters) { + public EvaluateScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes", 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 EvaluateScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes", rawUrl) { + public EvaluateScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleAccessToken/GenerateExampleAccessTokenRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleAccessToken/GenerateExampleAccessTokenRequestBuilder.cs index 6ce63d0c..8d05e798 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleAccessToken/GenerateExampleAccessTokenRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleAccessToken/GenerateExampleAccessTokenRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\generate-example-access-token /// - public class GenerateExampleAccessTokenRequestBuilder : BaseRequestBuilder { + public class GenerateExampleAccessTokenRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateExampleAccessTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-access-token{?scope*,userId*}", pathParameters) { + public GenerateExampleAccessTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-access-token{?scope*,userId*}", 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 GenerateExampleAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-access-token{?scope*,userId*}", rawUrl) { + public GenerateExampleAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-access-token{?scope*,userId*}", rawUrl) + { } /// /// Create JSON with payload of example access token @@ -35,10 +38,12 @@ public GenerateExampleAccessTokenRequestBuilder(string rawUrl, IRequestAdapter r /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, AccessToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,13 +72,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public GenerateExampleAccessTokenRequestBuilder WithUrl(string rawUrl) { + public GenerateExampleAccessTokenRequestBuilder WithUrl(string rawUrl) + { return new GenerateExampleAccessTokenRequestBuilder(rawUrl, RequestAdapter); } /// /// Create JSON with payload of example access token /// - public class GenerateExampleAccessTokenRequestBuilderGetQueryParameters { + public class GenerateExampleAccessTokenRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleIdToken/GenerateExampleIdTokenRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleIdToken/GenerateExampleIdTokenRequestBuilder.cs index 4ae20212..2a1083d9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleIdToken/GenerateExampleIdTokenRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleIdToken/GenerateExampleIdTokenRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\generate-example-id-token /// - public class GenerateExampleIdTokenRequestBuilder : BaseRequestBuilder { + public class GenerateExampleIdTokenRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateExampleIdTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-id-token{?scope*,userId*}", pathParameters) { + public GenerateExampleIdTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-id-token{?scope*,userId*}", 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 GenerateExampleIdTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-id-token{?scope*,userId*}", rawUrl) { + public GenerateExampleIdTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-id-token{?scope*,userId*}", rawUrl) + { } /// /// Create JSON with payload of example id token @@ -35,10 +38,12 @@ public GenerateExampleIdTokenRequestBuilder(string rawUrl, IRequestAdapter reque /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, IDToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,13 +72,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public GenerateExampleIdTokenRequestBuilder WithUrl(string rawUrl) { + public GenerateExampleIdTokenRequestBuilder WithUrl(string rawUrl) + { return new GenerateExampleIdTokenRequestBuilder(rawUrl, RequestAdapter); } /// /// Create JSON with payload of example id token /// - public class GenerateExampleIdTokenRequestBuilderGetQueryParameters { + public class GenerateExampleIdTokenRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoGetResponse.cs index 99654249..915ec070 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoGetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo { - public class GenerateExampleUserinfoGetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class GenerateExampleUserinfoGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public GenerateExampleUserinfoGetResponse() { + public GenerateExampleUserinfoGetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public GenerateExampleUserinfoGetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static GenerateExampleUserinfoGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static GenerateExampleUserinfoGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GenerateExampleUserinfoGetResponse(); } @@ -27,15 +32,18 @@ public static GenerateExampleUserinfoGetResponse CreateFromDiscriminatorValue(IP /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoRequestBuilder.cs index 5701f438..66c69283 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\generate-example-userinfo /// - public class GenerateExampleUserinfoRequestBuilder : BaseRequestBuilder { + public class GenerateExampleUserinfoRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateExampleUserinfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-userinfo{?scope*,userId*}", pathParameters) { + public GenerateExampleUserinfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-userinfo{?scope*,userId*}", 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 GenerateExampleUserinfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-userinfo{?scope*,userId*}", rawUrl) { + public GenerateExampleUserinfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-userinfo{?scope*,userId*}", rawUrl) + { } /// /// Create JSON with payload of example user info @@ -34,10 +37,12 @@ public GenerateExampleUserinfoRequestBuilder(string rawUrl, IRequestAdapter requ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, GenerateExampleUserinfoGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,13 +71,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public GenerateExampleUserinfoRequestBuilder WithUrl(string rawUrl) { + public GenerateExampleUserinfoRequestBuilder WithUrl(string rawUrl) + { return new GenerateExampleUserinfoRequestBuilder(rawUrl, RequestAdapter); } /// /// Create JSON with payload of example user info /// - public class GenerateExampleUserinfoRequestBuilderGetQueryParameters { + public class GenerateExampleUserinfoRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ProtocolMappers/ProtocolMappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ProtocolMappers/ProtocolMappersRequestBuilder.cs index 881800a7..991fb909 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ProtocolMappers/ProtocolMappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ProtocolMappers/ProtocolMappersRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\protocol-mappers /// - public class ProtocolMappersRequestBuilder : BaseRequestBuilder { + public class ProtocolMappersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/protocol-mappers{?scope*}", pathParameters) { + public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/protocol-mappers{?scope*}", 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 ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/protocol-mappers{?scope*}", rawUrl) { + public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/protocol-mappers{?scope*}", rawUrl) + { } /// /// This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client. @@ -35,10 +38,12 @@ public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperEvaluationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(Action< /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ProtocolMappersRequestBuilder WithUrl(string rawUrl) { + public ProtocolMappersRequestBuilder WithUrl(string rawUrl) + { return new ProtocolMappersRequestBuilder(rawUrl, RequestAdapter); } /// /// This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client. /// - public class ProtocolMappersRequestBuilderGetQueryParameters { + public class ProtocolMappersRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/Granted/GrantedRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/Granted/GrantedRequestBuilder.cs index 4ce9fac5..d6cd715c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/Granted/GrantedRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/Granted/GrantedRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\scope-mappings\{roleContainerId}\granted /// - public class GrantedRequestBuilder : BaseRequestBuilder { + public class GrantedRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GrantedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted{?scope*}", pathParameters) { + public GrantedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted{?scope*}", 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 GrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted{?scope*}", rawUrl) { + public GrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted{?scope*}", rawUrl) + { } /// /// This contains scope mappings, which this client has directly, as well as scope mappings, which are granted to all client scopes, which are linked with this client. @@ -35,10 +38,12 @@ public GrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public GrantedRequestBuilder WithUrl(string rawUrl) { + public GrantedRequestBuilder WithUrl(string rawUrl) + { return new GrantedRequestBuilder(rawUrl, RequestAdapter); } /// /// This contains scope mappings, which this client has directly, as well as scope mappings, which are granted to all client scopes, which are linked with this client. /// - public class GrantedRequestBuilderGetQueryParameters { + public class GrantedRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/NotGranted/NotGrantedRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/NotGranted/NotGrantedRequestBuilder.cs index 841a6d92..856b3c05 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/NotGranted/NotGrantedRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/NotGranted/NotGrantedRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\scope-mappings\{roleContainerId}\not-granted /// - public class NotGrantedRequestBuilder : BaseRequestBuilder { + public class NotGrantedRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public NotGrantedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted{?scope*}", pathParameters) { + public NotGrantedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted{?scope*}", 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 NotGrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted{?scope*}", rawUrl) { + public NotGrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted{?scope*}", rawUrl) + { } /// /// Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()} @@ -35,10 +38,12 @@ public NotGrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public NotGrantedRequestBuilder WithUrl(string rawUrl) { + public NotGrantedRequestBuilder WithUrl(string rawUrl) + { return new NotGrantedRequestBuilder(rawUrl, RequestAdapter); } /// /// Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()} /// - public class NotGrantedRequestBuilderGetQueryParameters { + public class NotGrantedRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/WithRoleContainerItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/WithRoleContainerItemRequestBuilder.cs index 9b3312a9..f2037305 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/WithRoleContainerItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/WithRoleContainerItemRequestBuilder.cs @@ -11,28 +11,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\scope-mappings\{roleContainerId} /// - public class WithRoleContainerItemRequestBuilder : BaseRequestBuilder { + public class WithRoleContainerItemRequestBuilder : BaseRequestBuilder + { /// The granted property - public GrantedRequestBuilder Granted { get => - new GrantedRequestBuilder(PathParameters, RequestAdapter); + public GrantedRequestBuilder Granted + { + get => new GrantedRequestBuilder(PathParameters, RequestAdapter); } /// The notGranted property - public NotGrantedRequestBuilder NotGranted { get => - new NotGrantedRequestBuilder(PathParameters, RequestAdapter); + public NotGrantedRequestBuilder NotGranted + { + get => new NotGrantedRequestBuilder(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 WithRoleContainerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}", pathParameters) { + public WithRoleContainerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}", 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 WithRoleContainerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}", rawUrl) { + public WithRoleContainerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/ScopeMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/ScopeMappingsRequestBuilder.cs index a9ebdd15..96c4c9ea 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/ScopeMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/ScopeMappingsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\scope-mappings /// - public class ScopeMappingsRequestBuilder : BaseRequestBuilder { + public class ScopeMappingsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.evaluateScopes.scopeMappings.item collection /// either realm name OR client UUID /// A - public WithRoleContainerItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("roleContainerId", position); - return new WithRoleContainerItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithRoleContainerItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("roleContainerId", position); + return new WithRoleContainerItemRequestBuilder(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 ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings", pathParameters) { + public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings", 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 ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings", rawUrl) { + public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/InstallationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/InstallationRequestBuilder.cs index 9a4fce51..41e85ac8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/InstallationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/InstallationRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\installation /// - public class InstallationRequestBuilder : BaseRequestBuilder { + public class InstallationRequestBuilder : BaseRequestBuilder + { /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public ProvidersRequestBuilder Providers + { + get => new ProvidersRequestBuilder(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 InstallationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation", pathParameters) { + public InstallationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation", 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 InstallationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation", rawUrl) { + public InstallationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/Item/WithProviderItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/Item/WithProviderItemRequestBuilder.cs index 55cb6fed..94b0ee88 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/Item/WithProviderItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/Item/WithProviderItemRequestBuilder.cs @@ -11,30 +11,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\installation\providers\{providerId} /// - public class WithProviderItemRequestBuilder : BaseRequestBuilder { + public class WithProviderItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers/{providerId}", pathParameters) { + public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers/{providerId}", 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 WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers/{providerId}", rawUrl) { + public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers/{providerId}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -43,10 +48,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,7 +64,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithProviderItemRequestBuilder WithUrl(string rawUrl) { + public WithProviderItemRequestBuilder WithUrl(string rawUrl) + { return new WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/ProvidersRequestBuilder.cs index 262a61c0..2c51f5a5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/ProvidersRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\installation\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + public class ProvidersRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.installation.providers.item collection /// Unique identifier of the item /// A - public WithProviderItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("providerId", position); - return new WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithProviderItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("providerId", position); + return new WithProviderItemRequestBuilder(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 ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers", 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 ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/ManagementRequestBuilder.cs index dd5ff9e8..5b21e177 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/ManagementRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.M /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + public class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public PermissionsRequestBuilder Permissions + { + get => new PermissionsRequestBuilder(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 ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management", 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 ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/Permissions/PermissionsRequestBuilder.cs index 8c1e2387..a61f1115 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.M /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + public class PermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management/permissions", 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 PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management/permissions", rawUrl) + { } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference @@ -35,10 +38,12 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -52,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -68,10 +75,12 @@ public async Task PutAsync(ManagementPermissionRe /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +95,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -103,7 +114,8 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { + public PermissionsRequestBuilder WithUrl(string rawUrl) + { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/Item/WithNodeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/Item/WithNodeItemRequestBuilder.cs index 4787fd25..172f1f8f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/Item/WithNodeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/Item/WithNodeItemRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.N /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\nodes\{node} /// - public class WithNodeItemRequestBuilder : BaseRequestBuilder { + public class WithNodeItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithNodeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes/{node}", pathParameters) { + public WithNodeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes/{node}", 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 WithNodeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes/{node}", rawUrl) { + public WithNodeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes/{node}", rawUrl) + { } /// /// Unregister a cluster node from the client @@ -33,10 +36,12 @@ public WithNodeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToDeleteRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithNodeItemRequestBuilder WithUrl(string rawUrl) { + public WithNodeItemRequestBuilder WithUrl(string rawUrl) + { return new WithNodeItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesPostRequestBody.cs index 27ba84d6..34a59fa7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesPostRequestBody.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes { - public class NodesPostRequestBody : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class NodesPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public NodesPostRequestBody() { + public NodesPostRequestBody() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public NodesPostRequestBody() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static NodesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static NodesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new NodesPostRequestBody(); } @@ -27,15 +32,18 @@ public static NodesPostRequestBody CreateFromDiscriminatorValue(IParseNode parse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesRequestBuilder.cs index 27c543dc..8dd9947b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesRequestBuilder.cs @@ -12,28 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.N /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\nodes /// - public class NodesRequestBuilder : BaseRequestBuilder { + public class NodesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.nodes.item collection /// Unique identifier of the item /// A - public WithNodeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("node", position); - return new WithNodeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithNodeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("node", position); + return new WithNodeItemRequestBuilder(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 NodesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes", pathParameters) { + public NodesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes", 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 NodesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes", rawUrl) { + public NodesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes", rawUrl) + { } /// /// Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak @@ -43,10 +50,12 @@ public NodesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(NodesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(NodesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(NodesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(NodesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -60,10 +69,12 @@ public async Task PostAsync(NodesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(NodesPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(NodesPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(NodesPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(NodesPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -76,7 +87,8 @@ public RequestInformation ToPostRequestInformation(NodesPostRequestBody body, Ac /// /// A /// The raw URL to use for the request builder. - public NodesRequestBuilder WithUrl(string rawUrl) { + public NodesRequestBuilder WithUrl(string rawUrl) + { return new NodesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountGetResponse.cs index 5d72f8b5..e80f8820 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountGetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount { - public class OfflineSessionCountGetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class OfflineSessionCountGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public OfflineSessionCountGetResponse() { + public OfflineSessionCountGetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public OfflineSessionCountGetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static OfflineSessionCountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static OfflineSessionCountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new OfflineSessionCountGetResponse(); } @@ -27,15 +32,18 @@ public static OfflineSessionCountGetResponse CreateFromDiscriminatorValue(IParse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountRequestBuilder.cs index d5cc58a6..02446553 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.O /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\offline-session-count /// - public class OfflineSessionCountRequestBuilder : BaseRequestBuilder { + public class OfflineSessionCountRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public OfflineSessionCountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-session-count", pathParameters) { + public OfflineSessionCountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-session-count", 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 OfflineSessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-session-count", rawUrl) { + public OfflineSessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-session-count", rawUrl) + { } /// /// Get application offline session count Returns a number of offline user sessions associated with this client { "count": number } @@ -34,10 +37,12 @@ public OfflineSessionCountRequestBuilder(string rawUrl, IRequestAdapter requestA /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, OfflineSessionCountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,7 +71,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public OfflineSessionCountRequestBuilder WithUrl(string rawUrl) { + public OfflineSessionCountRequestBuilder WithUrl(string rawUrl) + { return new OfflineSessionCountRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs index a8ffb5d5..cb987a0f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.O /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\offline-sessions /// - public class OfflineSessionsRequestBuilder : BaseRequestBuilder { + public class OfflineSessionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public OfflineSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-sessions{?first*,max*}", pathParameters) { + public OfflineSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-sessions{?first*,max*}", 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 OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-sessions{?first*,max*}", rawUrl) { + public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-sessions{?first*,max*}", rawUrl) + { } /// /// Get offline sessions for client Returns a list of offline user sessions associated with this client @@ -35,10 +38,12 @@ public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public OfflineSessionsRequestBuilder WithUrl(string rawUrl) { + public OfflineSessionsRequestBuilder WithUrl(string rawUrl) + { return new OfflineSessionsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get offline sessions for client Returns a list of offline user sessions associated with this client /// - public class OfflineSessionsRequestBuilderGetQueryParameters { + public class OfflineSessionsRequestBuilderGetQueryParameters + { /// Paging offset [QueryParameter("first")] public int? First { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs index c809e900..1a747751 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs @@ -11,29 +11,34 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.O /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\optional-client-scopes\{clientScopeId} /// - public class WithClientScopeItemRequestBuilder : BaseRequestBuilder { + public class WithClientScopeItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes/{clientScopeId}", pathParameters) { + public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes/{clientScopeId}", 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 WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes/{clientScopeId}", rawUrl) { + public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes/{clientScopeId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +47,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +61,12 @@ public async Task PutAsync(Action> /// 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +76,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -81,7 +92,8 @@ public RequestInformation ToPutRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { + public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/OptionalClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/OptionalClientScopesRequestBuilder.cs index 662926f2..e5f2f538 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/OptionalClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/OptionalClientScopesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.O /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\optional-client-scopes /// - public class OptionalClientScopesRequestBuilder : BaseRequestBuilder { + public class OptionalClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.optionalClientScopes.item collection /// Unique identifier of the item /// A - public WithClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientScopeId", position); - return new WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientScopeId", position); + return new WithClientScopeItemRequestBuilder(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 OptionalClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes", pathParameters) { + public OptionalClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes", 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 OptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes", rawUrl) { + public OptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes", rawUrl) + { } /// /// Get optional client scopes. Only name and ids are returned. @@ -44,10 +51,12 @@ public OptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter request /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +86,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public OptionalClientScopesRequestBuilder WithUrl(string rawUrl) { + public OptionalClientScopesRequestBuilder WithUrl(string rawUrl) + { return new OptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs index ba54a563..90d67294 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\add-models /// - public class AddModelsRequestBuilder : BaseRequestBuilder { + public class AddModelsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/add-models", pathParameters) { + public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/add-models", 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 AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/add-models", rawUrl) { + public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/add-models", rawUrl) + { } /// /// Create multiple mappers @@ -35,10 +38,12 @@ public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,7 +75,8 @@ public RequestInformation ToPostRequestInformation(List /// A /// The raw URL to use for the request builder. - public AddModelsRequestBuilder WithUrl(string rawUrl) { + public AddModelsRequestBuilder WithUrl(string rawUrl) + { return new AddModelsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs index 1efd48f0..a149c8f6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\models\{id} /// - public class ModelsItemRequestBuilder : BaseRequestBuilder { + public class ModelsItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models/{id}", pathParameters) { + public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models/{id}", 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 ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models/{id}", rawUrl) { + public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models/{id}", rawUrl) + { } /// /// Delete the mapper @@ -34,10 +37,12 @@ public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -66,10 +73,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +91,12 @@ public async Task PutAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +109,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +129,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -132,7 +147,8 @@ public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation b /// /// A /// The raw URL to use for the request builder. - public ModelsItemRequestBuilder WithUrl(string rawUrl) { + public ModelsItemRequestBuilder WithUrl(string rawUrl) + { return new ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs index efd15a34..4368e44e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\models /// - public class ModelsRequestBuilder : BaseRequestBuilder { + public class ModelsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.protocolMappers.modelsRequests.item collection /// Mapper id /// A - public ModelsItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ModelsItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ModelsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new ModelsItemRequestBuilder(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 ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models", pathParameters) { + public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models", 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 ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models", rawUrl) { + public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models", rawUrl) + { } /// /// Get mappers @@ -44,10 +51,12 @@ public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +109,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -112,7 +127,8 @@ public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation /// /// A /// The raw URL to use for the request builder. - public ModelsRequestBuilder WithUrl(string rawUrl) { + public ModelsRequestBuilder WithUrl(string rawUrl) + { return new ModelsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs index b5ff15fe..13ab00ac 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\protocol\{protocol} /// - public class WithProtocolItemRequestBuilder : BaseRequestBuilder { + public class WithProtocolItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol/{protocol}", pathParameters) { + public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol/{protocol}", 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 WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol/{protocol}", rawUrl) { + public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol/{protocol}", rawUrl) + { } /// /// Get mappers by name for a specific protocol @@ -35,10 +38,12 @@ public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithProtocolItemRequestBuilder WithUrl(string rawUrl) { + public WithProtocolItemRequestBuilder WithUrl(string rawUrl) + { return new WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs index ab9c3c6b..42ee31ed 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\protocol /// - public class ProtocolRequestBuilder : BaseRequestBuilder { + public class ProtocolRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.protocolMappers.protocol.item collection /// Unique identifier of the item /// A - public WithProtocolItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("protocol", position); - return new WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithProtocolItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("protocol", position); + return new WithProtocolItemRequestBuilder(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 ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol", pathParameters) { + public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol", 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 ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol", rawUrl) { + public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs index dd82a339..cc8e42f9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs @@ -12,32 +12,38 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers /// - public class ProtocolMappersRequestBuilder : BaseRequestBuilder { + public class ProtocolMappersRequestBuilder : BaseRequestBuilder + { /// The addModels property - public AddModelsRequestBuilder AddModels { get => - new AddModelsRequestBuilder(PathParameters, RequestAdapter); + public AddModelsRequestBuilder AddModels + { + get => new AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public ModelsRequestBuilder Models { get => - new ModelsRequestBuilder(PathParameters, RequestAdapter); + public ModelsRequestBuilder Models + { + get => new ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public ProtocolRequestBuilder Protocol { get => - new ProtocolRequestBuilder(PathParameters, RequestAdapter); + public ProtocolRequestBuilder Protocol + { + get => new ProtocolRequestBuilder(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 ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers", pathParameters) { + public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers", 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 ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers", rawUrl) { + public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/PushRevocation/PushRevocationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/PushRevocation/PushRevocationRequestBuilder.cs index bf0e80f3..5254d6f2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/PushRevocation/PushRevocationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/PushRevocation/PushRevocationRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\push-revocation /// - public class PushRevocationRequestBuilder : BaseRequestBuilder { + public class PushRevocationRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PushRevocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/push-revocation", pathParameters) { + public PushRevocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/push-revocation", 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 PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/push-revocation", rawUrl) { + public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/push-revocation", rawUrl) + { } /// /// Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. @@ -35,10 +38,12 @@ public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public PushRevocationRequestBuilder WithUrl(string rawUrl) { + public PushRevocationRequestBuilder WithUrl(string rawUrl) + { return new PushRevocationRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/RegistrationAccessToken/RegistrationAccessTokenRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/RegistrationAccessToken/RegistrationAccessTokenRequestBuilder.cs index a4127a57..60774410 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/RegistrationAccessToken/RegistrationAccessTokenRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/RegistrationAccessToken/RegistrationAccessTokenRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\registration-access-token /// - public class RegistrationAccessTokenRequestBuilder : BaseRequestBuilder { + public class RegistrationAccessTokenRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RegistrationAccessTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/registration-access-token", pathParameters) { + public RegistrationAccessTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/registration-access-token", 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 RegistrationAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/registration-access-token", rawUrl) { + public RegistrationAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/registration-access-token", rawUrl) + { } /// /// Generate a new registration access token for the client @@ -35,10 +38,12 @@ public RegistrationAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RegistrationAccessTokenRequestBuilder WithUrl(string rawUrl) { + public RegistrationAccessTokenRequestBuilder WithUrl(string rawUrl) + { return new RegistrationAccessTokenRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs index e6a7d7bb..59dc534a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\composites\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.roles.item.composites.clients.item collection /// Unique identifier of the item /// A - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Duuid", position); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Duuid", position); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs index 9b903256..40c72010 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\composites\clients\{client-uuid} /// - public class ClientUuItemRequestBuilder : BaseRequestBuilder { + public class ClientUuItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", pathParameters) { + public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", 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 ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", rawUrl) { + public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", rawUrl) + { } /// /// Get client-level roles for the client that are in the role's composite @@ -35,10 +38,12 @@ public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ClientUuItemRequestBuilder WithUrl(string rawUrl) { + public ClientUuItemRequestBuilder WithUrl(string rawUrl) + { return new ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/CompositesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/CompositesRequestBuilder.cs index 519f5417..71febd65 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/CompositesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/CompositesRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\composites /// - public class CompositesRequestBuilder : BaseRequestBuilder { + public class CompositesRequestBuilder : BaseRequestBuilder + { /// The clients property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder Clients { get => - new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder Clients + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public RealmRequestBuilder Realm + { + get => new RealmRequestBuilder(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 CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites", pathParameters) { + public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites", 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 CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites", rawUrl) { + public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites", rawUrl) + { } /// /// Remove roles from the role's composite @@ -45,10 +50,12 @@ public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public CompositesRequestBuilder WithUrl(string rawUrl) { + public CompositesRequestBuilder WithUrl(string rawUrl) + { return new CompositesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs index b807c503..6e795169 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\composites\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + public class RealmRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/realm", 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 RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/realm", rawUrl) + { } /// /// Get realm-level roles of the role's composite @@ -35,10 +38,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { + public RealmRequestBuilder WithUrl(string rawUrl) + { return new RealmRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Groups/GroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Groups/GroupsRequestBuilder.cs index fb7984f2..87145879 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Groups/GroupsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder { + public class GroupsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", pathParameters) { + public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", 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 GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", rawUrl) { + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", rawUrl) + { } /// /// Returns a stream of groups that have the specified role name @@ -35,10 +38,12 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) { + public GroupsRequestBuilder WithUrl(string rawUrl) + { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a stream of groups that have the specified role name /// - public class GroupsRequestBuilderGetQueryParameters { + public class GroupsRequestBuilderGetQueryParameters + { /// if false, return a full representation of the {@code GroupRepresentation} objects. [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/ManagementRequestBuilder.cs index f2c9ad0d..d644ad3c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/ManagementRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + public class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public PermissionsRequestBuilder Permissions + { + get => new PermissionsRequestBuilder(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 ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management", 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 ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs index 7facddee..1956866f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + public class PermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management/permissions", 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 PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management/permissions", rawUrl) + { } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference @@ -35,10 +38,12 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -52,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -68,10 +75,12 @@ public async Task PutAsync(ManagementPermissionRe /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +95,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -103,7 +114,8 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { + public PermissionsRequestBuilder WithUrl(string rawUrl) + { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/RoleNameItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/RoleNameItemRequestBuilder.cs index 7b6532a8..fb0e71b3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/RoleNameItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/RoleNameItemRequestBuilder.cs @@ -16,36 +16,43 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name} /// - public class RoleNameItemRequestBuilder : BaseRequestBuilder { + public class RoleNameItemRequestBuilder : BaseRequestBuilder + { /// The composites property - public CompositesRequestBuilder Composites { get => - new CompositesRequestBuilder(PathParameters, RequestAdapter); + public CompositesRequestBuilder Composites + { + get => new CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public GroupsRequestBuilder Groups { get => - new GroupsRequestBuilder(PathParameters, RequestAdapter); + public GroupsRequestBuilder Groups + { + get => new GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public ManagementRequestBuilder Management + { + get => new ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users { get => - new UsersRequestBuilder(PathParameters, RequestAdapter); + public UsersRequestBuilder Users + { + get => new UsersRequestBuilder(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 RoleNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}", pathParameters) { + public RoleNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}", 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 RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}", rawUrl) { + public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}", rawUrl) + { } /// /// Delete a role by name @@ -54,10 +61,12 @@ public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -70,10 +79,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -87,10 +98,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -103,10 +116,12 @@ public async Task PutAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -119,10 +134,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -137,10 +154,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -153,7 +172,8 @@ public RequestInformation ToPutRequestInformation(RoleRepresentation body, Actio /// /// A /// The raw URL to use for the request builder. - public RoleNameItemRequestBuilder WithUrl(string rawUrl) { + public RoleNameItemRequestBuilder WithUrl(string rawUrl) + { return new RoleNameItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Users/UsersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Users/UsersRequestBuilder.cs index f872f9d1..ddf48a0f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Users/UsersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Users/UsersRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\users /// - public class UsersRequestBuilder : BaseRequestBuilder { + public class UsersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/users{?first*,max*}", pathParameters) { + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/users{?first*,max*}", 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 UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/users{?first*,max*}", rawUrl) { + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/users{?first*,max*}", rawUrl) + { } /// /// Returns a stream of users that have the specified role name. @@ -35,10 +38,12 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) { + public UsersRequestBuilder WithUrl(string rawUrl) + { return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a stream of users that have the specified role name. /// - public class UsersRequestBuilderGetQueryParameters { + public class UsersRequestBuilderGetQueryParameters + { /// first result to return. Ignored if negative or {@code null}. [QueryParameter("first")] public int? First { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/RolesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/RolesRequestBuilder.cs index 950b295b..7e727505 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/RolesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/RolesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles /// - public class RolesRequestBuilder : BaseRequestBuilder { + public class RolesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.roles.item collection /// role's name (not id!) /// A - public RoleNameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("role%2Dname", position); - return new RoleNameItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public RoleNameItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("role%2Dname", position); + return new RoleNameItemRequestBuilder(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 RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles{?briefRepresentation*,first*,max*,search*}", pathParameters) { + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles{?briefRepresentation*,first*,max*,search*}", 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 RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles{?briefRepresentation*,first*,max*,search*}", rawUrl) { + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles{?briefRepresentation*,first*,max*,search*}", rawUrl) + { } /// /// Get all roles for the realm or client @@ -44,10 +51,12 @@ public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,13 +109,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -112,13 +127,15 @@ public RequestInformation ToPostRequestInformation(RoleRepresentation body, Acti /// /// A /// The raw URL to use for the request builder. - public RolesRequestBuilder WithUrl(string rawUrl) { + public RolesRequestBuilder WithUrl(string rawUrl) + { return new RolesRequestBuilder(rawUrl, RequestAdapter); } /// /// Get all roles for the realm or client /// - public class RolesRequestBuilderGetQueryParameters { + public class RolesRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("first")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs index 1b2d39d1..9decbe80 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.scopeMappings.clients.item collection /// Unique identifier of the item /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new WithClientItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs index 44e15774..960ecdcf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\clients\{client}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/available", rawUrl) + { } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index 9b958156..fb50ade5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\clients\{client}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs index c455072d..32c6ea3a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\clients\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + public class WithClientItemRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}", 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 WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}", rawUrl) + { } /// /// Remove client-level roles from the client's scope. @@ -45,10 +50,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { + public WithClientItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs index 4753f11e..1facd51f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that are available to attach to this client's scope @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs index dd7b4fde..c00c5997 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/RealmRequestBuilder.cs index 80b5ae7c..79618fe6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/RealmRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + public class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm", 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 RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm", rawUrl) + { } /// /// Remove a set of realm-level roles from the client's scope @@ -45,10 +50,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { + public RealmRequestBuilder WithUrl(string rawUrl) + { return new RealmRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs index 633aaa35..84333b4a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs @@ -14,30 +14,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings /// - public class ScopeMappingsRequestBuilder : BaseRequestBuilder { + public class ScopeMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property [Obsolete("")] - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients { get => - new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public RealmRequestBuilder Realm + { + get => new RealmRequestBuilder(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 ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings", pathParameters) { + public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings", 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 ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings", rawUrl) { + public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings", rawUrl) + { } /// /// Get all scope mappings for the client @@ -48,10 +53,12 @@ public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -64,10 +71,12 @@ public async Task GetAsync(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -80,7 +89,8 @@ public RequestInformation ToGetRequestInformation(ActionA /// The raw URL to use for the request builder. [Obsolete("")] - public ScopeMappingsRequestBuilder WithUrl(string rawUrl) { + public ScopeMappingsRequestBuilder WithUrl(string rawUrl) + { return new ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ServiceAccountUser/ServiceAccountUserRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ServiceAccountUser/ServiceAccountUserRequestBuilder.cs index 81a3c00d..f31119d1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ServiceAccountUser/ServiceAccountUserRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ServiceAccountUser/ServiceAccountUserRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\service-account-user /// - public class ServiceAccountUserRequestBuilder : BaseRequestBuilder { + public class ServiceAccountUserRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ServiceAccountUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/service-account-user", pathParameters) { + public ServiceAccountUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/service-account-user", 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 ServiceAccountUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/service-account-user", rawUrl) { + public ServiceAccountUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/service-account-user", rawUrl) + { } /// /// Get a user dedicated to the service account @@ -35,10 +38,12 @@ public ServiceAccountUserRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ServiceAccountUserRequestBuilder WithUrl(string rawUrl) { + public ServiceAccountUserRequestBuilder WithUrl(string rawUrl) + { return new ServiceAccountUserRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountGetResponse.cs index 9c1bdf88..76b007bc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountGetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount { - public class SessionCountGetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class SessionCountGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public SessionCountGetResponse() { + public SessionCountGetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public SessionCountGetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static SessionCountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static SessionCountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SessionCountGetResponse(); } @@ -27,15 +32,18 @@ public static SessionCountGetResponse CreateFromDiscriminatorValue(IParseNode pa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountRequestBuilder.cs index 35be0faa..e9e9b039 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\session-count /// - public class SessionCountRequestBuilder : BaseRequestBuilder { + public class SessionCountRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SessionCountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/session-count", pathParameters) { + public SessionCountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/session-count", 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 SessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/session-count", rawUrl) { + public SessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/session-count", rawUrl) + { } /// /// Get application session count Returns a number of user sessions associated with this client { "count": number } @@ -34,10 +37,12 @@ public SessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, SessionCountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,7 +71,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SessionCountRequestBuilder WithUrl(string rawUrl) { + public SessionCountRequestBuilder WithUrl(string rawUrl) + { return new SessionCountRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/TestNodesAvailable/TestNodesAvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/TestNodesAvailable/TestNodesAvailableRequestBuilder.cs index db25a07a..8041626f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/TestNodesAvailable/TestNodesAvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/TestNodesAvailable/TestNodesAvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.T /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\test-nodes-available /// - public class TestNodesAvailableRequestBuilder : BaseRequestBuilder { + public class TestNodesAvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public TestNodesAvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/test-nodes-available", pathParameters) { + public TestNodesAvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/test-nodes-available", 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 TestNodesAvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/test-nodes-available", rawUrl) { + public TestNodesAvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/test-nodes-available", rawUrl) + { } /// /// Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. @@ -35,10 +38,12 @@ public TestNodesAvailableRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public TestNodesAvailableRequestBuilder WithUrl(string rawUrl) { + public TestNodesAvailableRequestBuilder WithUrl(string rawUrl) + { return new TestNodesAvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/UserSessions/UserSessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/UserSessions/UserSessionsRequestBuilder.cs index 5de95948..dfd7f043 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/UserSessions/UserSessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/UserSessions/UserSessionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.U /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\user-sessions /// - public class UserSessionsRequestBuilder : BaseRequestBuilder { + public class UserSessionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UserSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/user-sessions{?first*,max*}", pathParameters) { + public UserSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/user-sessions{?first*,max*}", 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 UserSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/user-sessions{?first*,max*}", rawUrl) { + public UserSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/user-sessions{?first*,max*}", rawUrl) + { } /// /// Get user sessions for client Returns a list of user sessions associated with this client @@ -35,10 +38,12 @@ public UserSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public UserSessionsRequestBuilder WithUrl(string rawUrl) { + public UserSessionsRequestBuilder WithUrl(string rawUrl) + { return new UserSessionsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get user sessions for client Returns a list of user sessions associated with this client /// - public class UserSessionsRequestBuilderGetQueryParameters { + public class UserSessionsRequestBuilderGetQueryParameters + { /// Paging offset [QueryParameter("first")] public int? First { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/ClientsInitialAccessRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/ClientsInitialAccessRequestBuilder.cs index 032622bb..0f7c5134 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/ClientsInitialAccessRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/ClientsInitialAccessRequestBuilder.cs @@ -13,38 +13,47 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitial /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients-initial-access /// - public class ClientsInitialAccessRequestBuilder : BaseRequestBuilder { + public class ClientsInitialAccessRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientsInitialAccess.item collection /// Unique identifier of the item /// A - public ClientsInitialAccessItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ClientsInitialAccessItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ClientsInitialAccessItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new ClientsInitialAccessItemRequestBuilder(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 ClientsInitialAccessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access", pathParameters) { + public ClientsInitialAccessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access", 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 ClientsInitialAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access", rawUrl) { + public ClientsInitialAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access", rawUrl) + { } /// A List<ClientInitialAccessPresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientInitialAccessPresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -59,10 +68,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ClientInitialAccessCreatePresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ClientInitialAccessCreatePresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ClientInitialAccessCreatePresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ClientInitialAccessCreatePresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -72,10 +83,12 @@ public async Task PostAsync(ClientInitial /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -90,10 +103,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ClientInitialAccessCreatePresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ClientInitialAccessCreatePresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClientInitialAccessCreatePresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ClientInitialAccessCreatePresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -107,7 +122,8 @@ public RequestInformation ToPostRequestInformation(ClientInitialAccessCreatePres /// /// A /// The raw URL to use for the request builder. - public ClientsInitialAccessRequestBuilder WithUrl(string rawUrl) { + public ClientsInitialAccessRequestBuilder WithUrl(string rawUrl) + { return new ClientsInitialAccessRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/Item/ClientsInitialAccessItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/Item/ClientsInitialAccessItemRequestBuilder.cs index 978f8d1b..bcced8c7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/Item/ClientsInitialAccessItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/Item/ClientsInitialAccessItemRequestBuilder.cs @@ -11,29 +11,34 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitial /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients-initial-access\{id} /// - public class ClientsInitialAccessItemRequestBuilder : BaseRequestBuilder { + public class ClientsInitialAccessItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsInitialAccessItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access/{id}", pathParameters) { + public ClientsInitialAccessItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access/{id}", 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 ClientsInitialAccessItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access/{id}", rawUrl) { + public ClientsInitialAccessItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access/{id}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +47,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -56,7 +63,8 @@ public RequestInformation ToDeleteRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ClientsInitialAccessItemRequestBuilder WithUrl(string rawUrl) { + public ClientsInitialAccessItemRequestBuilder WithUrl(string rawUrl) + { return new ClientsInitialAccessItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/ComponentsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/ComponentsRequestBuilder.cs index 051f1c38..e7ac12c5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/ComponentsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/ComponentsRequestBuilder.cs @@ -13,38 +13,47 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components { /// /// Builds and executes requests for operations under \admin\realms\{realm}\components /// - public class ComponentsRequestBuilder : BaseRequestBuilder { + public class ComponentsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.components.item collection /// Unique identifier of the item /// A - public ComponentsItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ComponentsItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ComponentsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new ComponentsItemRequestBuilder(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 ComponentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components{?name*,parent*,type*}", pathParameters) { + public ComponentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components{?name*,parent*,type*}", 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 ComponentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components{?name*,parent*,type*}", rawUrl) { + public ComponentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components{?name*,parent*,type*}", rawUrl) + { } /// A List<ComponentRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ComponentRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -56,10 +65,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ComponentRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ComponentRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ComponentRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ComponentRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -69,10 +80,12 @@ public async Task PostAsync(ComponentRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -84,13 +97,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ComponentRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ComponentRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ComponentRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ComponentRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/components", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -100,10 +115,14 @@ public RequestInformation ToPostRequestInformation(ComponentRepresentation body, /// /// A /// The raw URL to use for the request builder. - public ComponentsRequestBuilder WithUrl(string rawUrl) { + public ComponentsRequestBuilder WithUrl(string rawUrl) + { return new ComponentsRequestBuilder(rawUrl, RequestAdapter); } - public class ComponentsRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class ComponentsRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("name")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/ComponentsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/ComponentsItemRequestBuilder.cs index c533176c..6c2c7e49 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/ComponentsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/ComponentsItemRequestBuilder.cs @@ -13,33 +13,39 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Ite /// /// Builds and executes requests for operations under \admin\realms\{realm}\components\{id} /// - public class ComponentsItemRequestBuilder : BaseRequestBuilder { + public class ComponentsItemRequestBuilder : BaseRequestBuilder + { /// The subComponentTypes property - public SubComponentTypesRequestBuilder SubComponentTypes { get => - new SubComponentTypesRequestBuilder(PathParameters, RequestAdapter); + public SubComponentTypesRequestBuilder SubComponentTypes + { + get => new SubComponentTypesRequestBuilder(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 ComponentsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}", pathParameters) { + public ComponentsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}", 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 ComponentsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}", rawUrl) { + public ComponentsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ComponentRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -63,10 +71,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ComponentRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ComponentRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ComponentRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ComponentRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -76,10 +86,12 @@ public async Task PutAsync(ComponentRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,10 +101,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -104,10 +118,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ComponentRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ComponentRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ComponentRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ComponentRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -120,7 +136,8 @@ public RequestInformation ToPutRequestInformation(ComponentRepresentation body, /// /// A /// The raw URL to use for the request builder. - public ComponentsItemRequestBuilder WithUrl(string rawUrl) { + public ComponentsItemRequestBuilder WithUrl(string rawUrl) + { return new ComponentsItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/SubComponentTypes/SubComponentTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/SubComponentTypes/SubComponentTypesRequestBuilder.cs index 1d123b0d..e01b055c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/SubComponentTypes/SubComponentTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/SubComponentTypes/SubComponentTypesRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Ite /// /// Builds and executes requests for operations under \admin\realms\{realm}\components\{id}\sub-component-types /// - public class SubComponentTypesRequestBuilder : BaseRequestBuilder { + public class SubComponentTypesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SubComponentTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}/sub-component-types{?type*}", pathParameters) { + public SubComponentTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}/sub-component-types{?type*}", 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 SubComponentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}/sub-component-types{?type*}", rawUrl) { + public SubComponentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}/sub-component-types{?type*}", rawUrl) + { } /// /// List of subcomponent types that are available to configure for a particular parent component. @@ -35,10 +38,12 @@ public SubComponentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ComponentTypeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SubComponentTypesRequestBuilder WithUrl(string rawUrl) { + public SubComponentTypesRequestBuilder WithUrl(string rawUrl) + { return new SubComponentTypesRequestBuilder(rawUrl, RequestAdapter); } /// /// List of subcomponent types that are available to configure for a particular parent component. /// - public class SubComponentTypesRequestBuilderGetQueryParameters { + public class SubComponentTypesRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("type")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/CredentialRegistrators/CredentialRegistratorsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/CredentialRegistrators/CredentialRegistratorsRequestBuilder.cs index 51a8720e..047e7530 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/CredentialRegistrators/CredentialRegistratorsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/CredentialRegistrators/CredentialRegistratorsRequestBuilder.cs @@ -11,30 +11,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegi /// /// Builds and executes requests for operations under \admin\realms\{realm}\credential-registrators /// - public class CredentialRegistratorsRequestBuilder : BaseRequestBuilder { + public class CredentialRegistratorsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CredentialRegistratorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/credential-registrators", pathParameters) { + public CredentialRegistratorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/credential-registrators", 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 CredentialRegistratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/credential-registrators", rawUrl) { + public CredentialRegistratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/credential-registrators", rawUrl) + { } /// A List<string> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -44,10 +49,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -59,7 +66,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CredentialRegistratorsRequestBuilder WithUrl(string rawUrl) { + public CredentialRegistratorsRequestBuilder WithUrl(string rawUrl) + { return new CredentialRegistratorsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/DefaultDefaultClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/DefaultDefaultClientScopesRequestBuilder.cs index 1989dad9..dc27276d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/DefaultDefaultClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/DefaultDefaultClientScopesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefault /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-default-client-scopes /// - public class DefaultDefaultClientScopesRequestBuilder : BaseRequestBuilder { + public class DefaultDefaultClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.defaultDefaultClientScopes.item collection /// Unique identifier of the item /// A - public WithClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientScopeId", position); - return new WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientScopeId", position); + return new WithClientScopeItemRequestBuilder(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 DefaultDefaultClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes", pathParameters) { + public DefaultDefaultClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes", 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 DefaultDefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes", rawUrl) { + public DefaultDefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes", rawUrl) + { } /// /// Get realm default client scopes. Only name and ids are returned. @@ -44,10 +51,12 @@ public DefaultDefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter r /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +86,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public DefaultDefaultClientScopesRequestBuilder WithUrl(string rawUrl) { + public DefaultDefaultClientScopesRequestBuilder WithUrl(string rawUrl) + { return new DefaultDefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs index 3e25e7bd..8851e41b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs @@ -11,29 +11,34 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefault /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-default-client-scopes\{clientScopeId} /// - public class WithClientScopeItemRequestBuilder : BaseRequestBuilder { + public class WithClientScopeItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}", pathParameters) { + public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}", 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 WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}", rawUrl) { + public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +47,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +61,12 @@ public async Task PutAsync(Action> /// 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +76,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -81,7 +92,8 @@ public RequestInformation ToPutRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { + public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/DefaultGroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/DefaultGroupsRequestBuilder.cs index 42e60cd4..5eddce18 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/DefaultGroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/DefaultGroupsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-groups /// - public class DefaultGroupsRequestBuilder : BaseRequestBuilder { + public class DefaultGroupsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.defaultGroups.item collection /// Unique identifier of the item /// A - public WithGroupItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("groupId", position); - return new WithGroupItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithGroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("groupId", position); + return new WithGroupItemRequestBuilder(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 DefaultGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups", pathParameters) { + public DefaultGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups", 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 DefaultGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups", rawUrl) { + public DefaultGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups", rawUrl) + { } /// /// Get group hierarchy. Only name and ids are returned. @@ -44,10 +51,12 @@ public DefaultGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +86,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public DefaultGroupsRequestBuilder WithUrl(string rawUrl) { + public DefaultGroupsRequestBuilder WithUrl(string rawUrl) + { return new DefaultGroupsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/Item/WithGroupItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/Item/WithGroupItemRequestBuilder.cs index da29b729..646c148f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/Item/WithGroupItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/Item/WithGroupItemRequestBuilder.cs @@ -11,29 +11,34 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups. /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-groups\{groupId} /// - public class WithGroupItemRequestBuilder : BaseRequestBuilder { + public class WithGroupItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups/{groupId}", pathParameters) { + public WithGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups/{groupId}", 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 WithGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups/{groupId}", rawUrl) { + public WithGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups/{groupId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +47,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +61,12 @@ public async Task PutAsync(Action> /// 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +76,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -81,7 +92,8 @@ public RequestInformation ToPutRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithGroupItemRequestBuilder WithUrl(string rawUrl) { + public WithGroupItemRequestBuilder WithUrl(string rawUrl) + { return new WithGroupItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/DefaultOptionalClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/DefaultOptionalClientScopesRequestBuilder.cs index 83950407..aa933c25 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/DefaultOptionalClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/DefaultOptionalClientScopesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptiona /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-optional-client-scopes /// - public class DefaultOptionalClientScopesRequestBuilder : BaseRequestBuilder { + public class DefaultOptionalClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.defaultOptionalClientScopes.item collection /// Unique identifier of the item /// A - public WithClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientScopeId", position); - return new WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientScopeId", position); + return new WithClientScopeItemRequestBuilder(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 DefaultOptionalClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes", pathParameters) { + public DefaultOptionalClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes", 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 DefaultOptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes", rawUrl) { + public DefaultOptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes", rawUrl) + { } /// /// Get realm optional client scopes. Only name and ids are returned. @@ -44,10 +51,12 @@ public DefaultOptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +86,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public DefaultOptionalClientScopesRequestBuilder WithUrl(string rawUrl) { + public DefaultOptionalClientScopesRequestBuilder WithUrl(string rawUrl) + { return new DefaultOptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs index 2ad384f8..feb8ca80 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs @@ -11,29 +11,34 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptiona /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-optional-client-scopes\{clientScopeId} /// - public class WithClientScopeItemRequestBuilder : BaseRequestBuilder { + public class WithClientScopeItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}", pathParameters) { + public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}", 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 WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}", rawUrl) { + public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +47,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +61,12 @@ public async Task PutAsync(Action> /// 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +76,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -81,7 +92,8 @@ public RequestInformation ToPutRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { + public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/Config/ConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/Config/ConfigRequestBuilder.cs index e2d42ef5..efc2a430 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/Config/ConfigRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/Config/ConfigRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config /// /// Builds and executes requests for operations under \admin\realms\{realm}\events\config /// - public class ConfigRequestBuilder : BaseRequestBuilder { + public class ConfigRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events/config", pathParameters) { + public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events/config", 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 ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events/config", rawUrl) { + public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events/config", rawUrl) + { } /// /// Get the events provider configuration Returns JSON object with events provider configuration @@ -35,10 +38,12 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, RealmEventsConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RealmEventsConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RealmEventsConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RealmEventsConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RealmEventsConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -67,10 +74,12 @@ public async Task PutAsync(RealmEventsConfigRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -85,10 +94,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RealmEventsConfigRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RealmEventsConfigRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RealmEventsConfigRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RealmEventsConfigRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -101,7 +112,8 @@ public RequestInformation ToPutRequestInformation(RealmEventsConfigRepresentatio /// /// A /// The raw URL to use for the request builder. - public ConfigRequestBuilder WithUrl(string rawUrl) { + public ConfigRequestBuilder WithUrl(string rawUrl) + { return new ConfigRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/EventsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/EventsRequestBuilder.cs index 837def89..73abb234 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/EventsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/EventsRequestBuilder.cs @@ -13,24 +13,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events { /// /// Builds and executes requests for operations under \admin\realms\{realm}\events /// - public class EventsRequestBuilder : BaseRequestBuilder { + public class EventsRequestBuilder : BaseRequestBuilder + { /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(PathParameters, RequestAdapter); + public ConfigRequestBuilder Config + { + get => new ConfigRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events{?client*,dateFrom*,dateTo*,first*,ipAddress*,max*,type*,user*}", pathParameters) { + public EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events{?client*,dateFrom*,dateTo*,first*,ipAddress*,max*,type*,user*}", 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 EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events{?client*,dateFrom*,dateTo*,first*,ipAddress*,max*,type*,user*}", rawUrl) { + public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events{?client*,dateFrom*,dateTo*,first*,ipAddress*,max*,type*,user*}", rawUrl) + { } /// /// Delete all events @@ -39,10 +43,12 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -55,10 +61,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, EventRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -71,12 +79,14 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/events", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); return requestInfo; } @@ -87,10 +97,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -102,13 +114,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) { + public EventsRequestBuilder WithUrl(string rawUrl) + { return new EventsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get events Returns all events, or filters them based on URL query parameters listed here /// - public class EventsRequestBuilderGetQueryParameters { + public class EventsRequestBuilderGetQueryParameters + { /// App or oauth client name #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/GroupByPathRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/GroupByPathRequestBuilder.cs index d58b65a9..77d56db5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/GroupByPathRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/GroupByPathRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath { /// /// Builds and executes requests for operations under \admin\realms\{realm}\group-by-path /// - public class GroupByPathRequestBuilder : BaseRequestBuilder { + public class GroupByPathRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.groupByPath.item collection /// Unique identifier of the item /// A - public WithPathItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("path", position); - return new WithPathItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithPathItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("path", position); + return new WithPathItemRequestBuilder(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 GroupByPathRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path", pathParameters) { + public GroupByPathRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path", 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 GroupByPathRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path", rawUrl) { + public GroupByPathRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/Item/WithPathItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/Item/WithPathItemRequestBuilder.cs index 633b27c0..b5043d8d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/Item/WithPathItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/Item/WithPathItemRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.It /// /// Builds and executes requests for operations under \admin\realms\{realm}\group-by-path\{path} /// - public class WithPathItemRequestBuilder : BaseRequestBuilder { + public class WithPathItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithPathItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path/{path}", pathParameters) { + public WithPathItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path/{path}", 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 WithPathItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path/{path}", rawUrl) { + public WithPathItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path/{path}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -44,10 +49,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -59,7 +66,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithPathItemRequestBuilder WithUrl(string rawUrl) { + public WithPathItemRequestBuilder WithUrl(string rawUrl) + { return new WithPathItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountGetResponse.cs index b8c045ed..c93d638a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountGetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count { - public class CountGetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class CountGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public CountGetResponse() { + public CountGetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public CountGetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountGetResponse(); } @@ -27,15 +32,18 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountRequestBuilder.cs index acbc1199..d7fa4ef0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count { /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\count /// - public class CountRequestBuilder : BaseRequestBuilder { + public class CountRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/count{?search*,top*}", pathParameters) { + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/count{?search*,top*}", pathParameters) + { } /// /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/count{?search*,top*}", rawUrl) { + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/count{?search*,top*}", rawUrl) + { } /// /// Returns the groups counts. @@ -34,10 +37,12 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,13 +71,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) { + public CountRequestBuilder WithUrl(string rawUrl) + { return new CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns the groups counts. /// - public class CountRequestBuilderGetQueryParameters { + public class CountRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("search")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/GroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/GroupsRequestBuilder.cs index 633ecf57..0ce81afd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/GroupsRequestBuilder.cs @@ -14,32 +14,40 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups { /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder { + public class GroupsRequestBuilder : BaseRequestBuilder + { /// The count property - public CountRequestBuilder Count { get => - new CountRequestBuilder(PathParameters, RequestAdapter); + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.groups.item collection /// Unique identifier of the item /// A - public GroupItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("group%2Did", position); - return new GroupItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public GroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("group%2Did", position); + return new GroupItemRequestBuilder(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 GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups{?briefRepresentation*,exact*,first*,max*,populateHierarchy*,q*,search*}", pathParameters) { + public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups{?briefRepresentation*,exact*,first*,max*,populateHierarchy*,q*,search*}", 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 GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups{?briefRepresentation*,exact*,first*,max*,populateHierarchy*,q*,search*}", rawUrl) { + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups{?briefRepresentation*,exact*,first*,max*,populateHierarchy*,q*,search*}", rawUrl) + { } /// /// Get group hierarchy. Only name and ids are returned. @@ -49,10 +57,12 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -67,10 +77,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -83,10 +95,12 @@ public async Task PostAsync(GroupRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -101,13 +115,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/groups", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -117,13 +133,15 @@ public RequestInformation ToPostRequestInformation(GroupRepresentation body, Act /// /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) { + public GroupsRequestBuilder WithUrl(string rawUrl) + { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get group hierarchy. Only name and ids are returned. /// - public class GroupsRequestBuilderGetQueryParameters { + public class GroupsRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("exact")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Children/ChildrenRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Children/ChildrenRequestBuilder.cs index f7725057..daeaf2fa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Children/ChildrenRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ch /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\children /// - public class ChildrenRequestBuilder : BaseRequestBuilder { + public class ChildrenRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children{?briefRepresentation*,first*,max*}", pathParameters) { + public ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children{?briefRepresentation*,first*,max*}", 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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children{?briefRepresentation*,first*,max*}", rawUrl) { + public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children{?briefRepresentation*,first*,max*}", rawUrl) + { } /// /// Return a paginated list of subgroups that have a parent group corresponding to the group on the URL @@ -35,10 +38,12 @@ public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -53,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -69,10 +76,12 @@ public async Task PostAsync(GroupRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -87,13 +96,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -103,13 +114,15 @@ public RequestInformation ToPostRequestInformation(GroupRepresentation body, Act /// /// A /// The raw URL to use for the request builder. - public ChildrenRequestBuilder WithUrl(string rawUrl) { + public ChildrenRequestBuilder WithUrl(string rawUrl) + { return new ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// /// Return a paginated list of subgroups that have a parent group corresponding to the group on the URL /// - public class ChildrenRequestBuilderGetQueryParameters { + public class ChildrenRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("first")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/GroupItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/GroupItemRequestBuilder.cs index 75b83de8..d4270bb0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/GroupItemRequestBuilder.cs @@ -16,45 +16,54 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item { /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id} /// - public class GroupItemRequestBuilder : BaseRequestBuilder { + public class GroupItemRequestBuilder : BaseRequestBuilder + { /// The children property - public ChildrenRequestBuilder Children { get => - new ChildrenRequestBuilder(PathParameters, RequestAdapter); + public ChildrenRequestBuilder Children + { + get => new ChildrenRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public ManagementRequestBuilder Management + { + get => new ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The members property - public MembersRequestBuilder Members { get => - new MembersRequestBuilder(PathParameters, RequestAdapter); + public MembersRequestBuilder Members + { + get => new MembersRequestBuilder(PathParameters, RequestAdapter); } /// The roleMappings property - public RoleMappingsRequestBuilder RoleMappings { get => - new RoleMappingsRequestBuilder(PathParameters, RequestAdapter); + public RoleMappingsRequestBuilder RoleMappings + { + get => new RoleMappingsRequestBuilder(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 GroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}", pathParameters) { + public GroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}", 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 GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}", rawUrl) { + public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -64,10 +73,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -81,10 +92,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -94,10 +107,12 @@ public async Task PutAsync(GroupRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -107,10 +122,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -125,10 +142,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -141,7 +160,8 @@ public RequestInformation ToPutRequestInformation(GroupRepresentation body, Acti /// /// A /// The raw URL to use for the request builder. - public GroupItemRequestBuilder WithUrl(string rawUrl) { + public GroupItemRequestBuilder WithUrl(string rawUrl) + { return new GroupItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/ManagementRequestBuilder.cs index d92233fe..027a8ba7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/ManagementRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ma /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + public class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public PermissionsRequestBuilder Permissions + { + get => new PermissionsRequestBuilder(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 ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management", 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 ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/Permissions/PermissionsRequestBuilder.cs index a2417ca2..0fe920e8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ma /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + public class PermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management/permissions", 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 PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management/permissions", rawUrl) + { } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference @@ -35,10 +38,12 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -52,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -68,10 +75,12 @@ public async Task PutAsync(ManagementPermissionRe /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +95,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -103,7 +114,8 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { + public PermissionsRequestBuilder WithUrl(string rawUrl) + { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Members/MembersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Members/MembersRequestBuilder.cs index 21a3c1e7..880ed265 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Members/MembersRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Me /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\members /// - public class MembersRequestBuilder : BaseRequestBuilder { + public class MembersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/members{?briefRepresentation*,first*,max*}", pathParameters) { + public MembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/members{?briefRepresentation*,first*,max*}", 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 MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/members{?briefRepresentation*,first*,max*}", rawUrl) { + public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/members{?briefRepresentation*,first*,max*}", rawUrl) + { } /// /// Get users Returns a stream of users, filtered according to query parameters @@ -35,10 +38,12 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public MembersRequestBuilder WithUrl(string rawUrl) { + public MembersRequestBuilder WithUrl(string rawUrl) + { return new MembersRequestBuilder(rawUrl, RequestAdapter); } /// /// Get users Returns a stream of users, filtered according to query parameters /// - public class MembersRequestBuilderGetQueryParameters { + public class MembersRequestBuilderGetQueryParameters + { /// Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/ClientsRequestBuilder.cs index 5ac9acb4..283e50b9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/ClientsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.groups.item.roleMappings.clients.item collection /// Unique identifier of the item /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new WithClientItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs index d1d1ae5f..f90e776f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/available", rawUrl) + { } /// /// Get available client-level roles that can be mapped to the user @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index b49a76cd..c0bf3cbb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client-level role mappings This recurses any composite roles @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client-level role mappings This recurses any composite roles /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/WithClientItemRequestBuilder.cs index 0dedc5c8..9709b333 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/WithClientItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + public class WithClientItemRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}", 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 WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}", rawUrl) + { } /// /// Delete client-level roles from user role mapping @@ -45,10 +50,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { + public WithClientItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs index ef678567..10e88130 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that can be mapped @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs index 113e3245..1c5ae23b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/RealmRequestBuilder.cs index d8e46a13..f697d0ea 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/RealmRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + public class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm", 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 RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm", rawUrl) + { } /// /// Delete realm-level role mappings @@ -45,10 +50,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { + public RealmRequestBuilder WithUrl(string rawUrl) + { return new RealmRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/RoleMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/RoleMappingsRequestBuilder.cs index fc966ec4..e764283f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/RoleMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/RoleMappingsRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings /// - public class RoleMappingsRequestBuilder : BaseRequestBuilder { + public class RoleMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public ClientsRequestBuilder Clients + { + get => new ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public RealmRequestBuilder Realm + { + get => new RealmRequestBuilder(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 RoleMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings", pathParameters) { + public RoleMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings", 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 RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings", rawUrl) { + public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings", rawUrl) + { } /// /// Get role mappings @@ -45,10 +50,12 @@ public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +67,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +84,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RoleMappingsRequestBuilder WithUrl(string rawUrl) { + public RoleMappingsRequestBuilder WithUrl(string rawUrl) + { return new RoleMappingsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/IdentityProviderRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/IdentityProviderRequestBuilder.cs index 61fc1253..07590f81 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/IdentityProviderRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/IdentityProviderRequestBuilder.cs @@ -12,32 +12,38 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider /// - public class IdentityProviderRequestBuilder : BaseRequestBuilder { + public class IdentityProviderRequestBuilder : BaseRequestBuilder + { /// The importConfig property - public ImportConfigRequestBuilder ImportConfig { get => - new ImportConfigRequestBuilder(PathParameters, RequestAdapter); + public ImportConfigRequestBuilder ImportConfig + { + get => new ImportConfigRequestBuilder(PathParameters, RequestAdapter); } /// The instances property - public InstancesRequestBuilder Instances { get => - new InstancesRequestBuilder(PathParameters, RequestAdapter); + public InstancesRequestBuilder Instances + { + get => new InstancesRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public ProvidersRequestBuilder Providers + { + get => new ProvidersRequestBuilder(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 IdentityProviderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider", pathParameters) { + public IdentityProviderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider", 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 IdentityProviderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider", rawUrl) { + public IdentityProviderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostRequestBody.cs index 67d80cca..d749448c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostRequestBody.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig { - public class ImportConfigPostRequestBody : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ImportConfigPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ImportConfigPostRequestBody() { + public ImportConfigPostRequestBody() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ImportConfigPostRequestBody() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ImportConfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ImportConfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImportConfigPostRequestBody(); } @@ -27,15 +32,18 @@ public static ImportConfigPostRequestBody CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostResponse.cs index bbd4f3ac..3443c2e4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig { - public class ImportConfigPostResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ImportConfigPostResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ImportConfigPostResponse() { + public ImportConfigPostResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ImportConfigPostResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ImportConfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ImportConfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImportConfigPostResponse(); } @@ -27,15 +32,18 @@ public static ImportConfigPostResponse CreateFromDiscriminatorValue(IParseNode p /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigRequestBuilder.cs index bcfbfddb..88de2f38 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\import-config /// - public class ImportConfigRequestBuilder : BaseRequestBuilder { + public class ImportConfigRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ImportConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/import-config", pathParameters) { + public ImportConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/import-config", 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 ImportConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/import-config", rawUrl) { + public ImportConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/import-config", rawUrl) + { } /// /// Import identity provider from uploaded JSON file @@ -35,10 +38,12 @@ public ImportConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ImportConfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ImportConfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ImportConfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(ImportConfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PostAsync(ImportConfigPostRequestBod /// 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(ImportConfigPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ImportConfigPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImportConfigPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(ImportConfigPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -69,7 +76,8 @@ public RequestInformation ToPostRequestInformation(ImportConfigPostRequestBody b /// /// A /// The raw URL to use for the request builder. - public ImportConfigRequestBuilder WithUrl(string rawUrl) { + public ImportConfigRequestBuilder WithUrl(string rawUrl) + { return new ImportConfigRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs index 1e1f79d6..1c7d44cc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances /// - public class InstancesRequestBuilder : BaseRequestBuilder { + public class InstancesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.identityProvider.instances.item collection /// Unique identifier of the item /// A - public WithAliasItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("alias", position); - return new WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithAliasItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("alias", position); + return new WithAliasItemRequestBuilder(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 InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances{?briefRepresentation*,first*,max*,search*}", pathParameters) { + public InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances{?briefRepresentation*,first*,max*,search*}", 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 InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances{?briefRepresentation*,first*,max*,search*}", rawUrl) { + public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances{?briefRepresentation*,first*,max*,search*}", rawUrl) + { } /// /// List identity providers @@ -44,10 +51,12 @@ public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(IdentityProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(IdentityProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(IdentityProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(IdentityProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(IdentityProviderRepresentation body, Action< /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,13 +109,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(IdentityProviderRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(IdentityProviderRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(IdentityProviderRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(IdentityProviderRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/identity-provider/instances", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -112,13 +127,15 @@ public RequestInformation ToPostRequestInformation(IdentityProviderRepresentatio /// /// A /// The raw URL to use for the request builder. - public InstancesRequestBuilder WithUrl(string rawUrl) { + public InstancesRequestBuilder WithUrl(string rawUrl) + { return new InstancesRequestBuilder(rawUrl, RequestAdapter); } /// /// List identity providers /// - public class InstancesRequestBuilderGetQueryParameters { + public class InstancesRequestBuilderGetQueryParameters + { /// Boolean which defines whether brief representations are returned (default: false) [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Export/ExportRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Export/ExportRequestBuilder.cs index 4695a1e2..0224f73a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Export/ExportRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Export/ExportRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\export /// - public class ExportRequestBuilder : BaseRequestBuilder { + public class ExportRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/export{?format*}", pathParameters) { + public ExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/export{?format*}", 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 ExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/export{?format*}", rawUrl) { + public ExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/export{?format*}", rawUrl) + { } /// /// Export public broker configuration for identity provider @@ -34,10 +37,12 @@ public ExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,13 +70,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ExportRequestBuilder WithUrl(string rawUrl) { + public ExportRequestBuilder WithUrl(string rawUrl) + { return new ExportRequestBuilder(rawUrl, RequestAdapter); } /// /// Export public broker configuration for identity provider /// - public class ExportRequestBuilderGetQueryParameters { + public class ExportRequestBuilderGetQueryParameters + { /// Format to use #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/ManagementRequestBuilder.cs index 1ba67fef..5efd8a3f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/ManagementRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + public class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public PermissionsRequestBuilder Permissions + { + get => new PermissionsRequestBuilder(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 ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management", 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 ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/Permissions/PermissionsRequestBuilder.cs index c75b66f9..11695326 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + public class PermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions", 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 PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions", rawUrl) + { } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference @@ -35,10 +38,12 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -52,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -68,10 +75,12 @@ public async Task PutAsync(ManagementPermissionRe /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +95,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -103,7 +114,8 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { + public PermissionsRequestBuilder WithUrl(string rawUrl) + { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/MapperTypes/MapperTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/MapperTypes/MapperTypesRequestBuilder.cs index b867f020..fbeb662e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/MapperTypes/MapperTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/MapperTypes/MapperTypesRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\mapper-types /// - public class MapperTypesRequestBuilder : BaseRequestBuilder { + public class MapperTypesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MapperTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types", pathParameters) { + public MapperTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types", 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 MapperTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types", rawUrl) { + public MapperTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types", rawUrl) + { } /// /// Get mapper types for identity provider @@ -34,10 +37,12 @@ public MapperTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,7 +71,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public MapperTypesRequestBuilder WithUrl(string rawUrl) { + public MapperTypesRequestBuilder WithUrl(string rawUrl) + { return new MapperTypesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/Item/MappersItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/Item/MappersItemRequestBuilder.cs index 2540fb1b..1d853fb7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/Item/MappersItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/Item/MappersItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\mappers\{id} /// - public class MappersItemRequestBuilder : BaseRequestBuilder { + public class MappersItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MappersItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}", pathParameters) { + public MappersItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}", 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 MappersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}", rawUrl) { + public MappersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}", rawUrl) + { } /// /// Delete a mapper for the identity provider @@ -34,10 +37,12 @@ public MappersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -66,10 +73,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +91,12 @@ public async Task PutAsync(IdentityProviderMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +109,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +129,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -132,7 +147,8 @@ public RequestInformation ToPutRequestInformation(IdentityProviderMapperRepresen /// /// A /// The raw URL to use for the request builder. - public MappersItemRequestBuilder WithUrl(string rawUrl) { + public MappersItemRequestBuilder WithUrl(string rawUrl) + { return new MappersItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/MappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/MappersRequestBuilder.cs index 77bf3561..45e7b9b3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/MappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/MappersRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\mappers /// - public class MappersRequestBuilder : BaseRequestBuilder { + public class MappersRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.identityProvider.instances.item.mappers.item collection /// Unique identifier of the item /// A - public MappersItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new MappersItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public MappersItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new MappersItemRequestBuilder(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 MappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers", pathParameters) { + public MappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers", 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 MappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers", rawUrl) { + public MappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers", rawUrl) + { } /// /// Get mappers for identity provider @@ -44,10 +51,12 @@ public MappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(IdentityProviderMapperRepresentation body, 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +109,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -112,7 +127,8 @@ public RequestInformation ToPostRequestInformation(IdentityProviderMapperReprese /// /// A /// The raw URL to use for the request builder. - public MappersRequestBuilder WithUrl(string rawUrl) { + public MappersRequestBuilder WithUrl(string rawUrl) + { return new MappersRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/ReloadKeys/ReloadKeysRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/ReloadKeys/ReloadKeysRequestBuilder.cs index e010176f..85caa60b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/ReloadKeys/ReloadKeysRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/ReloadKeys/ReloadKeysRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\reload-keys /// - public class ReloadKeysRequestBuilder : BaseRequestBuilder { + public class ReloadKeysRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ReloadKeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys", pathParameters) { + public ReloadKeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys", 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 ReloadKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys", rawUrl) { + public ReloadKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys", rawUrl) + { } /// /// Reaload keys for the identity provider if the provider supports it, "true" is returned if reload was performed, "false" if not. @@ -34,10 +37,12 @@ public ReloadKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public ReloadKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,7 +71,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ReloadKeysRequestBuilder WithUrl(string rawUrl) { + public ReloadKeysRequestBuilder WithUrl(string rawUrl) + { return new ReloadKeysRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/WithAliasItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/WithAliasItemRequestBuilder.cs index 248b53a5..64980650 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/WithAliasItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/WithAliasItemRequestBuilder.cs @@ -17,40 +17,48 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias} /// - public class WithAliasItemRequestBuilder : BaseRequestBuilder { + public class WithAliasItemRequestBuilder : BaseRequestBuilder + { /// The export property - public ExportRequestBuilder Export { get => - new ExportRequestBuilder(PathParameters, RequestAdapter); + public ExportRequestBuilder Export + { + get => new ExportRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public ManagementRequestBuilder Management + { + get => new ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The mappers property - public MappersRequestBuilder Mappers { get => - new MappersRequestBuilder(PathParameters, RequestAdapter); + public MappersRequestBuilder Mappers + { + get => new MappersRequestBuilder(PathParameters, RequestAdapter); } /// The mapperTypes property - public MapperTypesRequestBuilder MapperTypes { get => - new MapperTypesRequestBuilder(PathParameters, RequestAdapter); + public MapperTypesRequestBuilder MapperTypes + { + get => new MapperTypesRequestBuilder(PathParameters, RequestAdapter); } /// The reloadKeys property - public ReloadKeysRequestBuilder ReloadKeys { get => - new ReloadKeysRequestBuilder(PathParameters, RequestAdapter); + public ReloadKeysRequestBuilder ReloadKeys + { + get => new ReloadKeysRequestBuilder(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 WithAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}", pathParameters) { + public WithAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}", 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 WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}", rawUrl) { + public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}", rawUrl) + { } /// /// Delete the identity provider @@ -60,10 +68,12 @@ public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -76,10 +86,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -93,10 +105,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(IdentityProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(IdentityProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(IdentityProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(IdentityProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -109,10 +123,12 @@ public async Task PutAsync(IdentityProviderRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -125,10 +141,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -143,10 +161,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(IdentityProviderRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(IdentityProviderRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(IdentityProviderRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(IdentityProviderRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -159,7 +179,8 @@ public RequestInformation ToPutRequestInformation(IdentityProviderRepresentation /// /// A /// The raw URL to use for the request builder. - public WithAliasItemRequestBuilder WithUrl(string rawUrl) { + public WithAliasItemRequestBuilder WithUrl(string rawUrl) + { return new WithAliasItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_GetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_GetResponse.cs index 79916320..442a2d42 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_GetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_GetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item { - public class WithProvider_GetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class WithProvider_GetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public WithProvider_GetResponse() { + public WithProvider_GetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public WithProvider_GetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static WithProvider_GetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static WithProvider_GetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithProvider_GetResponse(); } @@ -27,15 +32,18 @@ public static WithProvider_GetResponse CreateFromDiscriminatorValue(IParseNode p /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_ItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_ItemRequestBuilder.cs index 9feb1d6a..15dcb7ac 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_ItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_ItemRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\providers\{provider_id} /// - public class WithProvider_ItemRequestBuilder : BaseRequestBuilder { + public class WithProvider_ItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProvider_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers/{provider_id}", pathParameters) { + public WithProvider_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers/{provider_id}", 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 WithProvider_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers/{provider_id}", rawUrl) { + public WithProvider_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers/{provider_id}", rawUrl) + { } /// /// Get the identity provider factory for that provider id @@ -34,10 +37,12 @@ public WithProvider_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, WithProvider_GetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,7 +71,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithProvider_ItemRequestBuilder WithUrl(string rawUrl) { + public WithProvider_ItemRequestBuilder WithUrl(string rawUrl) + { return new WithProvider_ItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/ProvidersRequestBuilder.cs index d03b4107..ce5800b3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/ProvidersRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + public class ProvidersRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.identityProvider.providers.item collection /// The provider id to get the factory /// A - public WithProvider_ItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("provider_id", position); - return new WithProvider_ItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithProvider_ItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("provider_id", position); + return new WithProvider_ItemRequestBuilder(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 ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers", 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 ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Keys/KeysRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Keys/KeysRequestBuilder.cs index 4925d911..4cd8fcec 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Keys/KeysRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Keys/KeysRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys { /// /// Builds and executes requests for operations under \admin\realms\{realm}\keys /// - public class KeysRequestBuilder : BaseRequestBuilder { + public class KeysRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public KeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/keys", pathParameters) { + public KeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/keys", 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 KeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/keys", rawUrl) { + public KeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/keys", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, KeysMetadataRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -44,10 +49,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -59,7 +66,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public KeysRequestBuilder WithUrl(string rawUrl) { + public KeysRequestBuilder WithUrl(string rawUrl) + { return new KeysRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/Item/WithKeyItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/Item/WithKeyItemRequestBuilder.cs index 010f272d..0506cc3b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/Item/WithKeyItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/Item/WithKeyItemRequestBuilder.cs @@ -11,29 +11,34 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\localization\{locale}\{key} /// - public class WithKeyItemRequestBuilder : BaseRequestBuilder { + public class WithKeyItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithKeyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}/{key}", pathParameters) { + public WithKeyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}/{key}", 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 WithKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}/{key}", rawUrl) { + public WithKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}/{key}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -43,10 +48,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -56,10 +63,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -69,10 +78,12 @@ public async Task PutAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -82,10 +93,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -97,10 +110,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -113,7 +128,8 @@ public RequestInformation ToPutRequestInformation(string body, Action /// A /// The raw URL to use for the request builder. - public WithKeyItemRequestBuilder WithUrl(string rawUrl) { + public WithKeyItemRequestBuilder WithUrl(string rawUrl) + { return new WithKeyItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleGetResponse.cs index 37497cfa..f15f9404 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleGetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item { - public class WithLocaleGetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class WithLocaleGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public WithLocaleGetResponse() { + public WithLocaleGetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public WithLocaleGetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static WithLocaleGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static WithLocaleGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithLocaleGetResponse(); } @@ -27,15 +32,18 @@ public static WithLocaleGetResponse CreateFromDiscriminatorValue(IParseNode pars /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleItemRequestBuilder.cs index 782322b1..40c2fae9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleItemRequestBuilder.cs @@ -12,37 +12,46 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\localization\{locale} /// - public class WithLocaleItemRequestBuilder : BaseRequestBuilder { + public class WithLocaleItemRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.localization.item.item collection /// Unique identifier of the item /// A - public WithKeyItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("key", position); - return new WithKeyItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithKeyItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("key", position); + return new WithKeyItemRequestBuilder(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 WithLocaleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}{?useRealmDefaultLocaleFallback*}", pathParameters) { + public WithLocaleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}{?useRealmDefaultLocaleFallback*}", 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 WithLocaleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}{?useRealmDefaultLocaleFallback*}", rawUrl) { + public WithLocaleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}{?useRealmDefaultLocaleFallback*}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -52,10 +61,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, WithLocaleGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -68,10 +79,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(WithLocalePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(WithLocalePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(WithLocalePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(WithLocalePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -81,12 +94,14 @@ public async Task PostAsync(WithLocalePostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/localization/{locale}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); return requestInfo; } @@ -94,10 +109,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -112,13 +129,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(WithLocalePostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(WithLocalePostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(WithLocalePostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(WithLocalePostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/localization/{locale}", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -128,10 +147,14 @@ public RequestInformation ToPostRequestInformation(WithLocalePostRequestBody bod /// /// A /// The raw URL to use for the request builder. - public WithLocaleItemRequestBuilder WithUrl(string rawUrl) { + public WithLocaleItemRequestBuilder WithUrl(string rawUrl) + { return new WithLocaleItemRequestBuilder(rawUrl, RequestAdapter); } - public class WithLocaleItemRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class WithLocaleItemRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [Obsolete("")] [QueryParameter("useRealmDefaultLocaleFallback")] public bool? UseRealmDefaultLocaleFallback { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocalePostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocalePostRequestBody.cs index 6768ad1d..1cc318a4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocalePostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocalePostRequestBody.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item { - public class WithLocalePostRequestBody : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class WithLocalePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public WithLocalePostRequestBody() { + public WithLocalePostRequestBody() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public WithLocalePostRequestBody() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static WithLocalePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static WithLocalePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithLocalePostRequestBody(); } @@ -27,15 +32,18 @@ public static WithLocalePostRequestBody CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/LocalizationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/LocalizationRequestBuilder.cs index 5d6b617a..f36a6dcc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/LocalizationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/LocalizationRequestBuilder.cs @@ -12,38 +12,47 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization { /// /// Builds and executes requests for operations under \admin\realms\{realm}\localization /// - public class LocalizationRequestBuilder : BaseRequestBuilder { + public class LocalizationRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.localization.item collection /// Unique identifier of the item /// A - public WithLocaleItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("locale", position); - return new WithLocaleItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithLocaleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("locale", position); + return new WithLocaleItemRequestBuilder(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 LocalizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization", pathParameters) { + public LocalizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization", 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 LocalizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization", rawUrl) { + public LocalizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization", rawUrl) + { } /// A List<string> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -53,10 +62,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -68,7 +79,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public LocalizationRequestBuilder WithUrl(string rawUrl) { + public LocalizationRequestBuilder WithUrl(string rawUrl) + { return new LocalizationRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/LogoutAll/LogoutAllRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/LogoutAll/LogoutAllRequestBuilder.cs index 9f3314a8..a4bc1a5c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/LogoutAll/LogoutAllRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/LogoutAll/LogoutAllRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll { /// /// Builds and executes requests for operations under \admin\realms\{realm}\logout-all /// - public class LogoutAllRequestBuilder : BaseRequestBuilder { + public class LogoutAllRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LogoutAllRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/logout-all", pathParameters) { + public LogoutAllRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/logout-all", 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 LogoutAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/logout-all", rawUrl) { + public LogoutAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/logout-all", rawUrl) + { } /// /// Any client that has an admin url will also be told to invalidate any sessions they have. @@ -35,10 +38,12 @@ public LogoutAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public LogoutAllRequestBuilder WithUrl(string rawUrl) { + public LogoutAllRequestBuilder WithUrl(string rawUrl) + { return new LogoutAllRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialExport/PartialExportRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialExport/PartialExportRequestBuilder.cs index f9f7a398..b5ba6703 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialExport/PartialExportRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialExport/PartialExportRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport /// /// Builds and executes requests for operations under \admin\realms\{realm}\partial-export /// - public class PartialExportRequestBuilder : BaseRequestBuilder { + public class PartialExportRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PartialExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partial-export{?exportClients*,exportGroupsAndRoles*}", pathParameters) { + public PartialExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partial-export{?exportClients*,exportGroupsAndRoles*}", 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 PartialExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partial-export{?exportClients*,exportGroupsAndRoles*}", rawUrl) { + public PartialExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partial-export{?exportClients*,exportGroupsAndRoles*}", rawUrl) + { } /// /// Partial export of existing realm into a JSON file. @@ -34,10 +37,12 @@ public PartialExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,13 +70,15 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public PartialExportRequestBuilder WithUrl(string rawUrl) { + public PartialExportRequestBuilder WithUrl(string rawUrl) + { return new PartialExportRequestBuilder(rawUrl, RequestAdapter); } /// /// Partial export of existing realm into a JSON file. /// - public class PartialExportRequestBuilderPostQueryParameters { + public class PartialExportRequestBuilderPostQueryParameters + { [QueryParameter("exportClients")] public bool? ExportClients { get; set; } [QueryParameter("exportGroupsAndRoles")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialImport/PartialImportRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialImport/PartialImportRequestBuilder.cs index 7e4354fb..b4dffaee 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialImport/PartialImportRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialImport/PartialImportRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport /// /// Builds and executes requests for operations under \admin\realms\{realm}\partialImport /// - public class PartialImportRequestBuilder : BaseRequestBuilder { + public class PartialImportRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PartialImportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partialImport", pathParameters) { + public PartialImportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partialImport", 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 PartialImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partialImport", rawUrl) { + public PartialImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partialImport", rawUrl) + { } /// /// Partial import from a JSON file to an existing realm. @@ -35,10 +38,12 @@ public PartialImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,7 +75,8 @@ public RequestInformation ToPostRequestInformation(string body, Action /// A /// The raw URL to use for the request builder. - public PartialImportRequestBuilder WithUrl(string rawUrl) { + public PartialImportRequestBuilder WithUrl(string rawUrl) + { return new PartialImportRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PushRevocation/PushRevocationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PushRevocation/PushRevocationRequestBuilder.cs index 5c8163b3..ff0d5c4a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PushRevocation/PushRevocationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PushRevocation/PushRevocationRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation /// /// Builds and executes requests for operations under \admin\realms\{realm}\push-revocation /// - public class PushRevocationRequestBuilder : BaseRequestBuilder { + public class PushRevocationRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PushRevocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/push-revocation", pathParameters) { + public PushRevocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/push-revocation", 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 PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/push-revocation", rawUrl) { + public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/push-revocation", rawUrl) + { } /// /// Push the realm's revocation policy to any client that has an admin url associated with it. @@ -35,10 +38,12 @@ public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public PushRevocationRequestBuilder WithUrl(string rawUrl) { + public PushRevocationRequestBuilder WithUrl(string rawUrl) + { return new PushRevocationRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs index 54ab4285..ccd50c47 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Com /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\composites\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.roles.item.composites.clients.item collection /// Unique identifier of the item /// A - public ClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Duuid", position); - return new ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public ClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Duuid", position); + return new ClientUuItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs index e4725cfc..6d24708c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Com /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\composites\clients\{client-uuid} /// - public class ClientUuItemRequestBuilder : BaseRequestBuilder { + public class ClientUuItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", pathParameters) { + public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", 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 ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", rawUrl) { + public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", rawUrl) + { } /// /// Get client-level roles for the client that are in the role's composite @@ -35,10 +38,12 @@ public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ClientUuItemRequestBuilder WithUrl(string rawUrl) { + public ClientUuItemRequestBuilder WithUrl(string rawUrl) + { return new ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/CompositesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/CompositesRequestBuilder.cs index d3879fbe..14309a22 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/CompositesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/CompositesRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Com /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\composites /// - public class CompositesRequestBuilder : BaseRequestBuilder { + public class CompositesRequestBuilder : BaseRequestBuilder + { /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public ClientsRequestBuilder Clients + { + get => new ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public RealmRequestBuilder Realm + { + get => new RealmRequestBuilder(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 CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites", pathParameters) { + public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites", 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 CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites", rawUrl) { + public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites", rawUrl) + { } /// /// Remove roles from the role's composite @@ -45,10 +50,12 @@ public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public CompositesRequestBuilder WithUrl(string rawUrl) { + public CompositesRequestBuilder WithUrl(string rawUrl) + { return new CompositesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs index adf9c322..9b755cac 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Com /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\composites\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + public class RealmRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/realm", 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 RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/realm", rawUrl) + { } /// /// Get realm-level roles of the role's composite @@ -35,10 +38,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { + public RealmRequestBuilder WithUrl(string rawUrl) + { return new RealmRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Groups/GroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Groups/GroupsRequestBuilder.cs index ca048a5a..fc81ee0f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Groups/GroupsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Gro /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder { + public class GroupsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", pathParameters) { + public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", 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 GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", rawUrl) { + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", rawUrl) + { } /// /// Returns a stream of groups that have the specified role name @@ -35,10 +38,12 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) { + public GroupsRequestBuilder WithUrl(string rawUrl) + { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a stream of groups that have the specified role name /// - public class GroupsRequestBuilderGetQueryParameters { + public class GroupsRequestBuilderGetQueryParameters + { /// if false, return a full representation of the {@code GroupRepresentation} objects. [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/ManagementRequestBuilder.cs index 4c01a8f5..015ca5c7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/ManagementRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Man /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + public class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public PermissionsRequestBuilder Permissions + { + get => new PermissionsRequestBuilder(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 ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management", 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 ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs index 7e401aab..9956a58f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Man /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + public class PermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management/permissions", 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 PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management/permissions", rawUrl) + { } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference @@ -35,10 +38,12 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -52,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -68,10 +75,12 @@ public async Task PutAsync(ManagementPermissionRe /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +95,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -103,7 +114,8 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { + public PermissionsRequestBuilder WithUrl(string rawUrl) + { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/RoleNameItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/RoleNameItemRequestBuilder.cs index f3838846..d54f38c1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/RoleNameItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/RoleNameItemRequestBuilder.cs @@ -16,36 +16,43 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item { /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name} /// - public class RoleNameItemRequestBuilder : BaseRequestBuilder { + public class RoleNameItemRequestBuilder : BaseRequestBuilder + { /// The composites property - public CompositesRequestBuilder Composites { get => - new CompositesRequestBuilder(PathParameters, RequestAdapter); + public CompositesRequestBuilder Composites + { + get => new CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public GroupsRequestBuilder Groups { get => - new GroupsRequestBuilder(PathParameters, RequestAdapter); + public GroupsRequestBuilder Groups + { + get => new GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public ManagementRequestBuilder Management + { + get => new ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users { get => - new UsersRequestBuilder(PathParameters, RequestAdapter); + public UsersRequestBuilder Users + { + get => new UsersRequestBuilder(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 RoleNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}", pathParameters) { + public RoleNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}", 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 RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}", rawUrl) { + public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}", rawUrl) + { } /// /// Delete a role by name @@ -54,10 +61,12 @@ public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -70,10 +79,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -87,10 +98,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -103,10 +116,12 @@ public async Task PutAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -119,10 +134,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -137,10 +154,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -153,7 +172,8 @@ public RequestInformation ToPutRequestInformation(RoleRepresentation body, Actio /// /// A /// The raw URL to use for the request builder. - public RoleNameItemRequestBuilder WithUrl(string rawUrl) { + public RoleNameItemRequestBuilder WithUrl(string rawUrl) + { return new RoleNameItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Users/UsersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Users/UsersRequestBuilder.cs index c64e4e1b..35b3764e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Users/UsersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Users/UsersRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Use /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\users /// - public class UsersRequestBuilder : BaseRequestBuilder { + public class UsersRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/users{?first*,max*}", pathParameters) { + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/users{?first*,max*}", 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 UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/users{?first*,max*}", rawUrl) { + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/users{?first*,max*}", rawUrl) + { } /// /// Returns a stream of users that have the specified role name. @@ -35,10 +38,12 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) { + public UsersRequestBuilder WithUrl(string rawUrl) + { return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a stream of users that have the specified role name. /// - public class UsersRequestBuilderGetQueryParameters { + public class UsersRequestBuilderGetQueryParameters + { /// first result to return. Ignored if negative or {@code null}. [QueryParameter("first")] public int? First { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/RolesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/RolesRequestBuilder.cs index a98cbd94..abcff83a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/RolesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/RolesRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles { /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles /// - public class RolesRequestBuilder : BaseRequestBuilder { + public class RolesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.roles.item collection /// role's name (not id!) /// A - public RoleNameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("role%2Dname", position); - return new RoleNameItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public RoleNameItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("role%2Dname", position); + return new RoleNameItemRequestBuilder(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 RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles{?briefRepresentation*,first*,max*,search*}", pathParameters) { + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles{?briefRepresentation*,first*,max*,search*}", 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 RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles{?briefRepresentation*,first*,max*,search*}", rawUrl) { + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles{?briefRepresentation*,first*,max*,search*}", rawUrl) + { } /// /// Get all roles for the realm or client @@ -44,10 +51,12 @@ public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -62,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +89,12 @@ public async Task PostAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,13 +109,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/roles", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -112,13 +127,15 @@ public RequestInformation ToPostRequestInformation(RoleRepresentation body, Acti /// /// A /// The raw URL to use for the request builder. - public RolesRequestBuilder WithUrl(string rawUrl) { + public RolesRequestBuilder WithUrl(string rawUrl) + { return new RolesRequestBuilder(rawUrl, RequestAdapter); } /// /// Get all roles for the realm or client /// - public class RolesRequestBuilderGetQueryParameters { + public class RolesRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("first")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/ClientsRequestBuilder.cs index f68e6c2b..a52bd4a2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/ClientsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\composites\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.rolesById.item.composites.clients.item collection /// Unique identifier of the item /// A - public WithClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientUuid", position); - return new WithClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientUuid", position); + return new WithClientUuItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/Item/WithClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/Item/WithClientUuItemRequestBuilder.cs index fa95d1c3..1907cf66 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/Item/WithClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/Item/WithClientUuItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\composites\clients\{clientUuid} /// - public class WithClientUuItemRequestBuilder : BaseRequestBuilder { + public class WithClientUuItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients/{clientUuid}", pathParameters) { + public WithClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients/{clientUuid}", 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 WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients/{clientUuid}", rawUrl) { + public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients/{clientUuid}", rawUrl) + { } /// /// Get client-level roles for the client that are in the role's composite @@ -35,10 +38,12 @@ public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithClientUuItemRequestBuilder WithUrl(string rawUrl) { + public WithClientUuItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/CompositesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/CompositesRequestBuilder.cs index 0cef59af..cfe28dd5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/CompositesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/CompositesRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\composites /// - public class CompositesRequestBuilder : BaseRequestBuilder { + public class CompositesRequestBuilder : BaseRequestBuilder + { /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public ClientsRequestBuilder Clients + { + get => new ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public RealmRequestBuilder Realm + { + get => new RealmRequestBuilder(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 CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites{?first*,max*,search*}", pathParameters) { + public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites{?first*,max*,search*}", 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 CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites{?first*,max*,search*}", rawUrl) { + public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites{?first*,max*,search*}", rawUrl) + { } /// /// Remove a set of roles from the role's composite @@ -45,10 +50,12 @@ public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,13 +107,15 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,13 +147,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -148,13 +165,15 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public CompositesRequestBuilder WithUrl(string rawUrl) { + public CompositesRequestBuilder WithUrl(string rawUrl) + { return new CompositesRequestBuilder(rawUrl, RequestAdapter); } /// /// Get role's children Returns a set of role's children provided the role is a composite. /// - public class CompositesRequestBuilderGetQueryParameters { + public class CompositesRequestBuilderGetQueryParameters + { [QueryParameter("first")] public int? First { get; set; } [QueryParameter("max")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Realm/RealmRequestBuilder.cs index 6cf5013b..0ed3fff4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Realm/RealmRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\composites\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + public class RealmRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/realm", 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 RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/realm", rawUrl) + { } /// /// Get realm-level roles that are in the role's composite @@ -35,10 +38,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { + public RealmRequestBuilder WithUrl(string rawUrl) + { return new RealmRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/ManagementRequestBuilder.cs index 61b53e3c..1f2d0242 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/ManagementRequestBuilder.cs @@ -10,24 +10,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + public class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public PermissionsRequestBuilder Permissions + { + get => new PermissionsRequestBuilder(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 ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management", 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 ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/Permissions/PermissionsRequestBuilder.cs index beef1556..b640f6ce 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + public class PermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management/permissions", 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 PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management/permissions", rawUrl) + { } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference @@ -35,10 +38,12 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -52,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -68,10 +75,12 @@ public async Task PutAsync(ManagementPermissionRe /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +95,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -103,7 +114,8 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { + public PermissionsRequestBuilder WithUrl(string rawUrl) + { return new PermissionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/RoleItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/RoleItemRequestBuilder.cs index 1c6eb0bf..847b2bfc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/RoleItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/RoleItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id} /// - public class RoleItemRequestBuilder : BaseRequestBuilder { + public class RoleItemRequestBuilder : BaseRequestBuilder + { /// The composites property - public CompositesRequestBuilder Composites { get => - new CompositesRequestBuilder(PathParameters, RequestAdapter); + public CompositesRequestBuilder Composites + { + get => new CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public ManagementRequestBuilder Management + { + get => new ManagementRequestBuilder(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 RoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}", pathParameters) { + public RoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}", 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 RoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}", rawUrl) { + public RoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}", rawUrl) + { } /// /// Delete the role @@ -44,10 +49,12 @@ public RoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +67,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -76,10 +85,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -92,10 +103,12 @@ public async Task PutAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -108,10 +121,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -126,10 +141,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -142,7 +159,8 @@ public RequestInformation ToPutRequestInformation(RoleRepresentation body, Actio /// /// A /// The raw URL to use for the request builder. - public RoleItemRequestBuilder WithUrl(string rawUrl) { + public RoleItemRequestBuilder WithUrl(string rawUrl) + { return new RoleItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/RolesByIdRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/RolesByIdRequestBuilder.cs index 3c08ae33..0dc870f2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/RolesByIdRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/RolesByIdRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById { /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id /// - public class RolesByIdRequestBuilder : BaseRequestBuilder { + public class RolesByIdRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.rolesById.item collection /// id of role /// A - public RoleItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("role%2Did", position); - return new RoleItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public RoleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("role%2Did", position); + return new RoleItemRequestBuilder(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 RolesByIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id", pathParameters) { + public RolesByIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id", 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 RolesByIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id", rawUrl) { + public RolesByIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/Item/WithSessionItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/Item/WithSessionItemRequestBuilder.cs index 7e5d9705..f0dcfedf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/Item/WithSessionItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/Item/WithSessionItemRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item /// /// Builds and executes requests for operations under \admin\realms\{realm}\sessions\{session} /// - public class WithSessionItemRequestBuilder : BaseRequestBuilder { + public class WithSessionItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions/{session}", pathParameters) { + public WithSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions/{session}", 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 WithSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions/{session}", rawUrl) { + public WithSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions/{session}", rawUrl) + { } /// /// Any client that has an admin url will also be told to invalidate this particular session. @@ -33,10 +36,12 @@ public WithSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToDeleteRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithSessionItemRequestBuilder WithUrl(string rawUrl) { + public WithSessionItemRequestBuilder WithUrl(string rawUrl) + { return new WithSessionItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/SessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/SessionsRequestBuilder.cs index 3c98ff6e..e12475cf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/SessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/SessionsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions { /// /// Builds and executes requests for operations under \admin\realms\{realm}\sessions /// - public class SessionsRequestBuilder : BaseRequestBuilder { + public class SessionsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.sessions.item collection /// Unique identifier of the item /// A - public WithSessionItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("session", position); - return new WithSessionItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("session", position); + return new WithSessionItemRequestBuilder(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 SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions", pathParameters) { + public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions", 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 SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions", rawUrl) { + public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionPostRequestBody.cs index 2606ada9..6fe3114f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionPostRequestBody.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection { - public class TestSMTPConnectionPostRequestBody : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class TestSMTPConnectionPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public TestSMTPConnectionPostRequestBody() { + public TestSMTPConnectionPostRequestBody() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public TestSMTPConnectionPostRequestBody() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static TestSMTPConnectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static TestSMTPConnectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new TestSMTPConnectionPostRequestBody(); } @@ -27,15 +32,18 @@ public static TestSMTPConnectionPostRequestBody CreateFromDiscriminatorValue(IPa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionRequestBuilder.cs index d56829d2..2abf6223 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnec /// /// Builds and executes requests for operations under \admin\realms\{realm}\testSMTPConnection /// - public class TestSMTPConnectionRequestBuilder : BaseRequestBuilder { + public class TestSMTPConnectionRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public TestSMTPConnectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/testSMTPConnection", pathParameters) { + public TestSMTPConnectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/testSMTPConnection", 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 TestSMTPConnectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/testSMTPConnection", rawUrl) { + public TestSMTPConnectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/testSMTPConnection", rawUrl) + { } /// /// Test SMTP connection with current logged in user @@ -36,10 +39,12 @@ public TestSMTPConnectionRequestBuilder(string rawUrl, IRequestAdapter requestAd [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(TestSMTPConnectionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(TestSMTPConnectionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(TestSMTPConnectionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(TestSMTPConnectionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -54,10 +59,12 @@ public async Task PostAsync(TestSMTPConnectionPostRequestBody body, Acti [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TestSMTPConnectionPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(TestSMTPConnectionPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(TestSMTPConnectionPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(TestSMTPConnectionPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -71,7 +78,8 @@ public RequestInformation ToPostRequestInformation(TestSMTPConnectionPostRequest /// A /// The raw URL to use for the request builder. [Obsolete("")] - public TestSMTPConnectionRequestBuilder WithUrl(string rawUrl) { + public TestSMTPConnectionRequestBuilder WithUrl(string rawUrl) + { return new TestSMTPConnectionRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Count/CountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Count/CountRequestBuilder.cs index dfbf777e..d24a58a7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Count/CountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Count/CountRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count { /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\count /// - public class CountRequestBuilder : BaseRequestBuilder { + public class CountRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/count{?email*,emailVerified*,enabled*,firstName*,lastName*,q*,search*,username*}", pathParameters) { + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/count{?email*,emailVerified*,enabled*,firstName*,lastName*,q*,search*,username*}", pathParameters) + { } /// /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/count{?email*,emailVerified*,enabled*,firstName*,lastName*,q*,search*,username*}", rawUrl) { + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/count{?email*,emailVerified*,enabled*,firstName*,lastName*,q*,search*,username*}", rawUrl) + { } /// /// It can be called in three different ways. 1. Don’t specify any criteria and pass {@code null}. The number of all users within that realm will be returned. <p> 2. If {@code search} is specified other criteria such as {@code last} will be ignored even though you set them. The {@code search} string will be matched against the first and last name, the username and the email of a user. <p> 3. If {@code search} is unspecified but any of {@code last}, {@code first}, {@code email} or {@code username} those criteria are matched against their respective fields on a user entity. Combined with a logical and. @@ -34,10 +37,12 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,13 +71,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) { + public CountRequestBuilder WithUrl(string rawUrl) + { return new CountRequestBuilder(rawUrl, RequestAdapter); } /// /// It can be called in three different ways. 1. Don’t specify any criteria and pass {@code null}. The number of all users within that realm will be returned. <p> 2. If {@code search} is specified other criteria such as {@code last} will be ignored even though you set them. The {@code search} string will be matched against the first and last name, the username and the email of a user. <p> 3. If {@code search} is unspecified but any of {@code last}, {@code first}, {@code email} or {@code username} those criteria are matched against their respective fields on a user entity. Combined with a logical and. /// - public class CountRequestBuilderGetQueryParameters { + public class CountRequestBuilderGetQueryParameters + { /// email filter #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ConfiguredUserStorageCredentialTypes/ConfiguredUserStorageCredentialTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ConfiguredUserStorageCredentialTypes/ConfiguredUserStorageCredentialTypesRequestBuilder.cs index 2566efef..98ba79f2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ConfiguredUserStorageCredentialTypes/ConfiguredUserStorageCredentialTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ConfiguredUserStorageCredentialTypes/ConfiguredUserStorageCredentialTypesRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Con /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\configured-user-storage-credential-types /// - public class ConfiguredUserStorageCredentialTypesRequestBuilder : BaseRequestBuilder { + public class ConfiguredUserStorageCredentialTypesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfiguredUserStorageCredentialTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/configured-user-storage-credential-types", pathParameters) { + public ConfiguredUserStorageCredentialTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/configured-user-storage-credential-types", 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 ConfiguredUserStorageCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/configured-user-storage-credential-types", rawUrl) { + public ConfiguredUserStorageCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/configured-user-storage-credential-types", rawUrl) + { } /// /// Returned values can contain for example "password", "otp" etc. This will always return empty list for "local" users, which are not backed by any user storage @@ -34,10 +37,12 @@ public ConfiguredUserStorageCredentialTypesRequestBuilder(string rawUrl, IReques /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ConfiguredUserStorageCredentialTypesRequestBuilder WithUrl(string rawUrl) { + public ConfiguredUserStorageCredentialTypesRequestBuilder WithUrl(string rawUrl) + { return new ConfiguredUserStorageCredentialTypesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Consents.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Consents.cs index f26ecc1d..9c75ddb8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Consents.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Consents.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents { - public class Consents : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Consents : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public Consents() { + public Consents() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public Consents() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Consents CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Consents CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Consents(); } @@ -27,15 +32,18 @@ public static Consents CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/ConsentsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/ConsentsRequestBuilder.cs index e53c6122..ae4bba0e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/ConsentsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/ConsentsRequestBuilder.cs @@ -12,28 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Con /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\consents /// - public class ConsentsRequestBuilder : BaseRequestBuilder { + public class ConsentsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.consents.item collection /// Client id /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new WithClientItemRequestBuilder(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 ConsentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents", pathParameters) { + public ConsentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents", 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 ConsentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents", rawUrl) { + public ConsentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents", rawUrl) + { } /// /// Get consents granted by the user @@ -43,10 +50,12 @@ public ConsentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Consents.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -59,10 +68,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,7 +85,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ConsentsRequestBuilder WithUrl(string rawUrl) { + public ConsentsRequestBuilder WithUrl(string rawUrl) + { return new ConsentsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Item/WithClientItemRequestBuilder.cs index ee479a52..b04b2881 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Item/WithClientItemRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Con /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\consents\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + public class WithClientItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents/{client}", 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 WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents/{client}", rawUrl) + { } /// /// Revoke consent and offline tokens for particular client from user @@ -33,10 +36,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToDeleteRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { + public WithClientItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/CredentialsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/CredentialsRequestBuilder.cs index 777f526d..a04efe8c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/CredentialsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/CredentialsRequestBuilder.cs @@ -13,38 +13,47 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials /// - public class CredentialsRequestBuilder : BaseRequestBuilder { + public class CredentialsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.credentials.item collection /// Unique identifier of the item /// A - public WithCredentialItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("credentialId", position); - return new WithCredentialItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithCredentialItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("credentialId", position); + return new WithCredentialItemRequestBuilder(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 CredentialsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials", pathParameters) { + public CredentialsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials", 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 CredentialsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials", rawUrl) { + public CredentialsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials", rawUrl) + { } /// A List<CredentialRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +63,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -69,7 +80,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CredentialsRequestBuilder WithUrl(string rawUrl) { + public CredentialsRequestBuilder WithUrl(string rawUrl) + { return new CredentialsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/Item/WithNewPreviousCredentialItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/Item/WithNewPreviousCredentialItemRequestBuilder.cs index 3d10049b..f3eaf79a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/Item/WithNewPreviousCredentialItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/Item/WithNewPreviousCredentialItemRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId}\moveAfter\{newPreviousCredentialId} /// - public class WithNewPreviousCredentialItemRequestBuilder : BaseRequestBuilder { + public class WithNewPreviousCredentialItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithNewPreviousCredentialItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}", pathParameters) { + public WithNewPreviousCredentialItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}", 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 WithNewPreviousCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}", rawUrl) { + public WithNewPreviousCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}", rawUrl) + { } /// /// Move a credential to a position behind another credential @@ -33,10 +36,12 @@ public WithNewPreviousCredentialItemRequestBuilder(string rawUrl, IRequestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task PostAsync(Action> /// 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(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithNewPreviousCredentialItemRequestBuilder WithUrl(string rawUrl) { + public WithNewPreviousCredentialItemRequestBuilder WithUrl(string rawUrl) + { return new WithNewPreviousCredentialItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/MoveAfterRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/MoveAfterRequestBuilder.cs index fea65ad2..4eb26fd5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/MoveAfterRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/MoveAfterRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId}\moveAfter /// - public class MoveAfterRequestBuilder : BaseRequestBuilder { + public class MoveAfterRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.credentials.item.moveAfter.item collection /// The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list. /// A - public WithNewPreviousCredentialItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("newPreviousCredentialId", position); - return new WithNewPreviousCredentialItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithNewPreviousCredentialItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("newPreviousCredentialId", position); + return new WithNewPreviousCredentialItemRequestBuilder(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 MoveAfterRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter", pathParameters) { + public MoveAfterRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter", 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 MoveAfterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter", rawUrl) { + public MoveAfterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveToFirst/MoveToFirstRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveToFirst/MoveToFirstRequestBuilder.cs index adb3eeac..34bec038 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveToFirst/MoveToFirstRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveToFirst/MoveToFirstRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId}\moveToFirst /// - public class MoveToFirstRequestBuilder : BaseRequestBuilder { + public class MoveToFirstRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MoveToFirstRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveToFirst", pathParameters) { + public MoveToFirstRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveToFirst", 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 MoveToFirstRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveToFirst", rawUrl) { + public MoveToFirstRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveToFirst", rawUrl) + { } /// /// Move a credential to a first position in the credentials list of the user @@ -33,10 +36,12 @@ public MoveToFirstRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task PostAsync(Action> /// 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(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public MoveToFirstRequestBuilder WithUrl(string rawUrl) { + public MoveToFirstRequestBuilder WithUrl(string rawUrl) + { return new MoveToFirstRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/UserLabel/UserLabelRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/UserLabel/UserLabelRequestBuilder.cs index 5e136a14..5e4d9645 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/UserLabel/UserLabelRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/UserLabel/UserLabelRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId}\userLabel /// - public class UserLabelRequestBuilder : BaseRequestBuilder { + public class UserLabelRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UserLabelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/userLabel", pathParameters) { + public UserLabelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/userLabel", 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 UserLabelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/userLabel", rawUrl) { + public UserLabelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/userLabel", rawUrl) + { } /// /// Update a credential label for a user @@ -34,10 +37,12 @@ public UserLabelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -51,10 +56,12 @@ public async Task PutAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -67,7 +74,8 @@ public RequestInformation ToPutRequestInformation(string body, Action /// A /// The raw URL to use for the request builder. - public UserLabelRequestBuilder WithUrl(string rawUrl) { + public UserLabelRequestBuilder WithUrl(string rawUrl) + { return new UserLabelRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/WithCredentialItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/WithCredentialItemRequestBuilder.cs index 95b60ff6..23905f67 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/WithCredentialItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/WithCredentialItemRequestBuilder.cs @@ -14,32 +14,38 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId} /// - public class WithCredentialItemRequestBuilder : BaseRequestBuilder { + public class WithCredentialItemRequestBuilder : BaseRequestBuilder + { /// The moveAfter property - public MoveAfterRequestBuilder MoveAfter { get => - new MoveAfterRequestBuilder(PathParameters, RequestAdapter); + public MoveAfterRequestBuilder MoveAfter + { + get => new MoveAfterRequestBuilder(PathParameters, RequestAdapter); } /// The moveToFirst property - public MoveToFirstRequestBuilder MoveToFirst { get => - new MoveToFirstRequestBuilder(PathParameters, RequestAdapter); + public MoveToFirstRequestBuilder MoveToFirst + { + get => new MoveToFirstRequestBuilder(PathParameters, RequestAdapter); } /// The userLabel property - public UserLabelRequestBuilder UserLabel { get => - new UserLabelRequestBuilder(PathParameters, RequestAdapter); + public UserLabelRequestBuilder UserLabel + { + get => new UserLabelRequestBuilder(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 WithCredentialItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}", pathParameters) { + public WithCredentialItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}", 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 WithCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}", rawUrl) { + public WithCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}", rawUrl) + { } /// /// Remove a credential for a user @@ -48,10 +54,12 @@ public WithCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -63,10 +71,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -77,7 +87,8 @@ public RequestInformation ToDeleteRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithCredentialItemRequestBuilder WithUrl(string rawUrl) { + public WithCredentialItemRequestBuilder WithUrl(string rawUrl) + { return new WithCredentialItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/DisableCredentialTypes/DisableCredentialTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/DisableCredentialTypes/DisableCredentialTypesRequestBuilder.cs index 2ae1bf54..8e6ebd9a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/DisableCredentialTypes/DisableCredentialTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/DisableCredentialTypes/DisableCredentialTypesRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Dis /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\disable-credential-types /// - public class DisableCredentialTypesRequestBuilder : BaseRequestBuilder { + public class DisableCredentialTypesRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DisableCredentialTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/disable-credential-types", pathParameters) { + public DisableCredentialTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/disable-credential-types", 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 DisableCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/disable-credential-types", rawUrl) { + public DisableCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/disable-credential-types", rawUrl) + { } /// /// Disable all credentials for a user of a specific type @@ -34,10 +37,12 @@ public DisableCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter reque /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -51,10 +56,12 @@ public async Task PutAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -67,7 +74,8 @@ public RequestInformation ToPutRequestInformation(List body, Action /// A /// The raw URL to use for the request builder. - public DisableCredentialTypesRequestBuilder WithUrl(string rawUrl) { + public DisableCredentialTypesRequestBuilder WithUrl(string rawUrl) + { return new DisableCredentialTypesRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ExecuteActionsEmail/ExecuteActionsEmailRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ExecuteActionsEmail/ExecuteActionsEmailRequestBuilder.cs index 3ea17bcc..bb2f16ab 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ExecuteActionsEmail/ExecuteActionsEmailRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ExecuteActionsEmail/ExecuteActionsEmailRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Exe /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\execute-actions-email /// - public class ExecuteActionsEmailRequestBuilder : BaseRequestBuilder { + public class ExecuteActionsEmailRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ExecuteActionsEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/execute-actions-email{?client_id*,lifespan*,redirect_uri*}", pathParameters) { + public ExecuteActionsEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/execute-actions-email{?client_id*,lifespan*,redirect_uri*}", 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 ExecuteActionsEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/execute-actions-email{?client_id*,lifespan*,redirect_uri*}", rawUrl) { + public ExecuteActionsEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/execute-actions-email{?client_id*,lifespan*,redirect_uri*}", rawUrl) + { } /// /// An email contains a link the user can click to perform a set of required actions. The redirectUri and clientId parameters are optional. If no redirect is given, then there will be no link back to click after actions have completed. Redirect uri must be a valid uri for the particular clientId. @@ -35,10 +38,12 @@ public ExecuteActionsEmailRequestBuilder(string rawUrl, IRequestAdapter requestA /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PutAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -68,13 +75,15 @@ public RequestInformation ToPutRequestInformation(List body, Action /// A /// The raw URL to use for the request builder. - public ExecuteActionsEmailRequestBuilder WithUrl(string rawUrl) { + public ExecuteActionsEmailRequestBuilder WithUrl(string rawUrl) + { return new ExecuteActionsEmailRequestBuilder(rawUrl, RequestAdapter); } /// /// An email contains a link the user can click to perform a set of required actions. The redirectUri and clientId parameters are optional. If no redirect is given, then there will be no link back to click after actions have completed. Redirect uri must be a valid uri for the particular clientId. /// - public class ExecuteActionsEmailRequestBuilderPutQueryParameters { + public class ExecuteActionsEmailRequestBuilderPutQueryParameters + { /// Client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/FederatedIdentityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/FederatedIdentityRequestBuilder.cs index f53260ab..e203dd53 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/FederatedIdentityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/FederatedIdentityRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Fed /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\federated-identity /// - public class FederatedIdentityRequestBuilder : BaseRequestBuilder { + public class FederatedIdentityRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.federatedIdentity.item collection /// Social login provider id /// A - public WithProviderItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("provider", position); - return new WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithProviderItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("provider", position); + return new WithProviderItemRequestBuilder(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 FederatedIdentityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity", pathParameters) { + public FederatedIdentityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity", 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 FederatedIdentityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity", rawUrl) { + public FederatedIdentityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity", rawUrl) + { } /// /// Get social logins associated with the user @@ -44,10 +51,12 @@ public FederatedIdentityRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, FederatedIdentityRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +86,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public FederatedIdentityRequestBuilder WithUrl(string rawUrl) { + public FederatedIdentityRequestBuilder WithUrl(string rawUrl) + { return new FederatedIdentityRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/Item/WithProviderItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/Item/WithProviderItemRequestBuilder.cs index 07abe02b..9c5ac583 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/Item/WithProviderItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/Item/WithProviderItemRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Fed /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\federated-identity\{provider} /// - public class WithProviderItemRequestBuilder : BaseRequestBuilder { + public class WithProviderItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity/{provider}", pathParameters) { + public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity/{provider}", 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 WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity/{provider}", rawUrl) { + public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity/{provider}", rawUrl) + { } /// /// Remove a social login provider from user @@ -33,10 +36,12 @@ public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -64,10 +71,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -80,10 +89,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -94,7 +105,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithProviderItemRequestBuilder WithUrl(string rawUrl) { + public WithProviderItemRequestBuilder WithUrl(string rawUrl) + { return new WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountGetResponse.cs index c73e708e..a42ae696 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountGetResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count { - public class CountGetResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class CountGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public CountGetResponse() { + public CountGetResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public CountGetResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CountGetResponse(); } @@ -27,15 +32,18 @@ public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountRequestBuilder.cs index 72355044..660a71e0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountRequestBuilder.cs @@ -11,30 +11,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Gro /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\groups\count /// - public class CountRequestBuilder : BaseRequestBuilder { + public class CountRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/count{?search*}", pathParameters) { + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/count{?search*}", pathParameters) + { } /// /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/count{?search*}", rawUrl) { + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/count{?search*}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -43,10 +48,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -58,10 +65,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) { + public CountRequestBuilder WithUrl(string rawUrl) + { return new CountRequestBuilder(rawUrl, RequestAdapter); } - public class CountRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class CountRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("search")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/GroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/GroupsRequestBuilder.cs index 718a39a3..c630c778 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/GroupsRequestBuilder.cs @@ -14,42 +14,52 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Gro /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder { + public class GroupsRequestBuilder : BaseRequestBuilder + { /// The count property - public CountRequestBuilder Count { get => - new CountRequestBuilder(PathParameters, RequestAdapter); + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.groups.item collection /// Unique identifier of the item /// A - public WithGroupItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("groupId", position); - return new WithGroupItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithGroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("groupId", position); + return new WithGroupItemRequestBuilder(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 GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups{?briefRepresentation*,first*,max*,search*}", pathParameters) { + public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups{?briefRepresentation*,first*,max*,search*}", 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 GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups{?briefRepresentation*,first*,max*,search*}", rawUrl) { + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups{?briefRepresentation*,first*,max*,search*}", rawUrl) + { } /// A List<GroupRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -59,10 +69,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,10 +86,14 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) { + public GroupsRequestBuilder WithUrl(string rawUrl) + { return new GroupsRequestBuilder(rawUrl, RequestAdapter); } - public class GroupsRequestBuilderGetQueryParameters { + #pragma warning disable CS1591 + public class GroupsRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("first")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Item/WithGroupItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Item/WithGroupItemRequestBuilder.cs index c5f8a9cf..6a30c923 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Item/WithGroupItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Item/WithGroupItemRequestBuilder.cs @@ -11,29 +11,34 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Gro /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\groups\{groupId} /// - public class WithGroupItemRequestBuilder : BaseRequestBuilder { + public class WithGroupItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/{groupId}", pathParameters) { + public WithGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/{groupId}", 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 WithGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/{groupId}", rawUrl) { + public WithGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/{groupId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +47,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +61,12 @@ public async Task PutAsync(Action> /// 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) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +76,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -81,7 +92,8 @@ public RequestInformation ToPutRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithGroupItemRequestBuilder WithUrl(string rawUrl) { + public WithGroupItemRequestBuilder WithUrl(string rawUrl) + { return new WithGroupItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationPostResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationPostResponse.cs index 4e0f1f8b..e48084e6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationPostResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationPostResponse.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation { - public class ImpersonationPostResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ImpersonationPostResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ImpersonationPostResponse() { + public ImpersonationPostResponse() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ImpersonationPostResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ImpersonationPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ImpersonationPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ImpersonationPostResponse(); } @@ -27,15 +32,18 @@ public static ImpersonationPostResponse CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationRequestBuilder.cs index c947bdea..b73c7806 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Imp /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\impersonation /// - public class ImpersonationRequestBuilder : BaseRequestBuilder { + public class ImpersonationRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ImpersonationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/impersonation", pathParameters) { + public ImpersonationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/impersonation", 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 ImpersonationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/impersonation", rawUrl) { + public ImpersonationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/impersonation", rawUrl) + { } /// /// Impersonate the user @@ -34,10 +37,12 @@ public ImpersonationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ImpersonationPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,7 +71,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public ImpersonationRequestBuilder WithUrl(string rawUrl) { + public ImpersonationRequestBuilder WithUrl(string rawUrl) + { return new ImpersonationRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Logout/LogoutRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Logout/LogoutRequestBuilder.cs index a87e30d3..5dc35d73 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Logout/LogoutRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Logout/LogoutRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Log /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\logout /// - public class LogoutRequestBuilder : BaseRequestBuilder { + public class LogoutRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LogoutRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/logout", pathParameters) { + public LogoutRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/logout", 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 LogoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/logout", rawUrl) { + public LogoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/logout", rawUrl) + { } /// /// Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. @@ -33,10 +36,12 @@ public LogoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +53,12 @@ public async Task PostAsync(Action> /// 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(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,7 +69,8 @@ public RequestInformation ToPostRequestInformation(Action /// A /// The raw URL to use for the request builder. - public LogoutRequestBuilder WithUrl(string rawUrl) { + public LogoutRequestBuilder WithUrl(string rawUrl) + { return new LogoutRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/Item/WithClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/Item/WithClientUuItemRequestBuilder.cs index a73a69fc..78130c3b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/Item/WithClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/Item/WithClientUuItemRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Off /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\offline-sessions\{clientUuid} /// - public class WithClientUuItemRequestBuilder : BaseRequestBuilder { + public class WithClientUuItemRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions/{clientUuid}", pathParameters) { + public WithClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions/{clientUuid}", 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 WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions/{clientUuid}", rawUrl) { + public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions/{clientUuid}", rawUrl) + { } /// /// Get offline sessions associated with the user and client @@ -35,10 +38,12 @@ public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public WithClientUuItemRequestBuilder WithUrl(string rawUrl) { + public WithClientUuItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs index 1a60fc2f..0bba0094 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Off /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\offline-sessions /// - public class OfflineSessionsRequestBuilder : BaseRequestBuilder { + public class OfflineSessionsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.offlineSessions.item collection /// Unique identifier of the item /// A - public WithClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientUuid", position); - return new WithClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientUuid", position); + return new WithClientUuItemRequestBuilder(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 OfflineSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions", pathParameters) { + public OfflineSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions", 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 OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions", rawUrl) { + public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPassword/ResetPasswordRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPassword/ResetPasswordRequestBuilder.cs index e8c93582..e85c7cb9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPassword/ResetPasswordRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPassword/ResetPasswordRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Res /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\reset-password /// - public class ResetPasswordRequestBuilder : BaseRequestBuilder { + public class ResetPasswordRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResetPasswordRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password", pathParameters) { + public ResetPasswordRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password", 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 ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password", rawUrl) { + public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password", rawUrl) + { } /// /// Set up a new password for the user. @@ -35,10 +38,12 @@ public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(CredentialRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(CredentialRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(CredentialRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(CredentialRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -52,10 +57,12 @@ public async Task PutAsync(CredentialRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(CredentialRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(CredentialRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(CredentialRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(CredentialRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -68,7 +75,8 @@ public RequestInformation ToPutRequestInformation(CredentialRepresentation body, /// /// A /// The raw URL to use for the request builder. - public ResetPasswordRequestBuilder WithUrl(string rawUrl) { + public ResetPasswordRequestBuilder WithUrl(string rawUrl) + { return new ResetPasswordRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPasswordEmail/ResetPasswordEmailRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPasswordEmail/ResetPasswordEmailRequestBuilder.cs index cfc29488..08c0d83d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPasswordEmail/ResetPasswordEmailRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPasswordEmail/ResetPasswordEmailRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Res /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\reset-password-email /// - public class ResetPasswordEmailRequestBuilder : BaseRequestBuilder { + public class ResetPasswordEmailRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResetPasswordEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password-email{?client_id*,redirect_uri*}", pathParameters) { + public ResetPasswordEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password-email{?client_id*,redirect_uri*}", 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 ResetPasswordEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password-email{?client_id*,redirect_uri*}", rawUrl) { + public ResetPasswordEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password-email{?client_id*,redirect_uri*}", rawUrl) + { } /// /// The redirectUri and clientId parameters are optional. The default for the redirect is the account client. This endpoint has been deprecated. Please use the execute-actions-email passing a list with UPDATE_PASSWORD within it. @@ -35,10 +38,12 @@ public ResetPasswordEmailRequestBuilder(string rawUrl, IRequestAdapter requestAd [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task PutAsync(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToPutRequestInformation(ActionA /// The raw URL to use for the request builder. [Obsolete("")] - public ResetPasswordEmailRequestBuilder WithUrl(string rawUrl) { + public ResetPasswordEmailRequestBuilder WithUrl(string rawUrl) + { return new ResetPasswordEmailRequestBuilder(rawUrl, RequestAdapter); } /// /// The redirectUri and clientId parameters are optional. The default for the redirect is the account client. This endpoint has been deprecated. Please use the execute-actions-email passing a list with UPDATE_PASSWORD within it. /// - public class ResetPasswordEmailRequestBuilderPutQueryParameters { + public class ResetPasswordEmailRequestBuilderPutQueryParameters + { /// client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/ClientsRequestBuilder.cs index d3ea3204..fe9c5ee4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/ClientsRequestBuilder.cs @@ -10,28 +10,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + public class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.roleMappings.clients.item collection /// Unique identifier of the item /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new WithClientItemRequestBuilder(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 ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients", 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 ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs index cf55a45a..5f7abca4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/available", rawUrl) + { } /// /// Get available client-level roles that can be mapped to the user @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index 4f853c1e..1cee3e88 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client-level role mappings This recurses any composite roles @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client-level role mappings This recurses any composite roles /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/WithClientItemRequestBuilder.cs index 93e539bf..30a66645 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/WithClientItemRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + public class WithClientItemRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}", 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 WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}", rawUrl) + { } /// /// Delete client-level roles from user role mapping @@ -45,10 +50,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { + public WithClientItemRequestBuilder WithUrl(string rawUrl) + { return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs index 40a6ba41..e559174c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + public class AvailableRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/available", 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 AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that can be mapped @@ -35,10 +38,12 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { + public AvailableRequestBuilder WithUrl(string rawUrl) + { return new AvailableRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs index d0baa362..b29f01fe 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + public class CompositeRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/composite{?briefRepresentation*}", 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 CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. @@ -35,10 +38,12 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,13 +73,15 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { + public CompositeRequestBuilder WithUrl(string rawUrl) + { return new CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. /// - public class CompositeRequestBuilderGetQueryParameters { + public class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/RealmRequestBuilder.cs index 39ad85c8..647acfae 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/RealmRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + public class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public AvailableRequestBuilder Available + { + get => new AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public CompositeRequestBuilder Composite + { + get => new CompositeRequestBuilder(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 RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm", 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 RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm", rawUrl) + { } /// /// Delete realm-level role mappings @@ -45,10 +50,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -62,10 +69,12 @@ public async Task DeleteAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -79,10 +88,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +107,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +127,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +147,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -148,7 +165,8 @@ public RequestInformation ToPostRequestInformation(List body /// /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { + public RealmRequestBuilder WithUrl(string rawUrl) + { return new RealmRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/RoleMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/RoleMappingsRequestBuilder.cs index 7ed5ffb7..feecea48 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/RoleMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/RoleMappingsRequestBuilder.cs @@ -14,28 +14,33 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings /// - public class RoleMappingsRequestBuilder : BaseRequestBuilder { + public class RoleMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public ClientsRequestBuilder Clients + { + get => new ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public RealmRequestBuilder Realm + { + get => new RealmRequestBuilder(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 RoleMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings", pathParameters) { + public RoleMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings", 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 RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings", rawUrl) { + public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings", rawUrl) + { } /// /// Get role mappings @@ -45,10 +50,12 @@ public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -60,10 +67,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,7 +84,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public RoleMappingsRequestBuilder WithUrl(string rawUrl) { + public RoleMappingsRequestBuilder WithUrl(string rawUrl) + { return new RoleMappingsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/SendVerifyEmail/SendVerifyEmailRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/SendVerifyEmail/SendVerifyEmailRequestBuilder.cs index ea6d2afe..a7c6d336 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/SendVerifyEmail/SendVerifyEmailRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/SendVerifyEmail/SendVerifyEmailRequestBuilder.cs @@ -11,20 +11,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sen /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\send-verify-email /// - public class SendVerifyEmailRequestBuilder : BaseRequestBuilder { + public class SendVerifyEmailRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SendVerifyEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/send-verify-email{?client_id*,lifespan*,redirect_uri*}", pathParameters) { + public SendVerifyEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/send-verify-email{?client_id*,lifespan*,redirect_uri*}", 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 SendVerifyEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/send-verify-email{?client_id*,lifespan*,redirect_uri*}", rawUrl) { + public SendVerifyEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/send-verify-email{?client_id*,lifespan*,redirect_uri*}", rawUrl) + { } /// /// The redirectUri, clientId and lifespan parameters are optional. The default for the redirect is the account client. The default for the lifespan is 12 hours @@ -34,10 +37,12 @@ public SendVerifyEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +54,12 @@ public async Task PutAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,13 +70,15 @@ public RequestInformation ToPutRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SendVerifyEmailRequestBuilder WithUrl(string rawUrl) { + public SendVerifyEmailRequestBuilder WithUrl(string rawUrl) + { return new SendVerifyEmailRequestBuilder(rawUrl, RequestAdapter); } /// /// The redirectUri, clientId and lifespan parameters are optional. The default for the redirect is the account client. The default for the lifespan is 12 hours /// - public class SendVerifyEmailRequestBuilderPutQueryParameters { + public class SendVerifyEmailRequestBuilderPutQueryParameters + { /// Client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Sessions/SessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Sessions/SessionsRequestBuilder.cs index 43160532..3054b75f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Sessions/SessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Sessions/SessionsRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Ses /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\sessions /// - public class SessionsRequestBuilder : BaseRequestBuilder { + public class SessionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/sessions", pathParameters) { + public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/sessions", 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 SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/sessions", rawUrl) { + public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/sessions", rawUrl) + { } /// /// Get sessions associated with the user @@ -35,10 +38,12 @@ public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +56,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,7 +73,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public SessionsRequestBuilder WithUrl(string rawUrl) { + public SessionsRequestBuilder WithUrl(string rawUrl) + { return new SessionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UserItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UserItemRequestBuilder.cs index 914c810f..197d8699 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UserItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UserItemRequestBuilder.cs @@ -27,80 +27,98 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item { /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id} /// - public class UserItemRequestBuilder : BaseRequestBuilder { + public class UserItemRequestBuilder : BaseRequestBuilder + { /// The configuredUserStorageCredentialTypes property - public ConfiguredUserStorageCredentialTypesRequestBuilder ConfiguredUserStorageCredentialTypes { get => - new ConfiguredUserStorageCredentialTypesRequestBuilder(PathParameters, RequestAdapter); + public ConfiguredUserStorageCredentialTypesRequestBuilder ConfiguredUserStorageCredentialTypes + { + get => new ConfiguredUserStorageCredentialTypesRequestBuilder(PathParameters, RequestAdapter); } /// The consents property - public ConsentsRequestBuilder Consents { get => - new ConsentsRequestBuilder(PathParameters, RequestAdapter); + public ConsentsRequestBuilder Consents + { + get => new ConsentsRequestBuilder(PathParameters, RequestAdapter); } /// The credentials property - public CredentialsRequestBuilder Credentials { get => - new CredentialsRequestBuilder(PathParameters, RequestAdapter); + public CredentialsRequestBuilder Credentials + { + get => new CredentialsRequestBuilder(PathParameters, RequestAdapter); } /// The disableCredentialTypes property - public DisableCredentialTypesRequestBuilder DisableCredentialTypes { get => - new DisableCredentialTypesRequestBuilder(PathParameters, RequestAdapter); + public DisableCredentialTypesRequestBuilder DisableCredentialTypes + { + get => new DisableCredentialTypesRequestBuilder(PathParameters, RequestAdapter); } /// The executeActionsEmail property - public ExecuteActionsEmailRequestBuilder ExecuteActionsEmail { get => - new ExecuteActionsEmailRequestBuilder(PathParameters, RequestAdapter); + public ExecuteActionsEmailRequestBuilder ExecuteActionsEmail + { + get => new ExecuteActionsEmailRequestBuilder(PathParameters, RequestAdapter); } /// The federatedIdentity property - public FederatedIdentityRequestBuilder FederatedIdentity { get => - new FederatedIdentityRequestBuilder(PathParameters, RequestAdapter); + public FederatedIdentityRequestBuilder FederatedIdentity + { + get => new FederatedIdentityRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public GroupsRequestBuilder Groups { get => - new GroupsRequestBuilder(PathParameters, RequestAdapter); + public GroupsRequestBuilder Groups + { + get => new GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The impersonation property - public ImpersonationRequestBuilder Impersonation { get => - new ImpersonationRequestBuilder(PathParameters, RequestAdapter); + public ImpersonationRequestBuilder Impersonation + { + get => new ImpersonationRequestBuilder(PathParameters, RequestAdapter); } /// The logout property - public LogoutRequestBuilder Logout { get => - new LogoutRequestBuilder(PathParameters, RequestAdapter); + public LogoutRequestBuilder Logout + { + get => new LogoutRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessions property - public OfflineSessionsRequestBuilder OfflineSessions { get => - new OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); + public OfflineSessionsRequestBuilder OfflineSessions + { + get => new OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); } /// The resetPassword property - public ResetPasswordRequestBuilder ResetPassword { get => - new ResetPasswordRequestBuilder(PathParameters, RequestAdapter); + public ResetPasswordRequestBuilder ResetPassword + { + get => new ResetPasswordRequestBuilder(PathParameters, RequestAdapter); } /// The resetPasswordEmail property - public ResetPasswordEmailRequestBuilder ResetPasswordEmail { get => - new ResetPasswordEmailRequestBuilder(PathParameters, RequestAdapter); + public ResetPasswordEmailRequestBuilder ResetPasswordEmail + { + get => new ResetPasswordEmailRequestBuilder(PathParameters, RequestAdapter); } /// The roleMappings property - public RoleMappingsRequestBuilder RoleMappings { get => - new RoleMappingsRequestBuilder(PathParameters, RequestAdapter); + public RoleMappingsRequestBuilder RoleMappings + { + get => new RoleMappingsRequestBuilder(PathParameters, RequestAdapter); } /// The sendVerifyEmail property - public SendVerifyEmailRequestBuilder SendVerifyEmail { get => - new SendVerifyEmailRequestBuilder(PathParameters, RequestAdapter); + public SendVerifyEmailRequestBuilder SendVerifyEmail + { + get => new SendVerifyEmailRequestBuilder(PathParameters, RequestAdapter); } /// The sessions property - public SessionsRequestBuilder Sessions { get => - new SessionsRequestBuilder(PathParameters, RequestAdapter); + public SessionsRequestBuilder Sessions + { + get => new SessionsRequestBuilder(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 UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}{?userProfileMetadata*}", pathParameters) { + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}{?userProfileMetadata*}", 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 UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}{?userProfileMetadata*}", rawUrl) { + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}{?userProfileMetadata*}", rawUrl) + { } /// /// Delete the user @@ -110,10 +128,12 @@ public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -126,10 +146,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -143,10 +165,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(UserRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(UserRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(UserRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(UserRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -159,12 +183,14 @@ public async Task PutAsync(UserRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); return requestInfo; } @@ -175,10 +201,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -193,13 +221,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(UserRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(UserRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(UserRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(UserRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -209,13 +239,15 @@ public RequestInformation ToPutRequestInformation(UserRepresentation body, Actio /// /// A /// The raw URL to use for the request builder. - public UserItemRequestBuilder WithUrl(string rawUrl) { + public UserItemRequestBuilder WithUrl(string rawUrl) + { return new UserItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Get representation of the user /// - public class UserItemRequestBuilderGetQueryParameters { + public class UserItemRequestBuilderGetQueryParameters + { /// Indicates if the user profile metadata should be added to the response [QueryParameter("userProfileMetadata")] public bool? UserProfileMetadata { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/Metadata/MetadataRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/Metadata/MetadataRequestBuilder.cs index 8d063adf..4ce7c514 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/Metadata/MetadataRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/Metadata/MetadataRequestBuilder.cs @@ -12,20 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile. /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\profile\metadata /// - public class MetadataRequestBuilder : BaseRequestBuilder { + public class MetadataRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MetadataRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile/metadata", pathParameters) { + public MetadataRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile/metadata", 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 MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile/metadata", rawUrl) { + public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile/metadata", rawUrl) + { } /// /// Get the UserProfileMetadata from the configuration @@ -35,10 +38,12 @@ public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, UserProfileMetadata.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -50,10 +55,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,7 +72,8 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. - public MetadataRequestBuilder WithUrl(string rawUrl) { + public MetadataRequestBuilder WithUrl(string rawUrl) + { return new MetadataRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/ProfileRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/ProfileRequestBuilder.cs index 01e78257..00304b47 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/ProfileRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/ProfileRequestBuilder.cs @@ -13,24 +13,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\profile /// - public class ProfileRequestBuilder : BaseRequestBuilder { + public class ProfileRequestBuilder : BaseRequestBuilder + { /// The metadata property - public MetadataRequestBuilder Metadata { get => - new MetadataRequestBuilder(PathParameters, RequestAdapter); + public MetadataRequestBuilder Metadata + { + get => new MetadataRequestBuilder(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 ProfileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile", pathParameters) { + public ProfileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile", 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 ProfileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile", rawUrl) { + public ProfileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile", rawUrl) + { } /// /// Get the configuration for the user profile @@ -40,10 +44,12 @@ public ProfileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, UPConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -57,10 +63,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(UPConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(UPConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(UPConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(UPConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -73,10 +81,12 @@ public async Task PutAsync(UPConfig body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -91,10 +101,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(UPConfig body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(UPConfig body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(UPConfig body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(UPConfig body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -108,7 +120,8 @@ public RequestInformation ToPutRequestInformation(UPConfig body, Action /// A /// The raw URL to use for the request builder. - public ProfileRequestBuilder WithUrl(string rawUrl) { + public ProfileRequestBuilder WithUrl(string rawUrl) + { return new ProfileRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/UsersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/UsersRequestBuilder.cs index 8d3b4440..b26bd0c1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/UsersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/UsersRequestBuilder.cs @@ -15,36 +15,45 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users { /// /// Builds and executes requests for operations under \admin\realms\{realm}\users /// - public class UsersRequestBuilder : BaseRequestBuilder { + public class UsersRequestBuilder : BaseRequestBuilder + { /// The count property - public CountRequestBuilder Count { get => - new CountRequestBuilder(PathParameters, RequestAdapter); + public CountRequestBuilder Count + { + get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// The profile property - public ProfileRequestBuilder Profile { get => - new ProfileRequestBuilder(PathParameters, RequestAdapter); + public ProfileRequestBuilder Profile + { + get => new ProfileRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item collection /// Unique identifier of the item /// A - public UserItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("user%2Did", position); - return new UserItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public UserItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("user%2Did", position); + return new UserItemRequestBuilder(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 UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users{?briefRepresentation*,email*,emailVerified*,enabled*,exact*,first*,firstName*,idpAlias*,idpUserId*,lastName*,max*,q*,search*,username*}", pathParameters) { + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users{?briefRepresentation*,email*,emailVerified*,enabled*,exact*,first*,firstName*,idpAlias*,idpUserId*,lastName*,max*,q*,search*,username*}", 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 UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users{?briefRepresentation*,email*,emailVerified*,enabled*,exact*,first*,firstName*,idpAlias*,idpUserId*,lastName*,max*,q*,search*,username*}", rawUrl) { + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users{?briefRepresentation*,email*,emailVerified*,enabled*,exact*,first*,firstName*,idpAlias*,idpUserId*,lastName*,max*,q*,search*,username*}", rawUrl) + { } /// /// Get users Returns a stream of users, filtered according to query parameters. @@ -54,10 +63,12 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -72,10 +83,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(UserRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(UserRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(UserRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(UserRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -88,10 +101,12 @@ public async Task PostAsync(UserRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -106,13 +121,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(UserRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(UserRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(UserRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/users", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -122,13 +139,15 @@ public RequestInformation ToPostRequestInformation(UserRepresentation body, Acti /// /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) { + public UsersRequestBuilder WithUrl(string rawUrl) + { return new UsersRequestBuilder(rawUrl, RequestAdapter); } /// /// Get users Returns a stream of users, filtered according to query parameters. /// - public class UsersRequestBuilderGetQueryParameters { + public class UsersRequestBuilderGetQueryParameters + { /// Boolean which defines whether brief representations are returned (default: false) [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/UsersManagementPermissions/UsersManagementPermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/UsersManagementPermissions/UsersManagementPermissionsRequestBuilder.cs index 329007dd..a2fcda79 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/UsersManagementPermissions/UsersManagementPermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/UsersManagementPermissions/UsersManagementPermissionsRequestBuilder.cs @@ -12,30 +12,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagemen /// /// Builds and executes requests for operations under \admin\realms\{realm}\users-management-permissions /// - public class UsersManagementPermissionsRequestBuilder : BaseRequestBuilder { + public class UsersManagementPermissionsRequestBuilder : BaseRequestBuilder + { /// /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UsersManagementPermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users-management-permissions", pathParameters) { + public UsersManagementPermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users-management-permissions", 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 UsersManagementPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users-management-permissions", rawUrl) { + public UsersManagementPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users-management-permissions", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -46,10 +51,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -59,10 +66,12 @@ public async Task PutAsync(ManagementPermissionRe /// 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) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,10 +83,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -91,7 +102,8 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// A /// The raw URL to use for the request builder. - public UsersManagementPermissionsRequestBuilder WithUrl(string rawUrl) { + public UsersManagementPermissionsRequestBuilder WithUrl(string rawUrl) + { return new UsersManagementPermissionsRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs index 5655f822..f7b84332 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs @@ -44,148 +44,183 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item { /// /// Builds and executes requests for operations under \admin\realms\{realm} /// - public class WithRealmItemRequestBuilder : BaseRequestBuilder { + public class WithRealmItemRequestBuilder : BaseRequestBuilder + { /// The adminEvents property - public AdminEventsRequestBuilder AdminEvents { get => - new AdminEventsRequestBuilder(PathParameters, RequestAdapter); + public AdminEventsRequestBuilder AdminEvents + { + get => new AdminEventsRequestBuilder(PathParameters, RequestAdapter); } /// The attackDetection property - public AttackDetectionRequestBuilder AttackDetection { get => - new AttackDetectionRequestBuilder(PathParameters, RequestAdapter); + public AttackDetectionRequestBuilder AttackDetection + { + get => new AttackDetectionRequestBuilder(PathParameters, RequestAdapter); } /// The authentication property - public AuthenticationRequestBuilder Authentication { get => - new AuthenticationRequestBuilder(PathParameters, RequestAdapter); + public AuthenticationRequestBuilder Authentication + { + get => new AuthenticationRequestBuilder(PathParameters, RequestAdapter); } /// The clientDescriptionConverter property - public ClientDescriptionConverterRequestBuilder ClientDescriptionConverter { get => - new ClientDescriptionConverterRequestBuilder(PathParameters, RequestAdapter); + public ClientDescriptionConverterRequestBuilder ClientDescriptionConverter + { + get => new ClientDescriptionConverterRequestBuilder(PathParameters, RequestAdapter); } /// The clientPolicies property - public ClientPoliciesRequestBuilder ClientPolicies { get => - new ClientPoliciesRequestBuilder(PathParameters, RequestAdapter); + public ClientPoliciesRequestBuilder ClientPolicies + { + get => new ClientPoliciesRequestBuilder(PathParameters, RequestAdapter); } /// The clientRegistrationPolicy property - public ClientRegistrationPolicyRequestBuilder ClientRegistrationPolicy { get => - new ClientRegistrationPolicyRequestBuilder(PathParameters, RequestAdapter); + public ClientRegistrationPolicyRequestBuilder ClientRegistrationPolicy + { + get => new ClientRegistrationPolicyRequestBuilder(PathParameters, RequestAdapter); } /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public ClientsRequestBuilder Clients + { + get => new ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The clientScopes property - public ClientScopesRequestBuilder ClientScopes { get => - new ClientScopesRequestBuilder(PathParameters, RequestAdapter); + public ClientScopesRequestBuilder ClientScopes + { + get => new ClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The clientSessionStats property - public ClientSessionStatsRequestBuilder ClientSessionStats { get => - new ClientSessionStatsRequestBuilder(PathParameters, RequestAdapter); + public ClientSessionStatsRequestBuilder ClientSessionStats + { + get => new ClientSessionStatsRequestBuilder(PathParameters, RequestAdapter); } /// The clientsInitialAccess property - public ClientsInitialAccessRequestBuilder ClientsInitialAccess { get => - new ClientsInitialAccessRequestBuilder(PathParameters, RequestAdapter); + public ClientsInitialAccessRequestBuilder ClientsInitialAccess + { + get => new ClientsInitialAccessRequestBuilder(PathParameters, RequestAdapter); } /// The clientTemplates property - public ClientTemplatesRequestBuilder ClientTemplates { get => - new ClientTemplatesRequestBuilder(PathParameters, RequestAdapter); + public ClientTemplatesRequestBuilder ClientTemplates + { + get => new ClientTemplatesRequestBuilder(PathParameters, RequestAdapter); } /// The components property - public ComponentsRequestBuilder Components { get => - new ComponentsRequestBuilder(PathParameters, RequestAdapter); + public ComponentsRequestBuilder Components + { + get => new ComponentsRequestBuilder(PathParameters, RequestAdapter); } /// The credentialRegistrators property - public CredentialRegistratorsRequestBuilder CredentialRegistrators { get => - new CredentialRegistratorsRequestBuilder(PathParameters, RequestAdapter); + public CredentialRegistratorsRequestBuilder CredentialRegistrators + { + get => new CredentialRegistratorsRequestBuilder(PathParameters, RequestAdapter); } /// The defaultDefaultClientScopes property - public DefaultDefaultClientScopesRequestBuilder DefaultDefaultClientScopes { get => - new DefaultDefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); + public DefaultDefaultClientScopesRequestBuilder DefaultDefaultClientScopes + { + get => new DefaultDefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The defaultGroups property - public DefaultGroupsRequestBuilder DefaultGroups { get => - new DefaultGroupsRequestBuilder(PathParameters, RequestAdapter); + public DefaultGroupsRequestBuilder DefaultGroups + { + get => new DefaultGroupsRequestBuilder(PathParameters, RequestAdapter); } /// The defaultOptionalClientScopes property - public DefaultOptionalClientScopesRequestBuilder DefaultOptionalClientScopes { get => - new DefaultOptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); + public DefaultOptionalClientScopesRequestBuilder DefaultOptionalClientScopes + { + get => new DefaultOptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The events property - public EventsRequestBuilder Events { get => - new EventsRequestBuilder(PathParameters, RequestAdapter); + public EventsRequestBuilder Events + { + get => new EventsRequestBuilder(PathParameters, RequestAdapter); } /// The groupByPath property - public GroupByPathRequestBuilder GroupByPath { get => - new GroupByPathRequestBuilder(PathParameters, RequestAdapter); + public GroupByPathRequestBuilder GroupByPath + { + get => new GroupByPathRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public GroupsRequestBuilder Groups { get => - new GroupsRequestBuilder(PathParameters, RequestAdapter); + public GroupsRequestBuilder Groups + { + get => new GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The identityProvider property - public IdentityProviderRequestBuilder IdentityProvider { get => - new IdentityProviderRequestBuilder(PathParameters, RequestAdapter); + public IdentityProviderRequestBuilder IdentityProvider + { + get => new IdentityProviderRequestBuilder(PathParameters, RequestAdapter); } /// The keys property - public KeysRequestBuilder Keys { get => - new KeysRequestBuilder(PathParameters, RequestAdapter); + public KeysRequestBuilder Keys + { + get => new KeysRequestBuilder(PathParameters, RequestAdapter); } /// The localization property - public LocalizationRequestBuilder Localization { get => - new LocalizationRequestBuilder(PathParameters, RequestAdapter); + public LocalizationRequestBuilder Localization + { + get => new LocalizationRequestBuilder(PathParameters, RequestAdapter); } /// The logoutAll property - public LogoutAllRequestBuilder LogoutAll { get => - new LogoutAllRequestBuilder(PathParameters, RequestAdapter); + public LogoutAllRequestBuilder LogoutAll + { + get => new LogoutAllRequestBuilder(PathParameters, RequestAdapter); } /// The partialExport property - public PartialExportRequestBuilder PartialExport { get => - new PartialExportRequestBuilder(PathParameters, RequestAdapter); + public PartialExportRequestBuilder PartialExport + { + get => new PartialExportRequestBuilder(PathParameters, RequestAdapter); } /// The partialImport property - public PartialImportRequestBuilder PartialImport { get => - new PartialImportRequestBuilder(PathParameters, RequestAdapter); + public PartialImportRequestBuilder PartialImport + { + get => new PartialImportRequestBuilder(PathParameters, RequestAdapter); } /// The pushRevocation property - public PushRevocationRequestBuilder PushRevocation { get => - new PushRevocationRequestBuilder(PathParameters, RequestAdapter); + public PushRevocationRequestBuilder PushRevocation + { + get => new PushRevocationRequestBuilder(PathParameters, RequestAdapter); } /// The roles property - public RolesRequestBuilder Roles { get => - new RolesRequestBuilder(PathParameters, RequestAdapter); + public RolesRequestBuilder Roles + { + get => new RolesRequestBuilder(PathParameters, RequestAdapter); } /// The rolesById property - public RolesByIdRequestBuilder RolesById { get => - new RolesByIdRequestBuilder(PathParameters, RequestAdapter); + public RolesByIdRequestBuilder RolesById + { + get => new RolesByIdRequestBuilder(PathParameters, RequestAdapter); } /// The sessions property - public SessionsRequestBuilder Sessions { get => - new SessionsRequestBuilder(PathParameters, RequestAdapter); + public SessionsRequestBuilder Sessions + { + get => new SessionsRequestBuilder(PathParameters, RequestAdapter); } /// The testSMTPConnection property - public TestSMTPConnectionRequestBuilder TestSMTPConnection { get => - new TestSMTPConnectionRequestBuilder(PathParameters, RequestAdapter); + public TestSMTPConnectionRequestBuilder TestSMTPConnection + { + get => new TestSMTPConnectionRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users { get => - new UsersRequestBuilder(PathParameters, RequestAdapter); + public UsersRequestBuilder Users + { + get => new UsersRequestBuilder(PathParameters, RequestAdapter); } /// The usersManagementPermissions property - public UsersManagementPermissionsRequestBuilder UsersManagementPermissions { get => - new UsersManagementPermissionsRequestBuilder(PathParameters, RequestAdapter); + public UsersManagementPermissionsRequestBuilder UsersManagementPermissions + { + get => new UsersManagementPermissionsRequestBuilder(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 WithRealmItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}", pathParameters) { + public WithRealmItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}", 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 WithRealmItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}", rawUrl) { + public WithRealmItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}", rawUrl) + { } /// /// Delete the realm @@ -194,10 +229,12 @@ public WithRealmItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -210,10 +247,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendAsync(requestInfo, RealmRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -227,10 +266,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RealmRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RealmRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RealmRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(RealmRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -243,10 +284,12 @@ public async Task PutAsync(RealmRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -259,10 +302,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -277,10 +322,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RealmRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RealmRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RealmRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(RealmRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -293,7 +340,8 @@ public RequestInformation ToPutRequestInformation(RealmRepresentation body, Acti /// /// A /// The raw URL to use for the request builder. - public WithRealmItemRequestBuilder WithUrl(string rawUrl) { + public WithRealmItemRequestBuilder WithUrl(string rawUrl) + { return new WithRealmItemRequestBuilder(rawUrl, RequestAdapter); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs index e4ff91c3..417c8f43 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs @@ -13,28 +13,35 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms { /// /// Builds and executes requests for operations under \admin\realms /// - public class RealmsRequestBuilder : BaseRequestBuilder { + public class RealmsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item collection /// realm name (not id!) /// A - public WithRealmItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("realm", position); - return new WithRealmItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public WithRealmItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("realm", position); + return new WithRealmItemRequestBuilder(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 RealmsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms{?briefRepresentation*}", pathParameters) { + public RealmsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms{?briefRepresentation*}", 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 RealmsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms{?briefRepresentation*}", rawUrl) { + public RealmsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms{?briefRepresentation*}", rawUrl) + { } /// /// Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. @@ -44,10 +51,12 @@ public RealmsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RealmRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); @@ -61,10 +70,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -77,10 +88,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,13 +108,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromScalar(RequestAdapter, "application/json", body); return requestInfo; @@ -111,13 +126,15 @@ public RequestInformation ToPostRequestInformation(string body, Action /// A /// The raw URL to use for the request builder. - public RealmsRequestBuilder WithUrl(string rawUrl) { + public RealmsRequestBuilder WithUrl(string rawUrl) + { return new RealmsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. /// - public class RealmsRequestBuilderGetQueryParameters { + public class RealmsRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs b/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs index f96147ec..624e3e25 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs @@ -15,16 +15,19 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin { /// /// The main entry point of the SDK, exposes the configuration and the fluent API. /// - public class KeycloakAdminApiClient : BaseRequestBuilder { + public class KeycloakAdminApiClient : BaseRequestBuilder + { /// The admin property - public AdminRequestBuilder Admin { get => - new AdminRequestBuilder(PathParameters, RequestAdapter); + public AdminRequestBuilder Admin + { + get => new AdminRequestBuilder(PathParameters, RequestAdapter); } /// /// Instantiates a new and sets the default values. /// /// The request adapter to use to execute the requests. - public KeycloakAdminApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) { + public KeycloakAdminApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) + { ApiClientBuilder.RegisterDefaultSerializer(); ApiClientBuilder.RegisterDefaultSerializer(); ApiClientBuilder.RegisterDefaultSerializer(); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs index 136e6b3c..20e0e437 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The decisionStrategy property @@ -95,7 +98,8 @@ public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public AbstractPolicyRepresentation() { + public AbstractPolicyRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -103,7 +107,8 @@ public AbstractPolicyRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AbstractPolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AbstractPolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AbstractPolicyRepresentation(); } @@ -111,8 +116,10 @@ public static AbstractPolicyRepresentation CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -131,7 +138,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("decisionStrategy", DecisionStrategy); writer.WriteStringValue("description", Description); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs index 394df3e9..db60334f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Access : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The roles property @@ -21,7 +24,8 @@ public class Access : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public Access() { + public Access() + { AdditionalData = new Dictionary(); } /// @@ -29,7 +33,8 @@ public Access() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Access(); } @@ -37,8 +42,10 @@ public static Access CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"verify_caller", n => { VerifyCaller = n.GetBoolValue(); } }, }; @@ -47,7 +54,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("roles", Roles); writer.WriteBoolValue("verify_caller", VerifyCaller); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs index 5d2aadb4..2b047622 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AccessToken : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AccessToken : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The acr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -324,7 +327,8 @@ public class AccessToken : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public AccessToken() { + public AccessToken() + { AdditionalData = new Dictionary(); } /// @@ -332,7 +336,8 @@ public AccessToken() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AccessToken CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AccessToken CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AccessToken(); } @@ -340,8 +345,10 @@ public static AccessToken CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"acr", n => { Acr = n.GetStringValue(); } }, {"address", n => { Address = n.GetObjectValue(AddressClaimSet.CreateFromDiscriminatorValue); } }, {"allowed-origins", n => { AllowedOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -393,7 +400,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("acr", Acr); writer.WriteObjectValue("address", Address); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs index 00e4c680..35a399e6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AccessToken_otherClaims : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AccessToken_otherClaims : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public AccessToken_otherClaims() { + public AccessToken_otherClaims() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public AccessToken_otherClaims() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AccessToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AccessToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AccessToken_otherClaims(); } @@ -27,15 +32,18 @@ public static AccessToken_otherClaims CreateFromDiscriminatorValue(IParseNode pa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs index 61fe1168..6fab3937 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AccessToken_resource_access : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AccessToken_resource_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public AccessToken_resource_access() { + public AccessToken_resource_access() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public AccessToken_resource_access() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AccessToken_resource_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AccessToken_resource_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AccessToken_resource_access(); } @@ -27,15 +32,18 @@ public static AccessToken_resource_access CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs index 36fa54a0..650053d8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AddressClaimSet : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AddressClaimSet : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The country property @@ -59,7 +62,8 @@ public class AddressClaimSet : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public AddressClaimSet() { + public AddressClaimSet() + { AdditionalData = new Dictionary(); } /// @@ -67,7 +71,8 @@ public AddressClaimSet() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AddressClaimSet CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AddressClaimSet CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AddressClaimSet(); } @@ -75,8 +80,10 @@ public static AddressClaimSet CreateFromDiscriminatorValue(IParseNode parseNode) /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"country", n => { Country = n.GetStringValue(); } }, {"formatted", n => { Formatted = n.GetStringValue(); } }, {"locality", n => { Locality = n.GetStringValue(); } }, @@ -89,7 +96,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("country", Country); writer.WriteStringValue("formatted", Formatted); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs index 623e5695..acfcc0a5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AdminEventRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AdminEventRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The authDetails property @@ -69,7 +72,8 @@ public class AdminEventRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public AdminEventRepresentation() { + public AdminEventRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -77,7 +81,8 @@ public AdminEventRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AdminEventRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AdminEventRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AdminEventRepresentation(); } @@ -85,8 +90,10 @@ public static AdminEventRepresentation CreateFromDiscriminatorValue(IParseNode p /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"authDetails", n => { AuthDetails = n.GetObjectValue(AuthDetailsRepresentation.CreateFromDiscriminatorValue); } }, {"error", n => { Error = n.GetStringValue(); } }, {"operationType", n => { OperationType = n.GetStringValue(); } }, @@ -101,7 +108,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("authDetails", AuthDetails); writer.WriteStringValue("error", Error); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs index 8d16f3f8..8ab1e618 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs @@ -6,7 +6,10 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ApplicationRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -257,7 +260,8 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation() { + public ApplicationRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -265,7 +269,8 @@ public ApplicationRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ApplicationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ApplicationRepresentation(); } @@ -273,8 +278,10 @@ public static ApplicationRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"access", n => { Access = n.GetObjectValue(ApplicationRepresentation_access.CreateFromDiscriminatorValue); } }, {"adminUrl", n => { AdminUrl = n.GetStringValue(); } }, {"alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, @@ -325,7 +332,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("access", Access); writer.WriteStringValue("adminUrl", AdminUrl); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs index 05797e99..536f8749 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ApplicationRepresentation_access : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ApplicationRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation_access() { + public ApplicationRepresentation_access() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ApplicationRepresentation_access() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ApplicationRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ApplicationRepresentation_access(); } @@ -27,15 +32,18 @@ public static ApplicationRepresentation_access CreateFromDiscriminatorValue(IPar /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs index 64da48a3..4a698dbf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ApplicationRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ApplicationRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation_attributes() { + public ApplicationRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ApplicationRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ApplicationRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ApplicationRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static ApplicationRepresentation_attributes CreateFromDiscriminatorValue( /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs index bda8820d..3ca16739 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ApplicationRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ApplicationRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation_authenticationFlowBindingOverrides() { + public ApplicationRepresentation_authenticationFlowBindingOverrides() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ApplicationRepresentation_authenticationFlowBindingOverrides() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ApplicationRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ApplicationRepresentation_authenticationFlowBindingOverrides(); } @@ -27,15 +32,18 @@ public static ApplicationRepresentation_authenticationFlowBindingOverrides Creat /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs index 1e4a372c..22f5093b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs @@ -6,13 +6,17 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class ApplicationRepresentation_claims : ClaimRepresentation, IParsable { + #pragma warning disable CS1591 + public class ApplicationRepresentation_claims : ClaimRepresentation, IParsable + #pragma warning restore CS1591 + { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// A /// The parse node to use to read the discriminator value and create the object - public static new ApplicationRepresentation_claims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ApplicationRepresentation_claims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ApplicationRepresentation_claims(); } @@ -20,15 +24,18 @@ public class ApplicationRepresentation_claims : ClaimRepresentation, IParsable { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs index 8eef3d75..b0593fd0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ApplicationRepresentation_registeredNodes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ApplicationRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation_registeredNodes() { + public ApplicationRepresentation_registeredNodes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ApplicationRepresentation_registeredNodes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ApplicationRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ApplicationRepresentation_registeredNodes(); } @@ -27,15 +32,18 @@ public static ApplicationRepresentation_registeredNodes CreateFromDiscriminatorV /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs index 7d398287..f14e51ae 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthDetailsRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthDetailsRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientId property @@ -43,7 +46,8 @@ public class AuthDetailsRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public AuthDetailsRepresentation() { + public AuthDetailsRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -51,7 +55,8 @@ public AuthDetailsRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthDetailsRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthDetailsRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthDetailsRepresentation(); } @@ -59,8 +64,10 @@ public static AuthDetailsRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"clientId", n => { ClientId = n.GetStringValue(); } }, {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, {"realmId", n => { RealmId = n.GetStringValue(); } }, @@ -71,7 +78,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientId", ClientId); writer.WriteStringValue("ipAddress", IpAddress); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs index 9d460983..134c6573 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticationExecutionExportRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthenticationExecutionExportRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The authenticator property @@ -52,7 +55,8 @@ public class AuthenticationExecutionExportRepresentation : IAdditionalDataHolder /// /// Instantiates a new and sets the default values. /// - public AuthenticationExecutionExportRepresentation() { + public AuthenticationExecutionExportRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -60,7 +64,8 @@ public AuthenticationExecutionExportRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationExecutionExportRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthenticationExecutionExportRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthenticationExecutionExportRepresentation(); } @@ -68,8 +73,10 @@ public static AuthenticationExecutionExportRepresentation CreateFromDiscriminato /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"authenticator", n => { Authenticator = n.GetStringValue(); } }, {"authenticatorConfig", n => { AuthenticatorConfig = n.GetStringValue(); } }, {"authenticatorFlow", n => { AuthenticatorFlow = n.GetBoolValue(); } }, @@ -84,7 +91,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("authenticator", Authenticator); writer.WriteStringValue("authenticatorConfig", AuthenticatorConfig); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs index c0203552..a81387f6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticationExecutionInfoRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthenticationExecutionInfoRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alias property @@ -91,7 +94,8 @@ public class AuthenticationExecutionInfoRepresentation : IAdditionalDataHolder, /// /// Instantiates a new and sets the default values. /// - public AuthenticationExecutionInfoRepresentation() { + public AuthenticationExecutionInfoRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -99,7 +103,8 @@ public AuthenticationExecutionInfoRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationExecutionInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthenticationExecutionInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthenticationExecutionInfoRepresentation(); } @@ -107,8 +112,10 @@ public static AuthenticationExecutionInfoRepresentation CreateFromDiscriminatorV /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"alias", n => { Alias = n.GetStringValue(); } }, {"authenticationConfig", n => { AuthenticationConfig = n.GetStringValue(); } }, {"authenticationFlow", n => { AuthenticationFlow = n.GetBoolValue(); } }, @@ -128,7 +135,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); writer.WriteStringValue("authenticationConfig", AuthenticationConfig); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs index bc58283f..dbceeed4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticationExecutionRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthenticationExecutionRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The authenticator property @@ -66,7 +69,8 @@ public class AuthenticationExecutionRepresentation : IAdditionalDataHolder, IPar /// /// Instantiates a new and sets the default values. /// - public AuthenticationExecutionRepresentation() { + public AuthenticationExecutionRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -74,7 +78,8 @@ public AuthenticationExecutionRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationExecutionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthenticationExecutionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthenticationExecutionRepresentation(); } @@ -82,8 +87,10 @@ public static AuthenticationExecutionRepresentation CreateFromDiscriminatorValue /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"authenticator", n => { Authenticator = n.GetStringValue(); } }, {"authenticatorConfig", n => { AuthenticatorConfig = n.GetStringValue(); } }, {"authenticatorFlow", n => { AuthenticatorFlow = n.GetBoolValue(); } }, @@ -99,7 +106,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("authenticator", Authenticator); writer.WriteStringValue("authenticatorConfig", AuthenticatorConfig); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs index 56a2434e..671610b6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticationFlowRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthenticationFlowRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alias property @@ -55,7 +58,8 @@ public class AuthenticationFlowRepresentation : IAdditionalDataHolder, IParsable /// /// Instantiates a new and sets the default values. /// - public AuthenticationFlowRepresentation() { + public AuthenticationFlowRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -63,7 +67,8 @@ public AuthenticationFlowRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationFlowRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthenticationFlowRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthenticationFlowRepresentation(); } @@ -71,8 +76,10 @@ public static AuthenticationFlowRepresentation CreateFromDiscriminatorValue(IPar /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"alias", n => { Alias = n.GetStringValue(); } }, {"authenticationExecutions", n => { AuthenticationExecutions = n.GetCollectionOfObjectValues(AuthenticationExecutionExportRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, {"builtIn", n => { BuiltIn = n.GetBoolValue(); } }, @@ -86,7 +93,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); writer.WriteCollectionOfObjectValues("authenticationExecutions", AuthenticationExecutions); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs index 11fdd8ad..ac8cb4d6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticatorConfigInfoRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthenticatorConfigInfoRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The helpText property @@ -43,7 +46,8 @@ public class AuthenticatorConfigInfoRepresentation : IAdditionalDataHolder, IPar /// /// Instantiates a new and sets the default values. /// - public AuthenticatorConfigInfoRepresentation() { + public AuthenticatorConfigInfoRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -51,7 +55,8 @@ public AuthenticatorConfigInfoRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticatorConfigInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthenticatorConfigInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthenticatorConfigInfoRepresentation(); } @@ -59,8 +64,10 @@ public static AuthenticatorConfigInfoRepresentation CreateFromDiscriminatorValue /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"helpText", n => { HelpText = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, {"properties", n => { Properties = n.GetCollectionOfObjectValues(ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -71,7 +78,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("helpText", HelpText); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs index 63823a22..52021999 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alias property @@ -35,7 +38,8 @@ public class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsabl /// /// Instantiates a new and sets the default values. /// - public AuthenticatorConfigRepresentation() { + public AuthenticatorConfigRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -43,7 +47,8 @@ public AuthenticatorConfigRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticatorConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthenticatorConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthenticatorConfigRepresentation(); } @@ -51,8 +56,10 @@ public static AuthenticatorConfigRepresentation CreateFromDiscriminatorValue(IPa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"alias", n => { Alias = n.GetStringValue(); } }, {"config", n => { Config = n.GetObjectValue(AuthenticatorConfigRepresentation_config.CreateFromDiscriminatorValue); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -62,7 +69,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); writer.WriteObjectValue("config", Config); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs index 62e0a75f..4f58391b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticatorConfigRepresentation_config : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class AuthenticatorConfigRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public AuthenticatorConfigRepresentation_config() { + public AuthenticatorConfigRepresentation_config() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public AuthenticatorConfigRepresentation_config() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticatorConfigRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static AuthenticatorConfigRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AuthenticatorConfigRepresentation_config(); } @@ -27,15 +32,18 @@ public static AuthenticatorConfigRepresentation_config CreateFromDiscriminatorVa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs index a2da1a01..9f3fc3d9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Authorization : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Authorization : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions property @@ -19,7 +22,8 @@ public class Authorization : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public Authorization() { + public Authorization() + { AdditionalData = new Dictionary(); } /// @@ -27,7 +31,8 @@ public Authorization() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Authorization CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Authorization CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Authorization(); } @@ -35,8 +40,10 @@ public static Authorization CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"permissions", n => { Permissions = n.GetCollectionOfObjectValues(Permission.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -44,7 +51,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("permissions", Permissions); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs index 9c1bb214..b07fc7fc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class CertificateRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class CertificateRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The certificate property @@ -43,7 +46,8 @@ public class CertificateRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public CertificateRepresentation() { + public CertificateRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -51,7 +55,8 @@ public CertificateRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static CertificateRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static CertificateRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CertificateRepresentation(); } @@ -59,8 +64,10 @@ public static CertificateRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"certificate", n => { Certificate = n.GetStringValue(); } }, {"kid", n => { Kid = n.GetStringValue(); } }, {"privateKey", n => { PrivateKey = n.GetStringValue(); } }, @@ -71,7 +78,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("certificate", Certificate); writer.WriteStringValue("kid", Kid); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs index f83a3504..48757d13 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClaimRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClaimRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The address property @@ -31,7 +34,8 @@ public class ClaimRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ClaimRepresentation() { + public ClaimRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -39,7 +43,8 @@ public ClaimRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClaimRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClaimRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClaimRepresentation(); } @@ -47,8 +52,10 @@ public static ClaimRepresentation CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"address", n => { Address = n.GetBoolValue(); } }, {"email", n => { Email = n.GetBoolValue(); } }, {"gender", n => { Gender = n.GetBoolValue(); } }, @@ -65,7 +72,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("address", Address); writer.WriteBoolValue("email", Email); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs index 9d7d4efc..731c73c7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientInitialAccessCreatePresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientInitialAccessCreatePresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The count property @@ -15,7 +18,8 @@ public class ClientInitialAccessCreatePresentation : IAdditionalDataHolder, IPar /// /// Instantiates a new and sets the default values. /// - public ClientInitialAccessCreatePresentation() { + public ClientInitialAccessCreatePresentation() + { AdditionalData = new Dictionary(); } /// @@ -23,7 +27,8 @@ public ClientInitialAccessCreatePresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientInitialAccessCreatePresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientInitialAccessCreatePresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientInitialAccessCreatePresentation(); } @@ -31,8 +36,10 @@ public static ClientInitialAccessCreatePresentation CreateFromDiscriminatorValue /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"count", n => { Count = n.GetIntValue(); } }, {"expiration", n => { Expiration = n.GetIntValue(); } }, }; @@ -41,7 +48,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteIntValue("expiration", Expiration); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs index e0b08d88..6c69f620 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientInitialAccessPresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientInitialAccessPresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The count property @@ -35,7 +38,8 @@ public class ClientInitialAccessPresentation : IAdditionalDataHolder, IParsable /// /// Instantiates a new and sets the default values. /// - public ClientInitialAccessPresentation() { + public ClientInitialAccessPresentation() + { AdditionalData = new Dictionary(); } /// @@ -43,7 +47,8 @@ public ClientInitialAccessPresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientInitialAccessPresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientInitialAccessPresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientInitialAccessPresentation(); } @@ -51,8 +56,10 @@ public static ClientInitialAccessPresentation CreateFromDiscriminatorValue(IPars /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"count", n => { Count = n.GetIntValue(); } }, {"expiration", n => { Expiration = n.GetIntValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -65,7 +72,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteIntValue("expiration", Expiration); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs index 9249d4ff..7af3018c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientPoliciesRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientPoliciesRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The policies property @@ -19,7 +22,8 @@ public class ClientPoliciesRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ClientPoliciesRepresentation() { + public ClientPoliciesRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -27,7 +31,8 @@ public ClientPoliciesRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientPoliciesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientPoliciesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientPoliciesRepresentation(); } @@ -35,8 +40,10 @@ public static ClientPoliciesRepresentation CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"policies", n => { Policies = n.GetCollectionOfObjectValues(ClientPolicyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -44,7 +51,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("policies", Policies); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs index 596b6013..37062048 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientPolicyConditionRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientPolicyConditionRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The condition property @@ -15,11 +18,20 @@ public class ClientPolicyConditionRepresentation : IAdditionalDataHolder, IParsa #nullable restore #else public string Condition { get; set; } +#endif + /// The configuration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public UntypedNode? Configuration { get; set; } +#nullable restore +#else + public UntypedNode Configuration { get; set; } #endif /// /// Instantiates a new and sets the default values. /// - public ClientPolicyConditionRepresentation() { + public ClientPolicyConditionRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -27,7 +39,8 @@ public ClientPolicyConditionRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientPolicyConditionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientPolicyConditionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientPolicyConditionRepresentation(); } @@ -35,18 +48,23 @@ public static ClientPolicyConditionRepresentation CreateFromDiscriminatorValue(I /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"condition", n => { Condition = n.GetStringValue(); } }, + {"configuration", n => { Configuration = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("condition", Condition); + writer.WriteObjectValue("configuration", Configuration); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs index 6165074c..89a0e7a2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs @@ -5,9 +5,20 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientPolicyExecutorRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientPolicyExecutorRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The configuration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public UntypedNode? Configuration { get; set; } +#nullable restore +#else + public UntypedNode Configuration { get; set; } +#endif /// The executor property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -19,7 +30,8 @@ public class ClientPolicyExecutorRepresentation : IAdditionalDataHolder, IParsab /// /// Instantiates a new and sets the default values. /// - public ClientPolicyExecutorRepresentation() { + public ClientPolicyExecutorRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -27,7 +39,8 @@ public ClientPolicyExecutorRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientPolicyExecutorRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientPolicyExecutorRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientPolicyExecutorRepresentation(); } @@ -35,8 +48,11 @@ public static ClientPolicyExecutorRepresentation CreateFromDiscriminatorValue(IP /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"configuration", n => { Configuration = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, {"executor", n => { Executor = n.GetStringValue(); } }, }; } @@ -44,8 +60,10 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("configuration", Configuration); writer.WriteStringValue("executor", Executor); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs index 76991d53..0507593d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientPolicyRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientPolicyRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The conditions property @@ -45,7 +48,8 @@ public class ClientPolicyRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ClientPolicyRepresentation() { + public ClientPolicyRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -53,7 +57,8 @@ public ClientPolicyRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientPolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientPolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientPolicyRepresentation(); } @@ -61,8 +66,10 @@ public static ClientPolicyRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"conditions", n => { Conditions = n.GetCollectionOfObjectValues(ClientPolicyConditionRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"enabled", n => { Enabled = n.GetBoolValue(); } }, @@ -74,7 +81,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("conditions", Conditions); writer.WriteStringValue("description", Description); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs index d6311426..ed09388a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientProfileRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientProfileRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The description property @@ -35,7 +38,8 @@ public class ClientProfileRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ClientProfileRepresentation() { + public ClientProfileRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -43,7 +47,8 @@ public ClientProfileRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientProfileRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientProfileRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientProfileRepresentation(); } @@ -51,8 +56,10 @@ public static ClientProfileRepresentation CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"description", n => { Description = n.GetStringValue(); } }, {"executors", n => { Executors = n.GetCollectionOfObjectValues(ClientPolicyExecutorRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -62,7 +69,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); writer.WriteCollectionOfObjectValues("executors", Executors); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs index 07594bf3..47214d4d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientProfilesRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientProfilesRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The globalProfiles property @@ -27,7 +30,8 @@ public class ClientProfilesRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ClientProfilesRepresentation() { + public ClientProfilesRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public ClientProfilesRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientProfilesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientProfilesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientProfilesRepresentation(); } @@ -43,8 +48,10 @@ public static ClientProfilesRepresentation CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"globalProfiles", n => { GlobalProfiles = n.GetCollectionOfObjectValues(ClientProfileRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, {"profiles", n => { Profiles = n.GetCollectionOfObjectValues(ClientProfileRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("globalProfiles", GlobalProfiles); writer.WriteCollectionOfObjectValues("profiles", Profiles); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs index 0ff6e82a..556d203f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -247,7 +250,8 @@ public class ClientRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ClientRepresentation() { + public ClientRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -255,7 +259,8 @@ public ClientRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientRepresentation(); } @@ -263,8 +268,10 @@ public static ClientRepresentation CreateFromDiscriminatorValue(IParseNode parse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"access", n => { Access = n.GetObjectValue(ClientRepresentation_access.CreateFromDiscriminatorValue); } }, {"adminUrl", n => { AdminUrl = n.GetStringValue(); } }, {"alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, @@ -314,7 +321,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("access", Access); writer.WriteStringValue("adminUrl", AdminUrl); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs index 1d935a9c..752215ba 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation_access : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ClientRepresentation_access() { + public ClientRepresentation_access() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ClientRepresentation_access() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientRepresentation_access(); } @@ -27,15 +32,18 @@ public static ClientRepresentation_access CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs index 77bcc55b..8bccd7fe 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ClientRepresentation_attributes() { + public ClientRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ClientRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static ClientRepresentation_attributes CreateFromDiscriminatorValue(IPars /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs index 673b414b..b770841e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ClientRepresentation_authenticationFlowBindingOverrides() { + public ClientRepresentation_authenticationFlowBindingOverrides() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ClientRepresentation_authenticationFlowBindingOverrides() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientRepresentation_authenticationFlowBindingOverrides(); } @@ -27,15 +32,18 @@ public static ClientRepresentation_authenticationFlowBindingOverrides CreateFrom /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs index bf60c0fb..e4de2858 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ClientRepresentation_registeredNodes() { + public ClientRepresentation_registeredNodes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ClientRepresentation_registeredNodes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientRepresentation_registeredNodes(); } @@ -27,15 +32,18 @@ public static ClientRepresentation_registeredNodes CreateFromDiscriminatorValue( /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs index 7ba72c3b..a0611580 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientScopeRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientScopeRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property @@ -59,7 +62,8 @@ public class ClientScopeRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ClientScopeRepresentation() { + public ClientScopeRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -67,7 +71,8 @@ public ClientScopeRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientScopeRepresentation(); } @@ -75,8 +80,10 @@ public static ClientScopeRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"attributes", n => { Attributes = n.GetObjectValue(ClientScopeRepresentation_attributes.CreateFromDiscriminatorValue); } }, {"description", n => { Description = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -89,7 +96,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attributes", Attributes); writer.WriteStringValue("description", Description); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs index 03650677..fdd53aa2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientScopeRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientScopeRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ClientScopeRepresentation_attributes() { + public ClientScopeRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ClientScopeRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientScopeRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientScopeRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientScopeRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static ClientScopeRepresentation_attributes CreateFromDiscriminatorValue( /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs index 10f96cd3..e8897722 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs @@ -6,7 +6,10 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property @@ -78,7 +81,8 @@ public class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ClientTemplateRepresentation() { + public ClientTemplateRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -86,7 +90,8 @@ public ClientTemplateRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientTemplateRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientTemplateRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientTemplateRepresentation(); } @@ -94,8 +99,10 @@ public static ClientTemplateRepresentation CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"attributes", n => { Attributes = n.GetObjectValue(ClientTemplateRepresentation_attributes.CreateFromDiscriminatorValue); } }, {"bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, {"consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, @@ -117,7 +124,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attributes", Attributes); writer.WriteBoolValue("bearerOnly", BearerOnly); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs index ddc11bee..635179bf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientTemplateRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ClientTemplateRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ClientTemplateRepresentation_attributes() { + public ClientTemplateRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ClientTemplateRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ClientTemplateRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ClientTemplateRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ClientTemplateRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static ClientTemplateRepresentation_attributes CreateFromDiscriminatorVal /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs index 834de23b..fc1f8dd8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ComponentRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ComponentRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property @@ -67,7 +70,8 @@ public class ComponentRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ComponentRepresentation() { + public ComponentRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -75,7 +79,8 @@ public ComponentRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ComponentRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ComponentRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ComponentRepresentation(); } @@ -83,8 +88,10 @@ public static ComponentRepresentation CreateFromDiscriminatorValue(IParseNode pa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"config", n => { Config = n.GetObjectValue(MultivaluedHashMapStringString.CreateFromDiscriminatorValue); } }, {"id", n => { Id = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -98,7 +105,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("config", Config); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs index 6af3da55..e21831ce 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ComponentTypeRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ComponentTypeRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The helpText property @@ -43,7 +46,8 @@ public class ComponentTypeRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ComponentTypeRepresentation() { + public ComponentTypeRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -51,7 +55,8 @@ public ComponentTypeRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ComponentTypeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ComponentTypeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ComponentTypeRepresentation(); } @@ -59,8 +64,10 @@ public static ComponentTypeRepresentation CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"helpText", n => { HelpText = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, {"metadata", n => { Metadata = n.GetObjectValue(ComponentTypeRepresentation_metadata.CreateFromDiscriminatorValue); } }, @@ -71,7 +78,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("helpText", HelpText); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs index 2f131fbd..e2b61138 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ComponentTypeRepresentation_metadata : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ComponentTypeRepresentation_metadata : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ComponentTypeRepresentation_metadata() { + public ComponentTypeRepresentation_metadata() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ComponentTypeRepresentation_metadata() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ComponentTypeRepresentation_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ComponentTypeRepresentation_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ComponentTypeRepresentation_metadata(); } @@ -27,15 +32,18 @@ public static ComponentTypeRepresentation_metadata CreateFromDiscriminatorValue( /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs index 5008f984..4e9bc587 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Composites : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Composites : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The application property @@ -36,7 +39,8 @@ public class Composites : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public Composites() { + public Composites() + { AdditionalData = new Dictionary(); } /// @@ -44,7 +48,8 @@ public Composites() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Composites CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Composites CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Composites(); } @@ -52,8 +57,10 @@ public static Composites CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"application", n => { Application = n.GetObjectValue(Composites_application.CreateFromDiscriminatorValue); } }, {"client", n => { Client = n.GetObjectValue(Composites_client.CreateFromDiscriminatorValue); } }, {"realm", n => { Realm = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -63,7 +70,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("application", Application); writer.WriteObjectValue("client", Client); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs index bb209f63..bb1bcb40 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs @@ -6,13 +6,17 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class Composites_application : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Composites_application : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public Composites_application() { + public Composites_application() + { AdditionalData = new Dictionary(); } /// @@ -20,7 +24,8 @@ public Composites_application() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Composites_application CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Composites_application CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Composites_application(); } @@ -28,15 +33,18 @@ public static Composites_application CreateFromDiscriminatorValue(IParseNode par /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs index c40254ca..a5931452 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Composites_client : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Composites_client : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public Composites_client() { + public Composites_client() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public Composites_client() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Composites_client CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Composites_client CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Composites_client(); } @@ -27,15 +32,18 @@ public static Composites_client CreateFromDiscriminatorValue(IParseNode parseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs index 00711f24..fcf5c4c5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs @@ -5,9 +5,20 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ConfigPropertyRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ConfigPropertyRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The defaultValue property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public UntypedNode? DefaultValue { get; set; } +#nullable restore +#else + public UntypedNode DefaultValue { get; set; } +#endif /// The helpText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -57,7 +68,8 @@ public class ConfigPropertyRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ConfigPropertyRepresentation() { + public ConfigPropertyRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -65,7 +77,8 @@ public ConfigPropertyRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ConfigPropertyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ConfigPropertyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ConfigPropertyRepresentation(); } @@ -73,8 +86,11 @@ public static ConfigPropertyRepresentation CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + {"defaultValue", n => { DefaultValue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, {"helpText", n => { HelpText = n.GetStringValue(); } }, {"label", n => { Label = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -89,8 +105,10 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("defaultValue", DefaultValue); writer.WriteStringValue("helpText", HelpText); writer.WriteStringValue("label", Label); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs index dfffbc12..63cfe37c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Confirmation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Confirmation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The jkt property @@ -27,7 +30,8 @@ public class Confirmation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public Confirmation() { + public Confirmation() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public Confirmation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Confirmation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Confirmation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Confirmation(); } @@ -43,8 +48,10 @@ public static Confirmation CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"jkt", n => { Jkt = n.GetStringValue(); } }, {"x5t#S256", n => { X5tS256 = n.GetStringValue(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("jkt", Jkt); writer.WriteStringValue("x5t#S256", X5tS256); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs index 62a5e6c7..8d5f00fa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class CredentialRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class CredentialRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The algorithm property @@ -122,7 +125,8 @@ public class CredentialRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public CredentialRepresentation() { + public CredentialRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -130,7 +134,8 @@ public CredentialRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static CredentialRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static CredentialRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CredentialRepresentation(); } @@ -138,8 +143,10 @@ public static CredentialRepresentation CreateFromDiscriminatorValue(IParseNode p /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"algorithm", n => { Algorithm = n.GetStringValue(); } }, {"config", n => { Config = n.GetObjectValue(CredentialRepresentation_config.CreateFromDiscriminatorValue); } }, {"counter", n => { Counter = n.GetIntValue(); } }, @@ -164,7 +171,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("algorithm", Algorithm); writer.WriteObjectValue("config", Config); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs index af5a04aa..364fc8ca 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs @@ -6,13 +6,17 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class CredentialRepresentation_config : MultivaluedHashMapStringString, IParsable { + #pragma warning disable CS1591 + public class CredentialRepresentation_config : MultivaluedHashMapStringString, IParsable + #pragma warning restore CS1591 + { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// A /// The parse node to use to read the discriminator value and create the object - public static new CredentialRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new CredentialRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new CredentialRepresentation_config(); } @@ -20,15 +24,18 @@ public class CredentialRepresentation_config : MultivaluedHashMapStringString, I /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs index eb4faf66..6ab90989 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs @@ -2,10 +2,17 @@ using System.Runtime.Serialization; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum DecisionEffect { + #pragma warning disable CS1591 + public enum DecisionEffect + #pragma warning restore CS1591 + { [EnumMember(Value = "PERMIT")] + #pragma warning disable CS1591 PERMIT, + #pragma warning restore CS1591 [EnumMember(Value = "DENY")] + #pragma warning disable CS1591 DENY, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs index 743c0e95..1b66ab8f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs @@ -2,12 +2,21 @@ using System.Runtime.Serialization; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum DecisionStrategy { + #pragma warning disable CS1591 + public enum DecisionStrategy + #pragma warning restore CS1591 + { [EnumMember(Value = "AFFIRMATIVE")] + #pragma warning disable CS1591 AFFIRMATIVE, + #pragma warning restore CS1591 [EnumMember(Value = "UNANIMOUS")] + #pragma warning disable CS1591 UNANIMOUS, + #pragma warning restore CS1591 [EnumMember(Value = "CONSENSUS")] + #pragma warning disable CS1591 CONSENSUS, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs index 07eba588..34c2b10d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class EvaluationResultRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class EvaluationResultRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The allowedScopes property @@ -45,7 +48,8 @@ public class EvaluationResultRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public EvaluationResultRepresentation() { + public EvaluationResultRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -53,7 +57,8 @@ public EvaluationResultRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static EvaluationResultRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static EvaluationResultRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new EvaluationResultRepresentation(); } @@ -61,8 +66,10 @@ public static EvaluationResultRepresentation CreateFromDiscriminatorValue(IParse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"allowedScopes", n => { AllowedScopes = n.GetCollectionOfObjectValues(ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, {"policies", n => { Policies = n.GetCollectionOfObjectValues(PolicyResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, {"resource", n => { Resource = n.GetObjectValue(ResourceRepresentation.CreateFromDiscriminatorValue); } }, @@ -74,7 +81,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("allowedScopes", AllowedScopes); writer.WriteCollectionOfObjectValues("policies", Policies); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs index 55d11a11..7c63c49f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class EventRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class EventRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientId property @@ -77,7 +80,8 @@ public class EventRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public EventRepresentation() { + public EventRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -85,7 +89,8 @@ public EventRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static EventRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static EventRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new EventRepresentation(); } @@ -93,8 +98,10 @@ public static EventRepresentation CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"clientId", n => { ClientId = n.GetStringValue(); } }, {"details", n => { Details = n.GetObjectValue(EventRepresentation_details.CreateFromDiscriminatorValue); } }, {"error", n => { Error = n.GetStringValue(); } }, @@ -110,7 +117,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientId", ClientId); writer.WriteObjectValue("details", Details); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs index 2a678761..938de22d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class EventRepresentation_details : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class EventRepresentation_details : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public EventRepresentation_details() { + public EventRepresentation_details() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public EventRepresentation_details() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static EventRepresentation_details CreateFromDiscriminatorValue(IParseNode parseNode) { + public static EventRepresentation_details CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new EventRepresentation_details(); } @@ -27,15 +32,18 @@ public static EventRepresentation_details CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs index 80191d2c..c3c1c1cc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class FederatedIdentityRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class FederatedIdentityRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The identityProvider property @@ -35,7 +38,8 @@ public class FederatedIdentityRepresentation : IAdditionalDataHolder, IParsable /// /// Instantiates a new and sets the default values. /// - public FederatedIdentityRepresentation() { + public FederatedIdentityRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -43,7 +47,8 @@ public FederatedIdentityRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static FederatedIdentityRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static FederatedIdentityRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FederatedIdentityRepresentation(); } @@ -51,8 +56,10 @@ public static FederatedIdentityRepresentation CreateFromDiscriminatorValue(IPars /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"identityProvider", n => { IdentityProvider = n.GetStringValue(); } }, {"userId", n => { UserId = n.GetStringValue(); } }, {"userName", n => { UserName = n.GetStringValue(); } }, @@ -62,7 +69,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("identityProvider", IdentityProvider); writer.WriteStringValue("userId", UserId); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs index 703872c5..564f20a8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GlobalRequestResult : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class GlobalRequestResult : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The failedRequests property @@ -27,7 +30,8 @@ public class GlobalRequestResult : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public GlobalRequestResult() { + public GlobalRequestResult() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public GlobalRequestResult() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static GlobalRequestResult CreateFromDiscriminatorValue(IParseNode parseNode) { + public static GlobalRequestResult CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GlobalRequestResult(); } @@ -43,8 +48,10 @@ public static GlobalRequestResult CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"failedRequests", n => { FailedRequests = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"successRequests", n => { SuccessRequests = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("failedRequests", FailedRequests); writer.WriteCollectionOfPrimitiveValues("successRequests", SuccessRequests); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs index 9f87d7bb..2035b2b9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GroupRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class GroupRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -85,7 +88,8 @@ public class GroupRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public GroupRepresentation() { + public GroupRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -93,7 +97,8 @@ public GroupRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static GroupRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static GroupRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GroupRepresentation(); } @@ -101,8 +106,10 @@ public static GroupRepresentation CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"access", n => { Access = n.GetObjectValue(GroupRepresentation_access.CreateFromDiscriminatorValue); } }, {"attributes", n => { Attributes = n.GetObjectValue(GroupRepresentation_attributes.CreateFromDiscriminatorValue); } }, {"clientRoles", n => { ClientRoles = n.GetObjectValue(GroupRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, @@ -119,7 +126,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("access", Access); writer.WriteObjectValue("attributes", Attributes); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs index bf843e5d..825e377b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GroupRepresentation_access : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class GroupRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public GroupRepresentation_access() { + public GroupRepresentation_access() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public GroupRepresentation_access() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static GroupRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static GroupRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GroupRepresentation_access(); } @@ -27,15 +32,18 @@ public static GroupRepresentation_access CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs index 4780e025..9c0cf36e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GroupRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class GroupRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public GroupRepresentation_attributes() { + public GroupRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public GroupRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static GroupRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static GroupRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GroupRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static GroupRepresentation_attributes CreateFromDiscriminatorValue(IParse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs index 1583824e..52719b86 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GroupRepresentation_clientRoles : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class GroupRepresentation_clientRoles : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public GroupRepresentation_clientRoles() { + public GroupRepresentation_clientRoles() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public GroupRepresentation_clientRoles() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static GroupRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) { + public static GroupRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new GroupRepresentation_clientRoles(); } @@ -27,15 +32,18 @@ public static GroupRepresentation_clientRoles CreateFromDiscriminatorValue(IPars /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs index e47008c0..c88bc049 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IDToken : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class IDToken : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The acr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -268,7 +271,8 @@ public class IDToken : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public IDToken() { + public IDToken() + { AdditionalData = new Dictionary(); } /// @@ -276,7 +280,8 @@ public IDToken() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static IDToken CreateFromDiscriminatorValue(IParseNode parseNode) { + public static IDToken CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IDToken(); } @@ -284,8 +289,10 @@ public static IDToken CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"acr", n => { Acr = n.GetStringValue(); } }, {"address", n => { Address = n.GetObjectValue(AddressClaimSet.CreateFromDiscriminatorValue); } }, {"at_hash", n => { AtHash = n.GetStringValue(); } }, @@ -330,7 +337,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("acr", Acr); writer.WriteObjectValue("address", Address); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs index aa356b10..3beacdcf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IDToken_otherClaims : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class IDToken_otherClaims : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public IDToken_otherClaims() { + public IDToken_otherClaims() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public IDToken_otherClaims() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static IDToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static IDToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IDToken_otherClaims(); } @@ -27,15 +32,18 @@ public static IDToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs index 662b05b9..a12e6f90 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IdentityProviderMapperRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class IdentityProviderMapperRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property @@ -51,7 +54,8 @@ public class IdentityProviderMapperRepresentation : IAdditionalDataHolder, IPars /// /// Instantiates a new and sets the default values. /// - public IdentityProviderMapperRepresentation() { + public IdentityProviderMapperRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -59,7 +63,8 @@ public IdentityProviderMapperRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static IdentityProviderMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static IdentityProviderMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IdentityProviderMapperRepresentation(); } @@ -67,8 +72,10 @@ public static IdentityProviderMapperRepresentation CreateFromDiscriminatorValue( /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"config", n => { Config = n.GetObjectValue(IdentityProviderMapperRepresentation_config.CreateFromDiscriminatorValue); } }, {"id", n => { Id = n.GetStringValue(); } }, {"identityProviderAlias", n => { IdentityProviderAlias = n.GetStringValue(); } }, @@ -80,7 +87,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("config", Config); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs index 9a90585d..a314ddc0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IdentityProviderMapperRepresentation_config : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class IdentityProviderMapperRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public IdentityProviderMapperRepresentation_config() { + public IdentityProviderMapperRepresentation_config() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public IdentityProviderMapperRepresentation_config() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static IdentityProviderMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static IdentityProviderMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IdentityProviderMapperRepresentation_config(); } @@ -27,15 +32,18 @@ public static IdentityProviderMapperRepresentation_config CreateFromDiscriminato /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs index 6672ba5f..4a63ca79 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The addReadTokenRoleOnCreate property @@ -91,7 +94,8 @@ public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public IdentityProviderRepresentation() { + public IdentityProviderRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -99,7 +103,8 @@ public IdentityProviderRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static IdentityProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static IdentityProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IdentityProviderRepresentation(); } @@ -107,8 +112,10 @@ public static IdentityProviderRepresentation CreateFromDiscriminatorValue(IParse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"addReadTokenRoleOnCreate", n => { AddReadTokenRoleOnCreate = n.GetBoolValue(); } }, {"alias", n => { Alias = n.GetStringValue(); } }, {"authenticateByDefault", n => { AuthenticateByDefault = n.GetBoolValue(); } }, @@ -130,7 +137,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("addReadTokenRoleOnCreate", AddReadTokenRoleOnCreate); writer.WriteStringValue("alias", Alias); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs index 32335bc2..e5b72be8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IdentityProviderRepresentation_config : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class IdentityProviderRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public IdentityProviderRepresentation_config() { + public IdentityProviderRepresentation_config() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public IdentityProviderRepresentation_config() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static IdentityProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static IdentityProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new IdentityProviderRepresentation_config(); } @@ -27,15 +32,18 @@ public static IdentityProviderRepresentation_config CreateFromDiscriminatorValue /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs index c2ad0b42..b471a38e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class KeyMetadataRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class KeyMetadataRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The algorithm property @@ -73,7 +76,8 @@ public class KeyMetadataRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public KeyMetadataRepresentation() { + public KeyMetadataRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -81,7 +85,8 @@ public KeyMetadataRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static KeyMetadataRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static KeyMetadataRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new KeyMetadataRepresentation(); } @@ -89,8 +94,10 @@ public static KeyMetadataRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"algorithm", n => { Algorithm = n.GetStringValue(); } }, {"certificate", n => { Certificate = n.GetStringValue(); } }, {"kid", n => { Kid = n.GetStringValue(); } }, @@ -107,7 +114,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("algorithm", Algorithm); writer.WriteStringValue("certificate", Certificate); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs index f713a920..f33bd3e0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class KeyStoreConfig : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class KeyStoreConfig : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The format property @@ -53,7 +56,8 @@ public class KeyStoreConfig : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public KeyStoreConfig() { + public KeyStoreConfig() + { AdditionalData = new Dictionary(); } /// @@ -61,7 +65,8 @@ public KeyStoreConfig() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static KeyStoreConfig CreateFromDiscriminatorValue(IParseNode parseNode) { + public static KeyStoreConfig CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new KeyStoreConfig(); } @@ -69,8 +74,10 @@ public static KeyStoreConfig CreateFromDiscriminatorValue(IParseNode parseNode) /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"format", n => { Format = n.GetStringValue(); } }, {"keyAlias", n => { KeyAlias = n.GetStringValue(); } }, {"keyPassword", n => { KeyPassword = n.GetStringValue(); } }, @@ -83,7 +90,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("format", Format); writer.WriteStringValue("keyAlias", KeyAlias); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs index 036e1558..47dd9a84 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs @@ -2,10 +2,17 @@ using System.Runtime.Serialization; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum KeyUse { + #pragma warning disable CS1591 + public enum KeyUse + #pragma warning restore CS1591 + { [EnumMember(Value = "SIG")] + #pragma warning disable CS1591 SIG, + #pragma warning restore CS1591 [EnumMember(Value = "ENC")] + #pragma warning disable CS1591 ENC, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs index cf0c332b..e5ae445c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class KeysMetadataRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class KeysMetadataRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The active property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -27,7 +30,8 @@ public class KeysMetadataRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public KeysMetadataRepresentation() { + public KeysMetadataRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public KeysMetadataRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static KeysMetadataRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static KeysMetadataRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new KeysMetadataRepresentation(); } @@ -43,8 +48,10 @@ public static KeysMetadataRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"active", n => { Active = n.GetObjectValue(KeysMetadataRepresentation_active.CreateFromDiscriminatorValue); } }, {"keys", n => { Keys = n.GetCollectionOfObjectValues(KeyMetadataRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("active", Active); writer.WriteCollectionOfObjectValues("keys", Keys); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs index 7643f19d..0c389ef0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class KeysMetadataRepresentation_active : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class KeysMetadataRepresentation_active : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public KeysMetadataRepresentation_active() { + public KeysMetadataRepresentation_active() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public KeysMetadataRepresentation_active() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static KeysMetadataRepresentation_active CreateFromDiscriminatorValue(IParseNode parseNode) { + public static KeysMetadataRepresentation_active CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new KeysMetadataRepresentation_active(); } @@ -27,15 +32,18 @@ public static KeysMetadataRepresentation_active CreateFromDiscriminatorValue(IPa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs index 47f91103..708b1417 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs @@ -2,10 +2,17 @@ using System.Runtime.Serialization; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum Logic { + #pragma warning disable CS1591 + public enum Logic + #pragma warning restore CS1591 + { [EnumMember(Value = "POSITIVE")] + #pragma warning disable CS1591 POSITIVE, + #pragma warning restore CS1591 [EnumMember(Value = "NEGATIVE")] + #pragma warning disable CS1591 NEGATIVE, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs index 25219986..7036f499 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ManagementPermissionReference : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ManagementPermissionReference : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The enabled property @@ -29,7 +32,8 @@ public class ManagementPermissionReference : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ManagementPermissionReference() { + public ManagementPermissionReference() + { AdditionalData = new Dictionary(); } /// @@ -37,7 +41,8 @@ public ManagementPermissionReference() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ManagementPermissionReference CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ManagementPermissionReference CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ManagementPermissionReference(); } @@ -45,8 +50,10 @@ public static ManagementPermissionReference CreateFromDiscriminatorValue(IParseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"enabled", n => { Enabled = n.GetBoolValue(); } }, {"resource", n => { Resource = n.GetStringValue(); } }, {"scopePermissions", n => { ScopePermissions = n.GetObjectValue(ManagementPermissionReference_scopePermissions.CreateFromDiscriminatorValue); } }, @@ -56,7 +63,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("resource", Resource); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs index 9c7f0e46..4fd5d673 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ManagementPermissionReference_scopePermissions : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ManagementPermissionReference_scopePermissions : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ManagementPermissionReference_scopePermissions() { + public ManagementPermissionReference_scopePermissions() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ManagementPermissionReference_scopePermissions() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ManagementPermissionReference_scopePermissions CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ManagementPermissionReference_scopePermissions CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ManagementPermissionReference_scopePermissions(); } @@ -27,15 +32,18 @@ public static ManagementPermissionReference_scopePermissions CreateFromDiscrimin /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs index 29b6e764..94ac22cb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class MappingsRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class MappingsRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientMappings property @@ -27,7 +30,8 @@ public class MappingsRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public MappingsRepresentation() { + public MappingsRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public MappingsRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static MappingsRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static MappingsRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new MappingsRepresentation(); } @@ -43,8 +48,10 @@ public static MappingsRepresentation CreateFromDiscriminatorValue(IParseNode par /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"clientMappings", n => { ClientMappings = n.GetObjectValue(MappingsRepresentation_clientMappings.CreateFromDiscriminatorValue); } }, {"realmMappings", n => { RealmMappings = n.GetCollectionOfObjectValues(RoleRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("clientMappings", ClientMappings); writer.WriteCollectionOfObjectValues("realmMappings", RealmMappings); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs index 5844b1ee..eec53632 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class MappingsRepresentation_clientMappings : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class MappingsRepresentation_clientMappings : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public MappingsRepresentation_clientMappings() { + public MappingsRepresentation_clientMappings() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public MappingsRepresentation_clientMappings() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static MappingsRepresentation_clientMappings CreateFromDiscriminatorValue(IParseNode parseNode) { + public static MappingsRepresentation_clientMappings CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new MappingsRepresentation_clientMappings(); } @@ -27,15 +32,18 @@ public static MappingsRepresentation_clientMappings CreateFromDiscriminatorValue /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs index 6fb35845..a92abaa3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class MultivaluedHashMapStringComponentExportRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class MultivaluedHashMapStringComponentExportRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public MultivaluedHashMapStringComponentExportRepresentation() { + public MultivaluedHashMapStringComponentExportRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public MultivaluedHashMapStringComponentExportRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static MultivaluedHashMapStringComponentExportRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static MultivaluedHashMapStringComponentExportRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new MultivaluedHashMapStringComponentExportRepresentation(); } @@ -27,15 +32,18 @@ public static MultivaluedHashMapStringComponentExportRepresentation CreateFromDi /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs index 66f7c02c..9235db83 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class MultivaluedHashMapStringString : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class MultivaluedHashMapStringString : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public MultivaluedHashMapStringString() { + public MultivaluedHashMapStringString() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public MultivaluedHashMapStringString() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static MultivaluedHashMapStringString CreateFromDiscriminatorValue(IParseNode parseNode) { + public static MultivaluedHashMapStringString CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new MultivaluedHashMapStringString(); } @@ -27,15 +32,18 @@ public static MultivaluedHashMapStringString CreateFromDiscriminatorValue(IParse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs index a5f9b1fc..99f1cacd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs @@ -6,7 +6,10 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -257,7 +260,8 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation() { + public OAuthClientRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -265,7 +269,8 @@ public OAuthClientRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static OAuthClientRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new OAuthClientRepresentation(); } @@ -273,8 +278,10 @@ public static OAuthClientRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"access", n => { Access = n.GetObjectValue(OAuthClientRepresentation_access.CreateFromDiscriminatorValue); } }, {"adminUrl", n => { AdminUrl = n.GetStringValue(); } }, {"alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, @@ -325,7 +332,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("access", Access); writer.WriteStringValue("adminUrl", AdminUrl); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs index f7c8ba15..74842c18 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class OAuthClientRepresentation_access : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class OAuthClientRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation_access() { + public OAuthClientRepresentation_access() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public OAuthClientRepresentation_access() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static OAuthClientRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new OAuthClientRepresentation_access(); } @@ -27,15 +32,18 @@ public static OAuthClientRepresentation_access CreateFromDiscriminatorValue(IPar /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs index 1ac797cf..9d4c07fa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class OAuthClientRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class OAuthClientRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation_attributes() { + public OAuthClientRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public OAuthClientRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static OAuthClientRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new OAuthClientRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static OAuthClientRepresentation_attributes CreateFromDiscriminatorValue( /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs index 8f46c011..94923e59 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class OAuthClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class OAuthClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation_authenticationFlowBindingOverrides() { + public OAuthClientRepresentation_authenticationFlowBindingOverrides() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public OAuthClientRepresentation_authenticationFlowBindingOverrides() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) { + public static OAuthClientRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new OAuthClientRepresentation_authenticationFlowBindingOverrides(); } @@ -27,15 +32,18 @@ public static OAuthClientRepresentation_authenticationFlowBindingOverrides Creat /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs index c506cb36..11b0e582 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs @@ -6,13 +6,17 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class OAuthClientRepresentation_claims : ClaimRepresentation, IParsable { + #pragma warning disable CS1591 + public class OAuthClientRepresentation_claims : ClaimRepresentation, IParsable + #pragma warning restore CS1591 + { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// A /// The parse node to use to read the discriminator value and create the object - public static new OAuthClientRepresentation_claims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new OAuthClientRepresentation_claims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new OAuthClientRepresentation_claims(); } @@ -20,15 +24,18 @@ public class OAuthClientRepresentation_claims : ClaimRepresentation, IParsable { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs index 68ebee44..f0068e78 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class OAuthClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class OAuthClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation_registeredNodes() { + public OAuthClientRepresentation_registeredNodes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public OAuthClientRepresentation_registeredNodes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static OAuthClientRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new OAuthClientRepresentation_registeredNodes(); } @@ -27,15 +32,18 @@ public static OAuthClientRepresentation_registeredNodes CreateFromDiscriminatorV /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs index aec44803..af47ec97 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Permission : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Permission : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The claims property @@ -43,7 +46,8 @@ public class Permission : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public Permission() { + public Permission() + { AdditionalData = new Dictionary(); } /// @@ -51,7 +55,8 @@ public Permission() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Permission CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Permission CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Permission(); } @@ -59,8 +64,10 @@ public static Permission CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"claims", n => { Claims = n.GetObjectValue(Permission_claims.CreateFromDiscriminatorValue); } }, {"rsid", n => { Rsid = n.GetStringValue(); } }, {"rsname", n => { Rsname = n.GetStringValue(); } }, @@ -71,7 +78,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("claims", Claims); writer.WriteStringValue("rsid", Rsid); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs index 81e57f02..6caa6874 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Permission_claims : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class Permission_claims : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public Permission_claims() { + public Permission_claims() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public Permission_claims() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static Permission_claims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static Permission_claims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Permission_claims(); } @@ -27,15 +32,18 @@ public static Permission_claims CreateFromDiscriminatorValue(IParseNode parseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs index b90f3c88..834c5d58 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs @@ -2,12 +2,21 @@ using System.Runtime.Serialization; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum PolicyEnforcementMode { + #pragma warning disable CS1591 + public enum PolicyEnforcementMode + #pragma warning restore CS1591 + { [EnumMember(Value = "ENFORCING")] + #pragma warning disable CS1591 ENFORCING, + #pragma warning restore CS1591 [EnumMember(Value = "PERMISSIVE")] + #pragma warning disable CS1591 PERMISSIVE, + #pragma warning restore CS1591 [EnumMember(Value = "DISABLED")] + #pragma warning disable CS1591 DISABLED, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs index 7a832ed2..0eb6d07b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientId property @@ -53,7 +56,8 @@ public class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public PolicyEvaluationRequest() { + public PolicyEvaluationRequest() + { AdditionalData = new Dictionary(); } /// @@ -61,7 +65,8 @@ public PolicyEvaluationRequest() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyEvaluationRequest CreateFromDiscriminatorValue(IParseNode parseNode) { + public static PolicyEvaluationRequest CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PolicyEvaluationRequest(); } @@ -69,8 +74,10 @@ public static PolicyEvaluationRequest CreateFromDiscriminatorValue(IParseNode pa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"clientId", n => { ClientId = n.GetStringValue(); } }, {"context", n => { Context = n.GetObjectValue(PolicyEvaluationRequest_context.CreateFromDiscriminatorValue); } }, {"entitlements", n => { Entitlements = n.GetBoolValue(); } }, @@ -83,7 +90,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientId", ClientId); writer.WriteObjectValue("context", Context); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs index 7ae7dbcb..4cb50d17 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyEvaluationRequest_context : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class PolicyEvaluationRequest_context : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public PolicyEvaluationRequest_context() { + public PolicyEvaluationRequest_context() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public PolicyEvaluationRequest_context() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyEvaluationRequest_context CreateFromDiscriminatorValue(IParseNode parseNode) { + public static PolicyEvaluationRequest_context CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PolicyEvaluationRequest_context(); } @@ -27,15 +32,18 @@ public static PolicyEvaluationRequest_context CreateFromDiscriminatorValue(IPars /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs index 0d14f713..b7198e15 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyEvaluationResponse : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class PolicyEvaluationResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The entitlements property @@ -31,7 +34,8 @@ public class PolicyEvaluationResponse : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public PolicyEvaluationResponse() { + public PolicyEvaluationResponse() + { AdditionalData = new Dictionary(); } /// @@ -39,7 +43,8 @@ public PolicyEvaluationResponse() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyEvaluationResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static PolicyEvaluationResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PolicyEvaluationResponse(); } @@ -47,8 +52,10 @@ public static PolicyEvaluationResponse CreateFromDiscriminatorValue(IParseNode p /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"entitlements", n => { Entitlements = n.GetBoolValue(); } }, {"results", n => { Results = n.GetCollectionOfObjectValues(EvaluationResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, {"rpt", n => { Rpt = n.GetObjectValue(AccessToken.CreateFromDiscriminatorValue); } }, @@ -59,7 +66,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("entitlements", Entitlements); writer.WriteCollectionOfObjectValues("results", Results); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs index 1f7c14e9..a0c556e9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyProviderRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class PolicyProviderRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The group property @@ -35,7 +38,8 @@ public class PolicyProviderRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public PolicyProviderRepresentation() { + public PolicyProviderRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -43,7 +47,8 @@ public PolicyProviderRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static PolicyProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PolicyProviderRepresentation(); } @@ -51,8 +56,10 @@ public static PolicyProviderRepresentation CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"group", n => { Group = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, {"type", n => { Type = n.GetStringValue(); } }, @@ -62,7 +69,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("group", Group); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs index f4842deb..eee1d0e2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class PolicyRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property @@ -103,7 +106,8 @@ public class PolicyRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public PolicyRepresentation() { + public PolicyRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -111,7 +115,8 @@ public PolicyRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static PolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PolicyRepresentation(); } @@ -119,8 +124,10 @@ public static PolicyRepresentation CreateFromDiscriminatorValue(IParseNode parse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"config", n => { Config = n.GetObjectValue(PolicyRepresentation_config.CreateFromDiscriminatorValue); } }, {"decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, @@ -140,7 +147,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("config", Config); writer.WriteEnumValue("decisionStrategy", DecisionStrategy); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs index 7054a080..4505d594 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyRepresentation_config : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class PolicyRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public PolicyRepresentation_config() { + public PolicyRepresentation_config() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public PolicyRepresentation_config() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static PolicyRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PolicyRepresentation_config(); } @@ -27,15 +32,18 @@ public static PolicyRepresentation_config CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs index cc52c224..04faf75b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyResultRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class PolicyResultRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The associatedPolicies property @@ -37,7 +40,8 @@ public class PolicyResultRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public PolicyResultRepresentation() { + public PolicyResultRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -45,7 +49,8 @@ public PolicyResultRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyResultRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static PolicyResultRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new PolicyResultRepresentation(); } @@ -53,8 +58,10 @@ public static PolicyResultRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"associatedPolicies", n => { AssociatedPolicies = n.GetCollectionOfObjectValues(PolicyResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, {"policy", n => { Policy = n.GetObjectValue(PolicyRepresentation.CreateFromDiscriminatorValue); } }, {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -65,7 +72,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("associatedPolicies", AssociatedPolicies); writer.WriteObjectValue("policy", Policy); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs index 644a1273..6e2a5a37 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ProtocolMapperEvaluationRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ProtocolMapperEvaluationRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The containerId property @@ -59,7 +62,8 @@ public class ProtocolMapperEvaluationRepresentation : IAdditionalDataHolder, IPa /// /// Instantiates a new and sets the default values. /// - public ProtocolMapperEvaluationRepresentation() { + public ProtocolMapperEvaluationRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -67,7 +71,8 @@ public ProtocolMapperEvaluationRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ProtocolMapperEvaluationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ProtocolMapperEvaluationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ProtocolMapperEvaluationRepresentation(); } @@ -75,8 +80,10 @@ public static ProtocolMapperEvaluationRepresentation CreateFromDiscriminatorValu /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"containerId", n => { ContainerId = n.GetStringValue(); } }, {"containerName", n => { ContainerName = n.GetStringValue(); } }, {"containerType", n => { ContainerType = n.GetStringValue(); } }, @@ -89,7 +96,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("containerId", ContainerId); writer.WriteStringValue("containerName", ContainerName); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs index c12182f2..2000d8d0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ProtocolMapperRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ProtocolMapperRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property @@ -63,7 +66,8 @@ public class ProtocolMapperRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ProtocolMapperRepresentation() { + public ProtocolMapperRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -71,7 +75,8 @@ public ProtocolMapperRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ProtocolMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ProtocolMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ProtocolMapperRepresentation(); } @@ -79,8 +84,10 @@ public static ProtocolMapperRepresentation CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"config", n => { Config = n.GetObjectValue(ProtocolMapperRepresentation_config.CreateFromDiscriminatorValue); } }, {"consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, {"consentText", n => { ConsentText = n.GetStringValue(); } }, @@ -94,7 +101,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("config", Config); writer.WriteBoolValue("consentRequired", ConsentRequired); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs index e5b28d9c..0fd707d3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ProtocolMapperRepresentation_config : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ProtocolMapperRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ProtocolMapperRepresentation_config() { + public ProtocolMapperRepresentation_config() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ProtocolMapperRepresentation_config() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ProtocolMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ProtocolMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ProtocolMapperRepresentation_config(); } @@ -27,15 +32,18 @@ public static ProtocolMapperRepresentation_config CreateFromDiscriminatorValue(I /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs index 493dd399..93a67223 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmEventsConfigRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmEventsConfigRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The adminEventsDetailsEnabled property @@ -35,7 +38,8 @@ public class RealmEventsConfigRepresentation : IAdditionalDataHolder, IParsable /// /// Instantiates a new and sets the default values. /// - public RealmEventsConfigRepresentation() { + public RealmEventsConfigRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -43,7 +47,8 @@ public RealmEventsConfigRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmEventsConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmEventsConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmEventsConfigRepresentation(); } @@ -51,8 +56,10 @@ public static RealmEventsConfigRepresentation CreateFromDiscriminatorValue(IPars /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"adminEventsDetailsEnabled", n => { AdminEventsDetailsEnabled = n.GetBoolValue(); } }, {"adminEventsEnabled", n => { AdminEventsEnabled = n.GetBoolValue(); } }, {"enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -65,7 +72,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("adminEventsDetailsEnabled", AdminEventsDetailsEnabled); writer.WriteBoolValue("adminEventsEnabled", AdminEventsEnabled); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs index 5f5189a8..4413a785 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The accessCodeLifespan property public int? AccessCodeLifespan { get; set; } /// The accessCodeLifespanLogin property @@ -809,7 +812,8 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public RealmRepresentation() { + public RealmRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -817,7 +821,8 @@ public RealmRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmRepresentation(); } @@ -825,8 +830,10 @@ public static RealmRepresentation CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"accessCodeLifespan", n => { AccessCodeLifespan = n.GetIntValue(); } }, {"accessCodeLifespanLogin", n => { AccessCodeLifespanLogin = n.GetIntValue(); } }, {"accessCodeLifespanUserAction", n => { AccessCodeLifespanUserAction = n.GetIntValue(); } }, @@ -978,7 +985,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("accessCodeLifespan", AccessCodeLifespan); writer.WriteIntValue("accessCodeLifespanLogin", AccessCodeLifespanLogin); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs index 99383af5..9d515940 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs @@ -6,13 +6,17 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class RealmRepresentation_applicationScopeMappings : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmRepresentation_applicationScopeMappings : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RealmRepresentation_applicationScopeMappings() { + public RealmRepresentation_applicationScopeMappings() + { AdditionalData = new Dictionary(); } /// @@ -20,7 +24,8 @@ public RealmRepresentation_applicationScopeMappings() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_applicationScopeMappings CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmRepresentation_applicationScopeMappings CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmRepresentation_applicationScopeMappings(); } @@ -28,15 +33,18 @@ public static RealmRepresentation_applicationScopeMappings CreateFromDiscriminat /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs index 91d13e3f..4690d0d2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RealmRepresentation_attributes() { + public RealmRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RealmRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static RealmRepresentation_attributes CreateFromDiscriminatorValue(IParse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs index dfe85799..8cc6d35c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_browserSecurityHeaders : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmRepresentation_browserSecurityHeaders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RealmRepresentation_browserSecurityHeaders() { + public RealmRepresentation_browserSecurityHeaders() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RealmRepresentation_browserSecurityHeaders() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_browserSecurityHeaders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmRepresentation_browserSecurityHeaders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmRepresentation_browserSecurityHeaders(); } @@ -27,15 +32,18 @@ public static RealmRepresentation_browserSecurityHeaders CreateFromDiscriminator /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs index 5c6036ec..957100a0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_clientScopeMappings : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmRepresentation_clientScopeMappings : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RealmRepresentation_clientScopeMappings() { + public RealmRepresentation_clientScopeMappings() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RealmRepresentation_clientScopeMappings() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_clientScopeMappings CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmRepresentation_clientScopeMappings CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmRepresentation_clientScopeMappings(); } @@ -27,15 +32,18 @@ public static RealmRepresentation_clientScopeMappings CreateFromDiscriminatorVal /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs index ceac6ca3..7bac847c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_localizationTexts : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmRepresentation_localizationTexts : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RealmRepresentation_localizationTexts() { + public RealmRepresentation_localizationTexts() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RealmRepresentation_localizationTexts() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_localizationTexts CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmRepresentation_localizationTexts CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmRepresentation_localizationTexts(); } @@ -27,15 +32,18 @@ public static RealmRepresentation_localizationTexts CreateFromDiscriminatorValue /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs index e40427cf..081879e0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_smtpServer : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmRepresentation_smtpServer : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RealmRepresentation_smtpServer() { + public RealmRepresentation_smtpServer() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RealmRepresentation_smtpServer() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_smtpServer CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmRepresentation_smtpServer CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmRepresentation_smtpServer(); } @@ -27,15 +32,18 @@ public static RealmRepresentation_smtpServer CreateFromDiscriminatorValue(IParse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs index 41d05d00..7b3b72e3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs @@ -6,13 +6,17 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class RealmRepresentation_socialProviders : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RealmRepresentation_socialProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RealmRepresentation_socialProviders() { + public RealmRepresentation_socialProviders() + { AdditionalData = new Dictionary(); } /// @@ -20,7 +24,8 @@ public RealmRepresentation_socialProviders() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_socialProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RealmRepresentation_socialProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RealmRepresentation_socialProviders(); } @@ -28,15 +33,18 @@ public static RealmRepresentation_socialProviders CreateFromDiscriminatorValue(I /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs index 5bb737a7..5888963d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RequiredActionProviderRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RequiredActionProviderRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alias property @@ -49,7 +52,8 @@ public class RequiredActionProviderRepresentation : IAdditionalDataHolder, IPars /// /// Instantiates a new and sets the default values. /// - public RequiredActionProviderRepresentation() { + public RequiredActionProviderRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -57,7 +61,8 @@ public RequiredActionProviderRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RequiredActionProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RequiredActionProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RequiredActionProviderRepresentation(); } @@ -65,8 +70,10 @@ public static RequiredActionProviderRepresentation CreateFromDiscriminatorValue( /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"alias", n => { Alias = n.GetStringValue(); } }, {"config", n => { Config = n.GetObjectValue(RequiredActionProviderRepresentation_config.CreateFromDiscriminatorValue); } }, {"defaultAction", n => { DefaultAction = n.GetBoolValue(); } }, @@ -80,7 +87,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); writer.WriteObjectValue("config", Config); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs index e76c1458..46cfd787 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RequiredActionProviderRepresentation_config : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RequiredActionProviderRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RequiredActionProviderRepresentation_config() { + public RequiredActionProviderRepresentation_config() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RequiredActionProviderRepresentation_config() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RequiredActionProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RequiredActionProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RequiredActionProviderRepresentation_config(); } @@ -27,15 +32,18 @@ public static RequiredActionProviderRepresentation_config CreateFromDiscriminato /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs index 18002d6a..ffeb00c6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceOwnerRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ResourceOwnerRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The id property @@ -27,7 +30,8 @@ public class ResourceOwnerRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ResourceOwnerRepresentation() { + public ResourceOwnerRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public ResourceOwnerRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceOwnerRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ResourceOwnerRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ResourceOwnerRepresentation(); } @@ -43,8 +48,10 @@ public static ResourceOwnerRepresentation CreateFromDiscriminatorValue(IParseNod /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"id", n => { Id = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs index b73ab2ec..9678f1e9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ResourceRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property @@ -102,7 +105,8 @@ public class ResourceRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ResourceRepresentation() { + public ResourceRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -110,7 +114,8 @@ public ResourceRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ResourceRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ResourceRepresentation(); } @@ -118,8 +123,10 @@ public static ResourceRepresentation CreateFromDiscriminatorValue(IParseNode par /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"attributes", n => { Attributes = n.GetObjectValue(ResourceRepresentation_attributes.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"icon_uri", n => { IconUri = n.GetStringValue(); } }, @@ -138,7 +145,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attributes", Attributes); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs index aefc3641..25d03c6a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ResourceRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public ResourceRepresentation_attributes() { + public ResourceRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public ResourceRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ResourceRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ResourceRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static ResourceRepresentation_attributes CreateFromDiscriminatorValue(IPa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs index 3a89d43a..96d966ca 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceRepresentation_owner : ResourceOwnerRepresentation, IParsable { + #pragma warning disable CS1591 + public class ResourceRepresentation_owner : ResourceOwnerRepresentation, IParsable + #pragma warning restore CS1591 + { /// /// Creates a new instance of the appropriate class based on discriminator value /// /// A /// The parse node to use to read the discriminator value and create the object - public static new ResourceRepresentation_owner CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new ResourceRepresentation_owner CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ResourceRepresentation_owner(); } @@ -19,15 +23,18 @@ public class ResourceRepresentation_owner : ResourceOwnerRepresentation, IParsab /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs index 6161ee3b..08efba8c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceServerRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ResourceServerRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The allowRemoteResourceManagement property @@ -65,7 +68,8 @@ public class ResourceServerRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ResourceServerRepresentation() { + public ResourceServerRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -73,7 +77,8 @@ public ResourceServerRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceServerRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ResourceServerRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ResourceServerRepresentation(); } @@ -81,8 +86,10 @@ public static ResourceServerRepresentation CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"allowRemoteResourceManagement", n => { AllowRemoteResourceManagement = n.GetBoolValue(); } }, {"clientId", n => { ClientId = n.GetStringValue(); } }, {"decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, @@ -98,7 +105,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowRemoteResourceManagement", AllowRemoteResourceManagement); writer.WriteStringValue("clientId", ClientId); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs index c79a8eb4..fdc8a7d7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RoleRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RoleRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property @@ -66,7 +69,8 @@ public class RoleRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public RoleRepresentation() { + public RoleRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -74,7 +78,8 @@ public RoleRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RoleRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RoleRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RoleRepresentation(); } @@ -82,8 +87,10 @@ public static RoleRepresentation CreateFromDiscriminatorValue(IParseNode parseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"attributes", n => { Attributes = n.GetObjectValue(RoleRepresentation_attributes.CreateFromDiscriminatorValue); } }, {"clientRole", n => { ClientRole = n.GetBoolValue(); } }, {"composite", n => { Composite = n.GetBoolValue(); } }, @@ -99,7 +106,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("attributes", Attributes); writer.WriteBoolValue("clientRole", ClientRole); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs index 870e13f1..1442ff0c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RoleRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RoleRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RoleRepresentation_attributes() { + public RoleRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RoleRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RoleRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RoleRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RoleRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static RoleRepresentation_attributes CreateFromDiscriminatorValue(IParseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs index 50c73283..6a09037f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RolesRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RolesRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The application property @@ -36,7 +39,8 @@ public class RolesRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public RolesRepresentation() { + public RolesRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -44,7 +48,8 @@ public RolesRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RolesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RolesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RolesRepresentation(); } @@ -52,8 +57,10 @@ public static RolesRepresentation CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"application", n => { Application = n.GetObjectValue(RolesRepresentation_application.CreateFromDiscriminatorValue); } }, {"client", n => { Client = n.GetObjectValue(RolesRepresentation_client.CreateFromDiscriminatorValue); } }, {"realm", n => { Realm = n.GetCollectionOfObjectValues(RoleRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -63,7 +70,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("application", Application); writer.WriteObjectValue("client", Client); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs index e65f5226..5d01eabf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs @@ -6,13 +6,17 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class RolesRepresentation_application : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RolesRepresentation_application : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RolesRepresentation_application() { + public RolesRepresentation_application() + { AdditionalData = new Dictionary(); } /// @@ -20,7 +24,8 @@ public RolesRepresentation_application() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RolesRepresentation_application CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RolesRepresentation_application CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RolesRepresentation_application(); } @@ -28,15 +33,18 @@ public static RolesRepresentation_application CreateFromDiscriminatorValue(IPars /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs index cf9390aa..e0ac65b6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RolesRepresentation_client : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class RolesRepresentation_client : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public RolesRepresentation_client() { + public RolesRepresentation_client() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public RolesRepresentation_client() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static RolesRepresentation_client CreateFromDiscriminatorValue(IParseNode parseNode) { + public static RolesRepresentation_client CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RolesRepresentation_client(); } @@ -27,15 +32,18 @@ public static RolesRepresentation_client CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs index c7d56389..d2d3e61f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ScopeMappingRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ScopeMappingRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The client property @@ -52,7 +55,8 @@ public class ScopeMappingRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ScopeMappingRepresentation() { + public ScopeMappingRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -60,7 +64,8 @@ public ScopeMappingRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ScopeMappingRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ScopeMappingRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ScopeMappingRepresentation(); } @@ -68,8 +73,10 @@ public static ScopeMappingRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"client", n => { Client = n.GetStringValue(); } }, {"clientScope", n => { ClientScope = n.GetStringValue(); } }, {"clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, @@ -81,7 +88,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("client", Client); writer.WriteStringValue("clientScope", ClientScope); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs index 985638f5..37f07da9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ScopeRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class ScopeRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The displayName property @@ -59,7 +62,8 @@ public class ScopeRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public ScopeRepresentation() { + public ScopeRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -67,7 +71,8 @@ public ScopeRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static ScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static ScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ScopeRepresentation(); } @@ -75,8 +80,10 @@ public static ScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"iconUri", n => { IconUri = n.GetStringValue(); } }, {"id", n => { Id = n.GetStringValue(); } }, @@ -89,7 +96,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("iconUri", IconUri); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs index 10c1cdde..3df8b8de 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class SocialLinkRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class SocialLinkRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The socialProvider property @@ -35,7 +38,8 @@ public class SocialLinkRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public SocialLinkRepresentation() { + public SocialLinkRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -43,7 +47,8 @@ public SocialLinkRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static SocialLinkRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static SocialLinkRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SocialLinkRepresentation(); } @@ -51,8 +56,10 @@ public static SocialLinkRepresentation CreateFromDiscriminatorValue(IParseNode p /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"socialProvider", n => { SocialProvider = n.GetStringValue(); } }, {"socialUserId", n => { SocialUserId = n.GetStringValue(); } }, {"socialUsername", n => { SocialUsername = n.GetStringValue(); } }, @@ -62,7 +69,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("socialProvider", SocialProvider); writer.WriteStringValue("socialUserId", SocialUserId); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs index e0c0acb4..e632f207 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttribute : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPAttribute : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The annotations property @@ -77,7 +80,8 @@ public class UPAttribute : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UPAttribute() { + public UPAttribute() + { AdditionalData = new Dictionary(); } /// @@ -85,7 +89,8 @@ public UPAttribute() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttribute CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPAttribute CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPAttribute(); } @@ -93,8 +98,10 @@ public static UPAttribute CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"annotations", n => { Annotations = n.GetObjectValue(UPAttribute_annotations.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"group", n => { Group = n.GetStringValue(); } }, @@ -110,7 +117,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("annotations", Annotations); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs index 1e592760..97929042 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttributePermissions : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPAttributePermissions : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The edit property @@ -27,7 +30,8 @@ public class UPAttributePermissions : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UPAttributePermissions() { + public UPAttributePermissions() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public UPAttributePermissions() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttributePermissions CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPAttributePermissions CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPAttributePermissions(); } @@ -43,8 +48,10 @@ public static UPAttributePermissions CreateFromDiscriminatorValue(IParseNode par /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"edit", n => { Edit = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"view", n => { View = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("edit", Edit); writer.WriteCollectionOfPrimitiveValues("view", View); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs index eb041b3a..9b2e504d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttributeRequired : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPAttributeRequired : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The roles property @@ -27,7 +30,8 @@ public class UPAttributeRequired : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UPAttributeRequired() { + public UPAttributeRequired() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public UPAttributeRequired() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttributeRequired CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPAttributeRequired CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPAttributeRequired(); } @@ -43,8 +48,10 @@ public static UPAttributeRequired CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("roles", Roles); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs index 6f9668f9..516edd5f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttributeSelector : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPAttributeSelector : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The scopes property @@ -19,7 +22,8 @@ public class UPAttributeSelector : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UPAttributeSelector() { + public UPAttributeSelector() + { AdditionalData = new Dictionary(); } /// @@ -27,7 +31,8 @@ public UPAttributeSelector() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttributeSelector CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPAttributeSelector CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPAttributeSelector(); } @@ -35,8 +40,10 @@ public static UPAttributeSelector CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } @@ -44,7 +51,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs index ad604d1c..fa6f4641 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttribute_annotations : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPAttribute_annotations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UPAttribute_annotations() { + public UPAttribute_annotations() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UPAttribute_annotations() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttribute_annotations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPAttribute_annotations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPAttribute_annotations(); } @@ -27,15 +32,18 @@ public static UPAttribute_annotations CreateFromDiscriminatorValue(IParseNode pa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs index f21b5252..67957d1f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttribute_validations : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPAttribute_validations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UPAttribute_validations() { + public UPAttribute_validations() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UPAttribute_validations() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttribute_validations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPAttribute_validations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPAttribute_validations(); } @@ -27,15 +32,18 @@ public static UPAttribute_validations CreateFromDiscriminatorValue(IParseNode pa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs index 80afb562..5514a357 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPConfig : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPConfig : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property @@ -29,7 +32,8 @@ public class UPConfig : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UPConfig() { + public UPConfig() + { AdditionalData = new Dictionary(); } /// @@ -37,7 +41,8 @@ public UPConfig() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPConfig CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPConfig CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPConfig(); } @@ -45,8 +50,10 @@ public static UPConfig CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"attributes", n => { Attributes = n.GetCollectionOfObjectValues(UPAttribute.CreateFromDiscriminatorValue)?.ToList(); } }, {"groups", n => { Groups = n.GetCollectionOfObjectValues(UPGroup.CreateFromDiscriminatorValue)?.ToList(); } }, {"unmanagedAttributePolicy", n => { UnmanagedAttributePolicy = n.GetEnumValue(); } }, @@ -56,7 +63,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("attributes", Attributes); writer.WriteCollectionOfObjectValues("groups", Groups); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs index 1c83ee02..eb5bb0cc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPGroup : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPGroup : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The annotations property @@ -43,7 +46,8 @@ public class UPGroup : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UPGroup() { + public UPGroup() + { AdditionalData = new Dictionary(); } /// @@ -51,7 +55,8 @@ public UPGroup() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPGroup CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPGroup CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPGroup(); } @@ -59,8 +64,10 @@ public static UPGroup CreateFromDiscriminatorValue(IParseNode parseNode) { /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"annotations", n => { Annotations = n.GetObjectValue(UPGroup_annotations.CreateFromDiscriminatorValue); } }, {"displayDescription", n => { DisplayDescription = n.GetStringValue(); } }, {"displayHeader", n => { DisplayHeader = n.GetStringValue(); } }, @@ -71,7 +78,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("annotations", Annotations); writer.WriteStringValue("displayDescription", DisplayDescription); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs index c05216f9..aa052aaf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPGroup_annotations : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UPGroup_annotations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UPGroup_annotations() { + public UPGroup_annotations() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UPGroup_annotations() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UPGroup_annotations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UPGroup_annotations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UPGroup_annotations(); } @@ -27,15 +32,18 @@ public static UPGroup_annotations CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs index cad824b4..4479da7a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs @@ -2,12 +2,21 @@ using System.Runtime.Serialization; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum UnmanagedAttributePolicy { + #pragma warning disable CS1591 + public enum UnmanagedAttributePolicy + #pragma warning restore CS1591 + { [EnumMember(Value = "ENABLED")] + #pragma warning disable CS1591 ENABLED, + #pragma warning restore CS1591 [EnumMember(Value = "ADMIN_VIEW")] + #pragma warning disable CS1591 ADMIN_VIEW, + #pragma warning restore CS1591 [EnumMember(Value = "ADMIN_EDIT")] + #pragma warning disable CS1591 ADMIN_EDIT, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs index ee20e2c3..8417d553 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserConsentRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserConsentRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientId property @@ -40,7 +43,8 @@ public class UserConsentRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UserConsentRepresentation() { + public UserConsentRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -48,7 +52,8 @@ public UserConsentRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserConsentRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserConsentRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserConsentRepresentation(); } @@ -56,8 +61,10 @@ public static UserConsentRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"clientId", n => { ClientId = n.GetStringValue(); } }, {"createdDate", n => { CreatedDate = n.GetLongValue(); } }, {"grantedClientScopes", n => { GrantedClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, @@ -69,7 +76,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientId", ClientId); writer.WriteLongValue("createdDate", CreatedDate); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs index a16ac773..cacfff24 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserFederationMapperRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserFederationMapperRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property @@ -51,7 +54,8 @@ public class UserFederationMapperRepresentation : IAdditionalDataHolder, IParsab /// /// Instantiates a new and sets the default values. /// - public UserFederationMapperRepresentation() { + public UserFederationMapperRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -59,7 +63,8 @@ public UserFederationMapperRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserFederationMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserFederationMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserFederationMapperRepresentation(); } @@ -67,8 +72,10 @@ public static UserFederationMapperRepresentation CreateFromDiscriminatorValue(IP /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"config", n => { Config = n.GetObjectValue(UserFederationMapperRepresentation_config.CreateFromDiscriminatorValue); } }, {"federationMapperType", n => { FederationMapperType = n.GetStringValue(); } }, {"federationProviderDisplayName", n => { FederationProviderDisplayName = n.GetStringValue(); } }, @@ -80,7 +87,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("config", Config); writer.WriteStringValue("federationMapperType", FederationMapperType); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs index 54939013..7affdfaa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserFederationMapperRepresentation_config : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserFederationMapperRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserFederationMapperRepresentation_config() { + public UserFederationMapperRepresentation_config() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserFederationMapperRepresentation_config() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserFederationMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserFederationMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserFederationMapperRepresentation_config(); } @@ -27,15 +32,18 @@ public static UserFederationMapperRepresentation_config CreateFromDiscriminatorV /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs index f1d115a4..a7e0e618 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserFederationProviderRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserFederationProviderRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The changedSyncPeriod property @@ -51,7 +54,8 @@ public class UserFederationProviderRepresentation : IAdditionalDataHolder, IPars /// /// Instantiates a new and sets the default values. /// - public UserFederationProviderRepresentation() { + public UserFederationProviderRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -59,7 +63,8 @@ public UserFederationProviderRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserFederationProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserFederationProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserFederationProviderRepresentation(); } @@ -67,8 +72,10 @@ public static UserFederationProviderRepresentation CreateFromDiscriminatorValue( /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"changedSyncPeriod", n => { ChangedSyncPeriod = n.GetIntValue(); } }, {"config", n => { Config = n.GetObjectValue(UserFederationProviderRepresentation_config.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -83,7 +90,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("changedSyncPeriod", ChangedSyncPeriod); writer.WriteObjectValue("config", Config); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs index 871c822d..bd8981f7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserFederationProviderRepresentation_config : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserFederationProviderRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserFederationProviderRepresentation_config() { + public UserFederationProviderRepresentation_config() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserFederationProviderRepresentation_config() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserFederationProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserFederationProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserFederationProviderRepresentation_config(); } @@ -27,15 +32,18 @@ public static UserFederationProviderRepresentation_config CreateFromDiscriminato /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs index ecc1808d..19d81f9e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeGroupMetadata : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserProfileAttributeGroupMetadata : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The annotations property @@ -43,7 +46,8 @@ public class UserProfileAttributeGroupMetadata : IAdditionalDataHolder, IParsabl /// /// Instantiates a new and sets the default values. /// - public UserProfileAttributeGroupMetadata() { + public UserProfileAttributeGroupMetadata() + { AdditionalData = new Dictionary(); } /// @@ -51,7 +55,8 @@ public UserProfileAttributeGroupMetadata() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeGroupMetadata CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserProfileAttributeGroupMetadata CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserProfileAttributeGroupMetadata(); } @@ -59,8 +64,10 @@ public static UserProfileAttributeGroupMetadata CreateFromDiscriminatorValue(IPa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"annotations", n => { Annotations = n.GetObjectValue(UserProfileAttributeGroupMetadata_annotations.CreateFromDiscriminatorValue); } }, {"displayDescription", n => { DisplayDescription = n.GetStringValue(); } }, {"displayHeader", n => { DisplayHeader = n.GetStringValue(); } }, @@ -71,7 +78,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("annotations", Annotations); writer.WriteStringValue("displayDescription", DisplayDescription); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs index 1f66174b..0489bf41 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeGroupMetadata_annotations : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserProfileAttributeGroupMetadata_annotations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserProfileAttributeGroupMetadata_annotations() { + public UserProfileAttributeGroupMetadata_annotations() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserProfileAttributeGroupMetadata_annotations() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeGroupMetadata_annotations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserProfileAttributeGroupMetadata_annotations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserProfileAttributeGroupMetadata_annotations(); } @@ -27,15 +32,18 @@ public static UserProfileAttributeGroupMetadata_annotations CreateFromDiscrimina /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs index 5db21e75..7a4e8ea6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The annotations property @@ -57,7 +60,8 @@ public class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UserProfileAttributeMetadata() { + public UserProfileAttributeMetadata() + { AdditionalData = new Dictionary(); } /// @@ -65,7 +69,8 @@ public UserProfileAttributeMetadata() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeMetadata CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserProfileAttributeMetadata CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserProfileAttributeMetadata(); } @@ -73,8 +78,10 @@ public static UserProfileAttributeMetadata CreateFromDiscriminatorValue(IParseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"annotations", n => { Annotations = n.GetObjectValue(UserProfileAttributeMetadata_annotations.CreateFromDiscriminatorValue); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"group", n => { Group = n.GetStringValue(); } }, @@ -89,7 +96,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("annotations", Annotations); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs index 3fe8ef66..3f14f23b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeMetadata_annotations : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserProfileAttributeMetadata_annotations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserProfileAttributeMetadata_annotations() { + public UserProfileAttributeMetadata_annotations() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserProfileAttributeMetadata_annotations() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeMetadata_annotations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserProfileAttributeMetadata_annotations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserProfileAttributeMetadata_annotations(); } @@ -27,15 +32,18 @@ public static UserProfileAttributeMetadata_annotations CreateFromDiscriminatorVa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs index c7e9fff7..917dec21 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeMetadata_validators : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserProfileAttributeMetadata_validators : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserProfileAttributeMetadata_validators() { + public UserProfileAttributeMetadata_validators() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserProfileAttributeMetadata_validators() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeMetadata_validators CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserProfileAttributeMetadata_validators CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserProfileAttributeMetadata_validators(); } @@ -27,15 +32,18 @@ public static UserProfileAttributeMetadata_validators CreateFromDiscriminatorVal /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs index 9b90d3a5..e6713d32 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileMetadata : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserProfileMetadata : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property @@ -27,7 +30,8 @@ public class UserProfileMetadata : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UserProfileMetadata() { + public UserProfileMetadata() + { AdditionalData = new Dictionary(); } /// @@ -35,7 +39,8 @@ public UserProfileMetadata() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileMetadata CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserProfileMetadata CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserProfileMetadata(); } @@ -43,8 +48,10 @@ public static UserProfileMetadata CreateFromDiscriminatorValue(IParseNode parseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"attributes", n => { Attributes = n.GetCollectionOfObjectValues(UserProfileAttributeMetadata.CreateFromDiscriminatorValue)?.ToList(); } }, {"groups", n => { Groups = n.GetCollectionOfObjectValues(UserProfileAttributeGroupMetadata.CreateFromDiscriminatorValue)?.ToList(); } }, }; @@ -53,7 +60,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("attributes", Attributes); writer.WriteCollectionOfObjectValues("groups", Groups); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs index 320bd400..f2d1c8ad 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -199,7 +202,8 @@ public class UserRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UserRepresentation() { + public UserRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -207,7 +211,8 @@ public UserRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserRepresentation(); } @@ -215,8 +220,10 @@ public static UserRepresentation CreateFromDiscriminatorValue(IParseNode parseNo /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"access", n => { Access = n.GetObjectValue(UserRepresentation_access.CreateFromDiscriminatorValue); } }, {"applicationRoles", n => { ApplicationRoles = n.GetObjectValue(UserRepresentation_applicationRoles.CreateFromDiscriminatorValue); } }, {"attributes", n => { Attributes = n.GetObjectValue(UserRepresentation_attributes.CreateFromDiscriminatorValue); } }, @@ -250,7 +257,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("access", Access); writer.WriteObjectValue("applicationRoles", ApplicationRoles); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs index a5f6496f..2ecbf2b3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserRepresentation_access : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserRepresentation_access() { + public UserRepresentation_access() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserRepresentation_access() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserRepresentation_access(); } @@ -27,15 +32,18 @@ public static UserRepresentation_access CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs index 98798a86..8df2bea4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs @@ -6,13 +6,17 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { [Obsolete("")] - public class UserRepresentation_applicationRoles : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserRepresentation_applicationRoles : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserRepresentation_applicationRoles() { + public UserRepresentation_applicationRoles() + { AdditionalData = new Dictionary(); } /// @@ -20,7 +24,8 @@ public UserRepresentation_applicationRoles() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation_applicationRoles CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserRepresentation_applicationRoles CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserRepresentation_applicationRoles(); } @@ -28,15 +33,18 @@ public static UserRepresentation_applicationRoles CreateFromDiscriminatorValue(I /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs index d4b86a72..d5031016 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserRepresentation_attributes : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserRepresentation_attributes() { + public UserRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserRepresentation_attributes() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserRepresentation_attributes(); } @@ -27,15 +32,18 @@ public static UserRepresentation_attributes CreateFromDiscriminatorValue(IParseN /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs index b475d9f6..1fc65d8d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserRepresentation_clientRoles : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserRepresentation_clientRoles : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserRepresentation_clientRoles() { + public UserRepresentation_clientRoles() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserRepresentation_clientRoles() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserRepresentation_clientRoles(); } @@ -27,15 +32,18 @@ public static UserRepresentation_clientRoles CreateFromDiscriminatorValue(IParse /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs index ae28a74b..dadbe523 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs @@ -5,7 +5,10 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserSessionRepresentation : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserSessionRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clients property @@ -57,7 +60,8 @@ public class UserSessionRepresentation : IAdditionalDataHolder, IParsable { /// /// Instantiates a new and sets the default values. /// - public UserSessionRepresentation() { + public UserSessionRepresentation() + { AdditionalData = new Dictionary(); } /// @@ -65,7 +69,8 @@ public UserSessionRepresentation() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserSessionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserSessionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserSessionRepresentation(); } @@ -73,8 +78,10 @@ public static UserSessionRepresentation CreateFromDiscriminatorValue(IParseNode /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { {"clients", n => { Clients = n.GetObjectValue(UserSessionRepresentation_clients.CreateFromDiscriminatorValue); } }, {"id", n => { Id = n.GetStringValue(); } }, {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, @@ -89,7 +96,8 @@ public virtual IDictionary> GetFieldDeserializers() { /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("clients", Clients); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs index bd032fc5..37c586e1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs @@ -5,13 +5,17 @@ using System.Linq; using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserSessionRepresentation_clients : IAdditionalDataHolder, IParsable { + #pragma warning disable CS1591 + public class UserSessionRepresentation_clients : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// /// Instantiates a new and sets the default values. /// - public UserSessionRepresentation_clients() { + public UserSessionRepresentation_clients() + { AdditionalData = new Dictionary(); } /// @@ -19,7 +23,8 @@ public UserSessionRepresentation_clients() { /// /// A /// The parse node to use to read the discriminator value and create the object - public static UserSessionRepresentation_clients CreateFromDiscriminatorValue(IParseNode parseNode) { + public static UserSessionRepresentation_clients CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new UserSessionRepresentation_clients(); } @@ -27,15 +32,18 @@ public static UserSessionRepresentation_clients CreateFromDiscriminatorValue(IPa /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json b/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json index fd176107..b545392f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json +++ b/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json @@ -2,7 +2,7 @@ "descriptionHash": "0C850ED5B6555F46112A623464E3147D6F0AC5FE9147E377E032FFFCE81E392305975F60B0D57EB8419E3DF834B6E54B1140F4C52C11B796016C62A89B15AB02", "descriptionLocation": "https://www.keycloak.org/docs-api/24.0.1/rest-api/openapi.json", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.12.0", + "kiotaVersion": "1.14.0", "clientClassName": "KeycloakAdminApiClient", "clientNamespaceName": "Keycloak.AuthServices.Sdk.Kiota.Admin", "language": "CSharp",