Table of Contents

Class WithSessionItemRequestBuilder

Namespace
Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item
Assembly
Keycloak.AuthServices.Sdk.Kiota.dll

Builds and executes requests for operations under \admin\realms{realm}\sessions{session}

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

Constructors

WithSessionItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new WithSessionItemRequestBuilder and sets the default values.

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

WithSessionItemRequestBuilder(string, IRequestAdapter)

Instantiates a new WithSessionItemRequestBuilder and sets the default values.

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

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

Any client that has an admin url will also be told to invalidate this particular session.

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

Parameters

requestConfiguration Action<RequestConfiguration<WithSessionItemRequestBuilder.WithSessionItemRequestBuilderDeleteQueryParameters>>

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<WithSessionItemRequestBuilderDeleteQueryParameters>>?)

Any client that has an admin url will also be told to invalidate this particular session.

public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<WithSessionItemRequestBuilder.WithSessionItemRequestBuilderDeleteQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<WithSessionItemRequestBuilder.WithSessionItemRequestBuilderDeleteQueryParameters>>

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

WithSessionItemRequestBuilder

A WithSessionItemRequestBuilder