Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* FINBOURNE Identity Service API
*
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.finbourne.identity.api;
import com.finbourne.identity.ApiCallback;
import com.finbourne.identity.ApiClient;
import com.finbourne.identity.ApiException;
import com.finbourne.identity.ApiResponse;
import com.finbourne.identity.Configuration;
import com.finbourne.identity.Pair;
import com.finbourne.identity.ProgressRequestBody;
import com.finbourne.identity.ProgressResponseBody;
import com.finbourne.identity.extensions.ConfigurationOptions;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.finbourne.identity.model.CreateApplicationRequest;
import com.finbourne.identity.model.LusidProblemDetails;
import com.finbourne.identity.model.LusidValidationProblemDetails;
import com.finbourne.identity.model.OAuthApplication;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ApplicationsApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public ApplicationsApi() {
this(Configuration.getDefaultApiClient());
}
public ApplicationsApi(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 createApplicationCall(CreateApplicationRequest createApplicationRequest, final ApiCallback _callback) throws ApiException {
return createApplicationCall(createApplicationRequest, _callback, new ConfigurationOptions());
}
private okhttp3.Call createApplicationCall(CreateApplicationRequest createApplicationRequest, 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 = createApplicationRequest;
// create path and map variables
String localVarPath = "/api/applications";
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 createApplicationValidateBeforeCall(CreateApplicationRequest createApplicationRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return createApplicationCall(createApplicationRequest, _callback, opts);
}
private ApiResponse createApplicationWithHttpInfo(CreateApplicationRequest createApplicationRequest) throws ApiException {
okhttp3.Call localVarCall = createApplicationValidateBeforeCall(createApplicationRequest, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse createApplicationWithHttpInfo(CreateApplicationRequest createApplicationRequest, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = createApplicationValidateBeforeCall(createApplicationRequest, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call createApplicationAsync(CreateApplicationRequest createApplicationRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createApplicationValidateBeforeCall(createApplicationRequest, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call createApplicationAsync(CreateApplicationRequest createApplicationRequest, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = createApplicationValidateBeforeCall(createApplicationRequest, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIcreateApplicationRequest {
private CreateApplicationRequest createApplicationRequest;
private APIcreateApplicationRequest() {
}
/**
* Set createApplicationRequest
* @param createApplicationRequest Details of the application to be created (optional)
* @return APIcreateApplicationRequest
*/
public APIcreateApplicationRequest createApplicationRequest(CreateApplicationRequest createApplicationRequest) {
this.createApplicationRequest = createApplicationRequest;
return this;
}
/**
* Build call for createApplication
* @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
Create Application
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return createApplicationCall(createApplicationRequest, _callback);
}
/**
* Execute createApplication request
* @return OAuthApplication
* @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
Create Application
-
400
The details of the input related failure
-
0
Error response
-
*/
public OAuthApplication execute() throws ApiException {
ApiResponse localVarResp = createApplicationWithHttpInfo(createApplicationRequest);
return localVarResp.getData();
}
/**
* Execute createApplication request. Use any specified configuration options to override any other configuration for this request only.
* @return OAuthApplication
* @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
Create Application
-
400
The details of the input related failure
-
0
Error response
-
*/
public OAuthApplication execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = createApplicationWithHttpInfo(createApplicationRequest, opts);
return localVarResp.getData();
}
/**
* Execute createApplication request with HTTP info returned
* @return ApiResponse<OAuthApplication>
* @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
Create Application
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return createApplicationWithHttpInfo(createApplicationRequest);
}
/**
* Execute createApplication request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<OAuthApplication>
* @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
Create Application
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return createApplicationWithHttpInfo(createApplicationRequest, opts);
}
/**
* Execute createApplication 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
Create Application
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return createApplicationAsync(createApplicationRequest, _callback);
}
/**
* Execute createApplication 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
*/
public APIcreateApplicationRequest createApplication() {
return new APIcreateApplicationRequest();
}
private okhttp3.Call deleteApplicationCall(String id, final ApiCallback _callback) throws ApiException {
return deleteApplicationCall(id, _callback, new ConfigurationOptions());
}
private okhttp3.Call deleteApplicationCall(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/api/applications/{id}"
.replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
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 deleteApplicationValidateBeforeCall(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteApplication(Async)");
}
return deleteApplicationCall(id, _callback, opts);
}
private ApiResponse deleteApplicationWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = deleteApplicationValidateBeforeCall(id, null, new ConfigurationOptions());
return localVarApiClient.execute(localVarCall);
}
private ApiResponse deleteApplicationWithHttpInfo(String id, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = deleteApplicationValidateBeforeCall(id, null, opts);
return localVarApiClient.execute(localVarCall);
}
private okhttp3.Call deleteApplicationAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteApplicationValidateBeforeCall(id, _callback, new ConfigurationOptions());
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
private okhttp3.Call deleteApplicationAsync(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = deleteApplicationValidateBeforeCall(id, _callback, opts);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
public class APIdeleteApplicationRequest {
private final String id;
private APIdeleteApplicationRequest(String id) {
this.id = id;
}
/**
* Build call for deleteApplication
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return deleteApplicationCall(id, _callback);
}
/**
* Execute deleteApplication request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public void execute() throws ApiException {
deleteApplicationWithHttpInfo(id);
}
/**
* Execute deleteApplication request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public void execute(ConfigurationOptions opts) throws ApiException {
deleteApplicationWithHttpInfo(id, opts);
}
/**
* Execute deleteApplication request with HTTP info returned
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return deleteApplicationWithHttpInfo(id);
}
/**
* Execute deleteApplication request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return deleteApplicationWithHttpInfo(id, opts);
}
/**
* Execute deleteApplication request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return deleteApplicationAsync(id, _callback);
}
/**
* Execute deleteApplication request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return deleteApplicationAsync(id, _callback, opts);
}
}
/**
* [EARLY ACCESS] DeleteApplication: Delete Application
* Delete the specified application
* @param id The unique identifier for the application (required)
* @return APIdeleteApplicationRequest
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIdeleteApplicationRequest deleteApplication(String id) {
return new APIdeleteApplicationRequest(id);
}
private okhttp3.Call getApplicationCall(String id, Boolean includeSecret, final ApiCallback _callback) throws ApiException {
return getApplicationCall(id, includeSecret, _callback, new ConfigurationOptions());
}
private okhttp3.Call getApplicationCall(String id, Boolean includeSecret, 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/applications/{id}"
.replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (includeSecret != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("includeSecret", includeSecret));
}
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 getApplicationValidateBeforeCall(String id, Boolean includeSecret, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getApplication(Async)");
}
return getApplicationCall(id, includeSecret, _callback, opts);
}
private ApiResponse getApplicationWithHttpInfo(String id, Boolean includeSecret) throws ApiException {
okhttp3.Call localVarCall = getApplicationValidateBeforeCall(id, includeSecret, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse getApplicationWithHttpInfo(String id, Boolean includeSecret, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getApplicationValidateBeforeCall(id, includeSecret, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getApplicationAsync(String id, Boolean includeSecret, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getApplicationValidateBeforeCall(id, includeSecret, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call getApplicationAsync(String id, Boolean includeSecret, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = getApplicationValidateBeforeCall(id, includeSecret, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIgetApplicationRequest {
private final String id;
private Boolean includeSecret;
private APIgetApplicationRequest(String id) {
this.id = id;
}
/**
* Set includeSecret
* @param includeSecret Optional. If set to true, the application secrets will be returned in plain text (optional)
* @return APIgetApplicationRequest
*/
public APIgetApplicationRequest includeSecret(Boolean includeSecret) {
this.includeSecret = includeSecret;
return this;
}
/**
* Build call for getApplication
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified application
-
404
Not Found
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getApplicationCall(id, includeSecret, _callback);
}
/**
* Execute getApplication request
* @return OAuthApplication
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified application
-
404
Not Found
-
400
The details of the input related failure
-
0
Error response
-
*/
public OAuthApplication execute() throws ApiException {
ApiResponse localVarResp = getApplicationWithHttpInfo(id, includeSecret);
return localVarResp.getData();
}
/**
* Execute getApplication request. Use any specified configuration options to override any other configuration for this request only.
* @return OAuthApplication
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified application
-
404
Not Found
-
400
The details of the input related failure
-
0
Error response
-
*/
public OAuthApplication execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = getApplicationWithHttpInfo(id, includeSecret, opts);
return localVarResp.getData();
}
/**
* Execute getApplication request with HTTP info returned
* @return ApiResponse<OAuthApplication>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified application
-
404
Not Found
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return getApplicationWithHttpInfo(id, includeSecret);
}
/**
* Execute getApplication request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<OAuthApplication>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified application
-
404
Not Found
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return getApplicationWithHttpInfo(id, includeSecret, opts);
}
/**
* Execute getApplication request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified application
-
404
Not Found
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getApplicationAsync(id, includeSecret, _callback);
}
/**
* Execute getApplication request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified application
-
404
Not Found
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return getApplicationAsync(id, includeSecret, _callback, opts);
}
}
/**
* GetApplication: Get Application
* get the specified application, and optionally the OIDC secret
* @param id The unique identifier for the application (required)
* @return APIgetApplicationRequest
* @http.response.details
Status Code
Description
Response Headers
200
Get the specified application
-
404
Not Found
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIgetApplicationRequest getApplication(String id) {
return new APIgetApplicationRequest(id);
}
private okhttp3.Call listApplicationsCall(final ApiCallback _callback) throws ApiException {
return listApplicationsCall( _callback, new ConfigurationOptions());
}
private okhttp3.Call listApplicationsCall(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/applications";
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 listApplicationsValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return listApplicationsCall(_callback, opts);
}
private ApiResponse> listApplicationsWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = listApplicationsValidateBeforeCall(null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse> listApplicationsWithHttpInfo(ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listApplicationsValidateBeforeCall(null, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listApplicationsAsync(final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = listApplicationsValidateBeforeCall(_callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call listApplicationsAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listApplicationsValidateBeforeCall(_callback, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIlistApplicationsRequest {
private APIlistApplicationsRequest() {
}
/**
* Build call for listApplications
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
List the available applications
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return listApplicationsCall(_callback);
}
/**
* Execute listApplications request
* @return List<OAuthApplication>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
List the available applications
-
0
Error response
-
*/
public List execute() throws ApiException {
ApiResponse> localVarResp = listApplicationsWithHttpInfo();
return localVarResp.getData();
}
/**
* Execute listApplications request. Use any specified configuration options to override any other configuration for this request only.
* @return List<OAuthApplication>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
List the available applications
-
0
Error response
-
*/
public List execute(ConfigurationOptions opts) throws ApiException {
ApiResponse> localVarResp = listApplicationsWithHttpInfo(opts);
return localVarResp.getData();
}
/**
* Execute listApplications request with HTTP info returned
* @return ApiResponse<List<OAuthApplication>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
List the available applications
-
0
Error response
-
*/
public ApiResponse> executeWithHttpInfo() throws ApiException {
return listApplicationsWithHttpInfo();
}
/**
* Execute listApplications request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<List<OAuthApplication>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
List the available applications
-
0
Error response
-
*/
public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return listApplicationsWithHttpInfo(opts);
}
/**
* Execute listApplications request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
List the available applications
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException {
return listApplicationsAsync(_callback);
}
/**
* Execute listApplications request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
List the available applications
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
return listApplicationsAsync(_callback, opts);
}
}
/**
* ListApplications: List Applications
* List the available applications
* @return APIlistApplicationsRequest
* @http.response.details
Status Code
Description
Response Headers
200
List the available applications
-
0
Error response
-
*/
public APIlistApplicationsRequest listApplications() {
return new APIlistApplicationsRequest();
}
private okhttp3.Call rotateApplicationSecretsCall(String id, final ApiCallback _callback) throws ApiException {
return rotateApplicationSecretsCall(id, _callback, new ConfigurationOptions());
}
private okhttp3.Call rotateApplicationSecretsCall(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/api/applications/{id}/lifecycle/$newsecret"
.replace("{" + "id" + "}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oauth2" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call rotateApplicationSecretsValidateBeforeCall(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling rotateApplicationSecrets(Async)");
}
return rotateApplicationSecretsCall(id, _callback, opts);
}
private ApiResponse rotateApplicationSecretsWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = rotateApplicationSecretsValidateBeforeCall(id, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse rotateApplicationSecretsWithHttpInfo(String id, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = rotateApplicationSecretsValidateBeforeCall(id, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call rotateApplicationSecretsAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = rotateApplicationSecretsValidateBeforeCall(id, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call rotateApplicationSecretsAsync(String id, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = rotateApplicationSecretsValidateBeforeCall(id, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIrotateApplicationSecretsRequest {
private final String id;
private APIrotateApplicationSecretsRequest(String id) {
this.id = id;
}
/**
* Build call for rotateApplicationSecrets
* @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
Rotate Application Secrets
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return rotateApplicationSecretsCall(id, _callback);
}
/**
* Execute rotateApplicationSecrets request
* @return OAuthApplication
* @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
Rotate Application Secrets
-
400
The details of the input related failure
-
0
Error response
-
*/
public OAuthApplication execute() throws ApiException {
ApiResponse localVarResp = rotateApplicationSecretsWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Execute rotateApplicationSecrets request. Use any specified configuration options to override any other configuration for this request only.
* @return OAuthApplication
* @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
Rotate Application Secrets
-
400
The details of the input related failure
-
0
Error response
-
*/
public OAuthApplication execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = rotateApplicationSecretsWithHttpInfo(id, opts);
return localVarResp.getData();
}
/**
* Execute rotateApplicationSecrets request with HTTP info returned
* @return ApiResponse<OAuthApplication>
* @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
Rotate Application Secrets
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return rotateApplicationSecretsWithHttpInfo(id);
}
/**
* Execute rotateApplicationSecrets request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<OAuthApplication>
* @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
Rotate Application Secrets
-
400
The details of the input related failure
-
0
Error response
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return rotateApplicationSecretsWithHttpInfo(id, opts);
}
/**
* Execute rotateApplicationSecrets 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
Rotate Application Secrets
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return rotateApplicationSecretsAsync(id, _callback);
}
/**
* Execute rotateApplicationSecrets 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
Rotate Application Secrets
-
400
The details of the input related failure
-
0
Error response
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return rotateApplicationSecretsAsync(id, _callback, opts);
}
}
/**
* [EARLY ACCESS] RotateApplicationSecrets: Rotate Application Secrets
* Rotate the secrets for the specified application
* @param id The unique identifier for the application (required)
* @return APIrotateApplicationSecretsRequest
* @http.response.details
Status Code
Description
Response Headers
200
Rotate Application Secrets
-
400
The details of the input related failure
-
0
Error response
-
*/
public APIrotateApplicationSecretsRequest rotateApplicationSecrets(String id) {
return new APIrotateApplicationSecretsRequest(id);
}
}