Class WithSessionItemRequestBuilder
- Assembly
- Keycloak.AuthServices.Sdk.Kiota.dll
Builds and executes requests for operations under \admin\realms{realm}\sessions{session}
public class WithSessionItemRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderWithSessionItemRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.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
IRequestAdapterThe 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
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe 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
CancellationTokenCancellation token to use when cancelling requests
Returns
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
stringThe raw URL to use for the request builder.