io.tiledb.cloud.rest_api.api.ArrayTasksApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiledb-cloud-java Show documentation
Show all versions of tiledb-cloud-java Show documentation
The Java client for the TileDB Cloud Service
The newest version!
/*
* TileDB Storage Platform API
* TileDB Storage Platform REST API
*
* The version of the OpenAPI document: 2.2.19
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.tiledb.cloud.rest_api.api;
import io.tiledb.cloud.rest_api.Configuration;
import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar;
import io.tiledb.cloud.rest_api.ApiCallback;
import io.tiledb.cloud.rest_api.ApiClient;
import io.tiledb.cloud.rest_api.ApiException;
import io.tiledb.cloud.rest_api.ApiResponse;
import io.tiledb.cloud.rest_api.Pair;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ArrayTasksApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public ArrayTasksApi() {
this(Configuration.getDefaultApiClient());
}
public ArrayTasksApi(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;
}
/**
* Build call for getArrayTasksSidebar
* @param start Fetch tasks created after this time, unix epoch in seconds, default 7 days ago (optional)
* @param end Fetch tasks created before this time, unix epoch in seconds, default now (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code Description Response Headers
200 sidebar metadata for task definitions for all arrays user has access to -
404 array tasks not found -
502 Bad Gateway -
0 error response -
*/
public okhttp3.Call getArrayTasksSidebarCall(Integer start, Integer end, final ApiCallback _callback) 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 = "/tasks/sidebar";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (start != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start));
}
if (end != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end));
}
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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getArrayTasksSidebarValidateBeforeCall(Integer start, Integer end, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getArrayTasksSidebarCall(start, end, _callback);
return localVarCall;
}
/**
*
*
* @param start Fetch tasks created after this time, unix epoch in seconds, default 7 days ago (optional)
* @param end Fetch tasks created before this time, unix epoch in seconds, default now (optional)
* @return ArrayTaskBrowserSidebar
* @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 sidebar metadata for task definitions for all arrays user has access to -
404 array tasks not found -
502 Bad Gateway -
0 error response -
*/
public ArrayTaskBrowserSidebar getArrayTasksSidebar(Integer start, Integer end) throws ApiException {
ApiResponse localVarResp = getArrayTasksSidebarWithHttpInfo(start, end);
return localVarResp.getData();
}
/**
*
*
* @param start Fetch tasks created after this time, unix epoch in seconds, default 7 days ago (optional)
* @param end Fetch tasks created before this time, unix epoch in seconds, default now (optional)
* @return ApiResponse<ArrayTaskBrowserSidebar>
* @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 sidebar metadata for task definitions for all arrays user has access to -
404 array tasks not found -
502 Bad Gateway -
0 error response -
*/
public ApiResponse getArrayTasksSidebarWithHttpInfo(Integer start, Integer end) throws ApiException {
okhttp3.Call localVarCall = getArrayTasksSidebarValidateBeforeCall(start, end, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
*
* @param start Fetch tasks created after this time, unix epoch in seconds, default 7 days ago (optional)
* @param end Fetch tasks created before this time, unix epoch in seconds, default now (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code Description Response Headers
200 sidebar metadata for task definitions for all arrays user has access to -
404 array tasks not found -
502 Bad Gateway -
0 error response -
*/
public okhttp3.Call getArrayTasksSidebarAsync(Integer start, Integer end, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getArrayTasksSidebarValidateBeforeCall(start, end, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy