Class WorkflowApi

java.lang.Object
com.redhat.parodos.sdk.api.WorkflowApi

public class WorkflowApi extends Object
  • Constructor Details

    • WorkflowApi

      public WorkflowApi()
    • WorkflowApi

      public WorkflowApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getHostIndex

      public int getHostIndex()
    • setHostIndex

      public void setHostIndex(int hostIndex)
    • getCustomBaseUrl

      public String getCustomBaseUrl()
    • setCustomBaseUrl

      public void setCustomBaseUrl(String customBaseUrl)
    • executeCall

      public okhttp3.Call executeCall(WorkFlowRequestDTO workFlowRequestDTO, ApiCallback _callback) throws ApiException
      Build call for execute
      Parameters:
      workFlowRequestDTO - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • execute

      public WorkFlowExecutionResponseDTO execute(WorkFlowRequestDTO workFlowRequestDTO) throws ApiException
      Executes a workflow
      Parameters:
      workFlowRequestDTO - (required)
      Returns:
      WorkFlowExecutionResponseDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • executeWithHttpInfo

      public ApiResponse<WorkFlowExecutionResponseDTO> executeWithHttpInfo(WorkFlowRequestDTO workFlowRequestDTO) throws ApiException
      Executes a workflow
      Parameters:
      workFlowRequestDTO - (required)
      Returns:
      ApiResponse<WorkFlowExecutionResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • executeAsync

      public okhttp3.Call executeAsync(WorkFlowRequestDTO workFlowRequestDTO, ApiCallback<WorkFlowExecutionResponseDTO> _callback) throws ApiException
      Executes a workflow (asynchronously)
      Parameters:
      workFlowRequestDTO - (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
    • getLogCall

      public okhttp3.Call getLogCall(UUID workFlowExecutionId, String taskName, ApiCallback _callback) throws ApiException
      Build call for getLog
      Parameters:
      workFlowExecutionId - (required)
      taskName - (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getLog

      public String getLog(UUID workFlowExecutionId, String taskName) throws ApiException
      Returns workflow execution log
      Parameters:
      workFlowExecutionId - (required)
      taskName - (optional)
      Returns:
      String
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getLogWithHttpInfo

      public ApiResponse<String> getLogWithHttpInfo(UUID workFlowExecutionId, String taskName) throws ApiException
      Returns workflow execution log
      Parameters:
      workFlowExecutionId - (required)
      taskName - (optional)
      Returns:
      ApiResponse<String>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getLogAsync

      public okhttp3.Call getLogAsync(UUID workFlowExecutionId, String taskName, ApiCallback<String> _callback) throws ApiException
      Returns workflow execution log (asynchronously)
      Parameters:
      workFlowExecutionId - (required)
      taskName - (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
    • getStatusCall

      public okhttp3.Call getStatusCall(UUID workFlowExecutionId, ApiCallback _callback) throws ApiException
      Build call for getStatus
      Parameters:
      workFlowExecutionId - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getStatus

      public WorkFlowStatusResponseDTO getStatus(UUID workFlowExecutionId) throws ApiException
      Returns a workflow status
      Parameters:
      workFlowExecutionId - (required)
      Returns:
      WorkFlowStatusResponseDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getStatusWithHttpInfo

      public ApiResponse<WorkFlowStatusResponseDTO> getStatusWithHttpInfo(UUID workFlowExecutionId) throws ApiException
      Returns a workflow status
      Parameters:
      workFlowExecutionId - (required)
      Returns:
      ApiResponse<WorkFlowStatusResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getStatusAsync

      public okhttp3.Call getStatusAsync(UUID workFlowExecutionId, ApiCallback<WorkFlowStatusResponseDTO> _callback) throws ApiException
      Returns a workflow status (asynchronously)
      Parameters:
      workFlowExecutionId - (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
    • getStatusByProjectIdCall

      public okhttp3.Call getStatusByProjectIdCall(UUID projectId, ApiCallback _callback) throws ApiException
      Build call for getStatusByProjectId
      Parameters:
      projectId - (optional)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getStatusByProjectId

      public List<WorkFlowResponseDTO> getStatusByProjectId(UUID projectId) throws ApiException
      Returns workflows by project id
      Parameters:
      projectId - (optional)
      Returns:
      List<WorkFlowResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getStatusByProjectIdWithHttpInfo

      public ApiResponse<List<WorkFlowResponseDTO>> getStatusByProjectIdWithHttpInfo(UUID projectId) throws ApiException
      Returns workflows by project id
      Parameters:
      projectId - (optional)
      Returns:
      ApiResponse<List<WorkFlowResponseDTO>>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getStatusByProjectIdAsync

      public okhttp3.Call getStatusByProjectIdAsync(UUID projectId, ApiCallback<List<WorkFlowResponseDTO>> _callback) throws ApiException
      Returns workflows by project id (asynchronously)
      Parameters:
      projectId - (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
    • getWorkflowParametersCall

      public okhttp3.Call getWorkflowParametersCall(UUID workFlowExecutionId, List<String> param, ApiCallback _callback) throws ApiException
      Build call for getWorkflowParameters
      Parameters:
      workFlowExecutionId - (required)
      param - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getWorkflowParameters

      public WorkFlowContextResponseDTO getWorkflowParameters(UUID workFlowExecutionId, List<String> param) throws ApiException
      Returns workflow context parameters
      Parameters:
      workFlowExecutionId - (required)
      param - (required)
      Returns:
      WorkFlowContextResponseDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getWorkflowParametersWithHttpInfo

      public ApiResponse<WorkFlowContextResponseDTO> getWorkflowParametersWithHttpInfo(UUID workFlowExecutionId, List<String> param) throws ApiException
      Returns workflow context parameters
      Parameters:
      workFlowExecutionId - (required)
      param - (required)
      Returns:
      ApiResponse<WorkFlowContextResponseDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getWorkflowParametersAsync

      public okhttp3.Call getWorkflowParametersAsync(UUID workFlowExecutionId, List<String> param, ApiCallback<WorkFlowContextResponseDTO> _callback) throws ApiException
      Returns workflow context parameters (asynchronously)
      Parameters:
      workFlowExecutionId - (required)
      param - (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
    • updateWorkFlowCheckerTaskStatusCall

      public okhttp3.Call updateWorkFlowCheckerTaskStatusCall(UUID workFlowExecutionId, String workFlowCheckerTaskName, WorkFlowCheckerTaskRequestDTO workFlowCheckerTaskRequestDTO, ApiCallback _callback) throws ApiException
      Build call for updateWorkFlowCheckerTaskStatus
      Parameters:
      workFlowExecutionId - (required)
      workFlowCheckerTaskName - (required)
      workFlowCheckerTaskRequestDTO - (required)
      _callback - Callback for upload/download progress
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • updateWorkFlowCheckerTaskStatus

      public String updateWorkFlowCheckerTaskStatus(UUID workFlowExecutionId, String workFlowCheckerTaskName, WorkFlowCheckerTaskRequestDTO workFlowCheckerTaskRequestDTO) throws ApiException
      Updates a workflow checker task status
      Parameters:
      workFlowExecutionId - (required)
      workFlowCheckerTaskName - (required)
      workFlowCheckerTaskRequestDTO - (required)
      Returns:
      String
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • updateWorkFlowCheckerTaskStatusWithHttpInfo

      public ApiResponse<String> updateWorkFlowCheckerTaskStatusWithHttpInfo(UUID workFlowExecutionId, String workFlowCheckerTaskName, WorkFlowCheckerTaskRequestDTO workFlowCheckerTaskRequestDTO) throws ApiException
      Updates a workflow checker task status
      Parameters:
      workFlowExecutionId - (required)
      workFlowCheckerTaskName - (required)
      workFlowCheckerTaskRequestDTO - (required)
      Returns:
      ApiResponse<String>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • updateWorkFlowCheckerTaskStatusAsync

      public okhttp3.Call updateWorkFlowCheckerTaskStatusAsync(UUID workFlowExecutionId, String workFlowCheckerTaskName, WorkFlowCheckerTaskRequestDTO workFlowCheckerTaskRequestDTO, ApiCallback<String> _callback) throws ApiException
      Updates a workflow checker task status (asynchronously)
      Parameters:
      workFlowExecutionId - (required)
      workFlowCheckerTaskName - (required)
      workFlowCheckerTaskRequestDTO - (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