Class JobApi


  • public class JobApi
    extends Object
    • Constructor Detail

      • JobApi

        public JobApi()
      • JobApi

        public JobApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • cancelJob

        public MessageResponse cancelJob​(Object jobNumber,
                                         String projectSlug)
                                  throws ApiException
        Cancel job Cancel job with a given job number.
        Parameters:
        jobNumber - The number of the job. (required)
        projectSlug - Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped. (required)
        Returns:
        MessageResponse
        Throws:
        ApiException - if fails to make API call
        Http Response Details:
        Status Code Description Response Headers
        202 -
      • cancelJobWithHttpInfo

        public ApiResponse<MessageResponse> cancelJobWithHttpInfo​(Object jobNumber,
                                                                  String projectSlug)
                                                           throws ApiException
        Cancel job Cancel job with a given job number.
        Parameters:
        jobNumber - The number of the job. (required)
        projectSlug - Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped. (required)
        Returns:
        ApiResponse<MessageResponse>
        Throws:
        ApiException - if fails to make API call
        Http Response Details:
        Status Code Description Response Headers
        202 -
      • getJobArtifacts

        public ArtifactListResponse getJobArtifacts​(Object jobNumber,
                                                    String projectSlug)
                                             throws ApiException
        Get a job's artifacts Returns a job's artifacts.
        Parameters:
        jobNumber - The number of the job. (required)
        projectSlug - Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped. (required)
        Returns:
        ArtifactListResponse
        Throws:
        ApiException - if fails to make API call
        Http Response Details:
        Status Code Description Response Headers
        200 A paginated list of the job's artifacts. -
      • getJobArtifactsWithHttpInfo

        public ApiResponse<ArtifactListResponse> getJobArtifactsWithHttpInfo​(Object jobNumber,
                                                                             String projectSlug)
                                                                      throws ApiException
        Get a job's artifacts Returns a job's artifacts.
        Parameters:
        jobNumber - The number of the job. (required)
        projectSlug - Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped. (required)
        Returns:
        ApiResponse<ArtifactListResponse>
        Throws:
        ApiException - if fails to make API call
        Http Response Details:
        Status Code Description Response Headers
        200 A paginated list of the job's artifacts. -