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

com.finbourne.horizon.api.IntegrationsApi Maven / Gradle / Ivy

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

package com.finbourne.horizon.api;

import com.finbourne.horizon.ApiCallback;
import com.finbourne.horizon.ApiClient;
import com.finbourne.horizon.ApiException;
import com.finbourne.horizon.ApiResponse;
import com.finbourne.horizon.Configuration;
import com.finbourne.horizon.Pair;
import com.finbourne.horizon.ProgressRequestBody;
import com.finbourne.horizon.ProgressResponseBody;
import com.finbourne.horizon.extensions.ConfigurationOptions;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.finbourne.horizon.model.CreateInstanceRequest;
import com.finbourne.horizon.model.ExecuteInstanceResponse;
import com.finbourne.horizon.model.InstanceIdentifier;
import com.finbourne.horizon.model.IntegrationDescription;
import com.finbourne.horizon.model.IntegrationInstance;
import com.finbourne.horizon.model.IntegrationPropertyConfiguration;
import com.finbourne.horizon.model.LusidProblemDetails;
import com.finbourne.horizon.model.LusidPropertyDefinitionOverrides;
import com.finbourne.horizon.model.UpdateInstanceRequest;

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

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

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    public int getHostIndex() {
        return localHostIndex;
    }

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

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

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

    private okhttp3.Call createInstanceCall(CreateInstanceRequest createInstanceRequest, final ApiCallback _callback) throws ApiException {
        return createInstanceCall(createInstanceRequest,  _callback, new ConfigurationOptions());
    }

    private okhttp3.Call createInstanceCall(CreateInstanceRequest createInstanceRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

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

        Object localVarPostBody = createInstanceRequest;

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

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

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

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

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

    @SuppressWarnings("rawtypes")
    private okhttp3.Call createInstanceValidateBeforeCall(CreateInstanceRequest createInstanceRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
        return createInstanceCall(createInstanceRequest, _callback, opts);

    }


    private ApiResponse createInstanceWithHttpInfo(CreateInstanceRequest createInstanceRequest) throws ApiException {
        okhttp3.Call localVarCall = createInstanceValidateBeforeCall(createInstanceRequest, null, new ConfigurationOptions());
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private ApiResponse createInstanceWithHttpInfo(CreateInstanceRequest createInstanceRequest, ConfigurationOptions opts) throws ApiException {
        okhttp3.Call localVarCall = createInstanceValidateBeforeCall(createInstanceRequest, null, opts);
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call createInstanceAsync(CreateInstanceRequest createInstanceRequest, final ApiCallback _callback) throws ApiException {

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

    private okhttp3.Call createInstanceAsync(CreateInstanceRequest createInstanceRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {

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

    public class APIcreateInstanceRequest {
        private CreateInstanceRequest createInstanceRequest;

        private APIcreateInstanceRequest() {
        }

        /**
         * Set createInstanceRequest
         * @param createInstanceRequest The new integration instance. (optional)
         * @return APIcreateInstanceRequest
         */
        public APIcreateInstanceRequest createInstanceRequest(CreateInstanceRequest createInstanceRequest) {
            this.createInstanceRequest = createInstanceRequest;
            return this;
        }

        /**
         * Build call for createInstance
         * @param _callback ApiCallback API callback
         * @return Call to execute
         * @throws ApiException If fail to serialize the request body object
         * @http.response.details
         
Status Code Description Response Headers
201 Identifier of the created instance. -
404 The integration type does not exist. -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return createInstanceCall(createInstanceRequest, _callback); } /** * Execute createInstance request * @return InstanceIdentifier * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Identifier of the created instance. -
404 The integration type does not exist. -
0 Error response -
*/ public InstanceIdentifier execute() throws ApiException { ApiResponse localVarResp = createInstanceWithHttpInfo(createInstanceRequest); return localVarResp.getData(); } /** * Execute createInstance request. Use any specified configuration options to override any other configuration for this request only. * @return InstanceIdentifier * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Identifier of the created instance. -
404 The integration type does not exist. -
0 Error response -
*/ public InstanceIdentifier execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = createInstanceWithHttpInfo(createInstanceRequest, opts); return localVarResp.getData(); } /** * Execute createInstance request with HTTP info returned * @return ApiResponse<InstanceIdentifier> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Identifier of the created instance. -
404 The integration type does not exist. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return createInstanceWithHttpInfo(createInstanceRequest); } /** * Execute createInstance request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<InstanceIdentifier> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Identifier of the created instance. -
404 The integration type does not exist. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return createInstanceWithHttpInfo(createInstanceRequest, opts); } /** * Execute createInstance request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Identifier of the created instance. -
404 The integration type does not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return createInstanceAsync(createInstanceRequest, _callback); } /** * Execute createInstance request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Identifier of the created instance. -
404 The integration type does not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return createInstanceAsync(createInstanceRequest, _callback, opts); } } /** * [EXPERIMENTAL] CreateInstance: Create a single integration instance. * <br>Creates a new instance of an integration, returning its identifier. <br /> <br /> <br>The user must be authenticated, entitled to call this method, and the user's domain must be licensed for the integration. * @return APIcreateInstanceRequest * @http.response.details
Status Code Description Response Headers
201 Identifier of the created instance. -
404 The integration type does not exist. -
0 Error response -
*/ public APIcreateInstanceRequest createInstance() { return new APIcreateInstanceRequest(); } private okhttp3.Call deleteInstanceCall(String instanceId, final ApiCallback _callback) throws ApiException { return deleteInstanceCall(instanceId, _callback, new ConfigurationOptions()); } private okhttp3.Call deleteInstanceCall(String instanceId, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/integrations/instances/{instanceId}" .replace("{" + "instanceId" + "}", localVarApiClient.escapeString(instanceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteInstanceValidateBeforeCall(String instanceId, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'instanceId' is set if (instanceId == null) { throw new ApiException("Missing the required parameter 'instanceId' when calling deleteInstance(Async)"); } return deleteInstanceCall(instanceId, _callback, opts); } private ApiResponse deleteInstanceWithHttpInfo(String instanceId) throws ApiException { okhttp3.Call localVarCall = deleteInstanceValidateBeforeCall(instanceId, null, new ConfigurationOptions()); return localVarApiClient.execute(localVarCall); } private ApiResponse deleteInstanceWithHttpInfo(String instanceId, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = deleteInstanceValidateBeforeCall(instanceId, null, opts); return localVarApiClient.execute(localVarCall); } private okhttp3.Call deleteInstanceAsync(String instanceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteInstanceValidateBeforeCall(instanceId, _callback, new ConfigurationOptions()); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } private okhttp3.Call deleteInstanceAsync(String instanceId, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = deleteInstanceValidateBeforeCall(instanceId, _callback, opts); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } public class APIdeleteInstanceRequest { private final String instanceId; private APIdeleteInstanceRequest(String instanceId) { this.instanceId = instanceId; } /** * Build call for deleteInstance * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 The instance was deleted. -
404 The instance does not exist. -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return deleteInstanceCall(instanceId, _callback); } /** * Execute deleteInstance request * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 The instance was deleted. -
404 The instance does not exist. -
0 Error response -
*/ public void execute() throws ApiException { deleteInstanceWithHttpInfo(instanceId); } /** * Execute deleteInstance request * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 The instance was deleted. -
404 The instance does not exist. -
0 Error response -
*/ public void execute(ConfigurationOptions opts) throws ApiException { deleteInstanceWithHttpInfo(instanceId, opts); } /** * Execute deleteInstance request with HTTP info returned * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 The instance was deleted. -
404 The instance does not exist. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return deleteInstanceWithHttpInfo(instanceId); } /** * Execute deleteInstance request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 The instance was deleted. -
404 The instance does not exist. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return deleteInstanceWithHttpInfo(instanceId, opts); } /** * Execute deleteInstance request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 The instance was deleted. -
404 The instance does not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return deleteInstanceAsync(instanceId, _callback); } /** * Execute deleteInstance request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 The instance was deleted. -
404 The instance does not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return deleteInstanceAsync(instanceId, _callback, opts); } } /** * [EXPERIMENTAL] DeleteInstance: Delete a single integration instance. * <br>Deletes an existing instance of an integration, returning its identifier. <br /> <br /> <br>The user must be authenticated, entitled to call this method, and the user's domain must be licensed for the integration. * @param instanceId Instance identifier e.g. \"b64135e7-98a0-41af-a845-d86167d54cc7\". (required) * @return APIdeleteInstanceRequest * @http.response.details
Status Code Description Response Headers
204 The instance was deleted. -
404 The instance does not exist. -
0 Error response -
*/ public APIdeleteInstanceRequest deleteInstance(String instanceId) { return new APIdeleteInstanceRequest(instanceId); } private okhttp3.Call executeInstanceCall(String instanceId, final ApiCallback _callback) throws ApiException { return executeInstanceCall(instanceId, _callback, new ConfigurationOptions()); } private okhttp3.Call executeInstanceCall(String instanceId, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/integrations/instances/{instanceId}/execute" .replace("{" + "instanceId" + "}", localVarApiClient.escapeString(instanceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call executeInstanceValidateBeforeCall(String instanceId, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'instanceId' is set if (instanceId == null) { throw new ApiException("Missing the required parameter 'instanceId' when calling executeInstance(Async)"); } return executeInstanceCall(instanceId, _callback, opts); } private ApiResponse executeInstanceWithHttpInfo(String instanceId) throws ApiException { okhttp3.Call localVarCall = executeInstanceValidateBeforeCall(instanceId, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse executeInstanceWithHttpInfo(String instanceId, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = executeInstanceValidateBeforeCall(instanceId, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call executeInstanceAsync(String instanceId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = executeInstanceValidateBeforeCall(instanceId, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call executeInstanceAsync(String instanceId, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = executeInstanceValidateBeforeCall(instanceId, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIexecuteInstanceRequest { private final String instanceId; private APIexecuteInstanceRequest(String instanceId) { this.instanceId = instanceId; } /** * Build call for executeInstance * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The execution id -
404 The integration instance does not exist -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return executeInstanceCall(instanceId, _callback); } /** * Execute executeInstance request * @return ExecuteInstanceResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The execution id -
404 The integration instance does not exist -
0 Error response -
*/ public ExecuteInstanceResponse execute() throws ApiException { ApiResponse localVarResp = executeInstanceWithHttpInfo(instanceId); return localVarResp.getData(); } /** * Execute executeInstance request. Use any specified configuration options to override any other configuration for this request only. * @return ExecuteInstanceResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The execution id -
404 The integration instance does not exist -
0 Error response -
*/ public ExecuteInstanceResponse execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = executeInstanceWithHttpInfo(instanceId, opts); return localVarResp.getData(); } /** * Execute executeInstance request with HTTP info returned * @return ApiResponse<ExecuteInstanceResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The execution id -
404 The integration instance does not exist -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return executeInstanceWithHttpInfo(instanceId); } /** * Execute executeInstance request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<ExecuteInstanceResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The execution id -
404 The integration instance does not exist -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return executeInstanceWithHttpInfo(instanceId, opts); } /** * Execute executeInstance request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The execution id -
404 The integration instance does not exist -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return executeInstanceAsync(instanceId, _callback); } /** * Execute executeInstance request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The execution id -
404 The integration instance does not exist -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return executeInstanceAsync(instanceId, _callback, opts); } } /** * [EXPERIMENTAL] ExecuteInstance: Execute an integration instance. * <br>Starts execution of an instance, returning its execution identifier. <br /> <br /> <br>The user must be authenticated, entitled to call this method, and the user's domain must be licensed for the integration. * @param instanceId Instance identifier e.g. \"b64135e7-98a0-41af-a845-d86167d54cc7\". (required) * @return APIexecuteInstanceRequest * @http.response.details
Status Code Description Response Headers
200 The execution id -
404 The integration instance does not exist -
0 Error response -
*/ public APIexecuteInstanceRequest executeInstance(String instanceId) { return new APIexecuteInstanceRequest(instanceId); } private okhttp3.Call getExecutionIdsForInstanceCall(String instanceId, Integer limit, final ApiCallback _callback) throws ApiException { return getExecutionIdsForInstanceCall(instanceId, limit, _callback, new ConfigurationOptions()); } private okhttp3.Call getExecutionIdsForInstanceCall(String instanceId, Integer limit, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/integrations/instances/{instanceId}/executions" .replace("{" + "instanceId" + "}", localVarApiClient.escapeString(instanceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (limit != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call getExecutionIdsForInstanceValidateBeforeCall(String instanceId, Integer limit, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'instanceId' is set if (instanceId == null) { throw new ApiException("Missing the required parameter 'instanceId' when calling getExecutionIdsForInstance(Async)"); } return getExecutionIdsForInstanceCall(instanceId, limit, _callback, opts); } private ApiResponse getExecutionIdsForInstanceWithHttpInfo(String instanceId, Integer limit) throws ApiException { okhttp3.Call localVarCall = getExecutionIdsForInstanceValidateBeforeCall(instanceId, limit, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse getExecutionIdsForInstanceWithHttpInfo(String instanceId, Integer limit, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getExecutionIdsForInstanceValidateBeforeCall(instanceId, limit, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getExecutionIdsForInstanceAsync(String instanceId, Integer limit, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getExecutionIdsForInstanceValidateBeforeCall(instanceId, limit, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call getExecutionIdsForInstanceAsync(String instanceId, Integer limit, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getExecutionIdsForInstanceValidateBeforeCall(instanceId, limit, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetExecutionIdsForInstanceRequest { private final String instanceId; private Integer limit; private APIgetExecutionIdsForInstanceRequest(String instanceId) { this.instanceId = instanceId; } /** * Set limit * @param limit Maximum number of returned execution ids (optional) * @return APIgetExecutionIdsForInstanceRequest */ public APIgetExecutionIdsForInstanceRequest limit(Integer limit) { this.limit = limit; return this; } /** * Build call for getExecutionIdsForInstance * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The execution ids sorted by start date (descending) -
404 The integration instance does not exist -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getExecutionIdsForInstanceCall(instanceId, limit, _callback); } /** * Execute getExecutionIdsForInstance request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The execution ids sorted by start date (descending) -
404 The integration instance does not exist -
0 Error response -
*/ public String execute() throws ApiException { ApiResponse localVarResp = getExecutionIdsForInstanceWithHttpInfo(instanceId, limit); return localVarResp.getData(); } /** * Execute getExecutionIdsForInstance request. Use any specified configuration options to override any other configuration for this request only. * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The execution ids sorted by start date (descending) -
404 The integration instance does not exist -
0 Error response -
*/ public String execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = getExecutionIdsForInstanceWithHttpInfo(instanceId, limit, opts); return localVarResp.getData(); } /** * Execute getExecutionIdsForInstance request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The execution ids sorted by start date (descending) -
404 The integration instance does not exist -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getExecutionIdsForInstanceWithHttpInfo(instanceId, limit); } /** * Execute getExecutionIdsForInstance request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The execution ids sorted by start date (descending) -
404 The integration instance does not exist -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getExecutionIdsForInstanceWithHttpInfo(instanceId, limit, opts); } /** * Execute getExecutionIdsForInstance request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The execution ids sorted by start date (descending) -
404 The integration instance does not exist -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getExecutionIdsForInstanceAsync(instanceId, limit, _callback); } /** * Execute getExecutionIdsForInstance request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The execution ids sorted by start date (descending) -
404 The integration instance does not exist -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return getExecutionIdsForInstanceAsync(instanceId, limit, _callback, opts); } } /** * [EXPERIMENTAL] GetExecutionIdsForInstance: Get integration instance execution ids. * <br>Get the most recent execution ids for an integration instance. <br /> <br>The user must be authenticated, entitled to call this method, and the user's domain must be licensed for the integration. * @param instanceId Instance identifier e.g. \"30dc93c6-a127-46bf-aea8-e466d720b72d\". (required) * @return APIgetExecutionIdsForInstanceRequest * @http.response.details
Status Code Description Response Headers
200 The execution ids sorted by start date (descending) -
404 The integration instance does not exist -
0 Error response -
*/ public APIgetExecutionIdsForInstanceRequest getExecutionIdsForInstance(String instanceId) { return new APIgetExecutionIdsForInstanceRequest(instanceId); } private okhttp3.Call getInstanceOptionalPropertyMappingCall(String integration, String instanceId, final ApiCallback _callback) throws ApiException { return getInstanceOptionalPropertyMappingCall(integration, instanceId, _callback, new ConfigurationOptions()); } private okhttp3.Call getInstanceOptionalPropertyMappingCall(String integration, String instanceId, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/integrations/instances/configuration/{integration}/{instanceId}" .replace("{" + "integration" + "}", localVarApiClient.escapeString(integration.toString())) .replace("{" + "instanceId" + "}", localVarApiClient.escapeString(instanceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call getInstanceOptionalPropertyMappingValidateBeforeCall(String integration, String instanceId, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'integration' is set if (integration == null) { throw new ApiException("Missing the required parameter 'integration' when calling getInstanceOptionalPropertyMapping(Async)"); } // verify the required parameter 'instanceId' is set if (instanceId == null) { throw new ApiException("Missing the required parameter 'instanceId' when calling getInstanceOptionalPropertyMapping(Async)"); } return getInstanceOptionalPropertyMappingCall(integration, instanceId, _callback, opts); } private ApiResponse> getInstanceOptionalPropertyMappingWithHttpInfo(String integration, String instanceId) throws ApiException { okhttp3.Call localVarCall = getInstanceOptionalPropertyMappingValidateBeforeCall(integration, instanceId, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse> getInstanceOptionalPropertyMappingWithHttpInfo(String integration, String instanceId, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getInstanceOptionalPropertyMappingValidateBeforeCall(integration, instanceId, null, opts); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getInstanceOptionalPropertyMappingAsync(String integration, String instanceId, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getInstanceOptionalPropertyMappingValidateBeforeCall(integration, instanceId, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call getInstanceOptionalPropertyMappingAsync(String integration, String instanceId, final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getInstanceOptionalPropertyMappingValidateBeforeCall(integration, instanceId, _callback, opts); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetInstanceOptionalPropertyMappingRequest { private final String integration; private final String instanceId; private APIgetInstanceOptionalPropertyMappingRequest(String integration, String instanceId) { this.integration = integration; this.instanceId = instanceId; } /** * Build call for getInstanceOptionalPropertyMapping * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getInstanceOptionalPropertyMappingCall(integration, instanceId, _callback); } /** * Execute getInstanceOptionalPropertyMapping request * @return Map<String, LusidPropertyDefinitionOverrides> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public Map execute() throws ApiException { ApiResponse> localVarResp = getInstanceOptionalPropertyMappingWithHttpInfo(integration, instanceId); return localVarResp.getData(); } /** * Execute getInstanceOptionalPropertyMapping request. Use any specified configuration options to override any other configuration for this request only. * @return Map<String, LusidPropertyDefinitionOverrides> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public Map execute(ConfigurationOptions opts) throws ApiException { ApiResponse> localVarResp = getInstanceOptionalPropertyMappingWithHttpInfo(integration, instanceId, opts); return localVarResp.getData(); } /** * Execute getInstanceOptionalPropertyMapping request with HTTP info returned * @return ApiResponse<Map<String, LusidPropertyDefinitionOverrides>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo() throws ApiException { return getInstanceOptionalPropertyMappingWithHttpInfo(integration, instanceId); } /** * Execute getInstanceOptionalPropertyMapping request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<Map<String, LusidPropertyDefinitionOverrides>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getInstanceOptionalPropertyMappingWithHttpInfo(integration, instanceId, opts); } /** * Execute getInstanceOptionalPropertyMapping request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { return getInstanceOptionalPropertyMappingAsync(integration, instanceId, _callback); } /** * Execute getInstanceOptionalPropertyMapping request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { return getInstanceOptionalPropertyMappingAsync(integration, instanceId, _callback, opts); } } /** * [EXPERIMENTAL] GetInstanceOptionalPropertyMapping: Get the Optional Property Mapping for an Integration Instance * Will return the full list of optional properties configured for this integration instance and any naming overrides * @param integration The type of the integration e.g. \"copp-clark\". (required) * @param instanceId Identifier of the instance (required) * @return APIgetInstanceOptionalPropertyMappingRequest * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public APIgetInstanceOptionalPropertyMappingRequest getInstanceOptionalPropertyMapping(String integration, String instanceId) { return new APIgetInstanceOptionalPropertyMappingRequest(integration, instanceId); } private okhttp3.Call getIntegrationConfigurationCall(String integration, final ApiCallback _callback) throws ApiException { return getIntegrationConfigurationCall(integration, _callback, new ConfigurationOptions()); } private okhttp3.Call getIntegrationConfigurationCall(String integration, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/integrations/configuration/{integration}" .replace("{" + "integration" + "}", localVarApiClient.escapeString(integration.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call getIntegrationConfigurationValidateBeforeCall(String integration, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'integration' is set if (integration == null) { throw new ApiException("Missing the required parameter 'integration' when calling getIntegrationConfiguration(Async)"); } return getIntegrationConfigurationCall(integration, _callback, opts); } private ApiResponse> getIntegrationConfigurationWithHttpInfo(String integration) throws ApiException { okhttp3.Call localVarCall = getIntegrationConfigurationValidateBeforeCall(integration, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse> getIntegrationConfigurationWithHttpInfo(String integration, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getIntegrationConfigurationValidateBeforeCall(integration, null, opts); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getIntegrationConfigurationAsync(String integration, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getIntegrationConfigurationValidateBeforeCall(integration, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call getIntegrationConfigurationAsync(String integration, final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getIntegrationConfigurationValidateBeforeCall(integration, _callback, opts); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetIntegrationConfigurationRequest { private final String integration; private APIgetIntegrationConfigurationRequest(String integration) { this.integration = integration; } /** * Build call for getIntegrationConfiguration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested integration does not exist. -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getIntegrationConfigurationCall(integration, _callback); } /** * Execute getIntegrationConfiguration request * @return List<IntegrationPropertyConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested integration does not exist. -
0 Error response -
*/ public List execute() throws ApiException { ApiResponse> localVarResp = getIntegrationConfigurationWithHttpInfo(integration); return localVarResp.getData(); } /** * Execute getIntegrationConfiguration request. Use any specified configuration options to override any other configuration for this request only. * @return List<IntegrationPropertyConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested integration does not exist. -
0 Error response -
*/ public List execute(ConfigurationOptions opts) throws ApiException { ApiResponse> localVarResp = getIntegrationConfigurationWithHttpInfo(integration, opts); return localVarResp.getData(); } /** * Execute getIntegrationConfiguration request with HTTP info returned * @return ApiResponse<List<IntegrationPropertyConfiguration>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested integration does not exist. -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo() throws ApiException { return getIntegrationConfigurationWithHttpInfo(integration); } /** * Execute getIntegrationConfiguration request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<List<IntegrationPropertyConfiguration>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested integration does not exist. -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getIntegrationConfigurationWithHttpInfo(integration, opts); } /** * Execute getIntegrationConfiguration request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested integration does not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { return getIntegrationConfigurationAsync(integration, _callback); } /** * Execute getIntegrationConfiguration request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested integration does not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { return getIntegrationConfigurationAsync(integration, _callback, opts); } } /** * [EXPERIMENTAL] GetIntegrationConfiguration: Get the Field and Property Mapping configuration for a given integration * <br>The user must be authenticated, entitled to call this method, but the user's domain does not need to be licensed for the integration. * @param integration (required) * @return APIgetIntegrationConfigurationRequest * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested integration does not exist. -
0 Error response -
*/ public APIgetIntegrationConfigurationRequest getIntegrationConfiguration(String integration) { return new APIgetIntegrationConfigurationRequest(integration); } private okhttp3.Call getSchemaCall(String integration, final ApiCallback _callback) throws ApiException { return getSchemaCall(integration, _callback, new ConfigurationOptions()); } private okhttp3.Call getSchemaCall(String integration, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/integrations/schema/{integration}" .replace("{" + "integration" + "}", localVarApiClient.escapeString(integration.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call getSchemaValidateBeforeCall(String integration, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'integration' is set if (integration == null) { throw new ApiException("Missing the required parameter 'integration' when calling getSchema(Async)"); } return getSchemaCall(integration, _callback, opts); } private ApiResponse getSchemaWithHttpInfo(String integration) throws ApiException { okhttp3.Call localVarCall = getSchemaValidateBeforeCall(integration, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse getSchemaWithHttpInfo(String integration, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getSchemaValidateBeforeCall(integration, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getSchemaAsync(String integration, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSchemaValidateBeforeCall(integration, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call getSchemaAsync(String integration, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getSchemaValidateBeforeCall(integration, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSchemaRequest { private final String integration; private APIgetSchemaRequest(String integration) { this.integration = integration; } /** * Build call for getSchema * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The system defined JSON schema for the details of a specified integration. -
404 The integration type does not exist or is not enabled. -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getSchemaCall(integration, _callback); } /** * Execute getSchema request * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The system defined JSON schema for the details of a specified integration. -
404 The integration type does not exist or is not enabled. -
0 Error response -
*/ public String execute() throws ApiException { ApiResponse localVarResp = getSchemaWithHttpInfo(integration); return localVarResp.getData(); } /** * Execute getSchema request. Use any specified configuration options to override any other configuration for this request only. * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The system defined JSON schema for the details of a specified integration. -
404 The integration type does not exist or is not enabled. -
0 Error response -
*/ public String execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = getSchemaWithHttpInfo(integration, opts); return localVarResp.getData(); } /** * Execute getSchema request with HTTP info returned * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The system defined JSON schema for the details of a specified integration. -
404 The integration type does not exist or is not enabled. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getSchemaWithHttpInfo(integration); } /** * Execute getSchema request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 The system defined JSON schema for the details of a specified integration. -
404 The integration type does not exist or is not enabled. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getSchemaWithHttpInfo(integration, opts); } /** * Execute getSchema request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The system defined JSON schema for the details of a specified integration. -
404 The integration type does not exist or is not enabled. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getSchemaAsync(integration, _callback); } /** * Execute getSchema request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The system defined JSON schema for the details of a specified integration. -
404 The integration type does not exist or is not enabled. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return getSchemaAsync(integration, _callback, opts); } } /** * [EXPERIMENTAL] GetSchema: Get the JSON schema for the details section of an integration instance. * <br>The user must be authenticated, entitled to call this method, and the user's domain must be licensed for the integration. * @param integration The type of the integration e.g. \"copp-clark\". (required) * @return APIgetSchemaRequest * @http.response.details
Status Code Description Response Headers
200 The system defined JSON schema for the details of a specified integration. -
404 The integration type does not exist or is not enabled. -
0 Error response -
*/ public APIgetSchemaRequest getSchema(String integration) { return new APIgetSchemaRequest(integration); } private okhttp3.Call listInstancesCall(final ApiCallback _callback) throws ApiException { return listInstancesCall( _callback, new ConfigurationOptions()); } private okhttp3.Call listInstancesCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/integrations/instances"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call listInstancesValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return listInstancesCall(_callback, opts); } private ApiResponse listInstancesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listInstancesValidateBeforeCall(null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse listInstancesWithHttpInfo(ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = listInstancesValidateBeforeCall(null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listInstancesAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listInstancesValidateBeforeCall(_callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call listInstancesAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = listInstancesValidateBeforeCall(_callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistInstancesRequest { private APIlistInstancesRequest() { } /** * Build call for listInstances * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested instance(s) do not exist. -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listInstancesCall(_callback); } /** * Execute listInstances request * @return IntegrationInstance * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested instance(s) do not exist. -
0 Error response -
*/ public IntegrationInstance execute() throws ApiException { ApiResponse localVarResp = listInstancesWithHttpInfo(); return localVarResp.getData(); } /** * Execute listInstances request. Use any specified configuration options to override any other configuration for this request only. * @return IntegrationInstance * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested instance(s) do not exist. -
0 Error response -
*/ public IntegrationInstance execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = listInstancesWithHttpInfo(opts); return localVarResp.getData(); } /** * Execute listInstances request with HTTP info returned * @return ApiResponse<IntegrationInstance> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested instance(s) do not exist. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return listInstancesWithHttpInfo(); } /** * Execute listInstances request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<IntegrationInstance> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested instance(s) do not exist. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return listInstancesWithHttpInfo(opts); } /** * Execute listInstances request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested instance(s) do not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return listInstancesAsync(_callback); } /** * Execute listInstances request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested instance(s) do not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return listInstancesAsync(_callback, opts); } } /** * [EXPERIMENTAL] ListInstances: List instances across all integrations. * <br>The user must be authenticated, entitled to call this method, and the user's domain must be licensed for the integration. * @return APIlistInstancesRequest * @http.response.details
Status Code Description Response Headers
200 Success -
404 The requested instance(s) do not exist. -
0 Error response -
*/ public APIlistInstancesRequest listInstances() { return new APIlistInstancesRequest(); } private okhttp3.Call listIntegrationsCall(final ApiCallback _callback) throws ApiException { return listIntegrationsCall( _callback, new ConfigurationOptions()); } private okhttp3.Call listIntegrationsCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/integrations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call listIntegrationsValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return listIntegrationsCall(_callback, opts); } private ApiResponse> listIntegrationsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = listIntegrationsValidateBeforeCall(null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse> listIntegrationsWithHttpInfo(ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = listIntegrationsValidateBeforeCall(null, opts); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call listIntegrationsAsync(final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = listIntegrationsValidateBeforeCall(_callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call listIntegrationsAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = listIntegrationsValidateBeforeCall(_callback, opts); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIlistIntegrationsRequest { private APIlistIntegrationsRequest() { } /** * Build call for listIntegrations * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return listIntegrationsCall(_callback); } /** * Execute listIntegrations request * @return List<IntegrationDescription> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public List execute() throws ApiException { ApiResponse> localVarResp = listIntegrationsWithHttpInfo(); return localVarResp.getData(); } /** * Execute listIntegrations request. Use any specified configuration options to override any other configuration for this request only. * @return List<IntegrationDescription> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public List execute(ConfigurationOptions opts) throws ApiException { ApiResponse> localVarResp = listIntegrationsWithHttpInfo(opts); return localVarResp.getData(); } /** * Execute listIntegrations request with HTTP info returned * @return ApiResponse<List<IntegrationDescription>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo() throws ApiException { return listIntegrationsWithHttpInfo(); } /** * Execute listIntegrations request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<List<IntegrationDescription>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return listIntegrationsWithHttpInfo(opts); } /** * Execute listIntegrations request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { return listIntegrationsAsync(_callback); } /** * Execute listIntegrations request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { return listIntegrationsAsync(_callback, opts); } } /** * [EXPERIMENTAL] ListIntegrations: List available integrations. * <br>List all available integrations. <br /> <br> ```\"licensed\"``` indicates your domain is licensed to use this integration. To request a licence contact your [FINBOURNE sales representative](https://www.finbourne.com/contact/). <br /> <br>Any authenticated user can call this method. * @return APIlistIntegrationsRequest * @http.response.details
Status Code Description Response Headers
200 Success -
0 Error response -
*/ public APIlistIntegrationsRequest listIntegrations() { return new APIlistIntegrationsRequest(); } private okhttp3.Call setInstanceOptionalPropertyMappingCall(String instanceId, String integration, Map requestBody, final ApiCallback _callback) throws ApiException { return setInstanceOptionalPropertyMappingCall(instanceId, integration, requestBody, _callback, new ConfigurationOptions()); } private okhttp3.Call setInstanceOptionalPropertyMappingCall(String instanceId, String integration, Map requestBody, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = requestBody; // create path and map variables String localVarPath = "/api/integrations/instances/configuration/{integration}/{instanceId}" .replace("{" + "instanceId" + "}", localVarApiClient.escapeString(instanceId.toString())) .replace("{" + "integration" + "}", localVarApiClient.escapeString(integration.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call setInstanceOptionalPropertyMappingValidateBeforeCall(String instanceId, String integration, Map requestBody, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'instanceId' is set if (instanceId == null) { throw new ApiException("Missing the required parameter 'instanceId' when calling setInstanceOptionalPropertyMapping(Async)"); } // verify the required parameter 'integration' is set if (integration == null) { throw new ApiException("Missing the required parameter 'integration' when calling setInstanceOptionalPropertyMapping(Async)"); } return setInstanceOptionalPropertyMappingCall(instanceId, integration, requestBody, _callback, opts); } private ApiResponse> setInstanceOptionalPropertyMappingWithHttpInfo(String instanceId, String integration, Map requestBody) throws ApiException { okhttp3.Call localVarCall = setInstanceOptionalPropertyMappingValidateBeforeCall(instanceId, integration, requestBody, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse> setInstanceOptionalPropertyMappingWithHttpInfo(String instanceId, String integration, Map requestBody, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = setInstanceOptionalPropertyMappingValidateBeforeCall(instanceId, integration, requestBody, null, opts); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call setInstanceOptionalPropertyMappingAsync(String instanceId, String integration, Map requestBody, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = setInstanceOptionalPropertyMappingValidateBeforeCall(instanceId, integration, requestBody, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call setInstanceOptionalPropertyMappingAsync(String instanceId, String integration, Map requestBody, final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = setInstanceOptionalPropertyMappingValidateBeforeCall(instanceId, integration, requestBody, _callback, opts); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIsetInstanceOptionalPropertyMappingRequest { private final String instanceId; private final String integration; private Map requestBody; private APIsetInstanceOptionalPropertyMappingRequest(String instanceId, String integration) { this.instanceId = instanceId; this.integration = integration; } /** * Set requestBody * @param requestBody Properties to be included and any overrides (optional) * @return APIsetInstanceOptionalPropertyMappingRequest */ public APIsetInstanceOptionalPropertyMappingRequest requestBody(Map requestBody) { this.requestBody = requestBody; return this; } /** * Build call for setInstanceOptionalPropertyMapping * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return setInstanceOptionalPropertyMappingCall(instanceId, integration, requestBody, _callback); } /** * Execute setInstanceOptionalPropertyMapping request * @return Map<String, LusidPropertyDefinitionOverrides> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public Map execute() throws ApiException { ApiResponse> localVarResp = setInstanceOptionalPropertyMappingWithHttpInfo(instanceId, integration, requestBody); return localVarResp.getData(); } /** * Execute setInstanceOptionalPropertyMapping request. Use any specified configuration options to override any other configuration for this request only. * @return Map<String, LusidPropertyDefinitionOverrides> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public Map execute(ConfigurationOptions opts) throws ApiException { ApiResponse> localVarResp = setInstanceOptionalPropertyMappingWithHttpInfo(instanceId, integration, requestBody, opts); return localVarResp.getData(); } /** * Execute setInstanceOptionalPropertyMapping request with HTTP info returned * @return ApiResponse<Map<String, LusidPropertyDefinitionOverrides>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo() throws ApiException { return setInstanceOptionalPropertyMappingWithHttpInfo(instanceId, integration, requestBody); } /** * Execute setInstanceOptionalPropertyMapping request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<Map<String, LusidPropertyDefinitionOverrides>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return setInstanceOptionalPropertyMappingWithHttpInfo(instanceId, integration, requestBody, opts); } /** * Execute setInstanceOptionalPropertyMapping request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { return setInstanceOptionalPropertyMappingAsync(instanceId, integration, requestBody, _callback); } /** * Execute setInstanceOptionalPropertyMapping request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { return setInstanceOptionalPropertyMappingAsync(instanceId, integration, requestBody, _callback, opts); } } /** * [EXPERIMENTAL] SetInstanceOptionalPropertyMapping: Set the Optional Property Mapping for an Integration Instance * The full list of properties must be supplied, the removal of a property from this list will remove it from the integration instance * @param instanceId Identifier of the instance (required) * @param integration The type of the integration e.g. \"copp-clark\". (required) * @return APIsetInstanceOptionalPropertyMappingRequest * @http.response.details
Status Code Description Response Headers
404 The requested instance(s) do not exist. -
200 Success -
0 Error response -
*/ public APIsetInstanceOptionalPropertyMappingRequest setInstanceOptionalPropertyMapping(String instanceId, String integration) { return new APIsetInstanceOptionalPropertyMappingRequest(instanceId, integration); } private okhttp3.Call updateInstanceCall(String instanceId, UpdateInstanceRequest updateInstanceRequest, final ApiCallback _callback) throws ApiException { return updateInstanceCall(instanceId, updateInstanceRequest, _callback, new ConfigurationOptions()); } private okhttp3.Call updateInstanceCall(String instanceId, UpdateInstanceRequest updateInstanceRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = updateInstanceRequest; // create path and map variables String localVarPath = "/api/integrations/instances/{instanceId}" .replace("{" + "instanceId" + "}", localVarApiClient.escapeString(instanceId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call updateInstanceValidateBeforeCall(String instanceId, UpdateInstanceRequest updateInstanceRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'instanceId' is set if (instanceId == null) { throw new ApiException("Missing the required parameter 'instanceId' when calling updateInstance(Async)"); } return updateInstanceCall(instanceId, updateInstanceRequest, _callback, opts); } private ApiResponse updateInstanceWithHttpInfo(String instanceId, UpdateInstanceRequest updateInstanceRequest) throws ApiException { okhttp3.Call localVarCall = updateInstanceValidateBeforeCall(instanceId, updateInstanceRequest, null, new ConfigurationOptions()); return localVarApiClient.execute(localVarCall); } private ApiResponse updateInstanceWithHttpInfo(String instanceId, UpdateInstanceRequest updateInstanceRequest, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = updateInstanceValidateBeforeCall(instanceId, updateInstanceRequest, null, opts); return localVarApiClient.execute(localVarCall); } private okhttp3.Call updateInstanceAsync(String instanceId, UpdateInstanceRequest updateInstanceRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateInstanceValidateBeforeCall(instanceId, updateInstanceRequest, _callback, new ConfigurationOptions()); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } private okhttp3.Call updateInstanceAsync(String instanceId, UpdateInstanceRequest updateInstanceRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = updateInstanceValidateBeforeCall(instanceId, updateInstanceRequest, _callback, opts); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } public class APIupdateInstanceRequest { private final String instanceId; private UpdateInstanceRequest updateInstanceRequest; private APIupdateInstanceRequest(String instanceId) { this.instanceId = instanceId; } /** * Set updateInstanceRequest * @param updateInstanceRequest The new integration instance. (optional) * @return APIupdateInstanceRequest */ public APIupdateInstanceRequest updateInstanceRequest(UpdateInstanceRequest updateInstanceRequest) { this.updateInstanceRequest = updateInstanceRequest; return this; } /** * Build call for updateInstance * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 The instance was updated. -
404 The instance does not exist. -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return updateInstanceCall(instanceId, updateInstanceRequest, _callback); } /** * Execute updateInstance request * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 The instance was updated. -
404 The instance does not exist. -
0 Error response -
*/ public void execute() throws ApiException { updateInstanceWithHttpInfo(instanceId, updateInstanceRequest); } /** * Execute updateInstance request * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 The instance was updated. -
404 The instance does not exist. -
0 Error response -
*/ public void execute(ConfigurationOptions opts) throws ApiException { updateInstanceWithHttpInfo(instanceId, updateInstanceRequest, opts); } /** * Execute updateInstance request with HTTP info returned * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 The instance was updated. -
404 The instance does not exist. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return updateInstanceWithHttpInfo(instanceId, updateInstanceRequest); } /** * Execute updateInstance request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 The instance was updated. -
404 The instance does not exist. -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return updateInstanceWithHttpInfo(instanceId, updateInstanceRequest, opts); } /** * Execute updateInstance request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 The instance was updated. -
404 The instance does not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updateInstanceAsync(instanceId, updateInstanceRequest, _callback); } /** * Execute updateInstance request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 The instance was updated. -
404 The instance does not exist. -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return updateInstanceAsync(instanceId, updateInstanceRequest, _callback, opts); } } /** * [EXPERIMENTAL] UpdateInstance: Update a single integration instance. * <br>Updates an existing instance of an integration, returning its identifier. <br /> <br /> <br>The user must be authenticated, entitled to call this method, and the user's domain must be licensed for the integration. * @param instanceId Instance identifier e.g. \"b64135e7-98a0-41af-a845-d86167d54cc7\". (required) * @return APIupdateInstanceRequest * @http.response.details
Status Code Description Response Headers
204 The instance was updated. -
404 The instance does not exist. -
0 Error response -
*/ public APIupdateInstanceRequest updateInstance(String instanceId) { return new APIupdateInstanceRequest(instanceId); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy