Class ClientsRequestBuilder
- Assembly
- Keycloak.AuthServices.Sdk.Kiota.dll
Builds and executes requests for operations under \admin\realms{realm}\clients
public class ClientsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderClientsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
ClientsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new ClientsRequestBuilder and sets the default values.
public ClientsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)
Parameters
pathParameters
Dictionary<string, object>Path parameters for the request
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
ClientsRequestBuilder(string, IRequestAdapter)
Instantiates a new ClientsRequestBuilder and sets the default values.
public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
Parameters
rawUrl
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
Properties
this[string]
Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item collection
public ClientUuItemRequestBuilder this[string position] { get; }
Parameters
position
stringid of client (not client-id!)
Property Value
Methods
GetAsync(Action<RequestConfiguration<ClientsRequestBuilderGetQueryParameters>>?, CancellationToken)
If a client can’t be retrieved from the storage due to a problem with the underlying storage, it is silently removed from the returned list. This ensures that concurrent modifications to the list don’t prevent callers from retrieving this list.
public Task<List<ClientRepresentation>?> GetAsync(Action<RequestConfiguration<ClientsRequestBuilder.ClientsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<ClientsRequestBuilder.ClientsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
- Task<List<ClientRepresentation>>
A List<ClientRepresentation>
PostAsync(ClientRepresentation, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Create a new client Client’s client_id must be unique!
public Task PostAsync(ClientRepresentation body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
ClientRepresentationThe request body
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
ToGetRequestInformation(Action<RequestConfiguration<ClientsRequestBuilderGetQueryParameters>>?)
If a client can’t be retrieved from the storage due to a problem with the underlying storage, it is silently removed from the returned list. This ensures that concurrent modifications to the list don’t prevent callers from retrieving this list.
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<ClientsRequestBuilder.ClientsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<ClientsRequestBuilder.ClientsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPostRequestInformation(ClientRepresentation, Action<RequestConfiguration<DefaultQueryParameters>>?)
Create a new client Client’s client_id must be unique!
public RequestInformation ToPostRequestInformation(ClientRepresentation body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
ClientRepresentationThe request body
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
WithUrl(string)
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
public ClientsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.