Class RealmsRequestBuilder
- Assembly
- Keycloak.AuthServices.Sdk.Kiota.dll
Builds and executes requests for operations under \admin\realms
public class RealmsRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderRealmsRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
RealmsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new RealmsRequestBuilder and sets the default values.
public RealmsRequestBuilder(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.
RealmsRequestBuilder(string, IRequestAdapter)
Instantiates a new RealmsRequestBuilder and sets the default values.
public RealmsRequestBuilder(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 collection
public WithRealmItemRequestBuilder this[string position] { get; }
Parameters
position
stringrealm name (not id!)
Property Value
Methods
GetAsync(Action<RequestConfiguration<RealmsRequestBuilderGetQueryParameters>>?, CancellationToken)
Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view.
public Task<List<RealmRepresentation>?> GetAsync(Action<RequestConfiguration<RealmsRequestBuilder.RealmsRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<RealmsRequestBuilder.RealmsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
- Task<List<RealmRepresentation>>
A List<RealmRepresentation>
PostAsync(string, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Realm name must be unique.
public Task PostAsync(string body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
stringThe 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<RealmsRequestBuilderGetQueryParameters>>?)
Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view.
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<RealmsRequestBuilder.RealmsRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<RealmsRequestBuilder.RealmsRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPostRequestInformation(string, Action<RequestConfiguration<DefaultQueryParameters>>?)
Realm name must be unique.
public RequestInformation ToPostRequestInformation(string body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
stringThe 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 RealmsRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.