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 5e42c33c..eca60448 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 @@ -20,7 +20,7 @@ public class UsersRequestBuilder : BaseRequestBuilder /// /// 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{?briefRepresentation*,first*,max*}", pathParameters) { } /// @@ -28,7 +28,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd /// /// 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{?briefRepresentation*,first*,max*}", rawUrl) { } /// @@ -83,6 +83,9 @@ public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Role /// public class UsersRequestBuilderGetQueryParameters { + /// Boolean which defines whether brief representations are returned (default: false) + [QueryParameter("briefRepresentation")] + public bool? BriefRepresentation { get; set; } /// 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/IdentityProvider/Instances/InstancesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs index 5093e267..43e51786 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 @@ -33,7 +33,7 @@ public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider. /// /// 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*,realmOnly*,search*}", pathParameters) { } /// @@ -41,7 +41,7 @@ public InstancesRequestBuilder(Dictionary pathParameters, IReque /// /// 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*,realmOnly*,search*}", rawUrl) { } /// @@ -146,6 +146,9 @@ public class InstancesRequestBuilderGetQueryParameters /// Maximum results size (defaults to 100) [QueryParameter("max")] public int? Max { get; set; } + /// Boolean which defines if only realm-level IDPs (not associated with orgs) should be returned (default: false) + [QueryParameter("realmOnly")] + public bool? RealmOnly { get; set; } /// Filter specific providers by name. Search can be prefix (name*), contains (*name*) or exact ("name"). Default prefixed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs new file mode 100644 index 00000000..48085b89 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs @@ -0,0 +1,136 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\identity-providers + /// + public class IdentityProvidersRequestBuilder : BaseRequestBuilder + { + /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.organizations.item.identityProviders.item collection + /// Unique identifier of the item + /// A + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("alias", position); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.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 IdentityProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/identity-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 IdentityProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/identity-providers", rawUrl) + { + } + /// + /// Returns all identity providers associated with the organization + /// + /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation> + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.ToList(); + } + /// + /// Adds, or associates, an existing identity provider with the organization. If no identity provider is found, or if it is already associated with the organization, an error response is returned + /// + /// A + /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + 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); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns all identity providers associated with the organization + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Adds, or associates, an existing identity provider with the organization. If no identity provider is found, or if it is already associated with the organization, an error response is returned + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { +#nullable restore +#else + 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); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromScalar(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/Item/WithAliasItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/Item/WithAliasItemRequestBuilder.cs new file mode 100644 index 00000000..1c0b817f --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/Item/WithAliasItemRequestBuilder.cs @@ -0,0 +1,117 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\identity-providers\{alias} + /// + public class WithAliasItemRequestBuilder : BaseRequestBuilder + { + /// + /// 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}/organizations/{id}/identity-providers/{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}/organizations/{id}/identity-providers/{alias}", rawUrl) + { + } + /// + /// Breaks the association between the identity provider and the organization. The provider itself is not deleted. If no provider is found, or if it is not currently associated with the org, an error response is returned + /// + /// 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) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Searches for an identity provider with the given alias. If one is found and is associated with the organization, it is returned. Otherwise, an error response with status NOT_FOUND is returned + /// + /// 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) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Breaks the association between the identity provider and the organization. The provider itself is not deleted. If no provider is found, or if it is not currently associated with the org, an error response is returned + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + return requestInfo; + } + /// + /// Searches for an identity provider with the given alias. If one is found and is associated with the organization, it is returned. Otherwise, an error response with status NOT_FOUND is returned + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Count/CountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Count/CountRequestBuilder.cs new file mode 100644 index 00000000..db0a4c03 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Count/CountRequestBuilder.cs @@ -0,0 +1,80 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\count + /// + 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}/organizations/{id}/members/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 CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/count", rawUrl) + { + } + /// + /// Returns number of members in the organization. + /// + /// 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) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns number of members in the organization. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserPostRequestBody.cs new file mode 100644 index 00000000..ce9c8613 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserPostRequestBody.cs @@ -0,0 +1,62 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser +{ + #pragma warning disable CS1591 + public class InviteExistingUserPostRequestBody : 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 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Id { get; set; } +#nullable restore +#else + public string Id { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InviteExistingUserPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("id", Id); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserRequestBuilder.cs new file mode 100644 index 00000000..8d0ff846 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserRequestBuilder.cs @@ -0,0 +1,84 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\invite-existing-user + /// + public class InviteExistingUserRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InviteExistingUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/invite-existing-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 InviteExistingUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/invite-existing-user", rawUrl) + { + } + /// + /// Invites an existing user to the organization, using the specified user id + /// + /// A + /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Invites an existing user to the organization, using the specified user id + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/x-www-form-urlencoded", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserPostRequestBody.cs new file mode 100644 index 00000000..d185a855 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserPostRequestBody.cs @@ -0,0 +1,82 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser +{ + #pragma warning disable CS1591 + public class InviteUserPostRequestBody : 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 email property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Email { get; set; } +#nullable restore +#else + public string Email { get; set; } +#endif + /// The firstName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FirstName { get; set; } +#nullable restore +#else + public string FirstName { get; set; } +#endif + /// The lastName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LastName { get; set; } +#nullable restore +#else + public string LastName { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InviteUserPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "email", n => { Email = n.GetStringValue(); } }, + { "firstName", n => { FirstName = n.GetStringValue(); } }, + { "lastName", n => { LastName = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("email", Email); + writer.WriteStringValue("firstName", FirstName); + writer.WriteStringValue("lastName", LastName); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserRequestBuilder.cs new file mode 100644 index 00000000..e4f968ba --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserRequestBuilder.cs @@ -0,0 +1,84 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\invite-user + /// + public class InviteUserRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InviteUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/invite-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 InviteUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/invite-user", rawUrl) + { + } + /// + /// If the user with the given e-mail address exists, it sends an invitation link, otherwise it sends a registration link. + /// + /// A + /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// If the user with the given e-mail address exists, it sends an invitation link, otherwise it sends a registration link. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/x-www-form-urlencoded", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/MembersItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/MembersItemRequestBuilder.cs new file mode 100644 index 00000000..6cb625f4 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/MembersItemRequestBuilder.cs @@ -0,0 +1,123 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\{id} + /// + public class MembersItemRequestBuilder : BaseRequestBuilder + { + /// The organizations property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder Organizations + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder(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 MembersItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/{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 MembersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/{id}", rawUrl) + { + } + /// + /// Breaks the association between the user and organization. The user itself is deleted in case the membership is managed, otherwise the user is not deleted. If no user is found, or if they are not a member of the organization, an error response is returned + /// + /// 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) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Searches for auser with the given id. If one is found, and is currently a member of the organization, returns it. Otherwise,an error response with status NOT_FOUND is returned + /// + /// 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) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Breaks the association between the user and organization. The user itself is deleted in case the membership is managed, otherwise the user is not deleted. If no user is found, or if they are not a member of the organization, an error response is returned + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + return requestInfo; + } + /// + /// Searches for auser with the given id. If one is found, and is currently a member of the organization, returns it. Otherwise,an error response with status NOT_FOUND is returned + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/Organizations/OrganizationsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/Organizations/OrganizationsRequestBuilder.cs new file mode 100644 index 00000000..fd763169 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/Organizations/OrganizationsRequestBuilder.cs @@ -0,0 +1,82 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\{id}\organizations + /// + public class OrganizationsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public OrganizationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/{id}/organizations", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members/{id}/organizations", rawUrl) + { + } + /// + /// Returns the organizations associated with the user that has the specified id + /// + /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.ToList(); + } + /// + /// Returns the organizations associated with the user that has the specified id + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/MembersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/MembersRequestBuilder.cs new file mode 100644 index 00000000..ecfd1ffc --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/MembersRequestBuilder.cs @@ -0,0 +1,179 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members + /// + public class MembersRequestBuilder : BaseRequestBuilder + { + /// The count property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder Count + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The inviteExistingUser property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder InviteExistingUser + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder(PathParameters, RequestAdapter); + } + /// The inviteUser property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder InviteUser + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.organizations.item.members.item collection + /// Unique identifier of the item + /// A + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder(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 MembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members{?exact*,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 MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}/members{?exact*,first*,max*,search*}", rawUrl) + { + } + /// + /// Returns a paginated list of organization members filtered according to the specified parameters + /// + /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation> + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.ToList(); + } + /// + /// Adds, or associates, an existing user with the organization. If no user is found, or if it is already associated with the organization, an error response is returned + /// + /// A + /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + 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); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns a paginated list of organization members filtered according to the specified parameters + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Adds, or associates, an existing user with the organization. If no user is found, or if it is already associated with the organization, an error response is returned + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { +#nullable restore +#else + 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); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromScalar(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Returns a paginated list of organization members filtered according to the specified parameters + /// + public class MembersRequestBuilderGetQueryParameters + { + /// Boolean which defines whether the param 'search' must match exactly or not + [QueryParameter("exact")] + public bool? Exact { get; set; } + /// The position of the first result to be processed (pagination offset) + [QueryParameter("first")] + public int? First { get; set; } + /// The maximum number of results to be returned. Defaults to 10 + [QueryParameter("max")] + public int? Max { get; set; } + /// A String representing either a member's username, e-mail, first name, or last name. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("search")] + public string Search { get; set; } +#endif + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/OrganizationsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/OrganizationsItemRequestBuilder.cs new file mode 100644 index 00000000..3de82c4f --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/OrganizationsItemRequestBuilder.cs @@ -0,0 +1,170 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id} + /// + public class OrganizationsItemRequestBuilder : BaseRequestBuilder + { + /// The identityProviders property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder IdentityProviders + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder(PathParameters, RequestAdapter); + } + /// The members property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder Members + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder(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 OrganizationsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{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 OrganizationsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/{id}", rawUrl) + { + } + /// + /// Deletes the organization + /// + /// 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) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns the organization representation + /// + /// 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) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Updates the organization + /// + /// A + /// 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 PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes the organization + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + return requestInfo; + } + /// + /// Returns the organization representation + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Updates the organization + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/MembersItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/MembersItemRequestBuilder.cs new file mode 100644 index 00000000..3f11d9fd --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/MembersItemRequestBuilder.cs @@ -0,0 +1,38 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\members\{id} + /// + public class MembersItemRequestBuilder : BaseRequestBuilder + { + /// The organizations property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder Organizations + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder(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 MembersItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/members/{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 MembersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/members/{id}", rawUrl) + { + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/Organizations/OrganizationsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/Organizations/OrganizationsRequestBuilder.cs new file mode 100644 index 00000000..c48952fc --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/Organizations/OrganizationsRequestBuilder.cs @@ -0,0 +1,82 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\members\{id}\organizations + /// + public class OrganizationsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public OrganizationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/members/{id}/organizations", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/members/{id}/organizations", rawUrl) + { + } + /// + /// Returns the organizations associated with the user that has the specified id + /// + /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.ToList(); + } + /// + /// Returns the organizations associated with the user that has the specified id + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/MembersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/MembersRequestBuilder.cs new file mode 100644 index 00000000..08813c46 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/MembersRequestBuilder.cs @@ -0,0 +1,45 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\members + /// + public class MembersRequestBuilder : BaseRequestBuilder + { + /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.organizations.members.item collection + /// Unique identifier of the item + /// A + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.MembersItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.MembersItemRequestBuilder(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 MembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations/members", pathParameters) + { + } + /// + /// Instantiates a new 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}/organizations/members", rawUrl) + { + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/OrganizationsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/OrganizationsRequestBuilder.cs new file mode 100644 index 00000000..a1a0718a --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/OrganizationsRequestBuilder.cs @@ -0,0 +1,177 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\organizations + /// + public class OrganizationsRequestBuilder : BaseRequestBuilder + { + /// The members property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.MembersRequestBuilder Members + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.MembersRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.organizations.item collection + /// Unique identifier of the item + /// A + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder(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 OrganizationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations{?exact*,first*,max*,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 OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/organizations{?exact*,first*,max*,q*,search*}", rawUrl) + { + } + /// + /// Returns a paginated list of organizations filtered according to the specified parameters + /// + /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.ToList(); + } + /// + /// Creates a new organization + /// + /// A + /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns a paginated list of organizations filtered according to the specified parameters + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Creates a new organization + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) + { + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Returns a paginated list of organizations filtered according to the specified parameters + /// + public class OrganizationsRequestBuilderGetQueryParameters + { + /// Boolean which defines whether the param 'search' must match exactly or not + [QueryParameter("exact")] + public bool? Exact { get; set; } + /// The position of the first result to be processed (pagination offset) + [QueryParameter("first")] + public int? First { get; set; } + /// The maximum number of results to be returned - defaults to 10 + [QueryParameter("max")] + public int? Max { get; set; } + /// A query to search for custom attributes, in the format 'key1:value2 key2:value2' +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("q")] + public string? Q { get; set; } +#nullable restore +#else + [QueryParameter("q")] + public string Q { get; set; } +#endif + /// A String representing either an organization name or domain +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("search")] + public string Search { get; set; } +#endif + } + } +} 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 d8832a61..49162182 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 @@ -20,7 +20,7 @@ public class UsersRequestBuilder : BaseRequestBuilder /// /// 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{?briefRepresentation*,first*,max*}", pathParameters) { } /// @@ -28,7 +28,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd /// /// 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{?briefRepresentation*,first*,max*}", rawUrl) { } /// @@ -83,6 +83,9 @@ public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users. /// public class UsersRequestBuilderGetQueryParameters { + /// Boolean which defines whether brief representations are returned (default: false) + [QueryParameter("briefRepresentation")] + public bool? BriefRepresentation { get; set; } /// 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/WithRealmItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs index 1dac20be..8029ddd3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs @@ -23,6 +23,7 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation; @@ -168,6 +169,11 @@ public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutA { get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder(PathParameters, RequestAdapter); } + /// The organizations property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder Organizations + { + get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); + } /// The partialExport property public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder PartialExport { diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/BruteForceStrategy.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/BruteForceStrategy.cs new file mode 100644 index 00000000..5d07006d --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/BruteForceStrategy.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + #pragma warning disable CS1591 + public enum BruteForceStrategy + #pragma warning restore CS1591 + { + [EnumMember(Value = "LINEAR")] + #pragma warning disable CS1591 + LINEAR, + #pragma warning restore CS1591 + [EnumMember(Value = "MULTIPLE")] + #pragma warning disable CS1591 + MULTIPLE, + #pragma warning restore CS1591 + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs index e064d096..524b6764 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs @@ -27,6 +27,14 @@ public class ClientTypeRepresentation : IAdditionalDataHolder, IParsable #nullable restore #else public string Name { get; set; } +#endif + /// The parent property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Parent { get; set; } +#nullable restore +#else + public string Parent { get; set; } #endif /// The provider property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -63,6 +71,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config.CreateFromDiscriminatorValue); } }, { "name", n => { Name = n.GetStringValue(); } }, + { "parent", n => { Parent = n.GetStringValue(); } }, { "provider", n => { Provider = n.GetStringValue(); } }, }; } @@ -75,6 +84,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("config", Config); writer.WriteStringValue("name", Name); + writer.WriteStringValue("parent", Parent); writer.WriteStringValue("provider", Provider); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs index 67dd7d3e..dd3f0e9a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs @@ -50,6 +50,8 @@ public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable #else public string FirstBrokerLoginFlowAlias { get; set; } #endif + /// The hideOnLogin property + public bool? HideOnLogin { get; set; } /// The internalId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -60,6 +62,14 @@ public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable #endif /// The linkOnly property public bool? LinkOnly { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The postBrokerLoginFlowAlias property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -124,8 +134,10 @@ public virtual IDictionary> GetFieldDeserializers() { "displayName", n => { DisplayName = n.GetStringValue(); } }, { "enabled", n => { Enabled = n.GetBoolValue(); } }, { "firstBrokerLoginFlowAlias", n => { FirstBrokerLoginFlowAlias = n.GetStringValue(); } }, + { "hideOnLogin", n => { HideOnLogin = n.GetBoolValue(); } }, { "internalId", n => { InternalId = n.GetStringValue(); } }, { "linkOnly", n => { LinkOnly = n.GetBoolValue(); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "postBrokerLoginFlowAlias", n => { PostBrokerLoginFlowAlias = n.GetStringValue(); } }, { "providerId", n => { ProviderId = n.GetStringValue(); } }, { "storeToken", n => { StoreToken = n.GetBoolValue(); } }, @@ -148,8 +160,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("displayName", DisplayName); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("firstBrokerLoginFlowAlias", FirstBrokerLoginFlowAlias); + writer.WriteBoolValue("hideOnLogin", HideOnLogin); writer.WriteStringValue("internalId", InternalId); writer.WriteBoolValue("linkOnly", LinkOnly); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteStringValue("postBrokerLoginFlowAlias", PostBrokerLoginFlowAlias); writer.WriteStringValue("providerId", ProviderId); writer.WriteBoolValue("storeToken", StoreToken); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation.cs new file mode 100644 index 00000000..c403e271 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation.cs @@ -0,0 +1,298 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + #pragma warning disable CS1591 + public class MemberRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The access property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access? Access { get; set; } +#nullable restore +#else + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access Access { get; set; } +#endif + /// 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 applicationRoles property + [Obsolete("")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles? ApplicationRoles { get; set; } +#nullable restore +#else + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles ApplicationRoles { get; set; } +#endif + /// The attributes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes? Attributes { get; set; } +#nullable restore +#else + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes Attributes { get; set; } +#endif + /// The clientConsents property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ClientConsents { get; set; } +#nullable restore +#else + public List ClientConsents { get; set; } +#endif + /// The clientRoles property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles? ClientRoles { get; set; } +#nullable restore +#else + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles ClientRoles { get; set; } +#endif + /// The createdTimestamp property + public long? CreatedTimestamp { get; set; } + /// The credentials property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Credentials { get; set; } +#nullable restore +#else + public List Credentials { get; set; } +#endif + /// The disableableCredentialTypes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? DisableableCredentialTypes { get; set; } +#nullable restore +#else + public List DisableableCredentialTypes { get; set; } +#endif + /// The email property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Email { get; set; } +#nullable restore +#else + public string Email { get; set; } +#endif + /// The emailVerified property + public bool? EmailVerified { get; set; } + /// The enabled property + public bool? Enabled { get; set; } + /// The federatedIdentities property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? FederatedIdentities { get; set; } +#nullable restore +#else + public List FederatedIdentities { get; set; } +#endif + /// The federationLink property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FederationLink { get; set; } +#nullable restore +#else + public string FederationLink { get; set; } +#endif + /// The firstName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FirstName { get; set; } +#nullable restore +#else + public string FirstName { get; set; } +#endif + /// The groups property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Groups { get; set; } +#nullable restore +#else + public List Groups { get; set; } +#endif + /// The id property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Id { get; set; } +#nullable restore +#else + public string Id { get; set; } +#endif + /// The lastName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LastName { get; set; } +#nullable restore +#else + public string LastName { get; set; } +#endif + /// The membershipType property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MembershipType? MembershipType { get; set; } + /// The notBefore property + public int? NotBefore { get; set; } + /// The origin property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Origin { get; set; } +#nullable restore +#else + public string Origin { get; set; } +#endif + /// The realmRoles property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RealmRoles { get; set; } +#nullable restore +#else + public List RealmRoles { get; set; } +#endif + /// The requiredActions property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RequiredActions { get; set; } +#nullable restore +#else + public List RequiredActions { get; set; } +#endif + /// The self property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Self { get; set; } +#nullable restore +#else + public string Self { get; set; } +#endif + /// The serviceAccountClientId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ServiceAccountClientId { get; set; } +#nullable restore +#else + public string ServiceAccountClientId { get; set; } +#endif + /// The socialLinks property + [Obsolete("")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SocialLinks { get; set; } +#nullable restore +#else + public List SocialLinks { get; set; } +#endif + /// The totp property + public bool? Totp { get; set; } + /// The username property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Username { get; set; } +#nullable restore +#else + public string Username { get; set; } +#endif + /// The userProfileMetadata property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata? UserProfileMetadata { get; set; } +#nullable restore +#else + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata UserProfileMetadata { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public MemberRepresentation() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "access", n => { Access = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access.CreateFromDiscriminatorValue); } }, + { "applicationRoles", n => { ApplicationRoles = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles.CreateFromDiscriminatorValue); } }, + { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "clientConsents", n => { ClientConsents = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserConsentRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "clientRoles", n => { ClientRoles = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, + { "createdTimestamp", n => { CreatedTimestamp = n.GetLongValue(); } }, + { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "disableableCredentialTypes", n => { DisableableCredentialTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "emailVerified", n => { EmailVerified = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "federatedIdentities", n => { FederatedIdentities = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "federationLink", n => { FederationLink = n.GetStringValue(); } }, + { "firstName", n => { FirstName = n.GetStringValue(); } }, + { "groups", n => { Groups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "lastName", n => { LastName = n.GetStringValue(); } }, + { "membershipType", n => { MembershipType = n.GetEnumValue(); } }, + { "notBefore", n => { NotBefore = n.GetIntValue(); } }, + { "origin", n => { Origin = n.GetStringValue(); } }, + { "realmRoles", n => { RealmRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "requiredActions", n => { RequiredActions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "self", n => { Self = n.GetStringValue(); } }, + { "serviceAccountClientId", n => { ServiceAccountClientId = n.GetStringValue(); } }, + { "socialLinks", n => { SocialLinks = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.SocialLinkRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "totp", n => { Totp = n.GetBoolValue(); } }, + { "userProfileMetadata", n => { UserProfileMetadata = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata.CreateFromDiscriminatorValue); } }, + { "username", n => { Username = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("access", Access); + writer.WriteObjectValue("applicationRoles", ApplicationRoles); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteCollectionOfObjectValues("clientConsents", ClientConsents); + writer.WriteObjectValue("clientRoles", ClientRoles); + writer.WriteLongValue("createdTimestamp", CreatedTimestamp); + writer.WriteCollectionOfObjectValues("credentials", Credentials); + writer.WriteCollectionOfPrimitiveValues("disableableCredentialTypes", DisableableCredentialTypes); + writer.WriteStringValue("email", Email); + writer.WriteBoolValue("emailVerified", EmailVerified); + writer.WriteBoolValue("enabled", Enabled); + writer.WriteCollectionOfObjectValues("federatedIdentities", FederatedIdentities); + writer.WriteStringValue("federationLink", FederationLink); + writer.WriteStringValue("firstName", FirstName); + writer.WriteCollectionOfPrimitiveValues("groups", Groups); + writer.WriteStringValue("id", Id); + writer.WriteStringValue("lastName", LastName); + writer.WriteEnumValue("membershipType", MembershipType); + writer.WriteIntValue("notBefore", NotBefore); + writer.WriteStringValue("origin", Origin); + writer.WriteCollectionOfPrimitiveValues("realmRoles", RealmRoles); + writer.WriteCollectionOfPrimitiveValues("requiredActions", RequiredActions); + writer.WriteStringValue("self", Self); + writer.WriteStringValue("serviceAccountClientId", ServiceAccountClientId); + writer.WriteCollectionOfObjectValues("socialLinks", SocialLinks); + writer.WriteBoolValue("totp", Totp); + writer.WriteStringValue("username", Username); + writer.WriteObjectValue("userProfileMetadata", UserProfileMetadata); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_access.cs new file mode 100644 index 00000000..bfbc2e42 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_access.cs @@ -0,0 +1,52 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + #pragma warning disable CS1591 + public class MemberRepresentation_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 MemberRepresentation_access() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + 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) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_applicationRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_applicationRoles.cs new file mode 100644 index 00000000..53e610bc --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_applicationRoles.cs @@ -0,0 +1,53 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [Obsolete("")] + #pragma warning disable CS1591 + public class MemberRepresentation_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 MemberRepresentation_applicationRoles() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + 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) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_attributes.cs new file mode 100644 index 00000000..1e41018e --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_attributes.cs @@ -0,0 +1,52 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + #pragma warning disable CS1591 + public class MemberRepresentation_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 MemberRepresentation_attributes() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + 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) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_clientRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_clientRoles.cs new file mode 100644 index 00000000..3698973c --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_clientRoles.cs @@ -0,0 +1,52 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + #pragma warning disable CS1591 + public class MemberRepresentation_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 MemberRepresentation_clientRoles() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + 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) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MembershipType.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MembershipType.cs new file mode 100644 index 00000000..20eb90cf --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MembershipType.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + #pragma warning disable CS1591 + public enum MembershipType + #pragma warning restore CS1591 + { + [EnumMember(Value = "UNMANAGED")] + #pragma warning disable CS1591 + UNMANAGED, + #pragma warning restore CS1591 + [EnumMember(Value = "MANAGED")] + #pragma warning disable CS1591 + MANAGED, + #pragma warning restore CS1591 + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs index 28b2069b..d31a3efb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs @@ -12,6 +12,14 @@ public class OrganizationRepresentation : IAdditionalDataHolder, IParsable { /// 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 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Alias { get; set; } +#nullable restore +#else + public string Alias { get; set; } +#endif /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -57,10 +65,10 @@ public class OrganizationRepresentation : IAdditionalDataHolder, IParsable /// The members property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Members { get; set; } + public List? Members { get; set; } #nullable restore #else - public List Members { get; set; } + public List Members { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -69,6 +77,14 @@ public class OrganizationRepresentation : IAdditionalDataHolder, IParsable #nullable restore #else public string Name { get; set; } +#endif + /// The redirectUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RedirectUrl { get; set; } +#nullable restore +#else + public string RedirectUrl { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -95,14 +111,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "alias", n => { Alias = n.GetStringValue(); } }, { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes.CreateFromDiscriminatorValue); } }, { "description", n => { Description = n.GetStringValue(); } }, { "domains", n => { Domains = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, { "enabled", n => { Enabled = n.GetBoolValue(); } }, { "id", n => { Id = n.GetStringValue(); } }, { "identityProviders", n => { IdentityProviders = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "members", n => { Members = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "members", n => { Members = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, { "name", n => { Name = n.GetStringValue(); } }, + { "redirectUrl", n => { RedirectUrl = n.GetStringValue(); } }, }; } /// @@ -112,14 +130,16 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("alias", Alias); writer.WriteObjectValue("attributes", Attributes); writer.WriteStringValue("description", Description); writer.WriteCollectionOfObjectValues("domains", Domains); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("id", Id); writer.WriteCollectionOfObjectValues("identityProviders", IdentityProviders); - writer.WriteCollectionOfObjectValues("members", Members); + writer.WriteCollectionOfObjectValues("members", Members); writer.WriteStringValue("name", Name); + writer.WriteStringValue("redirectUrl", RedirectUrl); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs index 037c069f..b1d59dcf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs @@ -106,6 +106,8 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable #endif /// The bruteForceProtected property public bool? BruteForceProtected { get; set; } + /// The bruteForceStrategy property + public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.BruteForceStrategy? BruteForceStrategy { get; set; } /// The certificate property [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -864,6 +866,7 @@ public virtual IDictionary> GetFieldDeserializers() { "browserFlow", n => { BrowserFlow = n.GetStringValue(); } }, { "browserSecurityHeaders", n => { BrowserSecurityHeaders = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders.CreateFromDiscriminatorValue); } }, { "bruteForceProtected", n => { BruteForceProtected = n.GetBoolValue(); } }, + { "bruteForceStrategy", n => { BruteForceStrategy = n.GetEnumValue(); } }, { "certificate", n => { Certificate = n.GetStringValue(); } }, { "clientAuthenticationFlow", n => { ClientAuthenticationFlow = n.GetStringValue(); } }, { "clientOfflineSessionIdleTimeout", n => { ClientOfflineSessionIdleTimeout = n.GetIntValue(); } }, @@ -1020,6 +1023,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("browserFlow", BrowserFlow); writer.WriteObjectValue("browserSecurityHeaders", BrowserSecurityHeaders); writer.WriteBoolValue("bruteForceProtected", BruteForceProtected); + writer.WriteEnumValue("bruteForceStrategy", BruteForceStrategy); writer.WriteStringValue("certificate", Certificate); writer.WriteStringValue("clientAuthenticationFlow", ClientAuthenticationFlow); writer.WriteIntValue("clientOfflineSessionIdleTimeout", ClientOfflineSessionIdleTimeout); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json b/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json index af2124ac..6a1662b4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json +++ b/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json @@ -1,6 +1,6 @@ { - "descriptionHash": "136EC0484489931BA29BC141F2D4E405C2A9455F2EE0150C92E381C3B884F51E525E1814787B0D9C39E290DB3AF95D7545B7A3E03612A1600DD2E76C422E6B5C", - "descriptionLocation": "https://www.keycloak.org/docs-api/25.0.0/rest-api/openapi.json", + "descriptionHash": "E8553E46AC96B701DD0D0BB114ABB7656D18CFF1DE9CDC2296A915241D8125538958071A716580F7D97B0FD4F1131EEFC029F0E5593E7AB219FF54F036E61D83", + "descriptionLocation": "https://www.keycloak.org/docs-api/26.0.5/rest-api/openapi.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.15.0", "clientClassName": "KeycloakAdminApiClient",