Table of Contents

Class InstancesRequestBuilder

Namespace
Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances
Assembly
Keycloak.AuthServices.Sdk.Kiota.dll

Builds and executes requests for operations under \admin\realms{realm}\identity-provider\instances

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

Constructors

InstancesRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new InstancesRequestBuilder and sets the default values.

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

InstancesRequestBuilder(string, IRequestAdapter)

Instantiates a new InstancesRequestBuilder and sets the default values.

public InstancesRequestBuilder(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.identityProvider.instances.item collection

public WithAliasItemRequestBuilder this[string position] { get; }

Parameters

position string

Unique identifier of the item

Property Value

WithAliasItemRequestBuilder

A WithAliasItemRequestBuilder

Methods

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

List identity providers

public Task<List<IdentityProviderRepresentation>?> GetAsync(Action<RequestConfiguration<InstancesRequestBuilder.InstancesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<InstancesRequestBuilder.InstancesRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<List<IdentityProviderRepresentation>>

A List<IdentityProviderRepresentation>

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

Create a new identity provider

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

Parameters

body IdentityProviderRepresentation

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

List identity providers

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<InstancesRequestBuilder.InstancesRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<InstancesRequestBuilder.InstancesRequestBuilderGetQueryParameters>>

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

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

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

Create a new identity provider

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

Parameters

body IdentityProviderRepresentation

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

InstancesRequestBuilder

A InstancesRequestBuilder