Table of Contents

Class ResourceItemRequestBuilder

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

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

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

Constructors

ResourceItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new ResourceItemRequestBuilder and sets the default values.

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

ResourceItemRequestBuilder(string, IRequestAdapter)

Instantiates a new ResourceItemRequestBuilder and sets the default values.

public ResourceItemRequestBuilder(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

Attributes

The attributes property

public AttributesRequestBuilder Attributes { get; }

Property Value

AttributesRequestBuilder

Permissions

The permissions property

public PermissionsRequestBuilder Permissions { get; }

Property Value

PermissionsRequestBuilder

Scopes

The scopes property

public ScopesRequestBuilder Scopes { get; }

Property Value

ScopesRequestBuilder

Methods

DeleteAsync(Action<RequestConfiguration<ResourceItemRequestBuilderDeleteQueryParameters>>?, CancellationToken)

public Task DeleteAsync(Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderDeleteQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderDeleteQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task

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

public Task<ResourceRepresentation?> GetAsync(Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<ResourceRepresentation>

A ResourceRepresentation

PutAsync(ResourceRepresentation, Action<RequestConfiguration<ResourceItemRequestBuilderPutQueryParameters>>?, CancellationToken)

public Task PutAsync(ResourceRepresentation body, Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderPutQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

body ResourceRepresentation

The request body

requestConfiguration Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderPutQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task

ToDeleteRequestInformation(Action<RequestConfiguration<ResourceItemRequestBuilderDeleteQueryParameters>>?)

public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderDeleteQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderDeleteQueryParameters>>

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

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

ToGetRequestInformation(Action<RequestConfiguration<ResourceItemRequestBuilderGetQueryParameters>>?)

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderGetQueryParameters>>

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

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

ToPutRequestInformation(ResourceRepresentation, Action<RequestConfiguration<ResourceItemRequestBuilderPutQueryParameters>>?)

public RequestInformation ToPutRequestInformation(ResourceRepresentation body, Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderPutQueryParameters>>? requestConfiguration = null)

Parameters

body ResourceRepresentation

The request body

requestConfiguration Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderPutQueryParameters>>

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

ResourceItemRequestBuilder

A ResourceItemRequestBuilder