Table of Contents

Class GrantedRequestBuilder

Namespace
Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted
Assembly
Keycloak.AuthServices.Sdk.Kiota.dll

Builds and executes requests for operations under \admin\realms{realm}\clients{client-uuid}\evaluate-scopes\scope-mappings{roleContainerId}\granted

public class GrantedRequestBuilder : BaseRequestBuilder
Inheritance
BaseRequestBuilder
GrantedRequestBuilder
Inherited Members
BaseRequestBuilder.PathParameters
BaseRequestBuilder.RequestAdapter
BaseRequestBuilder.UrlTemplate

Constructors

GrantedRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new GrantedRequestBuilder and sets the default values.

public GrantedRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)

Parameters

pathParameters Dictionary<string, object>

Path parameters for the request

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

GrantedRequestBuilder(string, IRequestAdapter)

Instantiates a new GrantedRequestBuilder and sets the default values.

public GrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)

Parameters

rawUrl string

The raw URL to use for the request builder.

requestAdapter IRequestAdapter

The request adapter to use to execute the requests.

Methods

GetAsync(Action<RequestConfiguration<GrantedRequestBuilderGetQueryParameters>>?, CancellationToken)

This contains scope mappings, which this client has directly, as well as scope mappings, which are granted to all client scopes, which are linked with this client.

public Task<List<RoleRepresentation>?> GetAsync(Action<RequestConfiguration<GrantedRequestBuilder.GrantedRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<GrantedRequestBuilder.GrantedRequestBuilderGetQueryParameters>>

Configuration for the request such as headers, query parameters, and middleware options.

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<List<RoleRepresentation>>

A List<RoleRepresentation>

ToGetRequestInformation(Action<RequestConfiguration<GrantedRequestBuilderGetQueryParameters>>?)

This contains scope mappings, which this client has directly, as well as scope mappings, which are granted to all client scopes, which are linked with this client.

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<GrantedRequestBuilder.GrantedRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<GrantedRequestBuilder.GrantedRequestBuilderGetQueryParameters>>

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 GrantedRequestBuilder WithUrl(string rawUrl)

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

GrantedRequestBuilder

A GrantedRequestBuilder