/*
 * 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.GetScriptInstanceResponseDto;
import org.openapitools.client.model.InlineResponseDefault;
import org.openapitools.client.model.ScriptInstanceDto;
import org.openapitools.client.model.ScriptInstanceReponseDto;

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

public class ScriptInstanceApi {
    private ApiClient localVarApiClient;

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    /**
     * Build call for dELETEScriptInstanceScriptInstanceCode1
     * @param scriptInstanceCode  scriptInstanceCode The script 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 dELETEScriptInstanceScriptInstanceCode1Call(String scriptInstanceCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/scriptInstance/{scriptInstanceCode}"
            .replaceAll("\\{" + "scriptInstanceCode" + "\\}", localVarApiClient.escapeString(scriptInstanceCode.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 dELETEScriptInstanceScriptInstanceCode1ValidateBeforeCall(String scriptInstanceCode, final ApiCallback _callback) throws ApiException {
        
        // verify the required parameter 'scriptInstanceCode' is set
        if (scriptInstanceCode == null) {
            throw new ApiException("Missing the required parameter 'scriptInstanceCode' when calling dELETEScriptInstanceScriptInstanceCode1(Async)");
        }
        

        okhttp3.Call localVarCall = dELETEScriptInstanceScriptInstanceCode1Call(scriptInstanceCode, _callback);
        return localVarCall;

    }

    /**
     *  Remove an existing script instance with a given code .  
     *  Remove an existing script instance with a given code .  
     * @param scriptInstanceCode  scriptInstanceCode The script 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 dELETEScriptInstanceScriptInstanceCode1(String scriptInstanceCode) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = dELETEScriptInstanceScriptInstanceCode1WithHttpInfo(scriptInstanceCode);
        return localVarResp.getData();
    }

    /**
     *  Remove an existing script instance with a given code .  
     *  Remove an existing script instance with a given code .  
     * @param scriptInstanceCode  scriptInstanceCode The script 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> dELETEScriptInstanceScriptInstanceCode1WithHttpInfo(String scriptInstanceCode) throws ApiException {
        okhttp3.Call localVarCall = dELETEScriptInstanceScriptInstanceCode1ValidateBeforeCall(scriptInstanceCode, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Remove an existing script instance with a given code .   (asynchronously)
     *  Remove an existing script instance with a given code .  
     * @param scriptInstanceCode  scriptInstanceCode The script 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 dELETEScriptInstanceScriptInstanceCode1Async(String scriptInstanceCode, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = dELETEScriptInstanceScriptInstanceCode1ValidateBeforeCall(scriptInstanceCode, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETIBaseVersion19
     * @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 gETIBaseVersion19Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/scriptInstance/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 gETIBaseVersion19ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETIBaseVersion19Call(_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 gETIBaseVersion19() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = gETIBaseVersion19WithHttpInfo();
        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> gETIBaseVersion19WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = gETIBaseVersion19ValidateBeforeCall(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 gETIBaseVersion19Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETIBaseVersion19ValidateBeforeCall(_callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETScriptInstanceExecute1
     * @param scriptInstanceCode  Execute a script instance with a given code and list of eters for the context of the script  (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>  response of the script  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETScriptInstanceExecute1Call(String scriptInstanceCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

        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 gETScriptInstanceExecute1ValidateBeforeCall(String scriptInstanceCode, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETScriptInstanceExecute1Call(scriptInstanceCode, _callback);
        return localVarCall;

    }

    /**
     *  Execute a script instance with a given code and list of parameters for the context of the script 
     *  Execute a script instance with a given code and list of parameters for the context of the script 
     * @param scriptInstanceCode  Execute a script instance with a given code and list of eters for the context of the script  (optional)
     * @return InlineResponseDefault
     * @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>  response of the script  </td><td>  -  </td></tr>
     </table>
     */
    public InlineResponseDefault gETScriptInstanceExecute1(String scriptInstanceCode) throws ApiException {
        ApiResponse<InlineResponseDefault> localVarResp = gETScriptInstanceExecute1WithHttpInfo(scriptInstanceCode);
        return localVarResp.getData();
    }

    /**
     *  Execute a script instance with a given code and list of parameters for the context of the script 
     *  Execute a script instance with a given code and list of parameters for the context of the script 
     * @param scriptInstanceCode  Execute a script instance with a given code and list of eters for the context of the script  (optional)
     * @return ApiResponse&lt;InlineResponseDefault&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>  response of the script  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<InlineResponseDefault> gETScriptInstanceExecute1WithHttpInfo(String scriptInstanceCode) throws ApiException {
        okhttp3.Call localVarCall = gETScriptInstanceExecute1ValidateBeforeCall(scriptInstanceCode, null);
        Type localVarReturnType = new TypeToken<InlineResponseDefault>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Execute a script instance with a given code and list of parameters for the context of the script  (asynchronously)
     *  Execute a script instance with a given code and list of parameters for the context of the script 
     * @param scriptInstanceCode  Execute a script instance with a given code and list of eters for the context of the script  (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>  response of the script  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETScriptInstanceExecute1Async(String scriptInstanceCode, final ApiCallback<InlineResponseDefault> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETScriptInstanceExecute1ValidateBeforeCall(scriptInstanceCode, _callback);
        Type localVarReturnType = new TypeToken<InlineResponseDefault>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for gETScriptInstanceSearch1
     * @param scriptInstanceCode  scriptInstanceCode The script instance&#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>  script instance  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETScriptInstanceSearch1Call(String scriptInstanceCode, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

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

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

        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 gETScriptInstanceSearch1ValidateBeforeCall(String scriptInstanceCode, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = gETScriptInstanceSearch1Call(scriptInstanceCode, _callback);
        return localVarCall;

    }

    /**
     *  Find a script instance with a given code. 
     *  Find a script instance with a given code. 
     * @param scriptInstanceCode  scriptInstanceCode The script instance&#39;s code  (optional)
     * @return GetScriptInstanceResponseDto
     * @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>  script instance  </td><td>  -  </td></tr>
     </table>
     */
    public GetScriptInstanceResponseDto gETScriptInstanceSearch1(String scriptInstanceCode) throws ApiException {
        ApiResponse<GetScriptInstanceResponseDto> localVarResp = gETScriptInstanceSearch1WithHttpInfo(scriptInstanceCode);
        return localVarResp.getData();
    }

    /**
     *  Find a script instance with a given code. 
     *  Find a script instance with a given code. 
     * @param scriptInstanceCode  scriptInstanceCode The script instance&#39;s code  (optional)
     * @return ApiResponse&lt;GetScriptInstanceResponseDto&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>  script instance  </td><td>  -  </td></tr>
     </table>
     */
    public ApiResponse<GetScriptInstanceResponseDto> gETScriptInstanceSearch1WithHttpInfo(String scriptInstanceCode) throws ApiException {
        okhttp3.Call localVarCall = gETScriptInstanceSearch1ValidateBeforeCall(scriptInstanceCode, null);
        Type localVarReturnType = new TypeToken<GetScriptInstanceResponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Find a script instance with a given code.  (asynchronously)
     *  Find a script instance with a given code. 
     * @param scriptInstanceCode  scriptInstanceCode The script instance&#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>  script instance  </td><td>  -  </td></tr>
     </table>
     */
    public okhttp3.Call gETScriptInstanceSearch1Async(String scriptInstanceCode, final ApiCallback<GetScriptInstanceResponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = gETScriptInstanceSearch1ValidateBeforeCall(scriptInstanceCode, _callback);
        Type localVarReturnType = new TypeToken<GetScriptInstanceResponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTScriptInstanceCodeDisable1
     * @param code  code Script 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 pOSTScriptInstanceCodeDisable1Call(String code, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/scriptInstance/{code}/disable"
            .replaceAll("\\{" + "code" + "\\}", localVarApiClient.escapeString(code.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 pOSTScriptInstanceCodeDisable1ValidateBeforeCall(String code, final ApiCallback _callback) throws ApiException {
        
        // verify the required parameter 'code' is set
        if (code == null) {
            throw new ApiException("Missing the required parameter 'code' when calling pOSTScriptInstanceCodeDisable1(Async)");
        }
        

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

    }

    /**
     *  Disable a Script instance with a given code  
     *  Disable a Script instance with a given code  
     * @param code  code Script 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 pOSTScriptInstanceCodeDisable1(String code) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTScriptInstanceCodeDisable1WithHttpInfo(code);
        return localVarResp.getData();
    }

    /**
     *  Disable a Script instance with a given code  
     *  Disable a Script instance with a given code  
     * @param code  code Script 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> pOSTScriptInstanceCodeDisable1WithHttpInfo(String code) throws ApiException {
        okhttp3.Call localVarCall = pOSTScriptInstanceCodeDisable1ValidateBeforeCall(code, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Disable a Script instance with a given code   (asynchronously)
     *  Disable a Script instance with a given code  
     * @param code  code Script 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 pOSTScriptInstanceCodeDisable1Async(String code, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTScriptInstanceCodeDisable1ValidateBeforeCall(code, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTScriptInstanceCodeEnable1
     * @param code  code Script 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 pOSTScriptInstanceCodeEnable1Call(String code, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/scriptInstance/{code}/enable"
            .replaceAll("\\{" + "code" + "\\}", localVarApiClient.escapeString(code.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 pOSTScriptInstanceCodeEnable1ValidateBeforeCall(String code, final ApiCallback _callback) throws ApiException {
        
        // verify the required parameter 'code' is set
        if (code == null) {
            throw new ApiException("Missing the required parameter 'code' when calling pOSTScriptInstanceCodeEnable1(Async)");
        }
        

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

    }

    /**
     *  Enable a Script instance with a given code  
     *  Enable a Script instance with a given code  
     * @param code  code Script 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 pOSTScriptInstanceCodeEnable1(String code) throws ApiException {
        ApiResponse<ActionStatus> localVarResp = pOSTScriptInstanceCodeEnable1WithHttpInfo(code);
        return localVarResp.getData();
    }

    /**
     *  Enable a Script instance with a given code  
     *  Enable a Script instance with a given code  
     * @param code  code Script 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> pOSTScriptInstanceCodeEnable1WithHttpInfo(String code) throws ApiException {
        okhttp3.Call localVarCall = pOSTScriptInstanceCodeEnable1ValidateBeforeCall(code, null);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Enable a Script instance with a given code   (asynchronously)
     *  Enable a Script instance with a given code  
     * @param code  code Script 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 pOSTScriptInstanceCodeEnable1Async(String code, final ApiCallback<ActionStatus> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTScriptInstanceCodeEnable1ValidateBeforeCall(code, _callback);
        Type localVarReturnType = new TypeToken<ActionStatus>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTScriptInstanceCreate1
     * @param scriptInstanceDto  postData The script 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 pOSTScriptInstanceCreate1Call(ScriptInstanceDto scriptInstanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = scriptInstanceDto;

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

        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 pOSTScriptInstanceCreate1ValidateBeforeCall(ScriptInstanceDto scriptInstanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTScriptInstanceCreate1Call(scriptInstanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Create a new script instance.  
     *  Create a new script instance.  
     * @param scriptInstanceDto  postData The script instance&#39;s data  (optional)
     * @return ScriptInstanceReponseDto
     * @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 ScriptInstanceReponseDto pOSTScriptInstanceCreate1(ScriptInstanceDto scriptInstanceDto) throws ApiException {
        ApiResponse<ScriptInstanceReponseDto> localVarResp = pOSTScriptInstanceCreate1WithHttpInfo(scriptInstanceDto);
        return localVarResp.getData();
    }

    /**
     *  Create a new script instance.  
     *  Create a new script instance.  
     * @param scriptInstanceDto  postData The script instance&#39;s data  (optional)
     * @return ApiResponse&lt;ScriptInstanceReponseDto&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<ScriptInstanceReponseDto> pOSTScriptInstanceCreate1WithHttpInfo(ScriptInstanceDto scriptInstanceDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTScriptInstanceCreate1ValidateBeforeCall(scriptInstanceDto, null);
        Type localVarReturnType = new TypeToken<ScriptInstanceReponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create a new script instance.   (asynchronously)
     *  Create a new script instance.  
     * @param scriptInstanceDto  postData The script 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 pOSTScriptInstanceCreate1Async(ScriptInstanceDto scriptInstanceDto, final ApiCallback<ScriptInstanceReponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTScriptInstanceCreate1ValidateBeforeCall(scriptInstanceDto, _callback);
        Type localVarReturnType = new TypeToken<ScriptInstanceReponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pOSTScriptInstanceCreateOrUpdate1
     * @param scriptInstanceDto  postData The script 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 pOSTScriptInstanceCreateOrUpdate1Call(ScriptInstanceDto scriptInstanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = scriptInstanceDto;

        // create path and map variables
        String localVarPath = "/scriptInstance/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 pOSTScriptInstanceCreateOrUpdate1ValidateBeforeCall(ScriptInstanceDto scriptInstanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pOSTScriptInstanceCreateOrUpdate1Call(scriptInstanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Create new or update an existing script instance with a given code.  
     *  Create new or update an existing script instance with a given code.  
     * @param scriptInstanceDto  postData The script instance&#39;s data  (optional)
     * @return ScriptInstanceReponseDto
     * @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 ScriptInstanceReponseDto pOSTScriptInstanceCreateOrUpdate1(ScriptInstanceDto scriptInstanceDto) throws ApiException {
        ApiResponse<ScriptInstanceReponseDto> localVarResp = pOSTScriptInstanceCreateOrUpdate1WithHttpInfo(scriptInstanceDto);
        return localVarResp.getData();
    }

    /**
     *  Create new or update an existing script instance with a given code.  
     *  Create new or update an existing script instance with a given code.  
     * @param scriptInstanceDto  postData The script instance&#39;s data  (optional)
     * @return ApiResponse&lt;ScriptInstanceReponseDto&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<ScriptInstanceReponseDto> pOSTScriptInstanceCreateOrUpdate1WithHttpInfo(ScriptInstanceDto scriptInstanceDto) throws ApiException {
        okhttp3.Call localVarCall = pOSTScriptInstanceCreateOrUpdate1ValidateBeforeCall(scriptInstanceDto, null);
        Type localVarReturnType = new TypeToken<ScriptInstanceReponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Create new or update an existing script instance with a given code.   (asynchronously)
     *  Create new or update an existing script instance with a given code.  
     * @param scriptInstanceDto  postData The script 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 pOSTScriptInstanceCreateOrUpdate1Async(ScriptInstanceDto scriptInstanceDto, final ApiCallback<ScriptInstanceReponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pOSTScriptInstanceCreateOrUpdate1ValidateBeforeCall(scriptInstanceDto, _callback);
        Type localVarReturnType = new TypeToken<ScriptInstanceReponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for pUTScriptInstanceUpdate1
     * @param scriptInstanceDto  postData The script 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 pUTScriptInstanceUpdate1Call(ScriptInstanceDto scriptInstanceDto, final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = scriptInstanceDto;

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

        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 pUTScriptInstanceUpdate1ValidateBeforeCall(ScriptInstanceDto scriptInstanceDto, final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = pUTScriptInstanceUpdate1Call(scriptInstanceDto, _callback);
        return localVarCall;

    }

    /**
     *  Update an existing script instance.  
     *  Update an existing script instance.  
     * @param scriptInstanceDto  postData The script instance&#39;s data  (optional)
     * @return ScriptInstanceReponseDto
     * @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 ScriptInstanceReponseDto pUTScriptInstanceUpdate1(ScriptInstanceDto scriptInstanceDto) throws ApiException {
        ApiResponse<ScriptInstanceReponseDto> localVarResp = pUTScriptInstanceUpdate1WithHttpInfo(scriptInstanceDto);
        return localVarResp.getData();
    }

    /**
     *  Update an existing script instance.  
     *  Update an existing script instance.  
     * @param scriptInstanceDto  postData The script instance&#39;s data  (optional)
     * @return ApiResponse&lt;ScriptInstanceReponseDto&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<ScriptInstanceReponseDto> pUTScriptInstanceUpdate1WithHttpInfo(ScriptInstanceDto scriptInstanceDto) throws ApiException {
        okhttp3.Call localVarCall = pUTScriptInstanceUpdate1ValidateBeforeCall(scriptInstanceDto, null);
        Type localVarReturnType = new TypeToken<ScriptInstanceReponseDto>(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    /**
     *  Update an existing script instance.   (asynchronously)
     *  Update an existing script instance.  
     * @param scriptInstanceDto  postData The script 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 pUTScriptInstanceUpdate1Async(ScriptInstanceDto scriptInstanceDto, final ApiCallback<ScriptInstanceReponseDto> _callback) throws ApiException {

        okhttp3.Call localVarCall = pUTScriptInstanceUpdate1ValidateBeforeCall(scriptInstanceDto, _callback);
        Type localVarReturnType = new TypeToken<ScriptInstanceReponseDto>(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }
    /**
     * Build call for user72
     * @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 user72Call(final ApiCallback _callback) throws ApiException {
        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/scriptInstance/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 user72ValidateBeforeCall(final ApiCallback _callback) throws ApiException {
        

        okhttp3.Call localVarCall = user72Call(_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 user72() throws ApiException {
        ApiResponse<ActionStatus> localVarResp = user72WithHttpInfo();
        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> user72WithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = user72ValidateBeforeCall(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 user72Async(final ApiCallback<ActionStatus> _callback) throws ApiException {

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