Grist4NET
Search Results for

    Show / Hide Table of Contents

    Class ForkRequestBuilder

    Builds and executes requests for operations under \docs{docId}\fork

    Inheritance
    object
    BaseRequestBuilder
    ForkRequestBuilder
    Inherited Members
    BaseRequestBuilder.PathParameters
    BaseRequestBuilder.RequestAdapter
    BaseRequestBuilder.UrlTemplate
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Grist4NET.Kiota.Docs.Item.Fork
    Assembly: Grist4NET.Kiota.dll
    Syntax
    public class ForkRequestBuilder : BaseRequestBuilder

    Constructors

    ForkRequestBuilder(Dictionary<string, object>, IRequestAdapter)

    Instantiates a new ForkRequestBuilder and sets the default values.

    Declaration
    public ForkRequestBuilder(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.

    ForkRequestBuilder(string, IRequestAdapter)

    Instantiates a new ForkRequestBuilder and sets the default values.

    Declaration
    public ForkRequestBuilder(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)

    Create a fork of a document. A fork is a personal copy that tracks its relationshipto the original document. Forks can be used to experiment with changes beforeapplying them to the original.The fork will have a new docId and urlId that encode the relationship to the trunk(original) document.

    Declaration
    public Task<ForkPostResponse> 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<ForkPostResponse>

    A ForkPostResponse

    ToPostRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>)

    Create a fork of a document. A fork is a personal copy that tracks its relationshipto the original document. Forks can be used to experiment with changes beforeapplying them to the original.The fork will have a new docId and urlId that encode the relationship to the trunk(original) 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 ForkRequestBuilder WithUrl(string rawUrl)
    Parameters
    Type Name Description
    string rawUrl

    The raw URL to use for the request builder.

    Returns
    Type Description
    ForkRequestBuilder

    A ForkRequestBuilder

    In this article
    Back to top Generated by DocFX