Class ServiceAccountsRequestBuilder
Builds and executes requests for operations under \service-accounts
Inherited Members
Namespace: Grist4NET.Kiota.ServiceAccounts
Assembly: Grist4NET.Kiota.dll
Syntax
public class ServiceAccountsRequestBuilder : BaseRequestBuilder
Constructors
ServiceAccountsRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new ServiceAccountsRequestBuilder and sets the default values.
Declaration
public ServiceAccountsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, object> | pathParameters | Path parameters for the request |
| IRequestAdapter | requestAdapter | The request adapter to use to execute the requests. |
ServiceAccountsRequestBuilder(string, IRequestAdapter)
Instantiates a new ServiceAccountsRequestBuilder and sets the default values.
Declaration
public ServiceAccountsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rawUrl | The raw URL to use for the request builder. |
| IRequestAdapter | requestAdapter | The request adapter to use to execute the requests. |
Properties
this[int]
Gets an item from the Grist4NET.Kiota.serviceAccounts.item collection
Declaration
public WithSaItemRequestBuilder this[int position] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | position | A service account id |
Property Value
| Type | Description |
|---|---|
| WithSaItemRequestBuilder |
Methods
GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>, CancellationToken)
This lists all your service accounts with their details.
Declaration
public Task<List<ServiceAccountResult>> GetAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<RequestConfiguration<DefaultQueryParameters>> | requestConfiguration | Configuration for the request such as headers, query parameters, and middleware options. |
| CancellationToken | cancellationToken | Cancellation token to use when cancelling requests |
Returns
| Type | Description |
|---|---|
| Task<List<ServiceAccountResult>> | A List<global::Grist4NET.Kiota.Models.ServiceAccountResult> |
PostAsync(CreateServiceAccount, Action<RequestConfiguration<DefaultQueryParameters>>, CancellationToken)
This creates a new service account with a new API key.
Declaration
public Task<ServiceAccountResultWithApiKey> PostAsync(CreateServiceAccount body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateServiceAccount | body | The request body |
| Action<RequestConfiguration<DefaultQueryParameters>> | requestConfiguration | Configuration for the request such as headers, query parameters, and middleware options. |
| CancellationToken | cancellationToken | Cancellation token to use when cancelling requests |
Returns
| Type | Description |
|---|---|
| Task<ServiceAccountResultWithApiKey> |
ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>)
This lists all your service accounts with their details.
Declaration
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<RequestConfiguration<DefaultQueryParameters>> | requestConfiguration | Configuration for the request such as headers, query parameters, and middleware options. |
Returns
| Type | Description |
|---|---|
| RequestInformation | A Microsoft.Kiota.Abstractions.RequestInformation |
ToPostRequestInformation(CreateServiceAccount, Action<RequestConfiguration<DefaultQueryParameters>>)
This creates a new service account with a new API key.
Declaration
public RequestInformation ToPostRequestInformation(CreateServiceAccount body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateServiceAccount | body | The request body |
| Action<RequestConfiguration<DefaultQueryParameters>> | requestConfiguration | Configuration for the request such as headers, query parameters, and middleware options. |
Returns
| Type | Description |
|---|---|
| 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.
Declaration
public ServiceAccountsRequestBuilder WithUrl(string rawUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rawUrl | The raw URL to use for the request builder. |
Returns
| Type | Description |
|---|---|
| ServiceAccountsRequestBuilder |