Table of Contents

Class ChildrenRequestBuilder

Namespace
Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children
Assembly
Keycloak.AuthServices.Sdk.Kiota.dll

Builds and executes requests for operations under \admin\realms{realm}\groups{group-id}\children

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

Constructors

ChildrenRequestBuilder(Dictionary<string, object>, IRequestAdapter)

Instantiates a new ChildrenRequestBuilder and sets the default values.

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

ChildrenRequestBuilder(string, IRequestAdapter)

Instantiates a new ChildrenRequestBuilder and sets the default values.

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

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

Return a paginated list of subgroups that have a parent group corresponding to the group on the URL

public Task<List<GroupRepresentation>?> GetAsync(Action<RequestConfiguration<ChildrenRequestBuilder.ChildrenRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)

Parameters

requestConfiguration Action<RequestConfiguration<ChildrenRequestBuilder.ChildrenRequestBuilderGetQueryParameters>>

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

cancellationToken CancellationToken

Cancellation token to use when cancelling requests

Returns

Task<List<GroupRepresentation>>

A List<GroupRepresentation>

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

This will just set the parent if it exists. Create it and set the parent if the group doesn’t exist.

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

Parameters

body GroupRepresentation

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

Return a paginated list of subgroups that have a parent group corresponding to the group on the URL

public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<ChildrenRequestBuilder.ChildrenRequestBuilderGetQueryParameters>>? requestConfiguration = null)

Parameters

requestConfiguration Action<RequestConfiguration<ChildrenRequestBuilder.ChildrenRequestBuilderGetQueryParameters>>

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

Returns

RequestInformation

A Microsoft.Kiota.Abstractions.RequestInformation

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

This will just set the parent if it exists. Create it and set the parent if the group doesn’t exist.

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

Parameters

body GroupRepresentation

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

Parameters

rawUrl string

The raw URL to use for the request builder.

Returns

ChildrenRequestBuilder

A ChildrenRequestBuilder