/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.api;

import org.openapitools.client.ApiCallback;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.ProgressRequestBody;
import org.openapitools.client.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import org.openapitools.client.model.ActionStatus;
import org.openapitools.client.model.JobCategoriesResponseDto;
import org.openapitools.client.model.JobExecutionResultResponseDto;
import org.openapitools.client.model.JobInstanceDto;
import org.openapitools.client.model.JobInstanceInfoDto;
import org.openapitools.client.model.JobInstanceListResponseDto;
import org.openapitools.client.model.JobInstanceResponseDto;
import org.openapitools.client.model.TimerEntityDto;
import org.openapitools.client.model.TimerEntityResponseDto;

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

public class JobApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETEJobJobInstanceCode1
     * @param jobInstanceCode  jobInstanceCode The job instance&#39;s code  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEJobJobInstanceCode1Call(String jobInstanceCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/{jobInstanceCode}"
            .replaceAll("\\{" + "jobInstanceCode" + "\\}", localVarApiClient.escapeString(jobInstanceCode.toString()));

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

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

        okhttp3.Call localVarCall = dELETEJobJobInstanceCode1Call(jobInstanceCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove an existing job instance with a given code   
     *  Remove an existing job instance with a given code   
     * @param jobInstanceCode  jobInstanceCode The job instance&#39;s code  (required)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus dELETEJobJobInstanceCode1(String jobInstanceCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEJobJobInstanceCode1WithHttpInfo(jobInstanceCode);
        return localVarResp.getData();
    }

    /**
     *  Remove an existing job instance with a given code   
     *  Remove an existing job instance with a given code   
     * @param jobInstanceCode  jobInstanceCode The job instance&#39;s code  (required)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> dELETEJobJobInstanceCode1WithHttpInfo(String jobInstanceCode) throws ApiException {
        okhttp3.Call localVarCall = dELETEJobJobInstanceCode1ValidateBeforeCall(jobInstanceCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove an existing job instance with a given code    (asynchronously)
     *  Remove an existing job instance with a given code   
     * @param jobInstanceCode  jobInstanceCode The job instance&#39;s code  (required)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEJobJobInstanceCode1Async(String jobInstanceCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEJobJobInstanceCode1ValidateBeforeCall(jobInstanceCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for dELETEJobTimerTimerCode1
     * @param timerCode  timerCode The timer&#39;s code  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEJobTimerTimerCode1Call(String timerCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/timer/{timerCode}"
            .replaceAll("\\{" + "timerCode" + "\\}", localVarApiClient.escapeString(timerCode.toString()));

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

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

        okhttp3.Call localVarCall = dELETEJobTimerTimerCode1Call(timerCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove an existing timer with a given code   
     *  Remove an existing timer with a given code   
     * @param timerCode  timerCode The timer&#39;s code  (required)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus dELETEJobTimerTimerCode1(String timerCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEJobTimerTimerCode1WithHttpInfo(timerCode);
        return localVarResp.getData();
    }

    /**
     *  Remove an existing timer with a given code   
     *  Remove an existing timer with a given code   
     * @param timerCode  timerCode The timer&#39;s code  (required)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> dELETEJobTimerTimerCode1WithHttpInfo(String timerCode) throws ApiException {
        okhttp3.Call localVarCall = dELETEJobTimerTimerCode1ValidateBeforeCall(timerCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove an existing timer with a given code    (asynchronously)
     *  Remove an existing timer with a given code   
     * @param timerCode  timerCode The timer&#39;s code  (required)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call dELETEJobTimerTimerCode1Async(String timerCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEJobTimerTimerCode1ValidateBeforeCall(timerCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETIBaseVersion25
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Action status with version number as a message  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETIBaseVersion25Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/version";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETIBaseVersion25ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETIBaseVersion25Call(_callback);
        return localVarCall;

    }

    /**
     *  Get version of application  
     *  Get version of application  
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Action status with version number as a message  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus gETIBaseVersion25() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion25WithHttpInfo();
        return localVarResp.getData();
    }

    /**
     *  Get version of application  
     *  Get version of application  
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Action status with version number as a message  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> gETIBaseVersion25WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion25ValidateBeforeCall(null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Get version of application   (asynchronously)
     *  Get version of application  
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  Action status with version number as a message  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETIBaseVersion25Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion25ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETJobJobReport1
     * @param code  code string to match the code of the JobInstance  (optional)
     * @param id  jobExecutionResultId A jobExecutionResultId  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the JobExecutionResultImpl  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobJobReport1Call(String code, Long id, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/jobReport";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        if (code != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("code", code));
        }

        if (id != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id));
        }

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETJobJobReport1ValidateBeforeCall(String code, Long id, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETJobJobReport1Call(code, id, _callback);
        return localVarCall;

    }

    /**
     *  Find a job execution result with a given id   
     *  Find a job execution result with a given id   
     * @param code  code string to match the code of the JobInstance  (optional)
     * @param id  jobExecutionResultId A jobExecutionResultId  (optional)
     * @return JobExecutionResultResponseDto
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the JobExecutionResultImpl  </td><td>  -  </td></tr>
     </table>
     */
    public JobExecutionResultResponseDto gETJobJobReport1(String code, Long id) throws ApiException {
        ApiResponse<JobExecutionResultResponseDto> localVarResp = gETJobJobReport1WithHttpInfo(code, id);
        return localVarResp.getData();
    }

    /**
     *  Find a job execution result with a given id   
     *  Find a job execution result with a given id   
     * @param code  code string to match the code of the JobInstance  (optional)
     * @param id  jobExecutionResultId A jobExecutionResultId  (optional)
     * @return ApiResponse&lt;JobExecutionResultResponseDto&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the JobExecutionResultImpl  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<JobExecutionResultResponseDto> gETJobJobReport1WithHttpInfo(String code, Long id) throws ApiException {
        okhttp3.Call localVarCall = gETJobJobReport1ValidateBeforeCall(code, id, null);
        Type localVarReturnType = new TypeToken<JobExecutionResultResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Find a job execution result with a given id    (asynchronously)
     *  Find a job execution result with a given id   
     * @param code  code string to match the code of the JobInstance  (optional)
     * @param id  jobExecutionResultId A jobExecutionResultId  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the JobExecutionResultImpl  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobJobReport1Async(String code, Long id, final ApiCallback<JobExecutionResultResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETJobJobReport1ValidateBeforeCall(code, id, _callback);
        Type localVarReturnType = new TypeToken<JobExecutionResultResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETJobList1
     * @param offset  offset offset  (optional)
     * @param limit  limit number of elements in response  (optional)
     * @param mergedCF  mergedCF true if return  (optional, default to false)
     * @param sortBy  sortBy sortby field  (optional, default to &quot;code&quot;)
     * @param sortOrder  sortOrder ASC/DESC  (optional, default to ASCENDING)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  list of all subscriptions.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobList1Call(Integer offset, Integer limit, Boolean mergedCF, String sortBy, String sortOrder, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/list";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        if (offset != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset));
        }

        if (limit != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit));
        }

        if (mergedCF != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("mergedCF", mergedCF));
        }

        if (sortBy != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("sortBy", sortBy));
        }

        if (sortOrder != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("sortOrder", sortOrder));
        }

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETJobList1ValidateBeforeCall(Integer offset, Integer limit, Boolean mergedCF, String sortBy, String sortOrder, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETJobList1Call(offset, limit, mergedCF, sortBy, sortOrder, _callback);
        return localVarCall;

    }

    /**
     *  Deprecated in v.4.7.2 Use /list instead.  
     *  Deprecated in v.4.7.2 Use /list instead.  
     * @param offset  offset offset  (optional)
     * @param limit  limit number of elements in response  (optional)
     * @param mergedCF  mergedCF true if return  (optional, default to false)
     * @param sortBy  sortBy sortby field  (optional, default to &quot;code&quot;)
     * @param sortOrder  sortOrder ASC/DESC  (optional, default to ASCENDING)
     * @return JobInstanceListResponseDto
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  list of all subscriptions.  </td><td>  -  </td></tr>
     </table>
     */
    public JobInstanceListResponseDto gETJobList1(Integer offset, Integer limit, Boolean mergedCF, String sortBy, String sortOrder) throws ApiException {
        ApiResponse<JobInstanceListResponseDto> localVarResp = gETJobList1WithHttpInfo(offset, limit, mergedCF, sortBy, sortOrder);
        return localVarResp.getData();
    }

    /**
     *  Deprecated in v.4.7.2 Use /list instead.  
     *  Deprecated in v.4.7.2 Use /list instead.  
     * @param offset  offset offset  (optional)
     * @param limit  limit number of elements in response  (optional)
     * @param mergedCF  mergedCF true if return  (optional, default to false)
     * @param sortBy  sortBy sortby field  (optional, default to &quot;code&quot;)
     * @param sortOrder  sortOrder ASC/DESC  (optional, default to ASCENDING)
     * @return ApiResponse&lt;JobInstanceListResponseDto&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  list of all subscriptions.  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<JobInstanceListResponseDto> gETJobList1WithHttpInfo(Integer offset, Integer limit, Boolean mergedCF, String sortBy, String sortOrder) throws ApiException {
        okhttp3.Call localVarCall = gETJobList1ValidateBeforeCall(offset, limit, mergedCF, sortBy, sortOrder, null);
        Type localVarReturnType = new TypeToken<JobInstanceListResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Deprecated in v.4.7.2 Use /list instead.   (asynchronously)
     *  Deprecated in v.4.7.2 Use /list instead.  
     * @param offset  offset offset  (optional)
     * @param limit  limit number of elements in response  (optional)
     * @param mergedCF  mergedCF true if return  (optional, default to false)
     * @param sortBy  sortBy sortby field  (optional, default to &quot;code&quot;)
     * @param sortOrder  sortOrder ASC/DESC  (optional, default to ASCENDING)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  list of all subscriptions.  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobList1Async(Integer offset, Integer limit, Boolean mergedCF, String sortBy, String sortOrder, final ApiCallback<JobInstanceListResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETJobList1ValidateBeforeCall(offset, limit, mergedCF, sortBy, sortOrder, _callback);
        Type localVarReturnType = new TypeToken<JobInstanceListResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETJobListCategories1
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the list of job categories  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobListCategories1Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/listCategories";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETJobListCategories1ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETJobListCategories1Call(_callback);
        return localVarCall;

    }

    /**
     *  List job categories  
     *  List job categories  
     * @return JobCategoriesResponseDto
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the list of job categories  </td><td>  -  </td></tr>
     </table>
     */
    public JobCategoriesResponseDto gETJobListCategories1() throws ApiException {
        ApiResponse<JobCategoriesResponseDto> localVarResp = gETJobListCategories1WithHttpInfo();
        return localVarResp.getData();
    }

    /**
     *  List job categories  
     *  List job categories  
     * @return ApiResponse&lt;JobCategoriesResponseDto&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the list of job categories  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<JobCategoriesResponseDto> gETJobListCategories1WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETJobListCategories1ValidateBeforeCall(null);
        Type localVarReturnType = new TypeToken<JobCategoriesResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  List job categories   (asynchronously)
     *  List job categories  
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the list of job categories  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobListCategories1Async(final ApiCallback<JobCategoriesResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETJobListCategories1ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<JobCategoriesResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETJobSearch1
     * @param jobInstanceCode  jobInstanceCode string to match the code of JobInstance  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the matched JobInstance  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobSearch1Call(String jobInstanceCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        if (jobInstanceCode != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("jobInstanceCode", jobInstanceCode));
        }

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETJobSearch1ValidateBeforeCall(String jobInstanceCode, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETJobSearch1Call(jobInstanceCode, _callback);
        return localVarCall;

    }

    /**
     *  Find a job instance with a given code   
     *  Find a job instance with a given code   
     * @param jobInstanceCode  jobInstanceCode string to match the code of JobInstance  (optional)
     * @return JobInstanceResponseDto
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the matched JobInstance  </td><td>  -  </td></tr>
     </table>
     */
    public JobInstanceResponseDto gETJobSearch1(String jobInstanceCode) throws ApiException {
        ApiResponse<JobInstanceResponseDto> localVarResp = gETJobSearch1WithHttpInfo(jobInstanceCode);
        return localVarResp.getData();
    }

    /**
     *  Find a job instance with a given code   
     *  Find a job instance with a given code   
     * @param jobInstanceCode  jobInstanceCode string to match the code of JobInstance  (optional)
     * @return ApiResponse&lt;JobInstanceResponseDto&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the matched JobInstance  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<JobInstanceResponseDto> gETJobSearch1WithHttpInfo(String jobInstanceCode) throws ApiException {
        okhttp3.Call localVarCall = gETJobSearch1ValidateBeforeCall(jobInstanceCode, null);
        Type localVarReturnType = new TypeToken<JobInstanceResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Find a job instance with a given code    (asynchronously)
     *  Find a job instance with a given code   
     * @param jobInstanceCode  jobInstanceCode string to match the code of JobInstance  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  object containing the matched JobInstance  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobSearch1Async(String jobInstanceCode, final ApiCallback<JobInstanceResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETJobSearch1ValidateBeforeCall(jobInstanceCode, _callback);
        Type localVarReturnType = new TypeToken<JobInstanceResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETJobTimer1
     * @param timerCode  timerCode The timer&#39;s code  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobTimer1Call(String timerCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/timer";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        if (timerCode != null) {
            localVarQueryParams.addAll(localVarApiClient.parameterToPair("timerCode", timerCode));
        }

        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call gETJobTimer1ValidateBeforeCall(String timerCode, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETJobTimer1Call(timerCode, _callback);
        return localVarCall;

    }

    /**
     *  Find a timer with a given code   
     *  Find a timer with a given code   
     * @param timerCode  timerCode The timer&#39;s code  (optional)
     * @return TimerEntityResponseDto
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public TimerEntityResponseDto gETJobTimer1(String timerCode) throws ApiException {
        ApiResponse<TimerEntityResponseDto> localVarResp = gETJobTimer1WithHttpInfo(timerCode);
        return localVarResp.getData();
    }

    /**
     *  Find a timer with a given code   
     *  Find a timer with a given code   
     * @param timerCode  timerCode The timer&#39;s code  (optional)
     * @return ApiResponse&lt;TimerEntityResponseDto&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<TimerEntityResponseDto> gETJobTimer1WithHttpInfo(String timerCode) throws ApiException {
        okhttp3.Call localVarCall = gETJobTimer1ValidateBeforeCall(timerCode, null);
        Type localVarReturnType = new TypeToken<TimerEntityResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Find a timer with a given code    (asynchronously)
     *  Find a timer with a given code   
     * @param timerCode  timerCode The timer&#39;s code  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETJobTimer1Async(String timerCode, final ApiCallback<TimerEntityResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETJobTimer1ValidateBeforeCall(timerCode, _callback);
        Type localVarReturnType = new TypeToken<TimerEntityResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTJobCreate1
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobCreate1Call(JobInstanceDto jobInstanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = jobInstanceDto;

        // create path and map variables
        String localVarPath = "/job/create";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTJobCreate1ValidateBeforeCall(JobInstanceDto jobInstanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTJobCreate1Call(jobInstanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new job instance  
     *  Create a new job instance  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTJobCreate1(JobInstanceDto jobInstanceDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTJobCreate1WithHttpInfo(jobInstanceDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new job instance  
     *  Create a new job instance  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTJobCreate1WithHttpInfo(JobInstanceDto jobInstanceDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTJobCreate1ValidateBeforeCall(jobInstanceDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new job instance   (asynchronously)
     *  Create a new job instance  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobCreate1Async(JobInstanceDto jobInstanceDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTJobCreate1ValidateBeforeCall(jobInstanceDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTJobCreateOrUpdate1
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobCreateOrUpdate1Call(JobInstanceDto jobInstanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = jobInstanceDto;

        // create path and map variables
        String localVarPath = "/job/createOrUpdate";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTJobCreateOrUpdate1ValidateBeforeCall(JobInstanceDto jobInstanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTJobCreateOrUpdate1Call(jobInstanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update an existing job instance with a given code  
     *  Create new or update an existing job instance with a given code  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTJobCreateOrUpdate1(JobInstanceDto jobInstanceDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTJobCreateOrUpdate1WithHttpInfo(jobInstanceDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update an existing job instance with a given code  
     *  Create new or update an existing job instance with a given code  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTJobCreateOrUpdate1WithHttpInfo(JobInstanceDto jobInstanceDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTJobCreateOrUpdate1ValidateBeforeCall(jobInstanceDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update an existing job instance with a given code   (asynchronously)
     *  Create new or update an existing job instance with a given code  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobCreateOrUpdate1Async(JobInstanceDto jobInstanceDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTJobCreateOrUpdate1ValidateBeforeCall(jobInstanceDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTJobExecute1
     * @param jobInstanceInfoDto  postData job instance info&#39;s data  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobExecute1Call(JobInstanceInfoDto jobInstanceInfoDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = jobInstanceInfoDto;

        // create path and map variables
        String localVarPath = "/job/execute";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTJobExecute1ValidateBeforeCall(JobInstanceInfoDto jobInstanceInfoDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTJobExecute1Call(jobInstanceInfoDto, _callback);
        return localVarCall;

    }

    /**
     *  Execute a given job instance info   
     *  Execute a given job instance info   
     * @param jobInstanceInfoDto  postData job instance info&#39;s data  (optional)
     * @return JobExecutionResultResponseDto
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public JobExecutionResultResponseDto pOSTJobExecute1(JobInstanceInfoDto jobInstanceInfoDto) throws ApiException {
        ApiResponse<JobExecutionResultResponseDto> localVarResp = pOSTJobExecute1WithHttpInfo(jobInstanceInfoDto);
        return localVarResp.getData();
    }

    /**
     *  Execute a given job instance info   
     *  Execute a given job instance info   
     * @param jobInstanceInfoDto  postData job instance info&#39;s data  (optional)
     * @return ApiResponse&lt;JobExecutionResultResponseDto&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<JobExecutionResultResponseDto> pOSTJobExecute1WithHttpInfo(JobInstanceInfoDto jobInstanceInfoDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTJobExecute1ValidateBeforeCall(jobInstanceInfoDto, null);
        Type localVarReturnType = new TypeToken<JobExecutionResultResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Execute a given job instance info    (asynchronously)
     *  Execute a given job instance info   
     * @param jobInstanceInfoDto  postData job instance info&#39;s data  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobExecute1Async(JobInstanceInfoDto jobInstanceInfoDto, final ApiCallback<JobExecutionResultResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTJobExecute1ValidateBeforeCall(jobInstanceInfoDto, _callback);
        Type localVarReturnType = new TypeToken<JobExecutionResultResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTJobStopJobInstanceCode1
     * @param jobInstanceCode  jobInstanceCode job instance code  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobStopJobInstanceCode1Call(String jobInstanceCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/stop/{jobInstanceCode}"
            .replaceAll("\\{" + "jobInstanceCode" + "\\}", localVarApiClient.escapeString(jobInstanceCode.toString()));

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

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

        okhttp3.Call localVarCall = pOSTJobStopJobInstanceCode1Call(jobInstanceCode, _callback);
        return localVarCall;

    }

    /**
     *  Stop a given job instance info   
     *  Stop a given job instance info   
     * @param jobInstanceCode  jobInstanceCode job instance code  (required)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTJobStopJobInstanceCode1(String jobInstanceCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTJobStopJobInstanceCode1WithHttpInfo(jobInstanceCode);
        return localVarResp.getData();
    }

    /**
     *  Stop a given job instance info   
     *  Stop a given job instance info   
     * @param jobInstanceCode  jobInstanceCode job instance code  (required)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTJobStopJobInstanceCode1WithHttpInfo(String jobInstanceCode) throws ApiException {
        okhttp3.Call localVarCall = pOSTJobStopJobInstanceCode1ValidateBeforeCall(jobInstanceCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Stop a given job instance info    (asynchronously)
     *  Stop a given job instance info   
     * @param jobInstanceCode  jobInstanceCode job instance code  (required)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobStopJobInstanceCode1Async(String jobInstanceCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTJobStopJobInstanceCode1ValidateBeforeCall(jobInstanceCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTJobTimer1
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobTimer1Call(TimerEntityDto timerEntityDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = timerEntityDto;

        // create path and map variables
        String localVarPath = "/job/timer";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTJobTimer1ValidateBeforeCall(TimerEntityDto timerEntityDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTJobTimer1Call(timerEntityDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new timer entity  
     *  Create a new timer entity  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTJobTimer1(TimerEntityDto timerEntityDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTJobTimer1WithHttpInfo(timerEntityDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new timer entity  
     *  Create a new timer entity  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTJobTimer1WithHttpInfo(TimerEntityDto timerEntityDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTJobTimer1ValidateBeforeCall(timerEntityDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new timer entity   (asynchronously)
     *  Create a new timer entity  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobTimer1Async(TimerEntityDto timerEntityDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTJobTimer1ValidateBeforeCall(timerEntityDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTJobTimerCreateOrUpdate1
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobTimerCreateOrUpdate1Call(TimerEntityDto timerEntityDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = timerEntityDto;

        // create path and map variables
        String localVarPath = "/job/timer/createOrUpdate";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pOSTJobTimerCreateOrUpdate1ValidateBeforeCall(TimerEntityDto timerEntityDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTJobTimerCreateOrUpdate1Call(timerEntityDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update an existing timer entity with a given code  
     *  Create new or update an existing timer entity with a given code  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pOSTJobTimerCreateOrUpdate1(TimerEntityDto timerEntityDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTJobTimerCreateOrUpdate1WithHttpInfo(timerEntityDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update an existing timer entity with a given code  
     *  Create new or update an existing timer entity with a given code  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pOSTJobTimerCreateOrUpdate1WithHttpInfo(TimerEntityDto timerEntityDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTJobTimerCreateOrUpdate1ValidateBeforeCall(timerEntityDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update an existing timer entity with a given code   (asynchronously)
     *  Create new or update an existing timer entity with a given code  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pOSTJobTimerCreateOrUpdate1Async(TimerEntityDto timerEntityDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTJobTimerCreateOrUpdate1ValidateBeforeCall(timerEntityDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTJobTimer1
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pUTJobTimer1Call(TimerEntityDto timerEntityDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = timerEntityDto;

        // create path and map variables
        String localVarPath = "/job/timer";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pUTJobTimer1ValidateBeforeCall(TimerEntityDto timerEntityDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTJobTimer1Call(timerEntityDto, _callback);
        return localVarCall;

    }

    /**
     *  Update an existing timer entity  
     *  Update an existing timer entity  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pUTJobTimer1(TimerEntityDto timerEntityDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTJobTimer1WithHttpInfo(timerEntityDto);
        return localVarResp.getData();
    }

    /**
     *  Update an existing timer entity  
     *  Update an existing timer entity  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pUTJobTimer1WithHttpInfo(TimerEntityDto timerEntityDto) throws ApiException {
        okhttp3.Call localVarCall = pUTJobTimer1ValidateBeforeCall(timerEntityDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update an existing timer entity   (asynchronously)
     *  Update an existing timer entity  
     * @param timerEntityDto  postData The timer entity&#39;s data  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pUTJobTimer1Async(TimerEntityDto timerEntityDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTJobTimer1ValidateBeforeCall(timerEntityDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTJobUpdate1
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pUTJobUpdate1Call(JobInstanceDto jobInstanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = jobInstanceDto;

        // create path and map variables
        String localVarPath = "/job";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            "application/json", "application/xml"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call pUTJobUpdate1ValidateBeforeCall(JobInstanceDto jobInstanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTJobUpdate1Call(jobInstanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Update an existing job instance  
     *  Update an existing job instance  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus pUTJobUpdate1(JobInstanceDto jobInstanceDto) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pUTJobUpdate1WithHttpInfo(jobInstanceDto);
        return localVarResp.getData();
    }

    /**
     *  Update an existing job instance  
     *  Update an existing job instance  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> pUTJobUpdate1WithHttpInfo(JobInstanceDto jobInstanceDto) throws ApiException {
        okhttp3.Call localVarCall = pUTJobUpdate1ValidateBeforeCall(jobInstanceDto, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update an existing job instance   (asynchronously)
     *  Update an existing job instance  
     * @param jobInstanceDto  postData The job instance&#39;s data  (optional)
     * @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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td>  request processing status  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call pUTJobUpdate1Async(JobInstanceDto jobInstanceDto, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTJobUpdate1ValidateBeforeCall(jobInstanceDto, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for user81
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td> default response </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call user81Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/job/user";

        List<Pair> localVarQueryParams = new ArrayList<Pair>();
        List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
        Map<String, String> localVarHeaderParams = new HashMap<String, String>();
        Map<String, Object> localVarFormParams = new HashMap<String, Object>();
        final String[] localVarAccepts = {
            "application/json", "application/xml"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
            
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        localVarHeaderParams.put("Content-Type", localVarContentType);

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call user81ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = user81Call(_callback);
        return localVarCall;

    }

    /**
     * 
     * 
     * @return ActionStatus
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td> default response </td><td>  -  </td></tr>
     </table>
     */
    public ActionStatus user81() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user81WithHttpInfo();
        return localVarResp.getData();
    }

    /**
     * 
     * 
     * @return ApiResponse&lt;ActionStatus&gt;
     * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
     * @http.response.details
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td> default response </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<ActionStatus> user81WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user81ValidateBeforeCall(null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  (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
     <table summary="Response Details" border="1">
        <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
        <tr><td> 0 </td><td> default response </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call user81Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = user81ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
}
