Class CommitsApi.APIcommitRequest

  • Enclosing class:
    CommitsApi

    public class CommitsApi.APIcommitRequest
    extends Object
    • Method Detail

      • sourceMetarange

        public CommitsApi.APIcommitRequest sourceMetarange​(String sourceMetarange)
        Set sourceMetarange
        Parameters:
        sourceMetarange - The source metarange to commit. Branch must not have uncommitted changes. (optional)
        Returns:
        APIcommitRequest
      • buildCall

        public okhttp3.Call buildCall​(ApiCallback _callback)
                               throws ApiException
        Build call for commit
        Parameters:
        _callback - ApiCallback API callback
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        201 commit -
        400 Validation Error -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        412 Precondition Failed (e.g. a pre-commit hook returned a failure) -
        420 too many requests -
        0 Internal Server Error -
      • execute

        public Commit execute()
                       throws ApiException
        Execute commit request
        Returns:
        Commit
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        201 commit -
        400 Validation Error -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        412 Precondition Failed (e.g. a pre-commit hook returned a failure) -
        420 too many requests -
        0 Internal Server Error -
      • executeWithHttpInfo

        public ApiResponse<Commit> executeWithHttpInfo()
                                                throws ApiException
        Execute commit request with HTTP info returned
        Returns:
        ApiResponse<Commit>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details:
        Status Code Description Response Headers
        201 commit -
        400 Validation Error -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        412 Precondition Failed (e.g. a pre-commit hook returned a failure) -
        420 too many requests -
        0 Internal Server Error -
      • executeAsync

        public okhttp3.Call executeAsync​(ApiCallback<Commit> _callback)
                                  throws ApiException
        Execute commit request (asynchronously)
        Parameters:
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details:
        Status Code Description Response Headers
        201 commit -
        400 Validation Error -
        401 Unauthorized -
        403 Forbidden -
        404 Resource Not Found -
        409 Resource Conflicts With Target -
        412 Precondition Failed (e.g. a pre-commit hook returned a failure) -
        420 too many requests -
        0 Internal Server Error -