Class ResourceItemRequestBuilder
- Namespace
- Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item
- Assembly
- Keycloak.AuthServices.Sdk.Kiota.dll
Builds and executes requests for operations under \admin\realms{realm}\clients{client-uuid}\authz\resource-server\resource{resource-id}
public class ResourceItemRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderResourceItemRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
ResourceItemRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new ResourceItemRequestBuilder and sets the default values.
public ResourceItemRequestBuilder(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.
ResourceItemRequestBuilder(string, IRequestAdapter)
Instantiates a new ResourceItemRequestBuilder and sets the default values.
public ResourceItemRequestBuilder(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
Attributes
The attributes property
public AttributesRequestBuilder Attributes { get; }
Property Value
Permissions
The permissions property
public PermissionsRequestBuilder Permissions { get; }
Property Value
Scopes
The scopes property
public ScopesRequestBuilder Scopes { get; }
Property Value
Methods
DeleteAsync(Action<RequestConfiguration<ResourceItemRequestBuilderDeleteQueryParameters>>?, CancellationToken)
public Task DeleteAsync(Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderDeleteQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderDeleteQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
GetAsync(Action<RequestConfiguration<ResourceItemRequestBuilderGetQueryParameters>>?, CancellationToken)
public Task<ResourceRepresentation?> GetAsync(Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
PutAsync(ResourceRepresentation, Action<RequestConfiguration<ResourceItemRequestBuilderPutQueryParameters>>?, CancellationToken)
public Task PutAsync(ResourceRepresentation body, Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderPutQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
ResourceRepresentationThe request body
requestConfiguration
Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderPutQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
ToDeleteRequestInformation(Action<RequestConfiguration<ResourceItemRequestBuilderDeleteQueryParameters>>?)
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderDeleteQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderDeleteQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToGetRequestInformation(Action<RequestConfiguration<ResourceItemRequestBuilderGetQueryParameters>>?)
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPutRequestInformation(ResourceRepresentation, Action<RequestConfiguration<ResourceItemRequestBuilderPutQueryParameters>>?)
public RequestInformation ToPutRequestInformation(ResourceRepresentation body, Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderPutQueryParameters>>? requestConfiguration = null)
Parameters
body
ResourceRepresentationThe request body
requestConfiguration
Action<RequestConfiguration<ResourceItemRequestBuilder.ResourceItemRequestBuilderPutQueryParameters>>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 ResourceItemRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.