Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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