Grist4NET
Search Results for

    Show / Hide Table of Contents

    Class SnapshotsRequestBuilder

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

    Inheritance
    object
    BaseRequestBuilder
    SnapshotsRequestBuilder
    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.Snapshots
    Assembly: Grist4NET.Kiota.dll
    Syntax
    public class SnapshotsRequestBuilder : BaseRequestBuilder

    Constructors

    SnapshotsRequestBuilder(Dictionary<string, object>, IRequestAdapter)

    Instantiates a new SnapshotsRequestBuilder and sets the default values.

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

    SnapshotsRequestBuilder(string, IRequestAdapter)

    Instantiates a new SnapshotsRequestBuilder and sets the default values.

    Declaration
    public SnapshotsRequestBuilder(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

    Remove

    The remove property

    Declaration
    public RemoveRequestBuilder Remove { get; }
    Property Value
    Type Description
    RemoveRequestBuilder

    Methods

    GetAsync(Action<RequestConfiguration<SnapshotsRequestBuilderGetQueryParameters>>, CancellationToken)

    Returns a list of snapshots (backups) of the document. Snapshots are createdautomatically as the document is edited. Most recent snapshots are listed first.

    Declaration
    public Task<SnapshotsGetResponse> GetAsync(Action<RequestConfiguration<SnapshotsRequestBuilder.SnapshotsRequestBuilderGetQueryParameters>> requestConfiguration = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    Action<RequestConfiguration<SnapshotsRequestBuilder.SnapshotsRequestBuilderGetQueryParameters>> 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<SnapshotsGetResponse>

    A SnapshotsGetResponse

    ToGetRequestInformation(Action<RequestConfiguration<SnapshotsRequestBuilderGetQueryParameters>>)

    Returns a list of snapshots (backups) of the document. Snapshots are createdautomatically as the document is edited. Most recent snapshots are listed first.

    Declaration
    public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<SnapshotsRequestBuilder.SnapshotsRequestBuilderGetQueryParameters>> requestConfiguration = null)
    Parameters
    Type Name Description
    Action<RequestConfiguration<SnapshotsRequestBuilder.SnapshotsRequestBuilderGetQueryParameters>> 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 SnapshotsRequestBuilder WithUrl(string rawUrl)
    Parameters
    Type Name Description
    string rawUrl

    The raw URL to use for the request builder.

    Returns
    Type Description
    SnapshotsRequestBuilder

    A SnapshotsRequestBuilder

    In this article
    Back to top Generated by DocFX