@digitalocean/dots - v1.0.1
    Preparing search index...

    Builds and executes requests for operations under /v2/apps/{app_-id}/rollback/validate

    interface ValidateRequestBuilder {
        post(
            body: Apps_rollback_app_request,
            requestConfiguration?: RequestConfiguration<object>,
        ): Promise<undefined | ValidatePostResponse>;
        toPostRequestInformation(
            body: Apps_rollback_app_request,
            requestConfiguration?: RequestConfiguration<object>,
        ): RequestInformation;
        withUrl(rawUrl: string): ValidateRequestBuilder;
    }

    Hierarchy

    Index

    Methods

    post

    • post(
          body: Apps_rollback_app_request,
          requestConfiguration?: RequestConfiguration<object>,
      ): Promise<undefined | ValidatePostResponse>

      Check whether an app can be rolled back to a specific deployment. This endpoint can also be usedto check if there are any warnings or validation conditions that will cause the rollback to proceedunder unideal circumstances. For example, if a component must be rebuilt as part of the rollbackcausing it to take longer than usual.

      Parameters

      • body: Apps_rollback_app_request

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns Promise<undefined | ValidatePostResponse>

      error when the service returns a 401 status code

      error when the service returns a 404 status code

      error when the service returns a 429 status code

      error when the service returns a 500 status code

      error when the service returns a 4XX or 5XX status code

    • Check whether an app can be rolled back to a specific deployment. This endpoint can also be usedto check if there are any warnings or validation conditions that will cause the rollback to proceedunder unideal circumstances. For example, if a component must be rebuilt as part of the rollbackcausing it to take longer than usual.

      Parameters

      • body: Apps_rollback_app_request

        The request body

      • OptionalrequestConfiguration: RequestConfiguration<object>

        Configuration for the request such as headers, query parameters, and middleware options.

      Returns RequestInformation

    • Parameters

      • rawUrl: string

      Returns ValidateRequestBuilder