Class CommitsApi


  • public class CommitsApi
    extends Object
    • Constructor Detail

      • CommitsApi

        public CommitsApi()
      • CommitsApi

        public CommitsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • commitCall

        public okhttp3.Call commitCall​(String repository,
                                       String branch,
                                       CommitCreation commitCreation,
                                       String sourceMetarange,
                                       ApiCallback _callback)
                                throws ApiException
        Build call for commit
        Parameters:
        repository - (required)
        branch - (required)
        commitCreation - (required)
        sourceMetarange - The source metarange to commit. Branch must not have uncommitted changes. (optional)
        _callback - Callback for upload/download progress
        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 -
        412 Precondition Failed (e.g. a pre-commit hook returned a failure) -
        420 too many requests -
        0 Internal Server Error -
      • commit

        public Commit commit​(String repository,
                             String branch,
                             CommitCreation commitCreation,
                             String sourceMetarange)
                      throws ApiException
        create commit
        Parameters:
        repository - (required)
        branch - (required)
        commitCreation - (required)
        sourceMetarange - The source metarange to commit. Branch must not have uncommitted changes. (optional)
        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 -
        412 Precondition Failed (e.g. a pre-commit hook returned a failure) -
        420 too many requests -
        0 Internal Server Error -
      • commitWithHttpInfo

        public ApiResponse<Commit> commitWithHttpInfo​(String repository,
                                                      String branch,
                                                      CommitCreation commitCreation,
                                                      String sourceMetarange)
                                               throws ApiException
        create commit
        Parameters:
        repository - (required)
        branch - (required)
        commitCreation - (required)
        sourceMetarange - The source metarange to commit. Branch must not have uncommitted changes. (optional)
        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 -
        412 Precondition Failed (e.g. a pre-commit hook returned a failure) -
        420 too many requests -
        0 Internal Server Error -
      • commitAsync

        public okhttp3.Call commitAsync​(String repository,
                                        String branch,
                                        CommitCreation commitCreation,
                                        String sourceMetarange,
                                        ApiCallback<Commit> _callback)
                                 throws ApiException
        create commit (asynchronously)
        Parameters:
        repository - (required)
        branch - (required)
        commitCreation - (required)
        sourceMetarange - The source metarange to commit. Branch must not have uncommitted changes. (optional)
        _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 -
        412 Precondition Failed (e.g. a pre-commit hook returned a failure) -
        420 too many requests -
        0 Internal Server Error -
      • getCommitCall

        public okhttp3.Call getCommitCall​(String repository,
                                          String commitId,
                                          ApiCallback _callback)
                                   throws ApiException
        Build call for getCommit
        Parameters:
        repository - (required)
        commitId - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details:
        Status Code Description Response Headers
        200 commit -
        401 Unauthorized -
        404 Resource Not Found -
        420 too many requests -
        0 Internal Server Error -
      • getCommit

        public Commit getCommit​(String repository,
                                String commitId)
                         throws ApiException
        get commit
        Parameters:
        repository - (required)
        commitId - (required)
        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
        200 commit -
        401 Unauthorized -
        404 Resource Not Found -
        420 too many requests -
        0 Internal Server Error -
      • getCommitWithHttpInfo

        public ApiResponse<Commit> getCommitWithHttpInfo​(String repository,
                                                         String commitId)
                                                  throws ApiException
        get commit
        Parameters:
        repository - (required)
        commitId - (required)
        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
        200 commit -
        401 Unauthorized -
        404 Resource Not Found -
        420 too many requests -
        0 Internal Server Error -
      • getCommitAsync

        public okhttp3.Call getCommitAsync​(String repository,
                                           String commitId,
                                           ApiCallback<Commit> _callback)
                                    throws ApiException
        get commit (asynchronously)
        Parameters:
        repository - (required)
        commitId - (required)
        _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
        200 commit -
        401 Unauthorized -
        404 Resource Not Found -
        420 too many requests -
        0 Internal Server Error -