Table of Contents

Class ScopeRequestBuilder

Namespace
Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope
Assembly
Keycloak.AuthServices.Sdk.Kiota.dll

Builds and executes requests for operations under \admin\realms{realm}\clients{client-uuid}\authz\resource-server\scope

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

Constructors

ScopeRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new ScopeRequestBuilder and sets the default values.

public ScopeRequestBuilder(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.

ScopeRequestBuilder(string, IRequestAdapter)

Instantiates a new ScopeRequestBuilder and sets the default values.

public ScopeRequestBuilder(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.

Properties

this[string]

Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.authz.resourceServer.scope.item collection

public ScopeItemRequestBuilder this[string position] { get; }

Parameters

position string

Unique identifier of the item

Property Value

ScopeItemRequestBuilder

A ScopeItemRequestBuilder

The search property

public SearchRequestBuilder Search { get; }

Property Value

SearchRequestBuilder

Methods

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

public Task<List<ScopeRepresentation>?> GetAsync(Action<RequestConfiguration<ScopeRequestBuilder.ScopeRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<ScopeRequestBuilder.ScopeRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<List<ScopeRepresentation>>

A List<ScopeRepresentation>

PostAsync(ScopeRepresentation, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)

public Task<Stream?> PostAsync(ScopeRepresentation body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body ScopeRepresentation

The request body

requestConfiguration Action<RequestConfiguration<DefaultQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<Stream>

A Stream

ToGetRequestInformation(Action<RequestConfiguration<ScopeRequestBuilderGetQueryParameters>>?)

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<ScopeRequestBuilder.ScopeRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<ScopeRequestBuilder.ScopeRequestBuilderGetQueryParameters>>

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

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

ToPostRequestInformation(ScopeRepresentation, Action<RequestConfiguration<DefaultQueryParameters>>?)

public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)

Parameters

body ScopeRepresentation

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

ScopeRequestBuilder

A ScopeRequestBuilder