Class TemplatesRequestBuilder
Builds and executes requests for operations under \templates
Inherited Members
Namespace: Grist4NET.Kiota.Templates
Assembly: Grist4NET.Kiota.dll
Syntax
public class TemplatesRequestBuilder : BaseRequestBuilder
Constructors
TemplatesRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new TemplatesRequestBuilder and sets the default values.
Declaration
public TemplatesRequestBuilder(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. |
TemplatesRequestBuilder(string, IRequestAdapter)
Instantiates a new TemplatesRequestBuilder and sets the default values.
Declaration
public TemplatesRequestBuilder(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[string]
Gets an item from the Grist4NET.Kiota.templates.item collection
Declaration
public WithTemplateItemRequestBuilder this[string position] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | position | ID of the template |
Property Value
| Type | Description |
|---|---|
| WithTemplateItemRequestBuilder |
Methods
GetAsync(Action<RequestConfiguration<DefaultQueryParameters>>, CancellationToken)
Get all available templates. Templates are organized by workspace withina template organization configured on the server.Note: Requires a template organization to be configured on the server.
Declaration
public Task<List<WorkspaceWithDocsAndDomain>> 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<WorkspaceWithDocsAndDomain>> | A List<global::Grist4NET.Kiota.Models.WorkspaceWithDocsAndDomain> |
ToGetRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>)
Get all available templates. Templates are organized by workspace withina template organization configured on the server.Note: Requires a template organization to be configured on the server.
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 |
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 TemplatesRequestBuilder WithUrl(string rawUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rawUrl | The raw URL to use for the request builder. |
Returns
| Type | Description |
|---|---|
| TemplatesRequestBuilder |