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 Identity Service 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.identity.api;
import com.finbourne.identity.ApiCallback;
import com.finbourne.identity.ApiClient;
import com.finbourne.identity.ApiException;
import com.finbourne.identity.ApiResponse;
import com.finbourne.identity.Configuration;
import com.finbourne.identity.Pair;
import com.finbourne.identity.ProgressRequestBody;
import com.finbourne.identity.ProgressResponseBody;
import com.finbourne.identity.extensions.ConfigurationOptions;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.finbourne.identity.model.CreateUserRequest;
import com.finbourne.identity.model.ListUsersResponse;
import com.finbourne.identity.model.LusidProblemDetails;
import com.finbourne.identity.model.LusidValidationProblemDetails;
import com.finbourne.identity.model.TemporaryPassword;
import com.finbourne.identity.model.UpdateUserRequest;
import com.finbourne.identity.model.UpdateUserSchemaRequest;
import com.finbourne.identity.model.UserResponse;
import com.finbourne.identity.model.UserSchemaResponse;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class UsersApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public UsersApi() {
this(Configuration.getDefaultApiClient());
}
public UsersApi(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 createUserCall(CreateUserRequest createUserRequest, Boolean waitForReindex, final ApiCallback _callback) throws ApiException {
return createUserCall(createUserRequest, waitForReindex, _callback, new ConfigurationOptions());
}
private okhttp3.Call createUserCall(CreateUserRequest createUserRequest, Boolean waitForReindex, 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 = createUserRequest;
// create path and map variables
String localVarPath = "/api/users";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (waitForReindex != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("waitForReindex", waitForReindex));
}
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 createUserValidateBeforeCall(CreateUserRequest createUserRequest, Boolean waitForReindex, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'createUserRequest' is set
if (createUserRequest == null) {
throw new ApiException("Missing the required parameter 'createUserRequest' when calling createUser(Async)");
}
return createUserCall(createUserRequest, waitForReindex, _callback, opts);
}
private ApiResponse createUserWithHttpInfo(CreateUserRequest createUserRequest, Boolean waitForReindex) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(createUserRequest, waitForReindex, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse createUserWithHttpInfo(CreateUserRequest createUserRequest, Boolean waitForReindex, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(createUserRequest, waitForReindex, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call createUserAsync(CreateUserRequest createUserRequest, Boolean waitForReindex, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(createUserRequest, waitForReindex, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call createUserAsync(CreateUserRequest createUserRequest, Boolean waitForReindex, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(createUserRequest, waitForReindex, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIcreateUserRequest {
private final CreateUserRequest createUserRequest;
private Boolean waitForReindex;
private APIcreateUserRequest(CreateUserRequest createUserRequest) {
this.createUserRequest = createUserRequest;
}
/**
* Set waitForReindex
* @param waitForReindex Should the request wait until the newly created User is indexed (available in List) before returning (optional, default to false)
* @return APIcreateUserRequest
*/
public APIcreateUserRequest waitForReindex(Boolean waitForReindex) {
this.waitForReindex = waitForReindex;
return this;
}
/**
* Build call for createUser
* @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
Create a new user
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return createUserCall(createUserRequest, waitForReindex, _callback);
}
/**
* Execute createUser request
* @return UserResponse
* @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
Create a new user
-
400
The details of the input related failure
-
0
Error response
-
*/
public UserResponse execute() throws ApiException {
ApiResponse localVarResp = createUserWithHttpInfo(createUserRequest, waitForReindex);
return localVarResp.getData();
}
/**
* Execute createUser request. Use any specified configuration options to override any other configuration for this request only.
* @return UserResponse
* @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
Create a new user
-
400
The details of the input related failure
-
0
Error response
-
*/
public UserResponse execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = createUserWithHttpInfo(createUserRequest, waitForReindex, opts);
return localVarResp.getData();
}
/**
* Execute createUser request with HTTP info returned
* @return ApiResponse<UserResponse>
* @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
Create a new user
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return createUserWithHttpInfo(createUserRequest, waitForReindex);
}
/**
* Execute createUser request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<UserResponse>
* @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
Create a new user
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return createUserWithHttpInfo(createUserRequest, waitForReindex, opts);
}
/**
* Execute createUser 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
Create a new user
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return createUserAsync(createUserRequest, waitForReindex, _callback);
}
/**
* Execute createUser 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
Create a new user
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return createUserAsync(createUserRequest, waitForReindex, _callback, opts);
}
}
/**
* CreateUser: Create User
* Create a new User
* @param createUserRequest Details of the User to be created (required)
* @return APIcreateUserRequest
* @http.response.details
Status Code
Description
Response Headers
201
Create a new user
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIcreateUserRequest createUser(CreateUserRequest createUserRequest) {
return new APIcreateUserRequest(createUserRequest);
}
private okhttp3.Call deleteUserCall(String id, Boolean purge, final ApiCallback _callback) throws ApiException {
return deleteUserCall(id, purge, _callback, new ConfigurationOptions());
}
private okhttp3.Call deleteUserCall(String id, Boolean purge, 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/users/{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 (purge != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("purge", purge));
}
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 deleteUserValidateBeforeCall(String id, Boolean purge, 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 deleteUser(Async)");
}
return deleteUserCall(id, purge, _callback, opts);
}
private ApiResponse deleteUserWithHttpInfo(String id, Boolean purge) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(id, purge, null, new ConfigurationOptions());
return localVarApiClient.execute(localVarCall);
}
private ApiResponse deleteUserWithHttpInfo(String id, Boolean purge, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(id, purge, null, opts);
return localVarApiClient.execute(localVarCall);
}
private okhttp3.Call deleteUserAsync(String id, Boolean purge, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(id, purge, _callback, new ConfigurationOptions());
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
private okhttp3.Call deleteUserAsync(String id, Boolean purge, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(id, purge, _callback, opts);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
public class APIdeleteUserRequest {
private final String id;
private Boolean purge;
private APIdeleteUserRequest(String id) {
this.id = id;
}
/**
* Set purge
* @param purge Whether to purge any trace of the user from the identity provider (will affect audit) (optional)
* @return APIdeleteUserRequest
*/
public APIdeleteUserRequest purge(Boolean purge) {
this.purge = purge;
return this;
}
/**
* Build call for deleteUser
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return deleteUserCall(id, purge, _callback);
}
/**
* Execute deleteUser request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public void execute() throws ApiException {
deleteUserWithHttpInfo(id, purge);
}
/**
* Execute deleteUser request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public void execute(ConfigurationOptions opts) throws ApiException {
deleteUserWithHttpInfo(id, purge, opts);
}
/**
* Execute deleteUser request with HTTP info returned
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return deleteUserWithHttpInfo(id, purge);
}
/**
* Execute deleteUser request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return deleteUserWithHttpInfo(id, purge, opts);
}
/**
* Execute deleteUser request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return deleteUserAsync(id, purge, _callback);
}
/**
* Execute deleteUser request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return deleteUserAsync(id, purge, _callback, opts);
}
}
/**
* DeleteUser: Delete User
* By default the user will be de-provisioned and inactive, however their record will remain in the identity provider for audit purposes. If this is not desirable and removal of all trace of the user is required, the purge parameter can be specified to indicate the details should be purged completely.
* @param id The unique identifier for the user (required)
* @return APIdeleteUserRequest
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIdeleteUserRequest deleteUser(String id) {
return new APIdeleteUserRequest(id);
}
private okhttp3.Call expirePasswordCall(String id, final ApiCallback _callback) throws ApiException {
return expirePasswordCall(id, _callback, new ConfigurationOptions());
}
private okhttp3.Call expirePasswordCall(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/users/{id}/lifecycle/$expirepassword"
.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call expirePasswordValidateBeforeCall(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 expirePassword(Async)");
}
return expirePasswordCall(id, _callback, opts);
}
private ApiResponse expirePasswordWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = expirePasswordValidateBeforeCall(id, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse expirePasswordWithHttpInfo(String id, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = expirePasswordValidateBeforeCall(id, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call expirePasswordAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = expirePasswordValidateBeforeCall(id, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call expirePasswordAsync(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = expirePasswordValidateBeforeCall(id, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIexpirePasswordRequest {
private final String id;
private APIexpirePasswordRequest(String id) {
this.id = id;
}
/**
* Build call for expirePassword
* @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
Reset the user's password
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return expirePasswordCall(id, _callback);
}
/**
* Execute expirePassword request
* @return TemporaryPassword
* @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
Reset the user's password
-
400
The details of the input related failure
-
0
Error response
-
*/
public TemporaryPassword execute() throws ApiException {
ApiResponse localVarResp = expirePasswordWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Execute expirePassword request. Use any specified configuration options to override any other configuration for this request only.
* @return TemporaryPassword
* @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
Reset the user's password
-
400
The details of the input related failure
-
0
Error response
-
*/
public TemporaryPassword execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = expirePasswordWithHttpInfo(id, opts);
return localVarResp.getData();
}
/**
* Execute expirePassword request with HTTP info returned
* @return ApiResponse<TemporaryPassword>
* @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
Reset the user's password
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return expirePasswordWithHttpInfo(id);
}
/**
* Execute expirePassword request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<TemporaryPassword>
* @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
Reset the user's password
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return expirePasswordWithHttpInfo(id, opts);
}
/**
* Execute expirePassword 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
Reset the user's password
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return expirePasswordAsync(id, _callback);
}
/**
* Execute expirePassword 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
Reset the user's password
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return expirePasswordAsync(id, _callback, opts);
}
}
/**
* ExpirePassword: Reset the user's password to a temporary one
* Resets the user's password to a temporary one which is then expired
* @param id The unique identifier for the User having its password reset (required)
* @return APIexpirePasswordRequest
* @http.response.details
Status Code
Description
Response Headers
200
Reset the user's password
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIexpirePasswordRequest expirePassword(String id) {
return new APIexpirePasswordRequest(id);
}
private okhttp3.Call findUsersByIdCall(List id, final ApiCallback _callback) throws ApiException {
return findUsersByIdCall(id, _callback, new ConfigurationOptions());
}
private okhttp3.Call findUsersByIdCall(List 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/directory";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (id != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "id", id));
}
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 findUsersByIdValidateBeforeCall(List 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 findUsersById(Async)");
}
return findUsersByIdCall(id, _callback, opts);
}
private ApiResponse findUsersByIdWithHttpInfo(List id) throws ApiException {
okhttp3.Call localVarCall = findUsersByIdValidateBeforeCall(id, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse findUsersByIdWithHttpInfo(List id, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = findUsersByIdValidateBeforeCall(id, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call findUsersByIdAsync(List id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = findUsersByIdValidateBeforeCall(id, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call findUsersByIdAsync(List id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = findUsersByIdValidateBeforeCall(id, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIfindUsersByIdRequest {
private final List id;
private APIfindUsersByIdRequest(List id) {
this.id = id;
}
/**
* Build call for findUsersById
* @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
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return findUsersByIdCall(id, _callback);
}
/**
* Execute findUsersById request
* @return ListUsersResponse
* @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
-
0
Error response
-
*/
public ListUsersResponse execute() throws ApiException {
ApiResponse localVarResp = findUsersByIdWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Execute findUsersById request. Use any specified configuration options to override any other configuration for this request only.
* @return ListUsersResponse
* @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
-
0
Error response
-
*/
public ListUsersResponse execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = findUsersByIdWithHttpInfo(id, opts);
return localVarResp.getData();
}
/**
* Execute findUsersById request with HTTP info returned
* @return ApiResponse<ListUsersResponse>
* @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
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return findUsersByIdWithHttpInfo(id);
}
/**
* Execute findUsersById request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<ListUsersResponse>
* @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
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return findUsersByIdWithHttpInfo(id, opts);
}
/**
* Execute findUsersById 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
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return findUsersByIdAsync(id, _callback);
}
/**
* Execute findUsersById 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
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return findUsersByIdAsync(id, _callback, opts);
}
}
/**
* FindUsersById: Find users by id endpoint
* Finds a maximum of 50 users by ID
* @param id A list of unique identifiers for the users (required)
* @return APIfindUsersByIdRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIfindUsersByIdRequest findUsersById(List id) {
return new APIfindUsersByIdRequest(id);
}
private okhttp3.Call getUserCall(String id, Boolean includeRoles, final ApiCallback _callback) throws ApiException {
return getUserCall(id, includeRoles, _callback, new ConfigurationOptions());
}
private okhttp3.Call getUserCall(String id, Boolean includeRoles, 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/users/{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 (includeRoles != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeRoles", includeRoles));
}
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 getUserValidateBeforeCall(String id, Boolean includeRoles, 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 getUser(Async)");
}
return getUserCall(id, includeRoles, _callback, opts);
}
private ApiResponse getUserWithHttpInfo(String id, Boolean includeRoles) throws ApiException {
okhttp3.Call localVarCall = getUserValidateBeforeCall(id, includeRoles, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse getUserWithHttpInfo(String id, Boolean includeRoles, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getUserValidateBeforeCall(id, includeRoles, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getUserAsync(String id, Boolean includeRoles, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getUserValidateBeforeCall(id, includeRoles, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call getUserAsync(String id, Boolean includeRoles, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getUserValidateBeforeCall(id, includeRoles, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIgetUserRequest {
private final String id;
private Boolean includeRoles;
private APIgetUserRequest(String id) {
this.id = id;
}
/**
* Set includeRoles
* @param includeRoles Flag indicating that the users roles should be included in the response (optional)
* @return APIgetUserRequest
*/
public APIgetUserRequest includeRoles(Boolean includeRoles) {
this.includeRoles = includeRoles;
return this;
}
/**
* Build call for getUser
* @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
Get the specified user
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getUserCall(id, includeRoles, _callback);
}
/**
* Execute getUser request
* @return UserResponse
* @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
Get the specified user
-
400
The details of the input related failure
-
0
Error response
-
*/
public UserResponse execute() throws ApiException {
ApiResponse localVarResp = getUserWithHttpInfo(id, includeRoles);
return localVarResp.getData();
}
/**
* Execute getUser request. Use any specified configuration options to override any other configuration for this request only.
* @return UserResponse
* @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
Get the specified user
-
400
The details of the input related failure
-
0
Error response
-
*/
public UserResponse execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = getUserWithHttpInfo(id, includeRoles, opts);
return localVarResp.getData();
}
/**
* Execute getUser request with HTTP info returned
* @return ApiResponse<UserResponse>
* @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
Get the specified user
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return getUserWithHttpInfo(id, includeRoles);
}
/**
* Execute getUser request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<UserResponse>
* @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
Get the specified user
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return getUserWithHttpInfo(id, includeRoles, opts);
}
/**
* Execute getUser 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
Get the specified user
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getUserAsync(id, includeRoles, _callback);
}
/**
* Execute getUser 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
Get the specified user
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return getUserAsync(id, includeRoles, _callback, opts);
}
}
/**
* GetUser: Get User
* Get the specified User
* @param id The unique identifier for the User (required)
* @return APIgetUserRequest
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified user
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIgetUserRequest getUser(String id) {
return new APIgetUserRequest(id);
}
private okhttp3.Call getUserSchemaCall(final ApiCallback _callback) throws ApiException {
return getUserSchemaCall( _callback, new ConfigurationOptions());
}
private okhttp3.Call getUserSchemaCall(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/users/schema";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getUserSchemaValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return getUserSchemaCall(_callback, opts);
}
private ApiResponse getUserSchemaWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = getUserSchemaValidateBeforeCall(null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse getUserSchemaWithHttpInfo(ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getUserSchemaValidateBeforeCall(null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getUserSchemaAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getUserSchemaValidateBeforeCall(_callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call getUserSchemaAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getUserSchemaValidateBeforeCall(_callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIgetUserSchemaRequest {
private APIgetUserSchemaRequest() {
}
/**
* Build call for getUserSchema
* @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
Update the User Schema
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getUserSchemaCall(_callback);
}
/**
* Execute getUserSchema request
* @return UserSchemaResponse
* @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
Update the User Schema
-
0
Error response
-
*/
public UserSchemaResponse execute() throws ApiException {
ApiResponse localVarResp = getUserSchemaWithHttpInfo();
return localVarResp.getData();
}
/**
* Execute getUserSchema request. Use any specified configuration options to override any other configuration for this request only.
* @return UserSchemaResponse
* @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
Update the User Schema
-
0
Error response
-
*/
public UserSchemaResponse execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = getUserSchemaWithHttpInfo(opts);
return localVarResp.getData();
}
/**
* Execute getUserSchema request with HTTP info returned
* @return ApiResponse<UserSchemaResponse>
* @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
Update the User Schema
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return getUserSchemaWithHttpInfo();
}
/**
* Execute getUserSchema request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<UserSchemaResponse>
* @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
Update the User Schema
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return getUserSchemaWithHttpInfo(opts);
}
/**
* Execute getUserSchema 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
Update the User Schema
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getUserSchemaAsync(_callback);
}
/**
* Execute getUserSchema 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
Update the User Schema
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return getUserSchemaAsync(_callback, opts);
}
}
/**
* [EXPERIMENTAL] GetUserSchema: Get User Schema
* Get the User Schema
* @return APIgetUserSchemaRequest
* @http.response.details
Status Code
Description
Response Headers
200
Update the User Schema
-
0
Error response
-
*/
public APIgetUserSchemaRequest getUserSchema() {
return new APIgetUserSchemaRequest();
}
private okhttp3.Call listRunnableUsersCall(final ApiCallback _callback) throws ApiException {
return listRunnableUsersCall( _callback, new ConfigurationOptions());
}
private okhttp3.Call listRunnableUsersCall(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/users/$runnable";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call listRunnableUsersValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return listRunnableUsersCall(_callback, opts);
}
private ApiResponse> listRunnableUsersWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = listRunnableUsersValidateBeforeCall(null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse> listRunnableUsersWithHttpInfo(ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listRunnableUsersValidateBeforeCall(null, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listRunnableUsersAsync(final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = listRunnableUsersValidateBeforeCall(_callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call listRunnableUsersAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listRunnableUsersValidateBeforeCall(_callback, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIlistRunnableUsersRequest {
private APIlistRunnableUsersRequest() {
}
/**
* Build call for listRunnableUsers
* @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
List the available runnable users
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return listRunnableUsersCall(_callback);
}
/**
* Execute listRunnableUsers request
* @return List<UserResponse>
* @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
List the available runnable users
-
0
Error response
-
*/
public List execute() throws ApiException {
ApiResponse> localVarResp = listRunnableUsersWithHttpInfo();
return localVarResp.getData();
}
/**
* Execute listRunnableUsers request. Use any specified configuration options to override any other configuration for this request only.
* @return List<UserResponse>
* @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
List the available runnable users
-
0
Error response
-
*/
public List execute(ConfigurationOptions opts) throws ApiException {
ApiResponse> localVarResp = listRunnableUsersWithHttpInfo(opts);
return localVarResp.getData();
}
/**
* Execute listRunnableUsers request with HTTP info returned
* @return ApiResponse<List<UserResponse>>
* @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
List the available runnable users
-
0
Error response
-
*/
public ApiResponse> executeWithHttpInfo() throws ApiException {
return listRunnableUsersWithHttpInfo();
}
/**
* Execute listRunnableUsers request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<List<UserResponse>>
* @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
List the available runnable users
-
0
Error response
-
*/
public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return listRunnableUsersWithHttpInfo(opts);
}
/**
* Execute listRunnableUsers 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
List the available runnable users
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException {
return listRunnableUsersAsync(_callback);
}
/**
* Execute listRunnableUsers 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
List the available runnable users
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
return listRunnableUsersAsync(_callback, opts);
}
}
/**
* [EARLY ACCESS] ListRunnableUsers: List Runable Users
* List the available runnable Users
* @return APIlistRunnableUsersRequest
* @http.response.details
Status Code
Description
Response Headers
200
List the available runnable users
-
0
Error response
-
*/
public APIlistRunnableUsersRequest listRunnableUsers() {
return new APIlistRunnableUsersRequest();
}
private okhttp3.Call listUsersCall(Boolean includeRoles, Boolean includeDeactivated, final ApiCallback _callback) throws ApiException {
return listUsersCall(includeRoles, includeDeactivated, _callback, new ConfigurationOptions());
}
private okhttp3.Call listUsersCall(Boolean includeRoles, Boolean includeDeactivated, 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/users";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (includeRoles != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeRoles", includeRoles));
}
if (includeDeactivated != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeDeactivated", includeDeactivated));
}
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 listUsersValidateBeforeCall(Boolean includeRoles, Boolean includeDeactivated, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return listUsersCall(includeRoles, includeDeactivated, _callback, opts);
}
private ApiResponse> listUsersWithHttpInfo(Boolean includeRoles, Boolean includeDeactivated) throws ApiException {
okhttp3.Call localVarCall = listUsersValidateBeforeCall(includeRoles, includeDeactivated, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse> listUsersWithHttpInfo(Boolean includeRoles, Boolean includeDeactivated, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listUsersValidateBeforeCall(includeRoles, includeDeactivated, null, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listUsersAsync(Boolean includeRoles, Boolean includeDeactivated, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = listUsersValidateBeforeCall(includeRoles, includeDeactivated, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call listUsersAsync(Boolean includeRoles, Boolean includeDeactivated, final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listUsersValidateBeforeCall(includeRoles, includeDeactivated, _callback, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIlistUsersRequest {
private Boolean includeRoles;
private Boolean includeDeactivated;
private APIlistUsersRequest() {
}
/**
* Set includeRoles
* @param includeRoles Flag indicating that the users roles should be included in the response (optional, default to false)
* @return APIlistUsersRequest
*/
public APIlistUsersRequest includeRoles(Boolean includeRoles) {
this.includeRoles = includeRoles;
return this;
}
/**
* Set includeDeactivated
* @param includeDeactivated Include previously deleted (not purged) users (optional, default to false)
* @return APIlistUsersRequest
*/
public APIlistUsersRequest includeDeactivated(Boolean includeDeactivated) {
this.includeDeactivated = includeDeactivated;
return this;
}
/**
* Build call for listUsers
* @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
List the available users
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return listUsersCall(includeRoles, includeDeactivated, _callback);
}
/**
* Execute listUsers request
* @return List<UserResponse>
* @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
List the available users
-
400
The details of the input related failure
-
0
Error response
-
*/
public List execute() throws ApiException {
ApiResponse> localVarResp = listUsersWithHttpInfo(includeRoles, includeDeactivated);
return localVarResp.getData();
}
/**
* Execute listUsers request. Use any specified configuration options to override any other configuration for this request only.
* @return List<UserResponse>
* @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
List the available users
-
400
The details of the input related failure
-
0
Error response
-
*/
public List execute(ConfigurationOptions opts) throws ApiException {
ApiResponse> localVarResp = listUsersWithHttpInfo(includeRoles, includeDeactivated, opts);
return localVarResp.getData();
}
/**
* Execute listUsers request with HTTP info returned
* @return ApiResponse<List<UserResponse>>
* @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
List the available users
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse> executeWithHttpInfo() throws ApiException {
return listUsersWithHttpInfo(includeRoles, includeDeactivated);
}
/**
* Execute listUsers request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<List<UserResponse>>
* @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
List the available users
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return listUsersWithHttpInfo(includeRoles, includeDeactivated, opts);
}
/**
* Execute listUsers 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
List the available users
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException {
return listUsersAsync(includeRoles, includeDeactivated, _callback);
}
/**
* Execute listUsers 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
List the available users
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
return listUsersAsync(includeRoles, includeDeactivated, _callback, opts);
}
}
/**
* ListUsers: List Users
* List the available Users
* @return APIlistUsersRequest
* @http.response.details
Status Code
Description
Response Headers
200
List the available users
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIlistUsersRequest listUsers() {
return new APIlistUsersRequest();
}
private okhttp3.Call resetFactorsCall(String id, final ApiCallback _callback) throws ApiException {
return resetFactorsCall(id, _callback, new ConfigurationOptions());
}
private okhttp3.Call resetFactorsCall(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/users/{id}/lifecycle/$resetfactors"
.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call resetFactorsValidateBeforeCall(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 resetFactors(Async)");
}
return resetFactorsCall(id, _callback, opts);
}
private ApiResponse resetFactorsWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = resetFactorsValidateBeforeCall(id, null, new ConfigurationOptions());
return localVarApiClient.execute(localVarCall);
}
private ApiResponse resetFactorsWithHttpInfo(String id, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = resetFactorsValidateBeforeCall(id, null, opts);
return localVarApiClient.execute(localVarCall);
}
private okhttp3.Call resetFactorsAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = resetFactorsValidateBeforeCall(id, _callback, new ConfigurationOptions());
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
private okhttp3.Call resetFactorsAsync(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = resetFactorsValidateBeforeCall(id, _callback, opts);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
public class APIresetFactorsRequest {
private final String id;
private APIresetFactorsRequest(String id) {
this.id = id;
}
/**
* Build call for resetFactors
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return resetFactorsCall(id, _callback);
}
/**
* Execute resetFactors request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public void execute() throws ApiException {
resetFactorsWithHttpInfo(id);
}
/**
* Execute resetFactors request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public void execute(ConfigurationOptions opts) throws ApiException {
resetFactorsWithHttpInfo(id, opts);
}
/**
* Execute resetFactors request with HTTP info returned
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return resetFactorsWithHttpInfo(id);
}
/**
* Execute resetFactors request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return resetFactorsWithHttpInfo(id, opts);
}
/**
* Execute resetFactors request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return resetFactorsAsync(id, _callback);
}
/**
* Execute resetFactors request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return resetFactorsAsync(id, _callback, opts);
}
}
/**
* ResetFactors: Reset MFA factors
* Resets the MFA factors of the specified User
* @param id The unique identifier for the User having their MFA factors reset (required)
* @return APIresetFactorsRequest
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIresetFactorsRequest resetFactors(String id) {
return new APIresetFactorsRequest(id);
}
private okhttp3.Call resetPasswordCall(String id, final ApiCallback _callback) throws ApiException {
return resetPasswordCall(id, _callback, new ConfigurationOptions());
}
private okhttp3.Call resetPasswordCall(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/users/{id}/lifecycle/$resetpassword"
.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call resetPasswordValidateBeforeCall(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 resetPassword(Async)");
}
return resetPasswordCall(id, _callback, opts);
}
private ApiResponse resetPasswordWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = resetPasswordValidateBeforeCall(id, null, new ConfigurationOptions());
return localVarApiClient.execute(localVarCall);
}
private ApiResponse resetPasswordWithHttpInfo(String id, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = resetPasswordValidateBeforeCall(id, null, opts);
return localVarApiClient.execute(localVarCall);
}
private okhttp3.Call resetPasswordAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = resetPasswordValidateBeforeCall(id, _callback, new ConfigurationOptions());
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
private okhttp3.Call resetPasswordAsync(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = resetPasswordValidateBeforeCall(id, _callback, opts);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
public class APIresetPasswordRequest {
private final String id;
private APIresetPasswordRequest(String id) {
this.id = id;
}
/**
* Build call for resetPassword
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return resetPasswordCall(id, _callback);
}
/**
* Execute resetPassword request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public void execute() throws ApiException {
resetPasswordWithHttpInfo(id);
}
/**
* Execute resetPassword request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public void execute(ConfigurationOptions opts) throws ApiException {
resetPasswordWithHttpInfo(id, opts);
}
/**
* Execute resetPassword request with HTTP info returned
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return resetPasswordWithHttpInfo(id);
}
/**
* Execute resetPassword request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return resetPasswordWithHttpInfo(id, opts);
}
/**
* Execute resetPassword request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return resetPasswordAsync(id, _callback);
}
/**
* Execute resetPassword request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return resetPasswordAsync(id, _callback, opts);
}
}
/**
* ResetPassword: Reset Password
* Resets the password of the specified User
* @param id The unique identifier for the User having their password reset (required)
* @return APIresetPasswordRequest
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIresetPasswordRequest resetPassword(String id) {
return new APIresetPasswordRequest(id);
}
private okhttp3.Call sendActivationEmailCall(String id, final ApiCallback _callback) throws ApiException {
return sendActivationEmailCall(id, _callback, new ConfigurationOptions());
}
private okhttp3.Call sendActivationEmailCall(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/users/{id}/lifecycle/$activate"
.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call sendActivationEmailValidateBeforeCall(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 sendActivationEmail(Async)");
}
return sendActivationEmailCall(id, _callback, opts);
}
private ApiResponse sendActivationEmailWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = sendActivationEmailValidateBeforeCall(id, null, new ConfigurationOptions());
return localVarApiClient.execute(localVarCall);
}
private ApiResponse sendActivationEmailWithHttpInfo(String id, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = sendActivationEmailValidateBeforeCall(id, null, opts);
return localVarApiClient.execute(localVarCall);
}
private okhttp3.Call sendActivationEmailAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = sendActivationEmailValidateBeforeCall(id, _callback, new ConfigurationOptions());
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
private okhttp3.Call sendActivationEmailAsync(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = sendActivationEmailValidateBeforeCall(id, _callback, opts);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
public class APIsendActivationEmailRequest {
private final String id;
private APIsendActivationEmailRequest(String id) {
this.id = id;
}
/**
* Build call for sendActivationEmail
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details