Class InstancesRequestBuilder
- Assembly
- Keycloak.AuthServices.Sdk.Kiota.dll
Builds and executes requests for operations under \admin\realms{realm}\identity-provider\instances
public class InstancesRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderInstancesRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.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
IRequestAdapterThe 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
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.identityProvider.instances.item collection
public WithAliasItemRequestBuilder this[string position] { get; }
Parameters
position
stringUnique identifier of the item
Property Value
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
CancellationTokenCancellation 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
IdentityProviderRepresentationThe 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<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
IdentityProviderRepresentationThe 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
stringThe raw URL to use for the request builder.