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.
/*
* 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.ApiCallback;
import io.tiledb.cloud.rest_api.model.ResetUserPasswordRequest;
import io.tiledb.cloud.rest_api.model.TokenScope;
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.Configuration;
import io.tiledb.cloud.rest_api.Pair;
import com.google.gson.reflect.TypeToken;
import io.tiledb.cloud.rest_api.model.AWSAccessCredentials;
import io.tiledb.cloud.rest_api.model.OrganizationUser;
import io.tiledb.cloud.rest_api.model.Token;
import io.tiledb.cloud.rest_api.model.TokenRequest;
import io.tiledb.cloud.rest_api.model.User;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class UserApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public UserApi() {
this(Configuration.getDefaultApiClient());
}
public UserApi(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 addAWSAccessCredentials
* @param namespace namespace (required)
* @param awsAccessCredentials aws access credentials to store for a namespace (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
AWS keys added successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCredentials awsAccessCredentials, 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 = awsAccessCredentials;
// create path and map variables
String localVarPath = "/credentials/{namespace}/aws"
.replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling addAWSAccessCredentials(Async)");
}
// verify the required parameter 'awsAccessCredentials' is set
if (awsAccessCredentials == null) {
throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling addAWSAccessCredentials(Async)");
}
okhttp3.Call localVarCall = addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback);
return localVarCall;
}
/**
*
* Add aws keys
* @param namespace namespace (required)
* @param awsAccessCredentials aws access credentials to store for a namespace (required)
* @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
AWS keys added successfully
-
502
Bad Gateway
-
0
error response
-
*/
public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException {
addAWSAccessCredentialsWithHttpInfo(namespace, awsAccessCredentials);
}
/**
*
* Add aws keys
* @param namespace namespace (required)
* @param awsAccessCredentials aws access credentials to store for a namespace (required)
* @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
AWS keys added successfully
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException {
okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* Add aws keys
* @param namespace namespace (required)
* @param awsAccessCredentials aws access credentials to store for a namespace (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
AWS keys added successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for addUserToOrganization
* @param organization organization name (required)
* @param user user to add (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
user added to organization successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationUser user, 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 = user;
// create path and map variables
String localVarPath = "/organizations/{organization}/user"
.replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call addUserToOrganizationValidateBeforeCall(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'organization' is set
if (organization == null) {
throw new ApiException("Missing the required parameter 'organization' when calling addUserToOrganization(Async)");
}
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling addUserToOrganization(Async)");
}
okhttp3.Call localVarCall = addUserToOrganizationCall(organization, user, _callback);
return localVarCall;
}
/**
*
* add a user to an organization
* @param organization organization name (required)
* @param user user to add (required)
* @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
user added to organization successfully
-
502
Bad Gateway
-
0
error response
-
*/
public void addUserToOrganization(String organization, OrganizationUser user) throws ApiException {
addUserToOrganizationWithHttpInfo(organization, user);
}
/**
*
* add a user to an organization
* @param organization organization name (required)
* @param user user to add (required)
* @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
user added to organization successfully
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse addUserToOrganizationWithHttpInfo(String organization, OrganizationUser user) throws ApiException {
okhttp3.Call localVarCall = addUserToOrganizationValidateBeforeCall(organization, user, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* add a user to an organization
* @param organization organization name (required)
* @param user user to add (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
user added to organization successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call addUserToOrganizationAsync(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = addUserToOrganizationValidateBeforeCall(organization, user, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for checkAWSAccessCredentials
* @param namespace namespace (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
AWS keys are set
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, 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 = "/credentials/{namespace}/aws"
.replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentials(Async)");
}
okhttp3.Call localVarCall = checkAWSAccessCredentialsCall(namespace, _callback);
return localVarCall;
}
/**
*
* Check if aws keys are set
* @param namespace namespace (required)
* @return List<AWSAccessCredentials>
* @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
AWS keys are set
-
502
Bad Gateway
-
0
error response
-
*/
public List checkAWSAccessCredentials(String namespace) throws ApiException {
ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(namespace);
return localVarResp.getData();
}
/**
*
* Check if aws keys are set
* @param namespace namespace (required)
* @return ApiResponse<List<AWSAccessCredentials>>
* @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
AWS keys are set
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String namespace) throws ApiException {
okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Check if aws keys are set
* @param namespace namespace (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
AWS keys are set
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, _callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for checkAWSAccessCredentialsByName
* @param namespace namespace (required)
* @param name name (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
AWS keys are set
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String name, 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 = "/credentials/{namespace}/aws/{name}"
.replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()))
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentialsByName(Async)");
}
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling checkAWSAccessCredentialsByName(Async)");
}
okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameCall(namespace, name, _callback);
return localVarCall;
}
/**
*
* Check if aws keys are set by name
* @param namespace namespace (required)
* @param name name (required)
* @return AWSAccessCredentials
* @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
AWS keys are set
-
502
Bad Gateway
-
0
error response
-
*/
public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, String name) throws ApiException {
ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(namespace, name);
return localVarResp.getData();
}
/**
*
* Check if aws keys are set by name
* @param namespace namespace (required)
* @param name name (required)
* @return ApiResponse<AWSAccessCredentials>
* @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
AWS keys are set
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String namespace, String name) throws ApiException {
okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Check if aws keys are set by name
* @param namespace namespace (required)
* @param name name (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
AWS keys are set
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, String name, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for confirmEmail
* @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
204
User email confirmed successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call confirmEmailCall(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 = "/user/confirm_email";
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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call confirmEmailValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = confirmEmailCall(_callback);
return localVarCall;
}
/**
*
* confirm user email
* @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
User email confirmed successfully
-
502
Bad Gateway
-
0
error response
-
*/
public void confirmEmail() throws ApiException {
confirmEmailWithHttpInfo();
}
/**
*
* confirm user email
* @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
User email confirmed successfully
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse confirmEmailWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = confirmEmailValidateBeforeCall(null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* confirm user email
* @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
User email confirmed successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call confirmEmailAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = confirmEmailValidateBeforeCall(_callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for createUser
* @param user user to create (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
user created successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call createUserCall(User user, 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 = user;
// create path and map variables
String localVarPath = "/user";
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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling createUser(Async)");
}
okhttp3.Call localVarCall = createUserCall(user, _callback);
return localVarCall;
}
/**
*
* create a user
* @param user user to create (required)
* @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
user created successfully
-
502
Bad Gateway
-
0
error response
-
*/
public void createUser(User user) throws ApiException {
createUserWithHttpInfo(user);
}
/**
*
* create a user
* @param user user to create (required)
* @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
user created successfully
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse createUserWithHttpInfo(User user) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(user, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* create a user
* @param user user to create (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
user created successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call createUserAsync(User user, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(user, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteAWSAccessCredentials
* @param namespace namespace (required)
* @param name name (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
AWS credentials deleted
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name, 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 = "/credentials/{namespace}/aws/{name}"
.replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString()))
.replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'namespace' is set
if (namespace == null) {
throw new ApiException("Missing the required parameter 'namespace' when calling deleteAWSAccessCredentials(Async)");
}
// verify the required parameter 'name' is set
if (name == null) {
throw new ApiException("Missing the required parameter 'name' when calling deleteAWSAccessCredentials(Async)");
}
okhttp3.Call localVarCall = deleteAWSAccessCredentialsCall(namespace, name, _callback);
return localVarCall;
}
/**
*
* delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable
* @param namespace namespace (required)
* @param name name (required)
* @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
AWS credentials deleted
-
502
Bad Gateway
-
0
error response
-
*/
public void deleteAWSAccessCredentials(String namespace, String name) throws ApiException {
deleteAWSAccessCredentialsWithHttpInfo(namespace, name);
}
/**
*
* delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable
* @param namespace namespace (required)
* @param name name (required)
* @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
AWS credentials deleted
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace, String name) throws ApiException {
okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable
* @param namespace namespace (required)
* @param name name (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
AWS credentials deleted
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String name, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteUser
* @param username username or ID (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
user deleted
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call deleteUserCall(String username, 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 = "/users/{username}"
.replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling deleteUser(Async)");
}
okhttp3.Call localVarCall = deleteUserCall(username, _callback);
return localVarCall;
}
/**
*
* delete a user
* @param username username or ID (required)
* @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
user deleted
-
502
Bad Gateway
-
0
error response
-
*/
public void deleteUser(String username) throws ApiException {
deleteUserWithHttpInfo(username);
}
/**
*
* delete a user
* @param username username or ID (required)
* @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
user deleted
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse deleteUserWithHttpInfo(String username) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* delete a user
* @param username username or ID (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
user deleted
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call deleteUserAsync(String username, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(username, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteUserFromOrganization
* @param organization organization name (required)
* @param username username to manipulate (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
user delete from organization successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call deleteUserFromOrganizationCall(String organization, String username, 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 = "/organizations/{organization}/{username}"
.replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString()))
.replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'organization' is set
if (organization == null) {
throw new ApiException("Missing the required parameter 'organization' when calling deleteUserFromOrganization(Async)");
}
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling deleteUserFromOrganization(Async)");
}
okhttp3.Call localVarCall = deleteUserFromOrganizationCall(organization, username, _callback);
return localVarCall;
}
/**
*
* delete a user from an organization
* @param organization organization name (required)
* @param username username to manipulate (required)
* @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
user delete from organization successfully
-
502
Bad Gateway
-
0
error response
-
*/
public void deleteUserFromOrganization(String organization, String username) throws ApiException {
deleteUserFromOrganizationWithHttpInfo(organization, username);
}
/**
*
* delete a user from an organization
* @param organization organization name (required)
* @param username username to manipulate (required)
* @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
user delete from organization successfully
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse deleteUserFromOrganizationWithHttpInfo(String organization, String username) throws ApiException {
okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* delete a user from an organization
* @param organization organization name (required)
* @param username username to manipulate (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
user delete from organization successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call deleteUserFromOrganizationAsync(String organization, String username, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for getOrganizationUser
* @param organization organization name (required)
* @param username username to manipulate (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
user from organization
-
404
User is not in organization
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getOrganizationUserCall(String organization, String username, 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 = "/organizations/{organization}/{username}"
.replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString()))
.replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getOrganizationUserValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'organization' is set
if (organization == null) {
throw new ApiException("Missing the required parameter 'organization' when calling getOrganizationUser(Async)");
}
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling getOrganizationUser(Async)");
}
okhttp3.Call localVarCall = getOrganizationUserCall(organization, username, _callback);
return localVarCall;
}
/**
*
* get a user from an organization
* @param organization organization name (required)
* @param username username to manipulate (required)
* @return OrganizationUser
* @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
user from organization
-
404
User is not in organization
-
502
Bad Gateway
-
0
error response
-
*/
public OrganizationUser getOrganizationUser(String organization, String username) throws ApiException {
ApiResponse localVarResp = getOrganizationUserWithHttpInfo(organization, username);
return localVarResp.getData();
}
/**
*
* get a user from an organization
* @param organization organization name (required)
* @param username username to manipulate (required)
* @return ApiResponse<OrganizationUser>
* @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
user from organization
-
404
User is not in organization
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse getOrganizationUserWithHttpInfo(String organization, String username) throws ApiException {
okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* get a user from an organization
* @param organization organization name (required)
* @param username username to manipulate (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
user from organization
-
404
User is not in organization
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getOrganizationUserAsync(String organization, String username, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getSession
* @param rememberMe flag to create a token with expiration of 30 days, default is false (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
Session token
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getSessionCall(String rememberMe, 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 = "/session";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (rememberMe != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("remember_me", rememberMe));
}
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 getSessionValidateBeforeCall(String rememberMe, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getSessionCall(rememberMe, _callback);
return localVarCall;
}
/**
*
* Get session token for user
* @param rememberMe flag to create a token with expiration of 30 days, default is false (optional)
* @return Token
* @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
Session token
-
502
Bad Gateway
-
0
error response
-
*/
public Token getSession(String rememberMe) throws ApiException {
ApiResponse localVarResp = getSessionWithHttpInfo(rememberMe);
return localVarResp.getData();
}
/**
*
* Get session token for user
* @param rememberMe flag to create a token with expiration of 30 days, default is false (optional)
* @return ApiResponse<Token>
* @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
Session token
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse getSessionWithHttpInfo(String rememberMe) throws ApiException {
okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Get session token for user
* @param rememberMe flag to create a token with expiration of 30 days, default is false (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
Session token
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getSessionAsync(String rememberMe, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getSessionValidateBeforeCall(rememberMe, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getTokenScopes
* @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
available token scopes
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getTokenScopesCall(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 = "/tokens/scopes";
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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getTokenScopesValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getTokenScopesCall(_callback);
return localVarCall;
}
/**
*
* retrieves available token scopes for a user
* @return List<TokenScope>
* @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
available token scopes
-
502
Bad Gateway
-
0
error response
-
*/
public List getTokenScopes() throws ApiException {
ApiResponse> localVarResp = getTokenScopesWithHttpInfo();
return localVarResp.getData();
}
/**
*
* retrieves available token scopes for a user
* @return ApiResponse<List<TokenScope>>
* @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
available token scopes
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse> getTokenScopesWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = getTokenScopesValidateBeforeCall(null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* retrieves available token scopes for a user
* @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
available token scopes
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getTokenScopesAsync(final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = getTokenScopesValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getUser
* @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
user details
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getUserCall(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 = "/user";
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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getUserValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getUserCall(_callback);
return localVarCall;
}
/**
*
* get a user
* @return User
* @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
user details
-
502
Bad Gateway
-
0
error response
-
*/
public User getUser() throws ApiException {
ApiResponse localVarResp = getUserWithHttpInfo();
return localVarResp.getData();
}
/**
*
* get a user
* @return ApiResponse<User>
* @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
user details
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse getUserWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = getUserValidateBeforeCall(null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* get a user
* @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
user details
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getUserAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getUserValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getUserWithUsername
* @param username username or ID (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
user details
-
404
User does not exist
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getUserWithUsernameCall(String username, 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 = "/users/{username}"
.replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getUserWithUsernameValidateBeforeCall(String username, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException("Missing the required parameter 'username' when calling getUserWithUsername(Async)");
}
okhttp3.Call localVarCall = getUserWithUsernameCall(username, _callback);
return localVarCall;
}
/**
*
* get a user
* @param username username or ID (required)
* @return User
* @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
user details
-
404
User does not exist
-
502
Bad Gateway
-
0
error response
-
*/
public User getUserWithUsername(String username) throws ApiException {
ApiResponse localVarResp = getUserWithUsernameWithHttpInfo(username);
return localVarResp.getData();
}
/**
*
* get a user
* @param username username or ID (required)
* @return ApiResponse<User>
* @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
user details
-
404
User does not exist
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse getUserWithUsernameWithHttpInfo(String username) throws ApiException {
okhttp3.Call localVarCall = getUserWithUsernameValidateBeforeCall(username, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* get a user
* @param username username or ID (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
user details
-
404
User does not exist
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call getUserWithUsernameAsync(String username, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getUserWithUsernameValidateBeforeCall(username, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for requestToken
* @param tokenRequest token request object (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
token
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call requestTokenCall(TokenRequest tokenRequest, 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 = tokenRequest;
// create path and map variables
String localVarPath = "/token";
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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call requestTokenValidateBeforeCall(TokenRequest tokenRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = requestTokenCall(tokenRequest, _callback);
return localVarCall;
}
/**
*
* Request an authorization token, optionally taken a TokenRequest object to set parameters on the token
* @param tokenRequest token request object (optional)
* @return Token
* @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
token
-
502
Bad Gateway
-
0
error response
-
*/
public Token requestToken(TokenRequest tokenRequest) throws ApiException {
ApiResponse localVarResp = requestTokenWithHttpInfo(tokenRequest);
return localVarResp.getData();
}
/**
*
* Request an authorization token, optionally taken a TokenRequest object to set parameters on the token
* @param tokenRequest token request object (optional)
* @return ApiResponse<Token>
* @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
token
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse requestTokenWithHttpInfo(TokenRequest tokenRequest) throws ApiException {
okhttp3.Call localVarCall = requestTokenValidateBeforeCall(tokenRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Request an authorization token, optionally taken a TokenRequest object to set parameters on the token
* @param tokenRequest token request object (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
token
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call requestTokenAsync(TokenRequest tokenRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = requestTokenValidateBeforeCall(tokenRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for resetUserPassword
* @param user password to update for user requesting update (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
User password updated successfully
-
404
User not found
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call resetUserPasswordCall(ResetUserPasswordRequest user, 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 = user;
// create path and map variables
String localVarPath = "/user/password_reset";
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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call resetUserPasswordValidateBeforeCall(ResetUserPasswordRequest user, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'user' is set
if (user == null) {
throw new ApiException("Missing the required parameter 'user' when calling resetUserPassword(Async)");
}
okhttp3.Call localVarCall = resetUserPasswordCall(user, _callback);
return localVarCall;
}
/**
*
* reset user password
* @param user password to update for user requesting update (required)
* @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
User password updated successfully
-
404
User not found
-
502
Bad Gateway
-
0
error response
-
*/
public void resetUserPassword(ResetUserPasswordRequest user) throws ApiException {
resetUserPasswordWithHttpInfo(user);
}
/**
*
* reset user password
* @param user password to update for user requesting update (required)
* @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
User password updated successfully
-
404
User not found
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse resetUserPasswordWithHttpInfo(ResetUserPasswordRequest user) throws ApiException {
okhttp3.Call localVarCall = resetUserPasswordValidateBeforeCall(user, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* reset user password
* @param user password to update for user requesting update (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
User password updated successfully
-
404
User not found
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call resetUserPasswordAsync(ResetUserPasswordRequest user, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = resetUserPasswordValidateBeforeCall(user, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for revokeToken
* @param token token name or token itself (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
revokation successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call revokeTokenCall(String token, 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 = "/tokens/{token}"
.replaceAll("\\{" + "token" + "\\}", localVarApiClient.escapeString(token.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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call revokeTokenValidateBeforeCall(String token, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling revokeToken(Async)");
}
okhttp3.Call localVarCall = revokeTokenCall(token, _callback);
return localVarCall;
}
/**
*
* revoke an authorization token
* @param token token name or token itself (required)
* @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
revokation successfully
-
502
Bad Gateway
-
0
error response
-
*/
public void revokeToken(String token) throws ApiException {
revokeTokenWithHttpInfo(token);
}
/**
*
* revoke an authorization token
* @param token token name or token itself (required)
* @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
revokation successfully
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse revokeTokenWithHttpInfo(String token) throws ApiException {
okhttp3.Call localVarCall = revokeTokenValidateBeforeCall(token, null);
return localVarApiClient.execute(localVarCall);
}
/**
* (asynchronously)
* revoke an authorization token
* @param token token name or token itself (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
revokation successfully
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call revokeTokenAsync(String token, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = revokeTokenValidateBeforeCall(token, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for tokensGet
* @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
Array of user created non-session tokens
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call tokensGetCall(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 = "/tokens";
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[] { "ApiKeyAuth", "BasicAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call tokensGetValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = tokensGetCall(_callback);
return localVarCall;
}
/**
*
* Fetch a list of user tokens
* @return List<Token>
* @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
Array of user created non-session tokens
-
502
Bad Gateway
-
0
error response
-
*/
public List tokensGet() throws ApiException {
ApiResponse> localVarResp = tokensGetWithHttpInfo();
return localVarResp.getData();
}
/**
*
* Fetch a list of user tokens
* @return ApiResponse<List<Token>>
* @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
Array of user created non-session tokens
-
502
Bad Gateway
-
0
error response
-
*/
public ApiResponse> tokensGetWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = tokensGetValidateBeforeCall(null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* (asynchronously)
* Fetch a list of user tokens
* @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
Array of user created non-session tokens
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call tokensGetAsync(final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = tokensGetValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for tokensSessionGet
* @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
Array of user created session tokens
-
502
Bad Gateway
-
0
error response
-
*/
public okhttp3.Call tokensSessionGetCall(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 = "/tokens/session";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map