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 Workflow 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.workflow.api;
import com.finbourne.workflow.ApiCallback;
import com.finbourne.workflow.ApiClient;
import com.finbourne.workflow.ApiException;
import com.finbourne.workflow.ApiResponse;
import com.finbourne.workflow.Configuration;
import com.finbourne.workflow.Pair;
import com.finbourne.workflow.ProgressRequestBody;
import com.finbourne.workflow.ProgressResponseBody;
import com.finbourne.workflow.extensions.ConfigurationOptions;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.finbourne.workflow.model.CreateTaskRequest;
import com.finbourne.workflow.model.DeletedEntityResponse;
import com.finbourne.workflow.model.LusidProblemDetails;
import com.finbourne.workflow.model.LusidValidationProblemDetails;
import java.time.OffsetDateTime;
import com.finbourne.workflow.model.PagedResourceListOfTask;
import com.finbourne.workflow.model.ResourceListOfChangeItem;
import com.finbourne.workflow.model.Task;
import com.finbourne.workflow.model.UpdateTaskRequest;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class TasksApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public TasksApi() {
this(Configuration.getDefaultApiClient());
}
public TasksApi(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 createTaskCall(CreateTaskRequest createTaskRequest, String trigger, final ApiCallback _callback) throws ApiException {
return createTaskCall(createTaskRequest, trigger, _callback, new ConfigurationOptions());
}
private okhttp3.Call createTaskCall(CreateTaskRequest createTaskRequest, String trigger, 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 = createTaskRequest;
// create path and map variables
String localVarPath = "/api/tasks";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (trigger != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("trigger", trigger));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createTaskValidateBeforeCall(CreateTaskRequest createTaskRequest, String trigger, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'createTaskRequest' is set
if (createTaskRequest == null) {
throw new ApiException("Missing the required parameter 'createTaskRequest' when calling createTask(Async)");
}
return createTaskCall(createTaskRequest, trigger, _callback, opts);
}
private ApiResponse createTaskWithHttpInfo(CreateTaskRequest createTaskRequest, String trigger) throws ApiException {
okhttp3.Call localVarCall = createTaskValidateBeforeCall(createTaskRequest, trigger, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse createTaskWithHttpInfo(CreateTaskRequest createTaskRequest, String trigger, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = createTaskValidateBeforeCall(createTaskRequest, trigger, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call createTaskAsync(CreateTaskRequest createTaskRequest, String trigger, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createTaskValidateBeforeCall(createTaskRequest, trigger, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call createTaskAsync(CreateTaskRequest createTaskRequest, String trigger, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = createTaskValidateBeforeCall(createTaskRequest, trigger, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIcreateTaskRequest {
private final CreateTaskRequest createTaskRequest;
private String trigger;
private APIcreateTaskRequest(CreateTaskRequest createTaskRequest) {
this.createTaskRequest = createTaskRequest;
}
/**
* Set trigger
* @param trigger The name of the Trigger to invoke (optional)
* @return APIcreateTaskRequest
*/
public APIcreateTaskRequest trigger(String trigger) {
this.trigger = trigger;
return this;
}
/**
* Build call for createTask
* @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
Created
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return createTaskCall(createTaskRequest, trigger, _callback);
}
/**
* Execute createTask request
* @return Task
* @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
Created
-
400
The details of the input related failure
-
0
Error response
-
*/
public Task execute() throws ApiException {
ApiResponse localVarResp = createTaskWithHttpInfo(createTaskRequest, trigger);
return localVarResp.getData();
}
/**
* Execute createTask request. Use any specified configuration options to override any other configuration for this request only.
* @return Task
* @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
Created
-
400
The details of the input related failure
-
0
Error response
-
*/
public Task execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = createTaskWithHttpInfo(createTaskRequest, trigger, opts);
return localVarResp.getData();
}
/**
* Execute createTask request with HTTP info returned
* @return ApiResponse<Task>
* @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
Created
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return createTaskWithHttpInfo(createTaskRequest, trigger);
}
/**
* Execute createTask request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<Task>
* @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
Created
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return createTaskWithHttpInfo(createTaskRequest, trigger, opts);
}
/**
* Execute createTask 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
Created
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return createTaskAsync(createTaskRequest, trigger, _callback);
}
/**
* Execute createTask 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
Created
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return createTaskAsync(createTaskRequest, trigger, _callback, opts);
}
}
/**
* [EXPERIMENTAL] CreateTask: Create a new Task
*
* @param createTaskRequest Request to create Task (required)
* @return APIcreateTaskRequest
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIcreateTaskRequest createTask(CreateTaskRequest createTaskRequest) {
return new APIcreateTaskRequest(createTaskRequest);
}
private okhttp3.Call deleteTaskCall(String id, final ApiCallback _callback) throws ApiException {
return deleteTaskCall(id, _callback, new ConfigurationOptions());
}
private okhttp3.Call deleteTaskCall(String id, 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/tasks/{id}"
.replace("{" + "id" + "}", localVarApiClient.escapeString(id.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 deleteTaskValidateBeforeCall(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteTask(Async)");
}
return deleteTaskCall(id, _callback, opts);
}
private ApiResponse deleteTaskWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(id, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse deleteTaskWithHttpInfo(String id, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(id, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call deleteTaskAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(id, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call deleteTaskAsync(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = deleteTaskValidateBeforeCall(id, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIdeleteTaskRequest {
private final String id;
private APIdeleteTaskRequest(String id) {
this.id = id;
}
/**
* Build call for deleteTask
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return deleteTaskCall(id, _callback);
}
/**
* Execute deleteTask request
* @return DeletedEntityResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public DeletedEntityResponse execute() throws ApiException {
ApiResponse localVarResp = deleteTaskWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Execute deleteTask request. Use any specified configuration options to override any other configuration for this request only.
* @return DeletedEntityResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public DeletedEntityResponse execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = deleteTaskWithHttpInfo(id, opts);
return localVarResp.getData();
}
/**
* Execute deleteTask request with HTTP info returned
* @return ApiResponse<DeletedEntityResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return deleteTaskWithHttpInfo(id);
}
/**
* Execute deleteTask request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<DeletedEntityResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return deleteTaskWithHttpInfo(id, opts);
}
/**
* Execute deleteTask request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return deleteTaskAsync(id, _callback);
}
/**
* Execute deleteTask 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
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return deleteTaskAsync(id, _callback, opts);
}
}
/**
* [EXPERIMENTAL] DeleteTask: Delete a Task
*
* @param id The identifier for the Task to be deleted. (required)
* @return APIdeleteTaskRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public APIdeleteTaskRequest deleteTask(String id) {
return new APIdeleteTaskRequest(id);
}
private okhttp3.Call getTaskCall(String id, OffsetDateTime asAt, final ApiCallback _callback) throws ApiException {
return getTaskCall(id, asAt, _callback, new ConfigurationOptions());
}
private okhttp3.Call getTaskCall(String id, OffsetDateTime asAt, 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/tasks/{id}"
.replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (asAt != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("asAt", asAt));
}
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 getTaskValidateBeforeCall(String id, OffsetDateTime asAt, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getTask(Async)");
}
return getTaskCall(id, asAt, _callback, opts);
}
private ApiResponse getTaskWithHttpInfo(String id, OffsetDateTime asAt) throws ApiException {
okhttp3.Call localVarCall = getTaskValidateBeforeCall(id, asAt, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse getTaskWithHttpInfo(String id, OffsetDateTime asAt, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getTaskValidateBeforeCall(id, asAt, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getTaskAsync(String id, OffsetDateTime asAt, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getTaskValidateBeforeCall(id, asAt, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call getTaskAsync(String id, OffsetDateTime asAt, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getTaskValidateBeforeCall(id, asAt, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIgetTaskRequest {
private final String id;
private OffsetDateTime asAt;
private APIgetTaskRequest(String id) {
this.id = id;
}
/**
* Set asAt
* @param asAt The asAt datetime at which to retrieve the Task. Defaults to returning the latest version of the Task if not specified. (optional)
* @return APIgetTaskRequest
*/
public APIgetTaskRequest asAt(OffsetDateTime asAt) {
this.asAt = asAt;
return this;
}
/**
* Build call for getTask
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getTaskCall(id, asAt, _callback);
}
/**
* Execute getTask request
* @return Task
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public Task execute() throws ApiException {
ApiResponse localVarResp = getTaskWithHttpInfo(id, asAt);
return localVarResp.getData();
}
/**
* Execute getTask request. Use any specified configuration options to override any other configuration for this request only.
* @return Task
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public Task execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = getTaskWithHttpInfo(id, asAt, opts);
return localVarResp.getData();
}
/**
* Execute getTask request with HTTP info returned
* @return ApiResponse<Task>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return getTaskWithHttpInfo(id, asAt);
}
/**
* Execute getTask request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<Task>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return getTaskWithHttpInfo(id, asAt, opts);
}
/**
* Execute getTask request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getTaskAsync(id, asAt, _callback);
}
/**
* Execute getTask 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
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return getTaskAsync(id, asAt, _callback, opts);
}
}
/**
* [EXPERIMENTAL] GetTask: Get a Task
*
* @param id Id of the Task to retrieve (required)
* @return APIgetTaskRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public APIgetTaskRequest getTask(String id) {
return new APIgetTaskRequest(id);
}
private okhttp3.Call getTaskHistoryCall(String id, OffsetDateTime asAt, final ApiCallback _callback) throws ApiException {
return getTaskHistoryCall(id, asAt, _callback, new ConfigurationOptions());
}
private okhttp3.Call getTaskHistoryCall(String id, OffsetDateTime asAt, 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/tasks/{id}/history"
.replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (asAt != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("asAt", asAt));
}
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 getTaskHistoryValidateBeforeCall(String id, OffsetDateTime asAt, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getTaskHistory(Async)");
}
return getTaskHistoryCall(id, asAt, _callback, opts);
}
private ApiResponse getTaskHistoryWithHttpInfo(String id, OffsetDateTime asAt) throws ApiException {
okhttp3.Call localVarCall = getTaskHistoryValidateBeforeCall(id, asAt, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse getTaskHistoryWithHttpInfo(String id, OffsetDateTime asAt, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getTaskHistoryValidateBeforeCall(id, asAt, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getTaskHistoryAsync(String id, OffsetDateTime asAt, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getTaskHistoryValidateBeforeCall(id, asAt, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call getTaskHistoryAsync(String id, OffsetDateTime asAt, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getTaskHistoryValidateBeforeCall(id, asAt, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIgetTaskHistoryRequest {
private final String id;
private OffsetDateTime asAt;
private APIgetTaskHistoryRequest(String id) {
this.id = id;
}
/**
* Set asAt
* @param asAt The asAt datetime of the oldest change to retrieve. Defaults to returning the latest version of the Task if not specified. (optional)
* @return APIgetTaskHistoryRequest
*/
public APIgetTaskHistoryRequest asAt(OffsetDateTime asAt) {
this.asAt = asAt;
return this;
}
/**
* Build call for getTaskHistory
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getTaskHistoryCall(id, asAt, _callback);
}
/**
* Execute getTaskHistory request
* @return ResourceListOfChangeItem
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ResourceListOfChangeItem execute() throws ApiException {
ApiResponse localVarResp = getTaskHistoryWithHttpInfo(id, asAt);
return localVarResp.getData();
}
/**
* Execute getTaskHistory request. Use any specified configuration options to override any other configuration for this request only.
* @return ResourceListOfChangeItem
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ResourceListOfChangeItem execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = getTaskHistoryWithHttpInfo(id, asAt, opts);
return localVarResp.getData();
}
/**
* Execute getTaskHistory request with HTTP info returned
* @return ApiResponse<ResourceListOfChangeItem>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return getTaskHistoryWithHttpInfo(id, asAt);
}
/**
* Execute getTaskHistory request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<ResourceListOfChangeItem>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return getTaskHistoryWithHttpInfo(id, asAt, opts);
}
/**
* Execute getTaskHistory request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getTaskHistoryAsync(id, asAt, _callback);
}
/**
* Execute getTaskHistory 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
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return getTaskHistoryAsync(id, asAt, _callback, opts);
}
}
/**
* [EXPERIMENTAL] GetTaskHistory: Get the history of a Task
*
* @param id The Task Id for which to get the history (required)
* @return APIgetTaskHistoryRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public APIgetTaskHistoryRequest getTaskHistory(String id) {
return new APIgetTaskHistoryRequest(id);
}
private okhttp3.Call listTasksCall(OffsetDateTime asAt, String filter, List sortBy, Integer limit, String page, final ApiCallback _callback) throws ApiException {
return listTasksCall(asAt, filter, sortBy, limit, page, _callback, new ConfigurationOptions());
}
private okhttp3.Call listTasksCall(OffsetDateTime asAt, String filter, List sortBy, Integer limit, String page, 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/tasks";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (asAt != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("asAt", asAt));
}
if (filter != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter));
}
if (sortBy != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "sortBy", sortBy));
}
if (limit != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit));
}
if (page != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
}
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 listTasksValidateBeforeCall(OffsetDateTime asAt, String filter, List sortBy, Integer limit, String page, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return listTasksCall(asAt, filter, sortBy, limit, page, _callback, opts);
}
private ApiResponse listTasksWithHttpInfo(OffsetDateTime asAt, String filter, List sortBy, Integer limit, String page) throws ApiException {
okhttp3.Call localVarCall = listTasksValidateBeforeCall(asAt, filter, sortBy, limit, page, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse listTasksWithHttpInfo(OffsetDateTime asAt, String filter, List sortBy, Integer limit, String page, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listTasksValidateBeforeCall(asAt, filter, sortBy, limit, page, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listTasksAsync(OffsetDateTime asAt, String filter, List sortBy, Integer limit, String page, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = listTasksValidateBeforeCall(asAt, filter, sortBy, limit, page, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call listTasksAsync(OffsetDateTime asAt, String filter, List sortBy, Integer limit, String page, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listTasksValidateBeforeCall(asAt, filter, sortBy, limit, page, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIlistTasksRequest {
private OffsetDateTime asAt;
private String filter;
private List sortBy;
private Integer limit;
private String page;
private APIlistTasksRequest() {
}
/**
* Set asAt
* @param asAt The asAt datetime at which to list the Tasks. Defaults to return the latest version of each Task if not specified. (optional)
* @return APIlistTasksRequest
*/
public APIlistTasksRequest asAt(OffsetDateTime asAt) {
this.asAt = asAt;
return this;
}
/**
* Set filter
* @param filter Expression to filter the result set. Read more about filtering results from LUSID here: https://support.lusid.com/filtering-results-from-lusid. (optional)
* @return APIlistTasksRequest
*/
public APIlistTasksRequest filter(String filter) {
this.filter = filter;
return this;
}
/**
* Set sortBy
* @param sortBy A list of field names or properties to sort by, each optionally suffixed by \" ASC\" or \" DESC\" (optional)
* @return APIlistTasksRequest
*/
public APIlistTasksRequest sortBy(List sortBy) {
this.sortBy = sortBy;
return this;
}
/**
* Set limit
* @param limit When paginating, limit the number of returned results to this many. (optional, default to 10)
* @return APIlistTasksRequest
*/
public APIlistTasksRequest limit(Integer limit) {
this.limit = limit;
return this;
}
/**
* Set page
* @param page The pagination token to use to continue listing tasks from a previous call to list tasks. This value is returned from the previous call. If a pagination token is provided the sortBy, filter, effectiveAt, and asAt fields must not have changed since the original request. (optional)
* @return APIlistTasksRequest
*/
public APIlistTasksRequest page(String page) {
this.page = page;
return this;
}
/**
* Build call for listTasks
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
No Tasks found.
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return listTasksCall(asAt, filter, sortBy, limit, page, _callback);
}
/**
* Execute listTasks request
* @return PagedResourceListOfTask
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
No Tasks found.
-
0
Error response
-
*/
public PagedResourceListOfTask execute() throws ApiException {
ApiResponse localVarResp = listTasksWithHttpInfo(asAt, filter, sortBy, limit, page);
return localVarResp.getData();
}
/**
* Execute listTasks request. Use any specified configuration options to override any other configuration for this request only.
* @return PagedResourceListOfTask
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
No Tasks found.
-
0
Error response
-
*/
public PagedResourceListOfTask execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = listTasksWithHttpInfo(asAt, filter, sortBy, limit, page, opts);
return localVarResp.getData();
}
/**
* Execute listTasks request with HTTP info returned
* @return ApiResponse<PagedResourceListOfTask>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
No Tasks found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return listTasksWithHttpInfo(asAt, filter, sortBy, limit, page);
}
/**
* Execute listTasks request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<PagedResourceListOfTask>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
No Tasks found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return listTasksWithHttpInfo(asAt, filter, sortBy, limit, page, opts);
}
/**
* Execute listTasks request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
No Tasks found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return listTasksAsync(asAt, filter, sortBy, limit, page, _callback);
}
/**
* Execute listTasks 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
*/
public APIlistTasksRequest listTasks() {
return new APIlistTasksRequest();
}
private okhttp3.Call updateTaskCall(String id, String trigger, UpdateTaskRequest updateTaskRequest, final ApiCallback _callback) throws ApiException {
return updateTaskCall(id, trigger, updateTaskRequest, _callback, new ConfigurationOptions());
}
private okhttp3.Call updateTaskCall(String id, String trigger, UpdateTaskRequest updateTaskRequest, 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 = updateTaskRequest;
// create path and map variables
String localVarPath = "/api/tasks/{id}"
.replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (trigger != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("trigger", trigger));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json-patch+json",
"application/json",
"text/json",
"application/*+json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateTaskValidateBeforeCall(String id, String trigger, UpdateTaskRequest updateTaskRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling updateTask(Async)");
}
return updateTaskCall(id, trigger, updateTaskRequest, _callback, opts);
}
private ApiResponse updateTaskWithHttpInfo(String id, String trigger, UpdateTaskRequest updateTaskRequest) throws ApiException {
okhttp3.Call localVarCall = updateTaskValidateBeforeCall(id, trigger, updateTaskRequest, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse updateTaskWithHttpInfo(String id, String trigger, UpdateTaskRequest updateTaskRequest, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = updateTaskValidateBeforeCall(id, trigger, updateTaskRequest, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call updateTaskAsync(String id, String trigger, UpdateTaskRequest updateTaskRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = updateTaskValidateBeforeCall(id, trigger, updateTaskRequest, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call updateTaskAsync(String id, String trigger, UpdateTaskRequest updateTaskRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = updateTaskValidateBeforeCall(id, trigger, updateTaskRequest, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIupdateTaskRequest {
private final String id;
private String trigger;
private UpdateTaskRequest updateTaskRequest;
private APIupdateTaskRequest(String id) {
this.id = id;
}
/**
* Set trigger
* @param trigger (optional)
* @return APIupdateTaskRequest
*/
public APIupdateTaskRequest trigger(String trigger) {
this.trigger = trigger;
return this;
}
/**
* Set updateTaskRequest
* @param updateTaskRequest The details of the request (optional)
* @return APIupdateTaskRequest
*/
public APIupdateTaskRequest updateTaskRequest(UpdateTaskRequest updateTaskRequest) {
this.updateTaskRequest = updateTaskRequest;
return this;
}
/**
* Build call for updateTask
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return updateTaskCall(id, trigger, updateTaskRequest, _callback);
}
/**
* Execute updateTask request
* @return Task
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public Task execute() throws ApiException {
ApiResponse localVarResp = updateTaskWithHttpInfo(id, trigger, updateTaskRequest);
return localVarResp.getData();
}
/**
* Execute updateTask request. Use any specified configuration options to override any other configuration for this request only.
* @return Task
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public Task execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = updateTaskWithHttpInfo(id, trigger, updateTaskRequest, opts);
return localVarResp.getData();
}
/**
* Execute updateTask request with HTTP info returned
* @return ApiResponse<Task>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return updateTaskWithHttpInfo(id, trigger, updateTaskRequest);
}
/**
* Execute updateTask request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<Task>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return updateTaskWithHttpInfo(id, trigger, updateTaskRequest, opts);
}
/**
* Execute updateTask request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return updateTaskAsync(id, trigger, updateTaskRequest, _callback);
}
/**
* Execute updateTask 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
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return updateTaskAsync(id, trigger, updateTaskRequest, _callback, opts);
}
}
/**
* [EXPERIMENTAL] UpdateTask: Update a Task
*
* @param id Id of the Task to act upon (required)
* @return APIupdateTaskRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
404
Task not found.
-
0
Error response
-
*/
public APIupdateTaskRequest updateTask(String id) {
return new APIupdateTaskRequest(id);
}
}