Class UserItemRequestBuilder
- Assembly
- Keycloak.AuthServices.Sdk.Kiota.dll
Builds and executes requests for operations under \admin\realms{realm}\users{user-id}
public class UserItemRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderUserItemRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
UserItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new UserItemRequestBuilder and sets the default values.
public UserItemRequestBuilder(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.
UserItemRequestBuilder(string, IRequestAdapter)
Instantiates a new UserItemRequestBuilder and sets the default values.
public UserItemRequestBuilder(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
ConfiguredUserStorageCredentialTypes
The configuredUserStorageCredentialTypes property
public ConfiguredUserStorageCredentialTypesRequestBuilder ConfiguredUserStorageCredentialTypes { get; }
Property Value
Consents
The consents property
public ConsentsRequestBuilder Consents { get; }
Property Value
Credentials
The credentials property
public CredentialsRequestBuilder Credentials { get; }
Property Value
DisableCredentialTypes
The disableCredentialTypes property
public DisableCredentialTypesRequestBuilder DisableCredentialTypes { get; }
Property Value
ExecuteActionsEmail
The executeActionsEmail property
public ExecuteActionsEmailRequestBuilder ExecuteActionsEmail { get; }
Property Value
FederatedIdentity
The federatedIdentity property
public FederatedIdentityRequestBuilder FederatedIdentity { get; }
Property Value
Groups
The groups property
public GroupsRequestBuilder Groups { get; }
Property Value
Impersonation
The impersonation property
public ImpersonationRequestBuilder Impersonation { get; }
Property Value
Logout
The logout property
public LogoutRequestBuilder Logout { get; }
Property Value
OfflineSessions
The offlineSessions property
public OfflineSessionsRequestBuilder OfflineSessions { get; }
Property Value
ResetPassword
The resetPassword property
public ResetPasswordRequestBuilder ResetPassword { get; }
Property Value
ResetPasswordEmail
The resetPasswordEmail property
public ResetPasswordEmailRequestBuilder ResetPasswordEmail { get; }
Property Value
RoleMappings
The roleMappings property
public RoleMappingsRequestBuilder RoleMappings { get; }
Property Value
SendVerifyEmail
The sendVerifyEmail property
public SendVerifyEmailRequestBuilder SendVerifyEmail { get; }
Property Value
Sessions
The sessions property
public SessionsRequestBuilder Sessions { get; }
Property Value
Methods
DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Delete the user
public Task<Stream?> DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
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
GetAsync(Action<RequestConfiguration<UserItemRequestBuilderGetQueryParameters>>?, CancellationToken)
Get representation of the user
public Task<UserRepresentation?> GetAsync(Action<RequestConfiguration<UserItemRequestBuilder.UserItemRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<UserItemRequestBuilder.UserItemRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
PutAsync(UserRepresentation, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Update the user
public Task<Stream?> PutAsync(UserRepresentation body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
UserRepresentationThe 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
ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>?)
Delete the user
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToGetRequestInformation(Action<RequestConfiguration<UserItemRequestBuilderGetQueryParameters>>?)
Get representation of the user
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<UserItemRequestBuilder.UserItemRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<UserItemRequestBuilder.UserItemRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPutRequestInformation(UserRepresentation, Action<RequestConfiguration<DefaultQueryParameters>>?)
Update the user
public RequestInformation ToPutRequestInformation(UserRepresentation body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
UserRepresentationThe 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 UserItemRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.