All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.finbourne.scheduler.api.JobsApi Maven / Gradle / Ivy

There is a newer version: 2.0.85
Show newest version
/*
 * FINBOURNE Scheduler API
 *
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package com.finbourne.scheduler.api;

import com.finbourne.scheduler.ApiCallback;
import com.finbourne.scheduler.ApiClient;
import com.finbourne.scheduler.ApiException;
import com.finbourne.scheduler.ApiResponse;
import com.finbourne.scheduler.Configuration;
import com.finbourne.scheduler.Pair;
import com.finbourne.scheduler.ProgressRequestBody;
import com.finbourne.scheduler.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.finbourne.scheduler.model.CreateJobRequest;
import com.finbourne.scheduler.model.JobDefinition;
import com.finbourne.scheduler.model.JobRunResult;
import com.finbourne.scheduler.model.LusidProblemDetails;
import com.finbourne.scheduler.model.LusidValidationProblemDetails;
import com.finbourne.scheduler.model.ResourceListOfJobDefinition;
import com.finbourne.scheduler.model.ResourceListOfJobHistory;
import com.finbourne.scheduler.model.ResourceListOfScheduleDefinition;
import com.finbourne.scheduler.model.StartJobRequest;
import com.finbourne.scheduler.model.StartJobResponse;
import com.finbourne.scheduler.model.UpdateJobRequest;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class JobsApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public JobsApi() {
        this(Configuration.getDefaultApiClient());
    }

    public JobsApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    private okhttp3.Call createJobCall(CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

        // Determine Base Path to Use
        if (localCustomBaseUrl != null){
            basePath = localCustomBaseUrl;
        } else if ( localBasePaths.length > 0 ) {
            basePath = localBasePaths[localHostIndex];
        } else {
            basePath = null;
        }

        Object localVarPostBody = createJobRequest;

        // create path and map variables
        String localVarPath = "/api/jobs";

        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        final String[] localVarAccepts = {
            "application/json"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json-patch+json",
            "application/json",
            "text/json",
            "application/*+json"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        if (localVarContentType != null) {
            localVarHeaderParams.put("Content-Type", localVarContentType);
        }

        String[] localVarAuthNames = new String[] { "oauth2" };
        return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call createJobValidateBeforeCall(CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException {
        // verify the required parameter 'createJobRequest' is set
        if (createJobRequest == null) {
            throw new ApiException("Missing the required parameter 'createJobRequest' when calling createJob(Async)");
        }

        return createJobCall(createJobRequest, _callback);

    }


    private ApiResponse createJobWithHttpInfo(CreateJobRequest createJobRequest) throws ApiException {
        okhttp3.Call localVarCall = createJobValidateBeforeCall(createJobRequest, null);
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call createJobAsync(CreateJobRequest createJobRequest, final ApiCallback _callback) throws ApiException {

        okhttp3.Call localVarCall = createJobValidateBeforeCall(createJobRequest, _callback);
        Type localVarReturnType = new TypeToken(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    public class APIcreateJobRequest {
        private final CreateJobRequest createJobRequest;

        private APIcreateJobRequest(CreateJobRequest createJobRequest) {
            this.createJobRequest = createJobRequest;
        }

        /**
         * Build call for createJob
         * @param _callback ApiCallback API callback
         * @return Call to execute
         * @throws ApiException If fail to serialize the request body object
         * @http.response.details
         
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createJobCall(createJobRequest, _callback); } /** * Execute createJob request * @return JobDefinition * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public JobDefinition execute() throws ApiException { ApiResponse localVarResp = createJobWithHttpInfo(createJobRequest); return localVarResp.getData(); } /** * Execute createJob request with HTTP info returned * @return ApiResponse<JobDefinition> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createJobWithHttpInfo(createJobRequest); } /** * Execute createJob request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createJobAsync(createJobRequest, _callback); } } /** * [EXPERIMENTAL] CreateJob: Create a new job * * @param createJobRequest The request to create a new job (required) * @return APIcreateJobRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIcreateJobRequest createJob(CreateJobRequest createJobRequest) { return new APIcreateJobRequest(createJobRequest); } private okhttp3.Call deleteJobCall(String scope, String code, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/jobs/{scope}/{code}" .replace("{" + "scope" + "}", localVarApiClient.escapeString(scope.toString())) .replace("{" + "code" + "}", localVarApiClient.escapeString(code.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteJobValidateBeforeCall(String scope, String code, final ApiCallback _callback) throws ApiException { // verify the required parameter 'scope' is set if (scope == null) { throw new ApiException("Missing the required parameter 'scope' when calling deleteJob(Async)"); } // verify the required parameter 'code' is set if (code == null) { throw new ApiException("Missing the required parameter 'code' when calling deleteJob(Async)"); } return deleteJobCall(scope, code, _callback); } private ApiResponse deleteJobWithHttpInfo(String scope, String code) throws ApiException { okhttp3.Call localVarCall = deleteJobValidateBeforeCall(scope, code, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call deleteJobAsync(String scope, String code, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteJobValidateBeforeCall(scope, code, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIdeleteJobRequest { private final String scope; private final String code; private APIdeleteJobRequest(String scope, String code) { this.scope = scope; this.code = code; } /** * Build call for deleteJob * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteJobCall(scope, code, _callback); } /** * Execute deleteJob request * @return ResourceListOfScheduleDefinition * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ResourceListOfScheduleDefinition execute() throws ApiException { ApiResponse localVarResp = deleteJobWithHttpInfo(scope, code); return localVarResp.getData(); } /** * Execute deleteJob request with HTTP info returned * @return ApiResponse<ResourceListOfScheduleDefinition> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteJobWithHttpInfo(scope, code); } /** * Execute deleteJob request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteJobAsync(scope, code, _callback); } } /** * [EXPERIMENTAL] DeleteJob: Delete a job * * @param scope The scope of the job (required) * @param code The code of the job (required) * @return APIdeleteJobRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIdeleteJobRequest deleteJob(String scope, String code) { return new APIdeleteJobRequest(scope, code); } private okhttp3.Call getHistoryCall(String page, List sortBy, Integer start, Integer limit, String filter, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/jobs/history"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (sortBy != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "sortBy", sortBy)); } if (start != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (filter != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getHistoryValidateBeforeCall(String page, List sortBy, Integer start, Integer limit, String filter, final ApiCallback _callback) throws ApiException { return getHistoryCall(page, sortBy, start, limit, filter, _callback); } private ApiResponse getHistoryWithHttpInfo(String page, List sortBy, Integer start, Integer limit, String filter) throws ApiException { okhttp3.Call localVarCall = getHistoryValidateBeforeCall(page, sortBy, start, limit, filter, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getHistoryAsync(String page, List sortBy, Integer start, Integer limit, String filter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getHistoryValidateBeforeCall(page, sortBy, start, limit, filter, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetHistoryRequest { private String page; private List sortBy; private Integer start; private Integer limit; private String filter; private APIgetHistoryRequest() { } /** * Set page * @param page The pagination token to use to continue listing instruments from a previous call to list instruments. This value is returned from the previous call. If a pagination token is provided the sortBy and filter fields must not have changed since the original request. Also, if set, a start value cannot be provided. (optional) * @return APIgetHistoryRequest */ public APIgetHistoryRequest page(String page) { this.page = page; return this; } /** * Set sortBy * @param sortBy Order the results by these fields. Use use the '-' sign to denote descending order e.g. -MyFieldName. (optional) * @return APIgetHistoryRequest */ public APIgetHistoryRequest sortBy(List sortBy) { this.sortBy = sortBy; return this; } /** * Set start * @param start This field is obsolete, the value of this field would not be considered. (optional) * @return APIgetHistoryRequest */ public APIgetHistoryRequest start(Integer start) { this.start = start; return this; } /** * Set limit * @param limit When paginating, limit the number of returned results to this many. Defaults to 2000 if not specified. Maximum is 5000. (optional) * @return APIgetHistoryRequest */ public APIgetHistoryRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set filter * @param filter Expression to filter the result set. (optional) * @return APIgetHistoryRequest */ public APIgetHistoryRequest filter(String filter) { this.filter = filter; return this; } /** * Build call for getHistory * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getHistoryCall(page, sortBy, start, limit, filter, _callback); } /** * Execute getHistory request * @return ResourceListOfJobHistory * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ResourceListOfJobHistory execute() throws ApiException { ApiResponse localVarResp = getHistoryWithHttpInfo(page, sortBy, start, limit, filter); return localVarResp.getData(); } /** * Execute getHistory request with HTTP info returned * @return ApiResponse<ResourceListOfJobHistory> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getHistoryWithHttpInfo(page, sortBy, start, limit, filter); } /** * Execute getHistory request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getHistoryAsync(page, sortBy, start, limit, filter, _callback); } } /** * [EXPERIMENTAL] GetHistory: Get the history of job runs * * @return APIgetHistoryRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIgetHistoryRequest getHistory() { return new APIgetHistoryRequest(); } private okhttp3.Call getJobConsoleOutputCall(String runId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/jobs/history/{runId}/console" .replace("{" + "runId" + "}", localVarApiClient.escapeString(runId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getJobConsoleOutputValidateBeforeCall(String runId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'runId' is set if (runId == null) { throw new ApiException("Missing the required parameter 'runId' when calling getJobConsoleOutput(Async)"); } return getJobConsoleOutputCall(runId, _callback); } private ApiResponse getJobConsoleOutputWithHttpInfo(String runId) throws ApiException { okhttp3.Call localVarCall = getJobConsoleOutputValidateBeforeCall(runId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getJobConsoleOutputAsync(String runId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getJobConsoleOutputValidateBeforeCall(runId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetJobConsoleOutputRequest { private final String runId; private APIgetJobConsoleOutputRequest(String runId) { this.runId = runId; } /** * Build call for getJobConsoleOutput * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getJobConsoleOutputCall(runId, _callback); } /** * Execute getJobConsoleOutput request * @return String * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public String execute() throws ApiException { ApiResponse localVarResp = getJobConsoleOutputWithHttpInfo(runId); return localVarResp.getData(); } /** * Execute getJobConsoleOutput request with HTTP info returned * @return ApiResponse<String> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getJobConsoleOutputWithHttpInfo(runId); } /** * Execute getJobConsoleOutput request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getJobConsoleOutputAsync(runId, _callback); } } /** * [EXPERIMENTAL] GetJobConsoleOutput: Gets the console output of a specific job run * * @param runId The RunId of the job run (required) * @return APIgetJobConsoleOutputRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIgetJobConsoleOutputRequest getJobConsoleOutput(String runId) { return new APIgetJobConsoleOutputRequest(runId); } private okhttp3.Call getRunHistoryCall(String runId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/jobs/history/{runId}" .replace("{" + "runId" + "}", localVarApiClient.escapeString(runId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getRunHistoryValidateBeforeCall(String runId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'runId' is set if (runId == null) { throw new ApiException("Missing the required parameter 'runId' when calling getRunHistory(Async)"); } return getRunHistoryCall(runId, _callback); } private ApiResponse getRunHistoryWithHttpInfo(String runId) throws ApiException { okhttp3.Call localVarCall = getRunHistoryValidateBeforeCall(runId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getRunHistoryAsync(String runId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getRunHistoryValidateBeforeCall(runId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetRunHistoryRequest { private final String runId; private APIgetRunHistoryRequest(String runId) { this.runId = runId; } /** * Build call for getRunHistory * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getRunHistoryCall(runId, _callback); } /** * Execute getRunHistory request * @return JobRunResult * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public JobRunResult execute() throws ApiException { ApiResponse localVarResp = getRunHistoryWithHttpInfo(runId); return localVarResp.getData(); } /** * Execute getRunHistory request with HTTP info returned * @return ApiResponse<JobRunResult> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getRunHistoryWithHttpInfo(runId); } /** * Execute getRunHistory request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getRunHistoryAsync(runId, _callback); } } /** * [EXPERIMENTAL] GetRunHistory: Get the history for a single job run * * @param runId The unique ID of the run (required) * @return APIgetRunHistoryRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIgetRunHistoryRequest getRunHistory(String runId) { return new APIgetRunHistoryRequest(runId); } private okhttp3.Call getSchedulesForAJobCall(String scope, String code, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/jobs/{scope}/{code}/schedules" .replace("{" + "scope" + "}", localVarApiClient.escapeString(scope.toString())) .replace("{" + "code" + "}", localVarApiClient.escapeString(code.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSchedulesForAJobValidateBeforeCall(String scope, String code, final ApiCallback _callback) throws ApiException { // verify the required parameter 'scope' is set if (scope == null) { throw new ApiException("Missing the required parameter 'scope' when calling getSchedulesForAJob(Async)"); } // verify the required parameter 'code' is set if (code == null) { throw new ApiException("Missing the required parameter 'code' when calling getSchedulesForAJob(Async)"); } return getSchedulesForAJobCall(scope, code, _callback); } private ApiResponse getSchedulesForAJobWithHttpInfo(String scope, String code) throws ApiException { okhttp3.Call localVarCall = getSchedulesForAJobValidateBeforeCall(scope, code, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getSchedulesForAJobAsync(String scope, String code, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSchedulesForAJobValidateBeforeCall(scope, code, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSchedulesForAJobRequest { private final String scope; private final String code; private APIgetSchedulesForAJobRequest(String scope, String code) { this.scope = scope; this.code = code; } /** * Build call for getSchedulesForAJob * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getSchedulesForAJobCall(scope, code, _callback); } /** * Execute getSchedulesForAJob request * @return ResourceListOfScheduleDefinition * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ResourceListOfScheduleDefinition execute() throws ApiException { ApiResponse localVarResp = getSchedulesForAJobWithHttpInfo(scope, code); return localVarResp.getData(); } /** * Execute getSchedulesForAJob request with HTTP info returned * @return ApiResponse<ResourceListOfScheduleDefinition> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getSchedulesForAJobWithHttpInfo(scope, code); } /** * Execute getSchedulesForAJob request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getSchedulesForAJobAsync(scope, code, _callback); } } /** * [EXPERIMENTAL] GetSchedulesForAJob: Get all the schedules for a single job * * @param scope The scope of the job (required) * @param code The code of the job (required) * @return APIgetSchedulesForAJobRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIgetSchedulesForAJobRequest getSchedulesForAJob(String scope, String code) { return new APIgetSchedulesForAJobRequest(scope, code); } private okhttp3.Call listJobsCall(String page, List sortBy, Integer start, Integer limit, String filter, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/jobs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (page != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); } if (sortBy != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "sortBy", sortBy)); } if (start != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); } if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } if (filter != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call listJobsValidateBeforeCall(String page, List sortBy, Integer start, Integer limit, String filter, final ApiCallback _callback) throws ApiException { return listJobsCall(page, sortBy, start, limit, filter, _callback); } private ApiResponse listJobsWithHttpInfo(String page, List sortBy, Integer start, Integer limit, String filter) throws ApiException { okhttp3.Call localVarCall = listJobsValidateBeforeCall(page, sortBy, start, limit, filter, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listJobsAsync(String page, List sortBy, Integer start, Integer limit, String filter, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listJobsValidateBeforeCall(page, sortBy, start, limit, filter, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistJobsRequest { private String page; private List sortBy; private Integer start; private Integer limit; private String filter; private APIlistJobsRequest() { } /** * Set page * @param page The pagination token to use to continue listing instruments from a previous call to list instruments. This value is returned from the previous call. If a pagination token is provided the sortBy and filter fields must not have changed since the original request. Also, if set, a start value cannot be provided. (optional) * @return APIlistJobsRequest */ public APIlistJobsRequest page(String page) { this.page = page; return this; } /** * Set sortBy * @param sortBy Order the results by these fields. Use use the '-' sign to denote descending order e.g. -MyFieldName. (optional) * @return APIlistJobsRequest */ public APIlistJobsRequest sortBy(List sortBy) { this.sortBy = sortBy; return this; } /** * Set start * @param start When paginating, skip this number of results. (optional) * @return APIlistJobsRequest */ public APIlistJobsRequest start(Integer start) { this.start = start; return this; } /** * Set limit * @param limit When paginating, limit the number of returned results to this many. Defaults to 2000 if not specified. Maximum is 5000. (optional, default to 2000) * @return APIlistJobsRequest */ public APIlistJobsRequest limit(Integer limit) { this.limit = limit; return this; } /** * Set filter * @param filter Expression to filter the result set. (optional) * @return APIlistJobsRequest */ public APIlistJobsRequest filter(String filter) { this.filter = filter; return this; } /** * Build call for listJobs * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listJobsCall(page, sortBy, start, limit, filter, _callback); } /** * Execute listJobs request * @return ResourceListOfJobDefinition * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ResourceListOfJobDefinition execute() throws ApiException { ApiResponse localVarResp = listJobsWithHttpInfo(page, sortBy, start, limit, filter); return localVarResp.getData(); } /** * Execute listJobs request with HTTP info returned * @return ApiResponse<ResourceListOfJobDefinition> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listJobsWithHttpInfo(page, sortBy, start, limit, filter); } /** * Execute listJobs request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listJobsAsync(page, sortBy, start, limit, filter, _callback); } } /** * [EXPERIMENTAL] ListJobs: List the available jobs * * @return APIlistJobsRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIlistJobsRequest listJobs() { return new APIlistJobsRequest(); } private okhttp3.Call runJobCall(String scope, String code, StartJobRequest startJobRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = startJobRequest; // create path and map variables String localVarPath = "/api/jobs/{scope}/{code}/$run" .replace("{" + "scope" + "}", localVarApiClient.escapeString(scope.toString())) .replace("{" + "code" + "}", localVarApiClient.escapeString(code.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json-patch+json", "application/json", "text/json", "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call runJobValidateBeforeCall(String scope, String code, StartJobRequest startJobRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'scope' is set if (scope == null) { throw new ApiException("Missing the required parameter 'scope' when calling runJob(Async)"); } // verify the required parameter 'code' is set if (code == null) { throw new ApiException("Missing the required parameter 'code' when calling runJob(Async)"); } // verify the required parameter 'startJobRequest' is set if (startJobRequest == null) { throw new ApiException("Missing the required parameter 'startJobRequest' when calling runJob(Async)"); } return runJobCall(scope, code, startJobRequest, _callback); } private ApiResponse runJobWithHttpInfo(String scope, String code, StartJobRequest startJobRequest) throws ApiException { okhttp3.Call localVarCall = runJobValidateBeforeCall(scope, code, startJobRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call runJobAsync(String scope, String code, StartJobRequest startJobRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = runJobValidateBeforeCall(scope, code, startJobRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIrunJobRequest { private final String scope; private final String code; private final StartJobRequest startJobRequest; private APIrunJobRequest(String scope, String code, StartJobRequest startJobRequest) { this.scope = scope; this.code = code; this.startJobRequest = startJobRequest; } /** * Build call for runJob * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return runJobCall(scope, code, startJobRequest, _callback); } /** * Execute runJob request * @return StartJobResponse * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public StartJobResponse execute() throws ApiException { ApiResponse localVarResp = runJobWithHttpInfo(scope, code, startJobRequest); return localVarResp.getData(); } /** * Execute runJob request with HTTP info returned * @return ApiResponse<StartJobResponse> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return runJobWithHttpInfo(scope, code, startJobRequest); } /** * Execute runJob request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return runJobAsync(scope, code, startJobRequest, _callback); } } /** * RunJob: Run a job immediately * * @param scope The scope of the job (required) * @param code The code of the job (required) * @param startJobRequest The request for starting job (required) * @return APIrunJobRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIrunJobRequest runJob(String scope, String code, StartJobRequest startJobRequest) { return new APIrunJobRequest(scope, code, startJobRequest); } private okhttp3.Call updateJobCall(String scope, String code, UpdateJobRequest updateJobRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = updateJobRequest; // create path and map variables String localVarPath = "/api/jobs/{scope}/{code}" .replace("{" + "scope" + "}", localVarApiClient.escapeString(scope.toString())) .replace("{" + "code" + "}", localVarApiClient.escapeString(code.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json-patch+json", "application/json", "text/json", "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateJobValidateBeforeCall(String scope, String code, UpdateJobRequest updateJobRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'scope' is set if (scope == null) { throw new ApiException("Missing the required parameter 'scope' when calling updateJob(Async)"); } // verify the required parameter 'code' is set if (code == null) { throw new ApiException("Missing the required parameter 'code' when calling updateJob(Async)"); } // verify the required parameter 'updateJobRequest' is set if (updateJobRequest == null) { throw new ApiException("Missing the required parameter 'updateJobRequest' when calling updateJob(Async)"); } return updateJobCall(scope, code, updateJobRequest, _callback); } private ApiResponse updateJobWithHttpInfo(String scope, String code, UpdateJobRequest updateJobRequest) throws ApiException { okhttp3.Call localVarCall = updateJobValidateBeforeCall(scope, code, updateJobRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call updateJobAsync(String scope, String code, UpdateJobRequest updateJobRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateJobValidateBeforeCall(scope, code, updateJobRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIupdateJobRequest { private final String scope; private final String code; private final UpdateJobRequest updateJobRequest; private APIupdateJobRequest(String scope, String code, UpdateJobRequest updateJobRequest) { this.scope = scope; this.code = code; this.updateJobRequest = updateJobRequest; } /** * Build call for updateJob * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return updateJobCall(scope, code, updateJobRequest, _callback); } /** * Execute updateJob request * @return JobDefinition * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public JobDefinition execute() throws ApiException { ApiResponse localVarResp = updateJobWithHttpInfo(scope, code, updateJobRequest); return localVarResp.getData(); } /** * Execute updateJob request with HTTP info returned * @return ApiResponse<JobDefinition> * @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 Success -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return updateJobWithHttpInfo(scope, code, updateJobRequest); } /** * Execute updateJob request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return 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 Success -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateJobAsync(scope, code, updateJobRequest, _callback); } } /** * [EXPERIMENTAL] UpdateJob: Update a JobDefinition * * @param scope (required) * @param code (required) * @param updateJobRequest (required) * @return APIupdateJobRequest * @http.response.details
Status Code Description Response Headers
200 Success -
400 The details of the input related failure -
0 Error response -
*/ public APIupdateJobRequest updateJob(String scope, String code, UpdateJobRequest updateJobRequest) { return new APIupdateJobRequest(scope, code, updateJobRequest); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy