Class RegistrationAccessTokenRequestBuilder
- Namespace
- Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken
- Assembly
- Keycloak.AuthServices.Sdk.Kiota.dll
Builds and executes requests for operations under \admin\realms{realm}\clients{client-uuid}\registration-access-token
public class RegistrationAccessTokenRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderRegistrationAccessTokenRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
RegistrationAccessTokenRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new RegistrationAccessTokenRequestBuilder and sets the default values.
public RegistrationAccessTokenRequestBuilder(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.
RegistrationAccessTokenRequestBuilder(string, IRequestAdapter)
Instantiates a new RegistrationAccessTokenRequestBuilder and sets the default values.
public RegistrationAccessTokenRequestBuilder(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.
Methods
PostAsync(Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Generate a new registration access token for the client
public Task<ClientRepresentation?> PostAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
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
ToPostRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)
Generate a new registration access token for the client
public RequestInformation ToPostRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
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 RegistrationAccessTokenRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.