Class ApplyRequestBuilder
Builds and executes requests for operations under \docs{docId}\proposals{proposalId}\apply
Inherited Members
Namespace: Grist4NET.Kiota.Docs.Item.Proposals.Item.Apply
Assembly: Grist4NET.Kiota.dll
Syntax
public class ApplyRequestBuilder : BaseRequestBuilder
Constructors
ApplyRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new ApplyRequestBuilder and sets the default values.
Declaration
public ApplyRequestBuilder(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. |
ApplyRequestBuilder(string, IRequestAdapter)
Instantiates a new ApplyRequestBuilder and sets the default values.
Declaration
public ApplyRequestBuilder(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(Action<RequestConfiguration<DefaultQueryParameters>>, CancellationToken)
Apply a proposal's changes to the document. This merges the fork'schanges into the trunk document.
Declaration
public Task<ApplyPostResponse> PostAsync(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<ApplyPostResponse> |
ToPostRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>)
Apply a proposal's changes to the document. This merges the fork'schanges into the trunk document.
Declaration
public RequestInformation ToPostRequestInformation(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 ApplyRequestBuilder WithUrl(string rawUrl)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rawUrl | The raw URL to use for the request builder. |
Returns
| Type | Description |
|---|---|
| ApplyRequestBuilder |