All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tiledb.cloud.rest_api.api.OrganizationApi Maven / Gradle / Ivy

The newest version!
/*
 * TileDB Storage Platform API
 * TileDB Storage Platform REST API
 *
 * The version of the OpenAPI document: 2.2.19
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.tiledb.cloud.rest_api.api;

import io.tiledb.cloud.rest_api.ApiCallback;
import io.tiledb.cloud.rest_api.model.SSODomainConfig;
import io.tiledb.cloud.rest_api.ApiClient;
import io.tiledb.cloud.rest_api.ApiException;
import io.tiledb.cloud.rest_api.ApiResponse;
import io.tiledb.cloud.rest_api.Configuration;
import io.tiledb.cloud.rest_api.Pair;

import com.google.gson.reflect.TypeToken;


import io.tiledb.cloud.rest_api.model.AWSAccessCredentials;
import io.tiledb.cloud.rest_api.model.DomainCheckResult;
import io.tiledb.cloud.rest_api.model.Organization;
import io.tiledb.cloud.rest_api.model.OrganizationUser;
import io.tiledb.cloud.rest_api.model.SSODomainConfigResponse;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class OrganizationApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public OrganizationApi() {
        this(Configuration.getDefaultApiClient());
    }

    public OrganizationApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    /**
     * Build call for addAWSAccessCredentials
     * @param namespace namespace (required)
     * @param awsAccessCredentials aws access credentials to store for a namespace (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = awsAccessCredentials; // create path and map variables String localVarPath = "/credentials/{namespace}/aws" .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling addAWSAccessCredentials(Async)"); } // verify the required parameter 'awsAccessCredentials' is set if (awsAccessCredentials == null) { throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling addAWSAccessCredentials(Async)"); } okhttp3.Call localVarCall = addAWSAccessCredentialsCall(namespace, awsAccessCredentials, _callback); return localVarCall; } /** * * Add aws keys * @param namespace namespace (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { addAWSAccessCredentialsWithHttpInfo(namespace, awsAccessCredentials); } /** * * Add aws keys * @param namespace namespace (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, AWSAccessCredentials awsAccessCredentials) throws ApiException { okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Add aws keys * @param namespace namespace (required) * @param awsAccessCredentials aws access credentials to store for a namespace (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addAWSAccessCredentialsValidateBeforeCall(namespace, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for addUserToOrganization * @param organization organization name (required) * @param user user to add (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = user; // create path and map variables String localVarPath = "/organizations/{organization}/user" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call addUserToOrganizationValidateBeforeCall(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling addUserToOrganization(Async)"); } // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling addUserToOrganization(Async)"); } okhttp3.Call localVarCall = addUserToOrganizationCall(organization, user, _callback); return localVarCall; } /** * * add a user to an organization * @param organization organization name (required) * @param user user to add (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ public void addUserToOrganization(String organization, OrganizationUser user) throws ApiException { addUserToOrganizationWithHttpInfo(organization, user); } /** * * add a user to an organization * @param organization organization name (required) * @param user user to add (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ public ApiResponse addUserToOrganizationWithHttpInfo(String organization, OrganizationUser user) throws ApiException { okhttp3.Call localVarCall = addUserToOrganizationValidateBeforeCall(organization, user, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * add a user to an organization * @param organization organization name (required) * @param user user to add (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call addUserToOrganizationAsync(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addUserToOrganizationValidateBeforeCall(organization, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for checkAWSAccessCredentials * @param namespace namespace (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/credentials/{namespace}/aws" .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentials(Async)"); } okhttp3.Call localVarCall = checkAWSAccessCredentialsCall(namespace, _callback); return localVarCall; } /** * * Check if aws keys are set * @param namespace namespace (required) * @return List<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ public List checkAWSAccessCredentials(String namespace) throws ApiException { ApiResponse> localVarResp = checkAWSAccessCredentialsWithHttpInfo(namespace); return localVarResp.getData(); } /** * * Check if aws keys are set * @param namespace namespace (required) * @return ApiResponse<List<AWSAccessCredentials>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ public ApiResponse> checkAWSAccessCredentialsWithHttpInfo(String namespace) throws ApiException { okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Check if aws keys are set * @param namespace namespace (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = checkAWSAccessCredentialsValidateBeforeCall(namespace, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for checkAWSAccessCredentialsByName * @param namespace namespace (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling checkAWSAccessCredentialsByName(Async)"); } // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling checkAWSAccessCredentialsByName(Async)"); } okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameCall(namespace, name, _callback); return localVarCall; } /** * * Check if aws keys are set by name * @param namespace namespace (required) * @param name name (required) * @return AWSAccessCredentials * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, String name) throws ApiException { ApiResponse localVarResp = checkAWSAccessCredentialsByNameWithHttpInfo(namespace, name); return localVarResp.getData(); } /** * * Check if aws keys are set by name * @param namespace namespace (required) * @param name name (required) * @return ApiResponse<AWSAccessCredentials> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ public ApiResponse checkAWSAccessCredentialsByNameWithHttpInfo(String namespace, String name) throws ApiException { okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Check if aws keys are set by name * @param namespace namespace (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = checkAWSAccessCredentialsByNameValidateBeforeCall(namespace, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for checkSSODomain * @param organization organization name (required) * @param uuid configuration ID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
*/ public okhttp3.Call checkSSODomainCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}/run_check" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call checkSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling checkSSODomain(Async)"); } // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException("Missing the required parameter 'uuid' when calling checkSSODomain(Async)"); } okhttp3.Call localVarCall = checkSSODomainCall(organization, uuid, _callback); return localVarCall; } /** * * Immediately verify ownership of the specified SSO domain ownership claim. * @param organization organization name (required) * @param uuid configuration ID (required) * @return DomainCheckResult * @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 The check executed. Detailed results are available in the response. -
0 error response -
*/ public DomainCheckResult checkSSODomain(String organization, String uuid) throws ApiException { ApiResponse localVarResp = checkSSODomainWithHttpInfo(organization, uuid); return localVarResp.getData(); } /** * * Immediately verify ownership of the specified SSO domain ownership claim. * @param organization organization name (required) * @param uuid configuration ID (required) * @return ApiResponse<DomainCheckResult> * @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 The check executed. Detailed results are available in the response. -
0 error response -
*/ public ApiResponse checkSSODomainWithHttpInfo(String organization, String uuid) throws ApiException { okhttp3.Call localVarCall = checkSSODomainValidateBeforeCall(organization, uuid, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Immediately verify ownership of the specified SSO domain ownership claim. * @param organization organization name (required) * @param uuid configuration ID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
*/ public okhttp3.Call checkSSODomainAsync(String organization, String uuid, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = checkSSODomainValidateBeforeCall(organization, uuid, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createOrganization * @param organization organization to create (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call createOrganizationCall(Organization organization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = organization; // create path and map variables String localVarPath = "/organization"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createOrganizationValidateBeforeCall(Organization organization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling createOrganization(Async)"); } okhttp3.Call localVarCall = createOrganizationCall(organization, _callback); return localVarCall; } /** * * create a organization, the user creating will be listed as owner * @param organization organization to create (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
*/ public void createOrganization(Organization organization) throws ApiException { createOrganizationWithHttpInfo(organization); } /** * * create a organization, the user creating will be listed as owner * @param organization organization to create (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
*/ public ApiResponse createOrganizationWithHttpInfo(Organization organization) throws ApiException { okhttp3.Call localVarCall = createOrganizationValidateBeforeCall(organization, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * create a organization, the user creating will be listed as owner * @param organization organization to create (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call createOrganizationAsync(Organization organization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createOrganizationValidateBeforeCall(organization, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for createSSODomain * @param organization organization name (required) * @param config The SSO connection to create. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
*/ public okhttp3.Call createSSODomainCall(String organization, SSODomainConfig config, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = config; // create path and map variables String localVarPath = "/organizations/{organization}/sso_domain" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSSODomainValidateBeforeCall(String organization, SSODomainConfig config, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling createSSODomain(Async)"); } // verify the required parameter 'config' is set if (config == null) { throw new ApiException("Missing the required parameter 'config' when calling createSSODomain(Async)"); } okhttp3.Call localVarCall = createSSODomainCall(organization, config, _callback); return localVarCall; } /** * * Create a new SSO connection that connects this organization to this domain. * @param organization organization name (required) * @param config The SSO connection to create. (required) * @return SSODomainConfig * @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 Claim created successfully. -
0 error response -
*/ public SSODomainConfig createSSODomain(String organization, SSODomainConfig config) throws ApiException { ApiResponse localVarResp = createSSODomainWithHttpInfo(organization, config); return localVarResp.getData(); } /** * * Create a new SSO connection that connects this organization to this domain. * @param organization organization name (required) * @param config The SSO connection to create. (required) * @return ApiResponse<SSODomainConfig> * @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 Claim created successfully. -
0 error response -
*/ public ApiResponse createSSODomainWithHttpInfo(String organization, SSODomainConfig config) throws ApiException { okhttp3.Call localVarCall = createSSODomainValidateBeforeCall(organization, config, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Create a new SSO connection that connects this organization to this domain. * @param organization organization name (required) * @param config The SSO connection to create. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
*/ public okhttp3.Call createSSODomainAsync(String organization, SSODomainConfig config, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSSODomainValidateBeforeCall(organization, config, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteAWSAccessCredentials * @param namespace namespace (required) * @param name name (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespace, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteAWSAccessCredentials(Async)"); } // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAWSAccessCredentials(Async)"); } okhttp3.Call localVarCall = deleteAWSAccessCredentialsCall(namespace, name, _callback); return localVarCall; } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable * @param namespace namespace (required) * @param name name (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ public void deleteAWSAccessCredentials(String namespace, String name) throws ApiException { deleteAWSAccessCredentialsWithHttpInfo(namespace, name); } /** * * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable * @param namespace namespace (required) * @param name name (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace, String name) throws ApiException { okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable * @param namespace namespace (required) * @param name name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String name, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteAWSAccessCredentialsValidateBeforeCall(namespace, name, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteOrganization * @param organization organization name or ID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call deleteOrganizationCall(String organization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations/{organization}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteOrganizationValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling deleteOrganization(Async)"); } okhttp3.Call localVarCall = deleteOrganizationCall(organization, _callback); return localVarCall; } /** * * delete a organization * @param organization organization name or ID (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
*/ public void deleteOrganization(String organization) throws ApiException { deleteOrganizationWithHttpInfo(organization); } /** * * delete a organization * @param organization organization name or ID (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
*/ public ApiResponse deleteOrganizationWithHttpInfo(String organization) throws ApiException { okhttp3.Call localVarCall = deleteOrganizationValidateBeforeCall(organization, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a organization * @param organization organization name or ID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call deleteOrganizationAsync(String organization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteOrganizationValidateBeforeCall(organization, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteSSODomain * @param organization organization name (required) * @param uuid configuration ID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Deletion successful. -
0 error response -
*/ public okhttp3.Call deleteSSODomainCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling deleteSSODomain(Async)"); } // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException("Missing the required parameter 'uuid' when calling deleteSSODomain(Async)"); } okhttp3.Call localVarCall = deleteSSODomainCall(organization, uuid, _callback); return localVarCall; } /** * * Deletes the configuration for the given SSO connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Deletion successful. -
0 error response -
*/ public void deleteSSODomain(String organization, String uuid) throws ApiException { deleteSSODomainWithHttpInfo(organization, uuid); } /** * * Deletes the configuration for the given SSO connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Deletion successful. -
0 error response -
*/ public ApiResponse deleteSSODomainWithHttpInfo(String organization, String uuid) throws ApiException { okhttp3.Call localVarCall = deleteSSODomainValidateBeforeCall(organization, uuid, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Deletes the configuration for the given SSO connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Deletion successful. -
0 error response -
*/ public okhttp3.Call deleteSSODomainAsync(String organization, String uuid, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteSSODomainValidateBeforeCall(organization, uuid, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for deleteUserFromOrganization * @param organization organization name (required) * @param username username to manipulate (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations/{organization}/{username}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling deleteUserFromOrganization(Async)"); } // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling deleteUserFromOrganization(Async)"); } okhttp3.Call localVarCall = deleteUserFromOrganizationCall(organization, username, _callback); return localVarCall; } /** * * delete a user from an organization * @param organization organization name (required) * @param username username to manipulate (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
*/ public void deleteUserFromOrganization(String organization, String username) throws ApiException { deleteUserFromOrganizationWithHttpInfo(organization, username); } /** * * delete a user from an organization * @param organization organization name (required) * @param username username to manipulate (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
*/ public ApiResponse deleteUserFromOrganizationWithHttpInfo(String organization, String username) throws ApiException { okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * delete a user from an organization * @param organization organization name (required) * @param username username to manipulate (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call deleteUserFromOrganizationAsync(String organization, String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for getAllOrganizations * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call getAllOrganizationsCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAllOrganizationsValidateBeforeCall(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllOrganizationsCall(_callback); return localVarCall; } /** * * get all organizations that the user is member of * @return List<Organization> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
*/ public List getAllOrganizations() throws ApiException { ApiResponse> localVarResp = getAllOrganizationsWithHttpInfo(); return localVarResp.getData(); } /** * * get all organizations that the user is member of * @return ApiResponse<List<Organization>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
*/ public ApiResponse> getAllOrganizationsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getAllOrganizationsValidateBeforeCall(null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get all organizations that the user is member of * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call getAllOrganizationsAsync(final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getAllOrganizationsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getOrganization * @param organization organization name or ID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations/{organization}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getOrganizationValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getOrganization(Async)"); } okhttp3.Call localVarCall = getOrganizationCall(organization, _callback); return localVarCall; } /** * * get a organization * @param organization organization name or ID (required) * @return Organization * @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 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
*/ public Organization getOrganization(String organization) throws ApiException { ApiResponse localVarResp = getOrganizationWithHttpInfo(organization); return localVarResp.getData(); } /** * * get a organization * @param organization organization name or ID (required) * @return ApiResponse<Organization> * @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 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
*/ public ApiResponse getOrganizationWithHttpInfo(String organization) throws ApiException { okhttp3.Call localVarCall = getOrganizationValidateBeforeCall(organization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get a organization * @param organization organization name or ID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call getOrganizationAsync(String organization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrganizationValidateBeforeCall(organization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getOrganizationUser * @param organization organization name (required) * @param username username to manipulate (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call getOrganizationUserCall(String organization, String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations/{organization}/{username}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getOrganizationUserValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getOrganizationUser(Async)"); } // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling getOrganizationUser(Async)"); } okhttp3.Call localVarCall = getOrganizationUserCall(organization, username, _callback); return localVarCall; } /** * * get a user from an organization * @param organization organization name (required) * @param username username to manipulate (required) * @return OrganizationUser * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
*/ public OrganizationUser getOrganizationUser(String organization, String username) throws ApiException { ApiResponse localVarResp = getOrganizationUserWithHttpInfo(organization, username); return localVarResp.getData(); } /** * * get a user from an organization * @param organization organization name (required) * @param username username to manipulate (required) * @return ApiResponse<OrganizationUser> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
*/ public ApiResponse getOrganizationUserWithHttpInfo(String organization, String username) throws ApiException { okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get a user from an organization * @param organization organization name (required) * @param username username to manipulate (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call getOrganizationUserAsync(String organization, String username, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getSSODomain * @param organization organization name (required) * @param uuid configuration ID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The details about this domain connection. -
0 error response -
*/ public okhttp3.Call getSSODomainCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getSSODomain(Async)"); } // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException("Missing the required parameter 'uuid' when calling getSSODomain(Async)"); } okhttp3.Call localVarCall = getSSODomainCall(organization, uuid, _callback); return localVarCall; } /** * * Gets details about the given SSO domain connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @return SSODomainConfig * @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 The details about this domain connection. -
0 error response -
*/ public SSODomainConfig getSSODomain(String organization, String uuid) throws ApiException { ApiResponse localVarResp = getSSODomainWithHttpInfo(organization, uuid); return localVarResp.getData(); } /** * * Gets details about the given SSO domain connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @return ApiResponse<SSODomainConfig> * @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 The details about this domain connection. -
0 error response -
*/ public ApiResponse getSSODomainWithHttpInfo(String organization, String uuid) throws ApiException { okhttp3.Call localVarCall = getSSODomainValidateBeforeCall(organization, uuid, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Gets details about the given SSO domain connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The details about this domain connection. -
0 error response -
*/ public okhttp3.Call getSSODomainAsync(String organization, String uuid, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSSODomainValidateBeforeCall(organization, uuid, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getSSODomains * @param organization organization name (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 The SSO domains associated with the org. -
0 error response -
*/ public okhttp3.Call getSSODomainsCall(String organization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSSODomainsValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling getSSODomains(Async)"); } okhttp3.Call localVarCall = getSSODomainsCall(organization, _callback); return localVarCall; } /** * * Lists all the SSO connections associated with the given organization. * @param organization organization name (required) * @return SSODomainConfigResponse * @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 The SSO domains associated with the org. -
0 error response -
*/ public SSODomainConfigResponse getSSODomains(String organization) throws ApiException { ApiResponse localVarResp = getSSODomainsWithHttpInfo(organization); return localVarResp.getData(); } /** * * Lists all the SSO connections associated with the given organization. * @param organization organization name (required) * @return ApiResponse<SSODomainConfigResponse> * @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 The SSO domains associated with the org. -
0 error response -
*/ public ApiResponse getSSODomainsWithHttpInfo(String organization) throws ApiException { okhttp3.Call localVarCall = getSSODomainsValidateBeforeCall(organization, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Lists all the SSO connections associated with the given organization. * @param organization organization name (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 The SSO domains associated with the org. -
0 error response -
*/ public okhttp3.Call getSSODomainsAsync(String organization, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSSODomainsValidateBeforeCall(organization, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateAWSAccessCredentials * @param namespace namespace (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = awsAccessCredentials; // create path and map variables String localVarPath = "/credentials/{namespace}/aws/{name}" .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling updateAWSAccessCredentials(Async)"); } // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling updateAWSAccessCredentials(Async)"); } // verify the required parameter 'awsAccessCredentials' is set if (awsAccessCredentials == null) { throw new ApiException("Missing the required parameter 'awsAccessCredentials' when calling updateAWSAccessCredentials(Async)"); } okhttp3.Call localVarCall = updateAWSAccessCredentialsCall(namespace, name, awsAccessCredentials, _callback); return localVarCall; } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace * @param namespace namespace (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ public void updateAWSAccessCredentials(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { updateAWSAccessCredentialsWithHttpInfo(namespace, name, awsAccessCredentials); } /** * * Update aws keys or associated buckets. This will update the key associations for each array in the namespace * @param namespace namespace (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace, String name, AWSAccessCredentials awsAccessCredentials) throws ApiException { okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * Update aws keys or associated buckets. This will update the key associations for each array in the namespace * @param namespace namespace (required) * @param name name (required) * @param awsAccessCredentials aws credentials to update (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateAWSAccessCredentialsValidateBeforeCall(namespace, name, awsAccessCredentials, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateOrganization * @param organization organization name or ID (required) * @param organizationDetails organization details to update (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call updateOrganizationCall(String organization, Organization organizationDetails, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = organizationDetails; // create path and map variables String localVarPath = "/organizations/{organization}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateOrganizationValidateBeforeCall(String organization, Organization organizationDetails, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling updateOrganization(Async)"); } // verify the required parameter 'organizationDetails' is set if (organizationDetails == null) { throw new ApiException("Missing the required parameter 'organizationDetails' when calling updateOrganization(Async)"); } okhttp3.Call localVarCall = updateOrganizationCall(organization, organizationDetails, _callback); return localVarCall; } /** * * update a organization * @param organization organization name or ID (required) * @param organizationDetails organization details to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
*/ public void updateOrganization(String organization, Organization organizationDetails) throws ApiException { updateOrganizationWithHttpInfo(organization, organizationDetails); } /** * * update a organization * @param organization organization name or ID (required) * @param organizationDetails organization details to update (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
*/ public ApiResponse updateOrganizationWithHttpInfo(String organization, Organization organizationDetails) throws ApiException { okhttp3.Call localVarCall = updateOrganizationValidateBeforeCall(organization, organizationDetails, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update a organization * @param organization organization name or ID (required) * @param organizationDetails organization details to update (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call updateOrganizationAsync(String organization, Organization organizationDetails, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateOrganizationValidateBeforeCall(organization, organizationDetails, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** * Build call for updateSSODomain * @param organization organization name (required) * @param uuid configuration ID (required) * @param config The changes to make to the configuration. (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 The updated details about the SSO connection. -
0 error response -
*/ public okhttp3.Call updateSSODomainCall(String organization, String uuid, SSODomainConfig config, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = config; // create path and map variables String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateSSODomainValidateBeforeCall(String organization, String uuid, SSODomainConfig config, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling updateSSODomain(Async)"); } // verify the required parameter 'uuid' is set if (uuid == null) { throw new ApiException("Missing the required parameter 'uuid' when calling updateSSODomain(Async)"); } // verify the required parameter 'config' is set if (config == null) { throw new ApiException("Missing the required parameter 'config' when calling updateSSODomain(Async)"); } okhttp3.Call localVarCall = updateSSODomainCall(organization, uuid, config, _callback); return localVarCall; } /** * * Updates the configuration for the given SSO connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @param config The changes to make to the configuration. (required) * @return SSODomainConfig * @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 The updated details about the SSO connection. -
0 error response -
*/ public SSODomainConfig updateSSODomain(String organization, String uuid, SSODomainConfig config) throws ApiException { ApiResponse localVarResp = updateSSODomainWithHttpInfo(organization, uuid, config); return localVarResp.getData(); } /** * * Updates the configuration for the given SSO connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @param config The changes to make to the configuration. (required) * @return ApiResponse<SSODomainConfig> * @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 The updated details about the SSO connection. -
0 error response -
*/ public ApiResponse updateSSODomainWithHttpInfo(String organization, String uuid, SSODomainConfig config) throws ApiException { okhttp3.Call localVarCall = updateSSODomainValidateBeforeCall(organization, uuid, config, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * Updates the configuration for the given SSO connection. * @param organization organization name (required) * @param uuid configuration ID (required) * @param config The changes to make to the configuration. (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 The updated details about the SSO connection. -
0 error response -
*/ public okhttp3.Call updateSSODomainAsync(String organization, String uuid, SSODomainConfig config, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateSSODomainValidateBeforeCall(organization, uuid, config, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateUserInOrganization * @param organization organization name (required) * @param username username to manipulate (required) * @param user user details to update (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call updateUserInOrganizationCall(String organization, String username, OrganizationUser user, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = user; // create path and map variables String localVarPath = "/organizations/{organization}/{username}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateUserInOrganizationValidateBeforeCall(String organization, String username, OrganizationUser user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'organization' is set if (organization == null) { throw new ApiException("Missing the required parameter 'organization' when calling updateUserInOrganization(Async)"); } // verify the required parameter 'username' is set if (username == null) { throw new ApiException("Missing the required parameter 'username' when calling updateUserInOrganization(Async)"); } // verify the required parameter 'user' is set if (user == null) { throw new ApiException("Missing the required parameter 'user' when calling updateUserInOrganization(Async)"); } okhttp3.Call localVarCall = updateUserInOrganizationCall(organization, username, user, _callback); return localVarCall; } /** * * update a user in an organization * @param organization organization name (required) * @param username username to manipulate (required) * @param user user details to update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ public void updateUserInOrganization(String organization, String username, OrganizationUser user) throws ApiException { updateUserInOrganizationWithHttpInfo(organization, username, user); } /** * * update a user in an organization * @param organization organization name (required) * @param username username to manipulate (required) * @param user user details to update (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ public ApiResponse updateUserInOrganizationWithHttpInfo(String organization, String username, OrganizationUser user) throws ApiException { okhttp3.Call localVarCall = updateUserInOrganizationValidateBeforeCall(organization, username, user, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * update a user in an organization * @param organization organization name (required) * @param username username to manipulate (required) * @param user user details to update (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ public okhttp3.Call updateUserInOrganizationAsync(String organization, String username, OrganizationUser user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateUserInOrganizationValidateBeforeCall(organization, username, user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy