Class ActionsApi


  • public class ActionsApi
    extends Object
    • Constructor Detail

      • ActionsApi

        public ActionsApi()
      • ActionsApi

        public ActionsApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getRunCall

        public okhttp3.Call getRunCall​(String repository,
                                       String runId,
                                       ApiCallback _callback)
                                throws ApiException
        Build call for getRun
        Parameters:
        repository - (required)
        runId - (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 action run result -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRun

        public ActionRun getRun​(String repository,
                                String runId)
                         throws ApiException
        get a run
        Parameters:
        repository - (required)
        runId - (required)
        Returns:
        ActionRun
        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 action run result -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRunWithHttpInfo

        public ApiResponse<ActionRun> getRunWithHttpInfo​(String repository,
                                                         String runId)
                                                  throws ApiException
        get a run
        Parameters:
        repository - (required)
        runId - (required)
        Returns:
        ApiResponse<ActionRun>
        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 action run result -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRunAsync

        public okhttp3.Call getRunAsync​(String repository,
                                        String runId,
                                        ApiCallback<ActionRun> _callback)
                                 throws ApiException
        get a run (asynchronously)
        Parameters:
        repository - (required)
        runId - (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 action run result -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRunHookOutputCall

        public okhttp3.Call getRunHookOutputCall​(String repository,
                                                 String runId,
                                                 String hookRunId,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for getRunHookOutput
        Parameters:
        repository - (required)
        runId - (required)
        hookRunId - (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 run hook output -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRunHookOutput

        public File getRunHookOutput​(String repository,
                                     String runId,
                                     String hookRunId)
                              throws ApiException
        get run hook output
        Parameters:
        repository - (required)
        runId - (required)
        hookRunId - (required)
        Returns:
        File
        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 run hook output -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRunHookOutputWithHttpInfo

        public ApiResponse<File> getRunHookOutputWithHttpInfo​(String repository,
                                                              String runId,
                                                              String hookRunId)
                                                       throws ApiException
        get run hook output
        Parameters:
        repository - (required)
        runId - (required)
        hookRunId - (required)
        Returns:
        ApiResponse<File>
        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 run hook output -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • getRunHookOutputAsync

        public okhttp3.Call getRunHookOutputAsync​(String repository,
                                                  String runId,
                                                  String hookRunId,
                                                  ApiCallback<File> _callback)
                                           throws ApiException
        get run hook output (asynchronously)
        Parameters:
        repository - (required)
        runId - (required)
        hookRunId - (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 run hook output -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRepositoryRunsCall

        public okhttp3.Call listRepositoryRunsCall​(String repository,
                                                   String after,
                                                   Integer amount,
                                                   String branch,
                                                   String commit,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for listRepositoryRuns
        Parameters:
        repository - (required)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        branch - (optional)
        commit - (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
        200 list action runs -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRepositoryRuns

        public ActionRunList listRepositoryRuns​(String repository,
                                                String after,
                                                Integer amount,
                                                String branch,
                                                String commit)
                                         throws ApiException
        list runs
        Parameters:
        repository - (required)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        branch - (optional)
        commit - (optional)
        Returns:
        ActionRunList
        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 list action runs -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRepositoryRunsWithHttpInfo

        public ApiResponse<ActionRunList> listRepositoryRunsWithHttpInfo​(String repository,
                                                                         String after,
                                                                         Integer amount,
                                                                         String branch,
                                                                         String commit)
                                                                  throws ApiException
        list runs
        Parameters:
        repository - (required)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        branch - (optional)
        commit - (optional)
        Returns:
        ApiResponse<ActionRunList>
        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 list action runs -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRepositoryRunsAsync

        public okhttp3.Call listRepositoryRunsAsync​(String repository,
                                                    String after,
                                                    Integer amount,
                                                    String branch,
                                                    String commit,
                                                    ApiCallback<ActionRunList> _callback)
                                             throws ApiException
        list runs (asynchronously)
        Parameters:
        repository - (required)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        branch - (optional)
        commit - (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
        200 list action runs -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRunHooksCall

        public okhttp3.Call listRunHooksCall​(String repository,
                                             String runId,
                                             String after,
                                             Integer amount,
                                             ApiCallback _callback)
                                      throws ApiException
        Build call for listRunHooks
        Parameters:
        repository - (required)
        runId - (required)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        _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 list specific run hooks -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRunHooks

        public HookRunList listRunHooks​(String repository,
                                        String runId,
                                        String after,
                                        Integer amount)
                                 throws ApiException
        list run hooks
        Parameters:
        repository - (required)
        runId - (required)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        Returns:
        HookRunList
        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 list specific run hooks -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRunHooksWithHttpInfo

        public ApiResponse<HookRunList> listRunHooksWithHttpInfo​(String repository,
                                                                 String runId,
                                                                 String after,
                                                                 Integer amount)
                                                          throws ApiException
        list run hooks
        Parameters:
        repository - (required)
        runId - (required)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        Returns:
        ApiResponse<HookRunList>
        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 list specific run hooks -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -
      • listRunHooksAsync

        public okhttp3.Call listRunHooksAsync​(String repository,
                                              String runId,
                                              String after,
                                              Integer amount,
                                              ApiCallback<HookRunList> _callback)
                                       throws ApiException
        list run hooks (asynchronously)
        Parameters:
        repository - (required)
        runId - (required)
        after - return items after this value (optional)
        amount - how many items to return (optional, default to 100)
        _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 list specific run hooks -
        401 Unauthorized -
        404 Resource Not Found -
        0 Internal Server Error -