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.
/*
* lakeFS API
* lakeFS HTTP API
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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.lakefs.clients.api;
import io.lakefs.clients.api.ApiCallback;
import io.lakefs.clients.api.ApiClient;
import io.lakefs.clients.api.ApiException;
import io.lakefs.clients.api.ApiResponse;
import io.lakefs.clients.api.Configuration;
import io.lakefs.clients.api.Pair;
import io.lakefs.clients.api.ProgressRequestBody;
import io.lakefs.clients.api.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import io.lakefs.clients.api.model.ACL;
import io.lakefs.clients.api.model.AuthenticationToken;
import io.lakefs.clients.api.model.Credentials;
import io.lakefs.clients.api.model.CredentialsList;
import io.lakefs.clients.api.model.CredentialsWithSecret;
import io.lakefs.clients.api.model.CurrentUser;
import io.lakefs.clients.api.model.Error;
import io.lakefs.clients.api.model.ErrorNoACL;
import io.lakefs.clients.api.model.ExternalLoginInformation;
import io.lakefs.clients.api.model.ExternalPrincipal;
import io.lakefs.clients.api.model.ExternalPrincipalCreation;
import io.lakefs.clients.api.model.ExternalPrincipalList;
import io.lakefs.clients.api.model.Group;
import io.lakefs.clients.api.model.GroupCreation;
import io.lakefs.clients.api.model.GroupList;
import io.lakefs.clients.api.model.LoginInformation;
import io.lakefs.clients.api.model.Policy;
import io.lakefs.clients.api.model.PolicyList;
import io.lakefs.clients.api.model.User;
import io.lakefs.clients.api.model.UserCreation;
import io.lakefs.clients.api.model.UserList;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AuthApi {
private ApiClient localVarApiClient;
public AuthApi() {
this(Configuration.getDefaultApiClient());
}
public AuthApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for addGroupMembership
* @param groupId (required)
* @param userId (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
201
membership added successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call addGroupMembershipCall(String groupId, String userId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/groups/{groupId}/members/{userId}"
.replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()))
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call addGroupMembershipValidateBeforeCall(String groupId, String userId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling addGroupMembership(Async)");
}
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling addGroupMembership(Async)");
}
okhttp3.Call localVarCall = addGroupMembershipCall(groupId, userId, _callback);
return localVarCall;
}
/**
* add group membership
*
* @param groupId (required)
* @param userId (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
201
membership added successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void addGroupMembership(String groupId, String userId) throws ApiException {
addGroupMembershipWithHttpInfo(groupId, userId);
}
/**
* add group membership
*
* @param groupId (required)
* @param userId (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
201
membership added successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse addGroupMembershipWithHttpInfo(String groupId, String userId) throws ApiException {
okhttp3.Call localVarCall = addGroupMembershipValidateBeforeCall(groupId, userId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* add group membership (asynchronously)
*
* @param groupId (required)
* @param userId (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
201
membership added successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call addGroupMembershipAsync(String groupId, String userId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = addGroupMembershipValidateBeforeCall(groupId, userId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for attachPolicyToGroup
* @param groupId (required)
* @param policyId (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
201
policy attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call attachPolicyToGroupCall(String groupId, String policyId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/groups/{groupId}/policies/{policyId}"
.replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()))
.replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call attachPolicyToGroupValidateBeforeCall(String groupId, String policyId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling attachPolicyToGroup(Async)");
}
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling attachPolicyToGroup(Async)");
}
okhttp3.Call localVarCall = attachPolicyToGroupCall(groupId, policyId, _callback);
return localVarCall;
}
/**
* attach policy to group
*
* @param groupId (required)
* @param policyId (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
201
policy attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void attachPolicyToGroup(String groupId, String policyId) throws ApiException {
attachPolicyToGroupWithHttpInfo(groupId, policyId);
}
/**
* attach policy to group
*
* @param groupId (required)
* @param policyId (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
201
policy attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse attachPolicyToGroupWithHttpInfo(String groupId, String policyId) throws ApiException {
okhttp3.Call localVarCall = attachPolicyToGroupValidateBeforeCall(groupId, policyId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* attach policy to group (asynchronously)
*
* @param groupId (required)
* @param policyId (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
201
policy attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call attachPolicyToGroupAsync(String groupId, String policyId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = attachPolicyToGroupValidateBeforeCall(groupId, policyId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for attachPolicyToUser
* @param userId (required)
* @param policyId (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
201
policy attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call attachPolicyToUserCall(String userId, String policyId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/users/{userId}/policies/{policyId}"
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()))
.replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call attachPolicyToUserValidateBeforeCall(String userId, String policyId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling attachPolicyToUser(Async)");
}
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling attachPolicyToUser(Async)");
}
okhttp3.Call localVarCall = attachPolicyToUserCall(userId, policyId, _callback);
return localVarCall;
}
/**
* attach policy to user
*
* @param userId (required)
* @param policyId (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
201
policy attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void attachPolicyToUser(String userId, String policyId) throws ApiException {
attachPolicyToUserWithHttpInfo(userId, policyId);
}
/**
* attach policy to user
*
* @param userId (required)
* @param policyId (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
201
policy attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse attachPolicyToUserWithHttpInfo(String userId, String policyId) throws ApiException {
okhttp3.Call localVarCall = attachPolicyToUserValidateBeforeCall(userId, policyId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* attach policy to user (asynchronously)
*
* @param userId (required)
* @param policyId (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
201
policy attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call attachPolicyToUserAsync(String userId, String policyId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = attachPolicyToUserValidateBeforeCall(userId, policyId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for createCredentials
* @param userId (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
201
credentials
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createCredentialsCall(String userId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/users/{userId}/credentials"
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createCredentialsValidateBeforeCall(String userId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling createCredentials(Async)");
}
okhttp3.Call localVarCall = createCredentialsCall(userId, _callback);
return localVarCall;
}
/**
* create credentials
*
* @param userId (required)
* @return CredentialsWithSecret
* @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
credentials
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public CredentialsWithSecret createCredentials(String userId) throws ApiException {
ApiResponse localVarResp = createCredentialsWithHttpInfo(userId);
return localVarResp.getData();
}
/**
* create credentials
*
* @param userId (required)
* @return ApiResponse<CredentialsWithSecret>
* @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
credentials
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse createCredentialsWithHttpInfo(String userId) throws ApiException {
okhttp3.Call localVarCall = createCredentialsValidateBeforeCall(userId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* create credentials (asynchronously)
*
* @param userId (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
201
credentials
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createCredentialsAsync(String userId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createCredentialsValidateBeforeCall(userId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createGroup
* @param groupCreation (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
201
group
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createGroupCall(GroupCreation groupCreation, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = groupCreation;
// create path and map variables
String localVarPath = "/auth/groups";
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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createGroupValidateBeforeCall(GroupCreation groupCreation, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createGroupCall(groupCreation, _callback);
return localVarCall;
}
/**
* create group
*
* @param groupCreation (optional)
* @return Group
* @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
group
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public Group createGroup(GroupCreation groupCreation) throws ApiException {
ApiResponse localVarResp = createGroupWithHttpInfo(groupCreation);
return localVarResp.getData();
}
/**
* create group
*
* @param groupCreation (optional)
* @return ApiResponse<Group>
* @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
group
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse createGroupWithHttpInfo(GroupCreation groupCreation) throws ApiException {
okhttp3.Call localVarCall = createGroupValidateBeforeCall(groupCreation, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* create group (asynchronously)
*
* @param groupCreation (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
201
group
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createGroupAsync(GroupCreation groupCreation, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createGroupValidateBeforeCall(groupCreation, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createPolicy
* @param policy (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
201
policy
-
400
Validation Error
-
401
Unauthorized
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createPolicyCall(Policy policy, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = policy;
// create path and map variables
String localVarPath = "/auth/policies";
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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createPolicyValidateBeforeCall(Policy policy, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'policy' is set
if (policy == null) {
throw new ApiException("Missing the required parameter 'policy' when calling createPolicy(Async)");
}
okhttp3.Call localVarCall = createPolicyCall(policy, _callback);
return localVarCall;
}
/**
* create policy
*
* @param policy (required)
* @return Policy
* @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
policy
-
400
Validation Error
-
401
Unauthorized
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public Policy createPolicy(Policy policy) throws ApiException {
ApiResponse localVarResp = createPolicyWithHttpInfo(policy);
return localVarResp.getData();
}
/**
* create policy
*
* @param policy (required)
* @return ApiResponse<Policy>
* @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
policy
-
400
Validation Error
-
401
Unauthorized
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse createPolicyWithHttpInfo(Policy policy) throws ApiException {
okhttp3.Call localVarCall = createPolicyValidateBeforeCall(policy, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* create policy (asynchronously)
*
* @param policy (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
201
policy
-
400
Validation Error
-
401
Unauthorized
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createPolicyAsync(Policy policy, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createPolicyValidateBeforeCall(policy, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createUser
* @param userCreation (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
201
user
-
400
validation error
-
401
Unauthorized
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createUserCall(UserCreation userCreation, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = userCreation;
// create path and map variables
String localVarPath = "/auth/users";
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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createUserValidateBeforeCall(UserCreation userCreation, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createUserCall(userCreation, _callback);
return localVarCall;
}
/**
* create user
*
* @param userCreation (optional)
* @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
201
user
-
400
validation error
-
401
Unauthorized
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public User createUser(UserCreation userCreation) throws ApiException {
ApiResponse localVarResp = createUserWithHttpInfo(userCreation);
return localVarResp.getData();
}
/**
* create user
*
* @param userCreation (optional)
* @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
201
user
-
400
validation error
-
401
Unauthorized
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse createUserWithHttpInfo(UserCreation userCreation) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(userCreation, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* create user (asynchronously)
*
* @param userCreation (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
201
user
-
400
validation error
-
401
Unauthorized
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createUserAsync(UserCreation userCreation, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createUserValidateBeforeCall(userCreation, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createUserExternalPrincipal
* @param userId (required)
* @param principalId (required)
* @param externalPrincipalCreation (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
201
external principal attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createUserExternalPrincipalCall(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = externalPrincipalCreation;
// create path and map variables
String localVarPath = "/auth/users/{userId}/external/principals"
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (principalId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("principalId", principalId));
}
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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createUserExternalPrincipalValidateBeforeCall(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling createUserExternalPrincipal(Async)");
}
// verify the required parameter 'principalId' is set
if (principalId == null) {
throw new ApiException("Missing the required parameter 'principalId' when calling createUserExternalPrincipal(Async)");
}
okhttp3.Call localVarCall = createUserExternalPrincipalCall(userId, principalId, externalPrincipalCreation, _callback);
return localVarCall;
}
/**
* attach external principal to user
*
* @param userId (required)
* @param principalId (required)
* @param externalPrincipalCreation (optional)
* @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
external principal attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public void createUserExternalPrincipal(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation) throws ApiException {
createUserExternalPrincipalWithHttpInfo(userId, principalId, externalPrincipalCreation);
}
/**
* attach external principal to user
*
* @param userId (required)
* @param principalId (required)
* @param externalPrincipalCreation (optional)
* @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
201
external principal attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse createUserExternalPrincipalWithHttpInfo(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation) throws ApiException {
okhttp3.Call localVarCall = createUserExternalPrincipalValidateBeforeCall(userId, principalId, externalPrincipalCreation, null);
return localVarApiClient.execute(localVarCall);
}
/**
* attach external principal to user (asynchronously)
*
* @param userId (required)
* @param principalId (required)
* @param externalPrincipalCreation (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
201
external principal attached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
409
Resource Conflicts With Target
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call createUserExternalPrincipalAsync(String userId, String principalId, ExternalPrincipalCreation externalPrincipalCreation, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createUserExternalPrincipalValidateBeforeCall(userId, principalId, externalPrincipalCreation, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteCredentials
* @param userId (required)
* @param accessKeyId (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
credentials deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteCredentialsCall(String userId, String accessKeyId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/users/{userId}/credentials/{accessKeyId}"
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()))
.replaceAll("\\{" + "accessKeyId" + "\\}", localVarApiClient.escapeString(accessKeyId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteCredentialsValidateBeforeCall(String userId, String accessKeyId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling deleteCredentials(Async)");
}
// verify the required parameter 'accessKeyId' is set
if (accessKeyId == null) {
throw new ApiException("Missing the required parameter 'accessKeyId' when calling deleteCredentials(Async)");
}
okhttp3.Call localVarCall = deleteCredentialsCall(userId, accessKeyId, _callback);
return localVarCall;
}
/**
* delete credentials
*
* @param userId (required)
* @param accessKeyId (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
credentials deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void deleteCredentials(String userId, String accessKeyId) throws ApiException {
deleteCredentialsWithHttpInfo(userId, accessKeyId);
}
/**
* delete credentials
*
* @param userId (required)
* @param accessKeyId (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
credentials deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse deleteCredentialsWithHttpInfo(String userId, String accessKeyId) throws ApiException {
okhttp3.Call localVarCall = deleteCredentialsValidateBeforeCall(userId, accessKeyId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* delete credentials (asynchronously)
*
* @param userId (required)
* @param accessKeyId (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
credentials deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteCredentialsAsync(String userId, String accessKeyId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteCredentialsValidateBeforeCall(userId, accessKeyId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteGroup
* @param groupId (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
group deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteGroupCall(String groupId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/groups/{groupId}"
.replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteGroupValidateBeforeCall(String groupId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling deleteGroup(Async)");
}
okhttp3.Call localVarCall = deleteGroupCall(groupId, _callback);
return localVarCall;
}
/**
* delete group
*
* @param groupId (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
group deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void deleteGroup(String groupId) throws ApiException {
deleteGroupWithHttpInfo(groupId);
}
/**
* delete group
*
* @param groupId (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
group deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse deleteGroupWithHttpInfo(String groupId) throws ApiException {
okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* delete group (asynchronously)
*
* @param groupId (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
group deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteGroupAsync(String groupId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteGroupValidateBeforeCall(groupId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteGroupMembership
* @param groupId (required)
* @param userId (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
membership deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteGroupMembershipCall(String groupId, String userId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/groups/{groupId}/members/{userId}"
.replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()))
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteGroupMembershipValidateBeforeCall(String groupId, String userId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling deleteGroupMembership(Async)");
}
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling deleteGroupMembership(Async)");
}
okhttp3.Call localVarCall = deleteGroupMembershipCall(groupId, userId, _callback);
return localVarCall;
}
/**
* delete group membership
*
* @param groupId (required)
* @param userId (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
membership deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void deleteGroupMembership(String groupId, String userId) throws ApiException {
deleteGroupMembershipWithHttpInfo(groupId, userId);
}
/**
* delete group membership
*
* @param groupId (required)
* @param userId (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
membership deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse deleteGroupMembershipWithHttpInfo(String groupId, String userId) throws ApiException {
okhttp3.Call localVarCall = deleteGroupMembershipValidateBeforeCall(groupId, userId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* delete group membership (asynchronously)
*
* @param groupId (required)
* @param userId (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
membership deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteGroupMembershipAsync(String groupId, String userId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteGroupMembershipValidateBeforeCall(groupId, userId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deletePolicy
* @param policyId (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
policy deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deletePolicyCall(String policyId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/policies/{policyId}"
.replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deletePolicyValidateBeforeCall(String policyId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling deletePolicy(Async)");
}
okhttp3.Call localVarCall = deletePolicyCall(policyId, _callback);
return localVarCall;
}
/**
* delete policy
*
* @param policyId (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
policy deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void deletePolicy(String policyId) throws ApiException {
deletePolicyWithHttpInfo(policyId);
}
/**
* delete policy
*
* @param policyId (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
policy deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse deletePolicyWithHttpInfo(String policyId) throws ApiException {
okhttp3.Call localVarCall = deletePolicyValidateBeforeCall(policyId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* delete policy (asynchronously)
*
* @param policyId (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
policy deleted successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deletePolicyAsync(String policyId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deletePolicyValidateBeforeCall(policyId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteUser
* @param userId (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 successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteUserCall(String userId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/users/{userId}"
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteUserValidateBeforeCall(String userId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling deleteUser(Async)");
}
okhttp3.Call localVarCall = deleteUserCall(userId, _callback);
return localVarCall;
}
/**
* delete user
*
* @param userId (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 successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void deleteUser(String userId) throws ApiException {
deleteUserWithHttpInfo(userId);
}
/**
* delete user
*
* @param userId (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 successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse deleteUserWithHttpInfo(String userId) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* delete user (asynchronously)
*
* @param userId (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 successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteUserAsync(String userId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteUserValidateBeforeCall(userId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for deleteUserExternalPrincipal
* @param userId (required)
* @param principalId (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
external principal detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteUserExternalPrincipalCall(String userId, String principalId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/users/{userId}/external/principals"
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (principalId != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("principalId", principalId));
}
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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteUserExternalPrincipalValidateBeforeCall(String userId, String principalId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling deleteUserExternalPrincipal(Async)");
}
// verify the required parameter 'principalId' is set
if (principalId == null) {
throw new ApiException("Missing the required parameter 'principalId' when calling deleteUserExternalPrincipal(Async)");
}
okhttp3.Call localVarCall = deleteUserExternalPrincipalCall(userId, principalId, _callback);
return localVarCall;
}
/**
* delete external principal from user
*
* @param userId (required)
* @param principalId (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
external principal detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void deleteUserExternalPrincipal(String userId, String principalId) throws ApiException {
deleteUserExternalPrincipalWithHttpInfo(userId, principalId);
}
/**
* delete external principal from user
*
* @param userId (required)
* @param principalId (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
external principal detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse deleteUserExternalPrincipalWithHttpInfo(String userId, String principalId) throws ApiException {
okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* delete external principal from user (asynchronously)
*
* @param userId (required)
* @param principalId (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
external principal detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call deleteUserExternalPrincipalAsync(String userId, String principalId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteUserExternalPrincipalValidateBeforeCall(userId, principalId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for detachPolicyFromGroup
* @param groupId (required)
* @param policyId (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
policy detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call detachPolicyFromGroupCall(String groupId, String policyId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/groups/{groupId}/policies/{policyId}"
.replaceAll("\\{" + "groupId" + "\\}", localVarApiClient.escapeString(groupId.toString()))
.replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call detachPolicyFromGroupValidateBeforeCall(String groupId, String policyId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'groupId' is set
if (groupId == null) {
throw new ApiException("Missing the required parameter 'groupId' when calling detachPolicyFromGroup(Async)");
}
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling detachPolicyFromGroup(Async)");
}
okhttp3.Call localVarCall = detachPolicyFromGroupCall(groupId, policyId, _callback);
return localVarCall;
}
/**
* detach policy from group
*
* @param groupId (required)
* @param policyId (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
policy detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void detachPolicyFromGroup(String groupId, String policyId) throws ApiException {
detachPolicyFromGroupWithHttpInfo(groupId, policyId);
}
/**
* detach policy from group
*
* @param groupId (required)
* @param policyId (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
policy detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse detachPolicyFromGroupWithHttpInfo(String groupId, String policyId) throws ApiException {
okhttp3.Call localVarCall = detachPolicyFromGroupValidateBeforeCall(groupId, policyId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* detach policy from group (asynchronously)
*
* @param groupId (required)
* @param policyId (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
policy detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call detachPolicyFromGroupAsync(String groupId, String policyId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = detachPolicyFromGroupValidateBeforeCall(groupId, policyId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for detachPolicyFromUser
* @param userId (required)
* @param policyId (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
policy detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call detachPolicyFromUserCall(String userId, String policyId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/users/{userId}/policies/{policyId}"
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()))
.replaceAll("\\{" + "policyId" + "\\}", localVarApiClient.escapeString(policyId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call detachPolicyFromUserValidateBeforeCall(String userId, String policyId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling detachPolicyFromUser(Async)");
}
// verify the required parameter 'policyId' is set
if (policyId == null) {
throw new ApiException("Missing the required parameter 'policyId' when calling detachPolicyFromUser(Async)");
}
okhttp3.Call localVarCall = detachPolicyFromUserCall(userId, policyId, _callback);
return localVarCall;
}
/**
* detach policy from user
*
* @param userId (required)
* @param policyId (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
policy detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public void detachPolicyFromUser(String userId, String policyId) throws ApiException {
detachPolicyFromUserWithHttpInfo(userId, policyId);
}
/**
* detach policy from user
*
* @param userId (required)
* @param policyId (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
policy detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse detachPolicyFromUserWithHttpInfo(String userId, String policyId) throws ApiException {
okhttp3.Call localVarCall = detachPolicyFromUserValidateBeforeCall(userId, policyId, null);
return localVarApiClient.execute(localVarCall);
}
/**
* detach policy from user (asynchronously)
*
* @param userId (required)
* @param policyId (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
policy detached successfully
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call detachPolicyFromUserAsync(String userId, String policyId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = detachPolicyFromUserValidateBeforeCall(userId, policyId, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for externalPrincipalLogin
* @param externalLoginInformation (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
successful external login
-
400
Bad Request
-
401
Unauthorized
-
403
Forbidden
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call externalPrincipalLoginCall(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = externalLoginInformation;
// create path and map variables
String localVarPath = "/auth/external/principal/login";
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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call externalPrincipalLoginValidateBeforeCall(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = externalPrincipalLoginCall(externalLoginInformation, _callback);
return localVarCall;
}
/**
* perform a login using an external authenticator
*
* @param externalLoginInformation (optional)
* @return AuthenticationToken
* @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
successful external login
-
400
Bad Request
-
401
Unauthorized
-
403
Forbidden
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public AuthenticationToken externalPrincipalLogin(ExternalLoginInformation externalLoginInformation) throws ApiException {
ApiResponse localVarResp = externalPrincipalLoginWithHttpInfo(externalLoginInformation);
return localVarResp.getData();
}
/**
* perform a login using an external authenticator
*
* @param externalLoginInformation (optional)
* @return ApiResponse<AuthenticationToken>
* @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
successful external login
-
400
Bad Request
-
401
Unauthorized
-
403
Forbidden
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse externalPrincipalLoginWithHttpInfo(ExternalLoginInformation externalLoginInformation) throws ApiException {
okhttp3.Call localVarCall = externalPrincipalLoginValidateBeforeCall(externalLoginInformation, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* perform a login using an external authenticator (asynchronously)
*
* @param externalLoginInformation (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
successful external login
-
400
Bad Request
-
401
Unauthorized
-
403
Forbidden
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call externalPrincipalLoginAsync(ExternalLoginInformation externalLoginInformation, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = externalPrincipalLoginValidateBeforeCall(externalLoginInformation, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getCredentials
* @param userId (required)
* @param accessKeyId (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
credentials
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call getCredentialsCall(String userId, String accessKeyId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/auth/users/{userId}/credentials/{accessKeyId}"
.replaceAll("\\{" + "userId" + "\\}", localVarApiClient.escapeString(userId.toString()))
.replaceAll("\\{" + "accessKeyId" + "\\}", localVarApiClient.escapeString(accessKeyId.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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getCredentialsValidateBeforeCall(String userId, String accessKeyId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'userId' is set
if (userId == null) {
throw new ApiException("Missing the required parameter 'userId' when calling getCredentials(Async)");
}
// verify the required parameter 'accessKeyId' is set
if (accessKeyId == null) {
throw new ApiException("Missing the required parameter 'accessKeyId' when calling getCredentials(Async)");
}
okhttp3.Call localVarCall = getCredentialsCall(userId, accessKeyId, _callback);
return localVarCall;
}
/**
* get credentials
*
* @param userId (required)
* @param accessKeyId (required)
* @return Credentials
* @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
credentials
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public Credentials getCredentials(String userId, String accessKeyId) throws ApiException {
ApiResponse localVarResp = getCredentialsWithHttpInfo(userId, accessKeyId);
return localVarResp.getData();
}
/**
* get credentials
*
* @param userId (required)
* @param accessKeyId (required)
* @return ApiResponse<Credentials>
* @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
credentials
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public ApiResponse getCredentialsWithHttpInfo(String userId, String accessKeyId) throws ApiException {
okhttp3.Call localVarCall = getCredentialsValidateBeforeCall(userId, accessKeyId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* get credentials (asynchronously)
*
* @param userId (required)
* @param accessKeyId (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
credentials
-
401
Unauthorized
-
404
Resource Not Found
-
420
too many requests
-
0
Internal Server Error
-
*/
public okhttp3.Call getCredentialsAsync(String userId, String accessKeyId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCredentialsValidateBeforeCall(userId, accessKeyId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getCurrentUser
* @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
-
*/
public okhttp3.Call getCurrentUserCall(final ApiCallback _callback) throws ApiException {
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);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getCurrentUserValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCurrentUserCall(_callback);
return localVarCall;
}
/**
* get current user
*
* @return CurrentUser
* @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
-
*/
public CurrentUser getCurrentUser() throws ApiException {
ApiResponse localVarResp = getCurrentUserWithHttpInfo();
return localVarResp.getData();
}
/**
* get current user
*
* @return ApiResponse<CurrentUser>
* @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
-
*/
public ApiResponse getCurrentUserWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = getCurrentUserValidateBeforeCall(null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* get current user (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
user
-
*/
public okhttp3.Call getCurrentUserAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCurrentUserValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getExternalPrincipal
* @param principalId (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