Class ImportRequestBuilder
Builds and executes requests for operations under \workspaces{workspaceId}\import
Inherited Members
Namespace: Grist4NET.Kiota.Workspaces.Item.Import
Assembly: Grist4NET.Kiota.dll
Syntax
public class ImportRequestBuilder : BaseRequestBuilder
Constructors
ImportRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new ImportRequestBuilder and sets the default values.
Declaration
public ImportRequestBuilder(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. |
ImportRequestBuilder(string, IRequestAdapter)
Instantiates a new ImportRequestBuilder and sets the default values.
Declaration
public ImportRequestBuilder(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. |
Methods
PostAsync(MultipartBody, Action<RequestConfiguration<DefaultQueryParameters>>, CancellationToken)
Import an existing document
Declaration
public Task<ImportPostResponse> PostAsync(MultipartBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| MultipartBody | 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<ImportPostResponse> |
ToPostRequestInformation(MultipartBody, Action<RequestConfiguration<DefaultQueryParameters>>)
Import an existing document
Declaration
public RequestInformation ToPostRequestInformation(MultipartBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = null)
Parameters
| Type | Name | Description |
|---|---|---|
| MultipartBody | 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 ImportRequestBuilder WithUrl(string rawUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rawUrl | The raw URL to use for the request builder. |
Returns
| Type | Description |
|---|---|
| ImportRequestBuilder |