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
-
BaseRequestBuilderScopeRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.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
IRequestAdapterThe 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
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.authz.resourceServer.scope.item collection
public ScopeItemRequestBuilder this[string position] { get; }
Parameters
position
stringUnique identifier of the item
Property Value
Search
The search property
public SearchRequestBuilder Search { get; }
Property Value
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
CancellationTokenCancellation 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
ScopeRepresentationThe 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<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
ScopeRepresentationThe 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
stringThe raw URL to use for the request builder.