Package com.redhat.parodos.sdk.api
Class WorkflowApi
java.lang.Object
com.redhat.parodos.sdk.api.WorkflowApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(WorkFlowRequestDTO workFlowRequestDTO) Executes a workflowokhttp3.CallexecuteAsync(WorkFlowRequestDTO workFlowRequestDTO, ApiCallback<WorkFlowExecutionResponseDTO> _callback) Executes a workflow (asynchronously)okhttp3.CallexecuteCall(WorkFlowRequestDTO workFlowRequestDTO, ApiCallback _callback) Build call for executeexecuteWithHttpInfo(WorkFlowRequestDTO workFlowRequestDTO) Executes a workflowintReturns workflow execution logokhttp3.CallgetLogAsync(UUID workFlowExecutionId, String taskName, ApiCallback<String> _callback) Returns workflow execution log (asynchronously)okhttp3.CallgetLogCall(UUID workFlowExecutionId, String taskName, ApiCallback _callback) Build call for getLoggetLogWithHttpInfo(UUID workFlowExecutionId, String taskName) Returns workflow execution logReturns a workflow statusokhttp3.CallgetStatusAsync(UUID workFlowExecutionId, ApiCallback<WorkFlowStatusResponseDTO> _callback) Returns a workflow status (asynchronously)getStatusByProjectId(UUID projectId) Returns workflows by project idokhttp3.CallgetStatusByProjectIdAsync(UUID projectId, ApiCallback<List<WorkFlowResponseDTO>> _callback) Returns workflows by project id (asynchronously)okhttp3.CallgetStatusByProjectIdCall(UUID projectId, ApiCallback _callback) Build call for getStatusByProjectIdgetStatusByProjectIdWithHttpInfo(UUID projectId) Returns workflows by project idokhttp3.CallgetStatusCall(UUID workFlowExecutionId, ApiCallback _callback) Build call for getStatusgetStatusWithHttpInfo(UUID workFlowExecutionId) Returns a workflow statusgetWorkflowParameters(UUID workFlowExecutionId, List<String> param) Returns workflow context parametersokhttp3.CallgetWorkflowParametersAsync(UUID workFlowExecutionId, List<String> param, ApiCallback<WorkFlowContextResponseDTO> _callback) Returns workflow context parameters (asynchronously)okhttp3.CallgetWorkflowParametersCall(UUID workFlowExecutionId, List<String> param, ApiCallback _callback) Build call for getWorkflowParametersgetWorkflowParametersWithHttpInfo(UUID workFlowExecutionId, List<String> param) Returns workflow context parametersrestartWorkFlow(UUID workFlowExecutionId) Restart a workflow execution with same parametersokhttp3.CallrestartWorkFlowAsync(UUID workFlowExecutionId, ApiCallback<WorkFlowExecutionResponseDTO> _callback) Restart a workflow execution with same parameters (asynchronously)okhttp3.CallrestartWorkFlowCall(UUID workFlowExecutionId, ApiCallback _callback) Build call for restartWorkFlowrestartWorkFlowWithHttpInfo(UUID workFlowExecutionId) Restart a workflow execution with same parametersvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) updateWorkFlowCheckerTaskStatus(UUID workFlowExecutionId, String workFlowCheckerTaskName, WorkFlowCheckerTaskRequestDTO workFlowCheckerTaskRequestDTO) Updates a workflow checker task statusokhttp3.CallupdateWorkFlowCheckerTaskStatusAsync(UUID workFlowExecutionId, String workFlowCheckerTaskName, WorkFlowCheckerTaskRequestDTO workFlowCheckerTaskRequestDTO, ApiCallback<String> _callback) Updates a workflow checker task status (asynchronously)okhttp3.CallupdateWorkFlowCheckerTaskStatusCall(UUID workFlowExecutionId, String workFlowCheckerTaskName, WorkFlowCheckerTaskRequestDTO workFlowCheckerTaskRequestDTO, ApiCallback _callback) Build call for updateWorkFlowCheckerTaskStatusupdateWorkFlowCheckerTaskStatusWithHttpInfo(UUID workFlowExecutionId, String workFlowCheckerTaskName, WorkFlowCheckerTaskRequestDTO workFlowCheckerTaskRequestDTO) Updates a workflow checker task status
-
Constructor Details
-
WorkflowApi
public WorkflowApi() -
WorkflowApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
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
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
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
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
-
restartWorkFlowCall
public okhttp3.Call restartWorkFlowCall(UUID workFlowExecutionId, ApiCallback _callback) throws ApiException Build call for restartWorkFlow- Parameters:
workFlowExecutionId- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
restartWorkFlow
Restart a workflow execution with same parameters- Parameters:
workFlowExecutionId- (required)- Returns:
- WorkFlowExecutionResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
restartWorkFlowWithHttpInfo
public ApiResponse<WorkFlowExecutionResponseDTO> restartWorkFlowWithHttpInfo(UUID workFlowExecutionId) throws ApiException Restart a workflow execution with same parameters- Parameters:
workFlowExecutionId- (required)- Returns:
- ApiResponse<WorkFlowExecutionResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
restartWorkFlowAsync
public okhttp3.Call restartWorkFlowAsync(UUID workFlowExecutionId, ApiCallback<WorkFlowExecutionResponseDTO> _callback) throws ApiException Restart a workflow execution with same parameters (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
-
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
-