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

com.finbourne.identity.api.AuthenticationApi Maven / Gradle / Ivy

There is a newer version: 2.0.130
Show newest version
/*
 * FINBOURNE Identity Service API
 *
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package com.finbourne.identity.api;

import com.finbourne.identity.ApiCallback;
import com.finbourne.identity.ApiClient;
import com.finbourne.identity.ApiException;
import com.finbourne.identity.ApiResponse;
import com.finbourne.identity.Configuration;
import com.finbourne.identity.Pair;
import com.finbourne.identity.ProgressRequestBody;
import com.finbourne.identity.ProgressResponseBody;
import com.finbourne.identity.extensions.ConfigurationOptions;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import com.finbourne.identity.model.AuthenticationInformation;
import com.finbourne.identity.model.LusidProblemDetails;
import com.finbourne.identity.model.LusidValidationProblemDetails;
import java.time.OffsetDateTime;
import com.finbourne.identity.model.PasswordPolicyResponse;
import com.finbourne.identity.model.SupportAccessRequest;
import com.finbourne.identity.model.SupportAccessResponse;
import com.finbourne.identity.model.SupportRolesResponse;
import com.finbourne.identity.model.UpdatePasswordPolicyRequest;

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

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

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

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

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

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

    public int getHostIndex() {
        return localHostIndex;
    }

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

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

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

    private okhttp3.Call getAuthenticationInformationCall(final ApiCallback _callback) throws ApiException {
        return getAuthenticationInformationCall( _callback, new ConfigurationOptions());
    }

    private okhttp3.Call getAuthenticationInformationCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

        // Determine Base Path to Use
        if (localCustomBaseUrl != null){
            basePath = localCustomBaseUrl;
        } else if ( localBasePaths.length > 0 ) {
            basePath = localBasePaths[localHostIndex];
        } else {
            basePath = null;
        }

        Object localVarPostBody = null;

        // create path and map variables
        String localVarPath = "/api/authentication/information";

        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

        final String[] localVarAccepts = {
            "application/json"
        };
        final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
        if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
        }

        final String[] localVarContentTypes = {
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        if (localVarContentType != null) {
            localVarHeaderParams.put("Content-Type", localVarContentType);
        }

        String[] localVarAuthNames = new String[] { "oauth2" };
        return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call getAuthenticationInformationValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
        return getAuthenticationInformationCall(_callback, opts);

    }


    private ApiResponse getAuthenticationInformationWithHttpInfo() throws ApiException {
        okhttp3.Call localVarCall = getAuthenticationInformationValidateBeforeCall(null, new ConfigurationOptions());
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private ApiResponse getAuthenticationInformationWithHttpInfo(ConfigurationOptions opts) throws ApiException {
        okhttp3.Call localVarCall = getAuthenticationInformationValidateBeforeCall(null, opts);
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call getAuthenticationInformationAsync(final ApiCallback _callback) throws ApiException {

        okhttp3.Call localVarCall = getAuthenticationInformationValidateBeforeCall(_callback, new ConfigurationOptions());
        Type localVarReturnType = new TypeToken(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    private okhttp3.Call getAuthenticationInformationAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {

        okhttp3.Call localVarCall = getAuthenticationInformationValidateBeforeCall(_callback, opts);
        Type localVarReturnType = new TypeToken(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    public class APIgetAuthenticationInformationRequest {

        private APIgetAuthenticationInformationRequest() {
        }

        /**
         * Build call for getAuthenticationInformation
         * @param _callback ApiCallback API callback
         * @return Call to execute
         * @throws ApiException If fail to serialize the request body object
         * @http.response.details
         
Status Code Description Response Headers
200 Get authentication information -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getAuthenticationInformationCall(_callback); } /** * Execute getAuthenticationInformation request * @return AuthenticationInformation * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get authentication information -
0 Error response -
*/ public AuthenticationInformation execute() throws ApiException { ApiResponse localVarResp = getAuthenticationInformationWithHttpInfo(); return localVarResp.getData(); } /** * Execute getAuthenticationInformation request. Use any specified configuration options to override any other configuration for this request only. * @return AuthenticationInformation * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get authentication information -
0 Error response -
*/ public AuthenticationInformation execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = getAuthenticationInformationWithHttpInfo(opts); return localVarResp.getData(); } /** * Execute getAuthenticationInformation request with HTTP info returned * @return ApiResponse<AuthenticationInformation> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get authentication information -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getAuthenticationInformationWithHttpInfo(); } /** * Execute getAuthenticationInformation request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<AuthenticationInformation> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get authentication information -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getAuthenticationInformationWithHttpInfo(opts); } /** * Execute getAuthenticationInformation request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Get authentication information -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getAuthenticationInformationAsync(_callback); } /** * Execute getAuthenticationInformation request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Get authentication information -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return getAuthenticationInformationAsync(_callback, opts); } } /** * GetAuthenticationInformation: Gets AuthenticationInformation * Get the AuthenticationInformation associated with the current domain. This includes all the necessary information to login to this domain. * @return APIgetAuthenticationInformationRequest * @http.response.details
Status Code Description Response Headers
200 Get authentication information -
0 Error response -
*/ public APIgetAuthenticationInformationRequest getAuthenticationInformation() { return new APIgetAuthenticationInformationRequest(); } private okhttp3.Call getPasswordPolicyCall(String userType, final ApiCallback _callback) throws ApiException { return getPasswordPolicyCall(userType, _callback, new ConfigurationOptions()); } private okhttp3.Call getPasswordPolicyCall(String userType, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/authentication/password-policy/{userType}" .replace("{" + "userType" + "}", localVarApiClient.escapeString(userType.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call getPasswordPolicyValidateBeforeCall(String userType, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'userType' is set if (userType == null) { throw new ApiException("Missing the required parameter 'userType' when calling getPasswordPolicy(Async)"); } return getPasswordPolicyCall(userType, _callback, opts); } private ApiResponse getPasswordPolicyWithHttpInfo(String userType) throws ApiException { okhttp3.Call localVarCall = getPasswordPolicyValidateBeforeCall(userType, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse getPasswordPolicyWithHttpInfo(String userType, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getPasswordPolicyValidateBeforeCall(userType, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getPasswordPolicyAsync(String userType, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPasswordPolicyValidateBeforeCall(userType, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call getPasswordPolicyAsync(String userType, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getPasswordPolicyValidateBeforeCall(userType, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetPasswordPolicyRequest { private final String userType; private APIgetPasswordPolicyRequest(String userType) { this.userType = userType; } /** * Build call for getPasswordPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Get password policy -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getPasswordPolicyCall(userType, _callback); } /** * Execute getPasswordPolicy request * @return PasswordPolicyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get password policy -
400 The details of the input related failure -
0 Error response -
*/ public PasswordPolicyResponse execute() throws ApiException { ApiResponse localVarResp = getPasswordPolicyWithHttpInfo(userType); return localVarResp.getData(); } /** * Execute getPasswordPolicy request. Use any specified configuration options to override any other configuration for this request only. * @return PasswordPolicyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get password policy -
400 The details of the input related failure -
0 Error response -
*/ public PasswordPolicyResponse execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = getPasswordPolicyWithHttpInfo(userType, opts); return localVarResp.getData(); } /** * Execute getPasswordPolicy request with HTTP info returned * @return ApiResponse<PasswordPolicyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get password policy -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getPasswordPolicyWithHttpInfo(userType); } /** * Execute getPasswordPolicy request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<PasswordPolicyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get password policy -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getPasswordPolicyWithHttpInfo(userType, opts); } /** * Execute getPasswordPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Get password policy -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getPasswordPolicyAsync(userType, _callback); } /** * Execute getPasswordPolicy request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Get password policy -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return getPasswordPolicyAsync(userType, _callback, opts); } } /** * [EXPERIMENTAL] GetPasswordPolicy: Gets password policy for a user type * Get the password policy for a given user type * @param userType The type of user (should only be personal or service) (required) * @return APIgetPasswordPolicyRequest * @http.response.details
Status Code Description Response Headers
200 Get password policy -
400 The details of the input related failure -
0 Error response -
*/ public APIgetPasswordPolicyRequest getPasswordPolicy(String userType) { return new APIgetPasswordPolicyRequest(userType); } private okhttp3.Call getSupportAccessHistoryCall(OffsetDateTime start, OffsetDateTime end, final ApiCallback _callback) throws ApiException { return getSupportAccessHistoryCall(start, end, _callback, new ConfigurationOptions()); } private okhttp3.Call getSupportAccessHistoryCall(OffsetDateTime start, OffsetDateTime end, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/authentication/support"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (start != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); } if (end != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("end", end)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call getSupportAccessHistoryValidateBeforeCall(OffsetDateTime start, OffsetDateTime end, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return getSupportAccessHistoryCall(start, end, _callback, opts); } private ApiResponse> getSupportAccessHistoryWithHttpInfo(OffsetDateTime start, OffsetDateTime end) throws ApiException { okhttp3.Call localVarCall = getSupportAccessHistoryValidateBeforeCall(start, end, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse> getSupportAccessHistoryWithHttpInfo(OffsetDateTime start, OffsetDateTime end, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getSupportAccessHistoryValidateBeforeCall(start, end, null, opts); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getSupportAccessHistoryAsync(OffsetDateTime start, OffsetDateTime end, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getSupportAccessHistoryValidateBeforeCall(start, end, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call getSupportAccessHistoryAsync(OffsetDateTime start, OffsetDateTime end, final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getSupportAccessHistoryValidateBeforeCall(start, end, _callback, opts); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSupportAccessHistoryRequest { private OffsetDateTime start; private OffsetDateTime end; private APIgetSupportAccessHistoryRequest() { } /** * Set start * @param start The start expiry date to query support access requests from (optional) * @return APIgetSupportAccessHistoryRequest */ public APIgetSupportAccessHistoryRequest start(OffsetDateTime start) { this.start = start; return this; } /** * Set end * @param end The end expiry date to query support access requests to (optional) * @return APIgetSupportAccessHistoryRequest */ public APIgetSupportAccessHistoryRequest end(OffsetDateTime end) { this.end = end; return this; } /** * Build call for getSupportAccessHistory * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Get support access history -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getSupportAccessHistoryCall(start, end, _callback); } /** * Execute getSupportAccessHistory request * @return List<SupportAccessResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get support access history -
400 The details of the input related failure -
0 Error response -
*/ public List execute() throws ApiException { ApiResponse> localVarResp = getSupportAccessHistoryWithHttpInfo(start, end); return localVarResp.getData(); } /** * Execute getSupportAccessHistory request. Use any specified configuration options to override any other configuration for this request only. * @return List<SupportAccessResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get support access history -
400 The details of the input related failure -
0 Error response -
*/ public List execute(ConfigurationOptions opts) throws ApiException { ApiResponse> localVarResp = getSupportAccessHistoryWithHttpInfo(start, end, opts); return localVarResp.getData(); } /** * Execute getSupportAccessHistory request with HTTP info returned * @return ApiResponse<List<SupportAccessResponse>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get support access history -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo() throws ApiException { return getSupportAccessHistoryWithHttpInfo(start, end); } /** * Execute getSupportAccessHistory request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<List<SupportAccessResponse>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get support access history -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getSupportAccessHistoryWithHttpInfo(start, end, opts); } /** * Execute getSupportAccessHistory request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Get support access history -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { return getSupportAccessHistoryAsync(start, end, _callback); } /** * Execute getSupportAccessHistory request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Get support access history -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { return getSupportAccessHistoryAsync(start, end, _callback, opts); } } /** * GetSupportAccessHistory: Get the history of all support access granted and any information pertaining to their termination * The active and inactive support requests will be returned, inactive support requests will have information pertaining to their termination including obfuscated userIds of those who created and terminated the request * @return APIgetSupportAccessHistoryRequest * @http.response.details
Status Code Description Response Headers
200 Get support access history -
400 The details of the input related failure -
0 Error response -
*/ public APIgetSupportAccessHistoryRequest getSupportAccessHistory() { return new APIgetSupportAccessHistoryRequest(); } private okhttp3.Call getSupportRolesCall(final ApiCallback _callback) throws ApiException { return getSupportRolesCall( _callback, new ConfigurationOptions()); } private okhttp3.Call getSupportRolesCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/authentication/support-roles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call getSupportRolesValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return getSupportRolesCall(_callback, opts); } private ApiResponse getSupportRolesWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getSupportRolesValidateBeforeCall(null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse getSupportRolesWithHttpInfo(ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getSupportRolesValidateBeforeCall(null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getSupportRolesAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSupportRolesValidateBeforeCall(_callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call getSupportRolesAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = getSupportRolesValidateBeforeCall(_callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetSupportRolesRequest { private APIgetSupportRolesRequest() { } /** * Build call for getSupportRoles * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Get support roles -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getSupportRolesCall(_callback); } /** * Execute getSupportRoles request * @return SupportRolesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get support roles -
0 Error response -
*/ public SupportRolesResponse execute() throws ApiException { ApiResponse localVarResp = getSupportRolesWithHttpInfo(); return localVarResp.getData(); } /** * Execute getSupportRoles request. Use any specified configuration options to override any other configuration for this request only. * @return SupportRolesResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get support roles -
0 Error response -
*/ public SupportRolesResponse execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = getSupportRolesWithHttpInfo(opts); return localVarResp.getData(); } /** * Execute getSupportRoles request with HTTP info returned * @return ApiResponse<SupportRolesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get support roles -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getSupportRolesWithHttpInfo(); } /** * Execute getSupportRoles request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<SupportRolesResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Get support roles -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return getSupportRolesWithHttpInfo(opts); } /** * Execute getSupportRoles request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Get support roles -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getSupportRolesAsync(_callback); } /** * Execute getSupportRoles request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Get support roles -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return getSupportRolesAsync(_callback, opts); } } /** * GetSupportRoles: Get mapping of support roles, the internal representation to a human friendly representation * Get mapping of support roles, the internal representation to a human friendly representation * @return APIgetSupportRolesRequest * @http.response.details
Status Code Description Response Headers
200 Get support roles -
0 Error response -
*/ public APIgetSupportRolesRequest getSupportRoles() { return new APIgetSupportRolesRequest(); } private okhttp3.Call grantSupportAccessCall(SupportAccessRequest supportAccessRequest, final ApiCallback _callback) throws ApiException { return grantSupportAccessCall(supportAccessRequest, _callback, new ConfigurationOptions()); } private okhttp3.Call grantSupportAccessCall(SupportAccessRequest supportAccessRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = supportAccessRequest; // create path and map variables String localVarPath = "/api/authentication/support"; 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-patch+json", "application/json", "text/json", "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call grantSupportAccessValidateBeforeCall(SupportAccessRequest supportAccessRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'supportAccessRequest' is set if (supportAccessRequest == null) { throw new ApiException("Missing the required parameter 'supportAccessRequest' when calling grantSupportAccess(Async)"); } return grantSupportAccessCall(supportAccessRequest, _callback, opts); } private ApiResponse grantSupportAccessWithHttpInfo(SupportAccessRequest supportAccessRequest) throws ApiException { okhttp3.Call localVarCall = grantSupportAccessValidateBeforeCall(supportAccessRequest, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse grantSupportAccessWithHttpInfo(SupportAccessRequest supportAccessRequest, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = grantSupportAccessValidateBeforeCall(supportAccessRequest, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call grantSupportAccessAsync(SupportAccessRequest supportAccessRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = grantSupportAccessValidateBeforeCall(supportAccessRequest, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call grantSupportAccessAsync(SupportAccessRequest supportAccessRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = grantSupportAccessValidateBeforeCall(supportAccessRequest, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgrantSupportAccessRequest { private final SupportAccessRequest supportAccessRequest; private APIgrantSupportAccessRequest(SupportAccessRequest supportAccessRequest) { this.supportAccessRequest = supportAccessRequest; } /** * Build call for grantSupportAccess * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 Grant Support Access -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return grantSupportAccessCall(supportAccessRequest, _callback); } /** * Execute grantSupportAccess request * @return SupportAccessResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Grant Support Access -
400 The details of the input related failure -
0 Error response -
*/ public SupportAccessResponse execute() throws ApiException { ApiResponse localVarResp = grantSupportAccessWithHttpInfo(supportAccessRequest); return localVarResp.getData(); } /** * Execute grantSupportAccess request. Use any specified configuration options to override any other configuration for this request only. * @return SupportAccessResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Grant Support Access -
400 The details of the input related failure -
0 Error response -
*/ public SupportAccessResponse execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = grantSupportAccessWithHttpInfo(supportAccessRequest, opts); return localVarResp.getData(); } /** * Execute grantSupportAccess request with HTTP info returned * @return ApiResponse<SupportAccessResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Grant Support Access -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return grantSupportAccessWithHttpInfo(supportAccessRequest); } /** * Execute grantSupportAccess request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<SupportAccessResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Grant Support Access -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return grantSupportAccessWithHttpInfo(supportAccessRequest, opts); } /** * Execute grantSupportAccess request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Grant Support Access -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return grantSupportAccessAsync(supportAccessRequest, _callback); } /** * Execute grantSupportAccess request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Grant Support Access -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return grantSupportAccessAsync(supportAccessRequest, _callback, opts); } } /** * GrantSupportAccess: Grants FINBOURNE support access to your account * Granting support access will allow FINBOURNE employees full access to your data with the express intent to investigate support issues You can revoke this (and all) access at any time using the InvalidateSupportAccess endpoint. * @param supportAccessRequest Request detailing the duration and reasons for supplying support access (required) * @return APIgrantSupportAccessRequest * @http.response.details
Status Code Description Response Headers
201 Grant Support Access -
400 The details of the input related failure -
0 Error response -
*/ public APIgrantSupportAccessRequest grantSupportAccess(SupportAccessRequest supportAccessRequest) { return new APIgrantSupportAccessRequest(supportAccessRequest); } private okhttp3.Call invalidateSupportAccessCall(final ApiCallback _callback) throws ApiException { return invalidateSupportAccessCall( _callback, new ConfigurationOptions()); } private okhttp3.Call invalidateSupportAccessCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/api/authentication/support"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call invalidateSupportAccessValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return invalidateSupportAccessCall(_callback, opts); } private ApiResponse> invalidateSupportAccessWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = invalidateSupportAccessValidateBeforeCall(null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse> invalidateSupportAccessWithHttpInfo(ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = invalidateSupportAccessValidateBeforeCall(null, opts); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call invalidateSupportAccessAsync(final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = invalidateSupportAccessValidateBeforeCall(_callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call invalidateSupportAccessAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = invalidateSupportAccessValidateBeforeCall(_callback, opts); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIinvalidateSupportAccessRequest { private APIinvalidateSupportAccessRequest() { } /** * Build call for invalidateSupportAccess * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Invalidate all currently active support requests -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return invalidateSupportAccessCall(_callback); } /** * Execute invalidateSupportAccess request * @return List<SupportAccessResponse> * @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 Invalidate all currently active support requests -
0 Error response -
*/ public List execute() throws ApiException { ApiResponse> localVarResp = invalidateSupportAccessWithHttpInfo(); return localVarResp.getData(); } /** * Execute invalidateSupportAccess request. Use any specified configuration options to override any other configuration for this request only. * @return List<SupportAccessResponse> * @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 Invalidate all currently active support requests -
0 Error response -
*/ public List execute(ConfigurationOptions opts) throws ApiException { ApiResponse> localVarResp = invalidateSupportAccessWithHttpInfo(opts); return localVarResp.getData(); } /** * Execute invalidateSupportAccess request with HTTP info returned * @return ApiResponse<List<SupportAccessResponse>> * @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 Invalidate all currently active support requests -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo() throws ApiException { return invalidateSupportAccessWithHttpInfo(); } /** * Execute invalidateSupportAccess request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<List<SupportAccessResponse>> * @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 Invalidate all currently active support requests -
0 Error response -
*/ public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return invalidateSupportAccessWithHttpInfo(opts); } /** * Execute invalidateSupportAccess request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Invalidate all currently active support requests -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException { return invalidateSupportAccessAsync(_callback); } /** * Execute invalidateSupportAccess request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Invalidate all currently active support requests -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException { return invalidateSupportAccessAsync(_callback, opts); } } /** * InvalidateSupportAccess: Revoke any FINBOURNE support access to your account * This will result in a loss of access to your data for all FINBOURNE support agents * @return APIinvalidateSupportAccessRequest * @http.response.details
Status Code Description Response Headers
200 Invalidate all currently active support requests -
0 Error response -
*/ public APIinvalidateSupportAccessRequest invalidateSupportAccess() { return new APIinvalidateSupportAccessRequest(); } private okhttp3.Call updatePasswordPolicyCall(String userType, UpdatePasswordPolicyRequest updatePasswordPolicyRequest, final ApiCallback _callback) throws ApiException { return updatePasswordPolicyCall(userType, updatePasswordPolicyRequest, _callback, new ConfigurationOptions()); } private okhttp3.Call updatePasswordPolicyCall(String userType, UpdatePasswordPolicyRequest updatePasswordPolicyRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = updatePasswordPolicyRequest; // create path and map variables String localVarPath = "/api/authentication/password-policy/{userType}" .replace("{" + "userType" + "}", localVarApiClient.escapeString(userType.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-patch+json", "application/json", "text/json", "application/*+json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "oauth2" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts); } @SuppressWarnings("rawtypes") private okhttp3.Call updatePasswordPolicyValidateBeforeCall(String userType, UpdatePasswordPolicyRequest updatePasswordPolicyRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { // verify the required parameter 'userType' is set if (userType == null) { throw new ApiException("Missing the required parameter 'userType' when calling updatePasswordPolicy(Async)"); } return updatePasswordPolicyCall(userType, updatePasswordPolicyRequest, _callback, opts); } private ApiResponse updatePasswordPolicyWithHttpInfo(String userType, UpdatePasswordPolicyRequest updatePasswordPolicyRequest) throws ApiException { okhttp3.Call localVarCall = updatePasswordPolicyValidateBeforeCall(userType, updatePasswordPolicyRequest, null, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private ApiResponse updatePasswordPolicyWithHttpInfo(String userType, UpdatePasswordPolicyRequest updatePasswordPolicyRequest, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = updatePasswordPolicyValidateBeforeCall(userType, updatePasswordPolicyRequest, null, opts); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call updatePasswordPolicyAsync(String userType, UpdatePasswordPolicyRequest updatePasswordPolicyRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePasswordPolicyValidateBeforeCall(userType, updatePasswordPolicyRequest, _callback, new ConfigurationOptions()); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } private okhttp3.Call updatePasswordPolicyAsync(String userType, UpdatePasswordPolicyRequest updatePasswordPolicyRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { okhttp3.Call localVarCall = updatePasswordPolicyValidateBeforeCall(userType, updatePasswordPolicyRequest, _callback, opts); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIupdatePasswordPolicyRequest { private final String userType; private UpdatePasswordPolicyRequest updatePasswordPolicyRequest; private APIupdatePasswordPolicyRequest(String userType) { this.userType = userType; } /** * Set updatePasswordPolicyRequest * @param updatePasswordPolicyRequest The password policy for the given user type (optional) * @return APIupdatePasswordPolicyRequest */ public APIupdatePasswordPolicyRequest updatePasswordPolicyRequest(UpdatePasswordPolicyRequest updatePasswordPolicyRequest) { this.updatePasswordPolicyRequest = updatePasswordPolicyRequest; return this; } /** * Build call for updatePasswordPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Update password policy -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return updatePasswordPolicyCall(userType, updatePasswordPolicyRequest, _callback); } /** * Execute updatePasswordPolicy request * @return PasswordPolicyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Update password policy -
400 The details of the input related failure -
0 Error response -
*/ public PasswordPolicyResponse execute() throws ApiException { ApiResponse localVarResp = updatePasswordPolicyWithHttpInfo(userType, updatePasswordPolicyRequest); return localVarResp.getData(); } /** * Execute updatePasswordPolicy request. Use any specified configuration options to override any other configuration for this request only. * @return PasswordPolicyResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Update password policy -
400 The details of the input related failure -
0 Error response -
*/ public PasswordPolicyResponse execute(ConfigurationOptions opts) throws ApiException { ApiResponse localVarResp = updatePasswordPolicyWithHttpInfo(userType, updatePasswordPolicyRequest, opts); return localVarResp.getData(); } /** * Execute updatePasswordPolicy request with HTTP info returned * @return ApiResponse<PasswordPolicyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Update password policy -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return updatePasswordPolicyWithHttpInfo(userType, updatePasswordPolicyRequest); } /** * Execute updatePasswordPolicy request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only. * @return ApiResponse<PasswordPolicyResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Update password policy -
400 The details of the input related failure -
0 Error response -
*/ public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException { return updatePasswordPolicyWithHttpInfo(userType, updatePasswordPolicyRequest, opts); } /** * Execute updatePasswordPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Update password policy -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return updatePasswordPolicyAsync(userType, updatePasswordPolicyRequest, _callback); } /** * Execute updatePasswordPolicy request (asynchronously). Use any specified configuration options to override any other configuration for this request only. * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Update password policy -
400 The details of the input related failure -
0 Error response -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException { return updatePasswordPolicyAsync(userType, updatePasswordPolicyRequest, _callback, opts); } } /** * [EXPERIMENTAL] UpdatePasswordPolicy: Updates password policy for a user type * Update the password policy for a given user type * @param userType The type of user (should only be personal or service) (required) * @return APIupdatePasswordPolicyRequest * @http.response.details
Status Code Description Response Headers
200 Update password policy -
400 The details of the input related failure -
0 Error response -
*/ public APIupdatePasswordPolicyRequest updatePasswordPolicy(String userType) { return new APIupdatePasswordPolicyRequest(userType); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy