Grist4NET
Search Results for

    Show / Hide Table of Contents

    Class DisableRequestBuilder

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

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

    Constructors

    DisableRequestBuilder(Dictionary<string, object>, IRequestAdapter)

    Instantiates a new DisableRequestBuilder and sets the default values.

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

    DisableRequestBuilder(string, IRequestAdapter)

    Instantiates a new DisableRequestBuilder and sets the default values.

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

    Disabled documents cannot be accessed or modified. Moving andrenaming a disabled doc is also forbidden, as well asaccessing or submitting published forms associated to adisabled document.Disabled documents, however, can be moved to and restored fromthe trash.The operation is non-destructive. Disabled documents can bere-enabled.Only admin accounts can disable a document.

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

    A Stream

    ToPostRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>)

    Disabled documents cannot be accessed or modified. Moving andrenaming a disabled doc is also forbidden, as well asaccessing or submitting published forms associated to adisabled document.Disabled documents, however, can be moved to and restored fromthe trash.The operation is non-destructive. Disabled documents can bere-enabled.Only admin accounts can disable a 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 DisableRequestBuilder WithUrl(string rawUrl)
    Parameters
    Type Name Description
    string rawUrl

    The raw URL to use for the request builder.

    Returns
    Type Description
    DisableRequestBuilder

    A DisableRequestBuilder

    In this article
    Back to top Generated by DocFX