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 Luminesce Web 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.luminesce.api;
import com.finbourne.luminesce.ApiCallback;
import com.finbourne.luminesce.ApiClient;
import com.finbourne.luminesce.ApiException;
import com.finbourne.luminesce.ApiResponse;
import com.finbourne.luminesce.Configuration;
import com.finbourne.luminesce.Pair;
import com.finbourne.luminesce.ProgressRequestBody;
import com.finbourne.luminesce.ProgressResponseBody;
import com.finbourne.luminesce.extensions.ConfigurationOptions;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.finbourne.luminesce.model.CertificateAction;
import com.finbourne.luminesce.model.CertificateFileType;
import com.finbourne.luminesce.model.CertificateState;
import com.finbourne.luminesce.model.CertificateType;
import java.io.File;
import com.finbourne.luminesce.model.LusidProblemDetails;
import java.time.OffsetDateTime;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CertificateManagementApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public CertificateManagementApi() {
this(Configuration.getDefaultApiClient());
}
public CertificateManagementApi(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 downloadCertificateCall(CertificateType type, CertificateFileType fileType, Boolean mayAutoCreate, final ApiCallback _callback) throws ApiException {
return downloadCertificateCall(type, fileType, mayAutoCreate, _callback, new ConfigurationOptions());
}
private okhttp3.Call downloadCertificateCall(CertificateType type, CertificateFileType fileType, Boolean mayAutoCreate, 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/Certificate/certificate";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (type != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type));
}
if (fileType != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("fileType", fileType));
}
if (mayAutoCreate != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("mayAutoCreate", mayAutoCreate));
}
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/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 downloadCertificateValidateBeforeCall(CertificateType type, CertificateFileType fileType, Boolean mayAutoCreate, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return downloadCertificateCall(type, fileType, mayAutoCreate, _callback, opts);
}
private ApiResponse downloadCertificateWithHttpInfo(CertificateType type, CertificateFileType fileType, Boolean mayAutoCreate) throws ApiException {
okhttp3.Call localVarCall = downloadCertificateValidateBeforeCall(type, fileType, mayAutoCreate, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse downloadCertificateWithHttpInfo(CertificateType type, CertificateFileType fileType, Boolean mayAutoCreate, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = downloadCertificateValidateBeforeCall(type, fileType, mayAutoCreate, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call downloadCertificateAsync(CertificateType type, CertificateFileType fileType, Boolean mayAutoCreate, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = downloadCertificateValidateBeforeCall(type, fileType, mayAutoCreate, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call downloadCertificateAsync(CertificateType type, CertificateFileType fileType, Boolean mayAutoCreate, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = downloadCertificateValidateBeforeCall(type, fileType, mayAutoCreate, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIdownloadCertificateRequest {
private CertificateType type;
private CertificateFileType fileType;
private Boolean mayAutoCreate;
private APIdownloadCertificateRequest() {
}
/**
* Set type
* @param type User or Domain level cert (Domain level requires additional entitlements) (optional)
* @return APIdownloadCertificateRequest
*/
public APIdownloadCertificateRequest type(CertificateType type) {
this.type = type;
return this;
}
/**
* Set fileType
* @param fileType Should the public key or private key be downloaded? (both must be in place to run providers) (optional)
* @return APIdownloadCertificateRequest
*/
public APIdownloadCertificateRequest fileType(CertificateFileType fileType) {
this.fileType = fileType;
return this;
}
/**
* Set mayAutoCreate
* @param mayAutoCreate If no matching cert is available, should an attempt be made to Create/Renew it with default options? (optional, default to false)
* @return APIdownloadCertificateRequest
*/
public APIdownloadCertificateRequest mayAutoCreate(Boolean mayAutoCreate) {
this.mayAutoCreate = mayAutoCreate;
return this;
}
/**
* Build call for downloadCertificate
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return downloadCertificateCall(type, fileType, mayAutoCreate, _callback);
}
/**
* Execute downloadCertificate request
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public File execute() throws ApiException {
ApiResponse localVarResp = downloadCertificateWithHttpInfo(type, fileType, mayAutoCreate);
return localVarResp.getData();
}
/**
* Execute downloadCertificate request. Use any specified configuration options to override any other configuration for this request only.
* @return File
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public File execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = downloadCertificateWithHttpInfo(type, fileType, mayAutoCreate, opts);
return localVarResp.getData();
}
/**
* Execute downloadCertificate request with HTTP info returned
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return downloadCertificateWithHttpInfo(type, fileType, mayAutoCreate);
}
/**
* Execute downloadCertificate request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<File>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return downloadCertificateWithHttpInfo(type, fileType, mayAutoCreate, opts);
}
/**
* Execute downloadCertificate request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return downloadCertificateAsync(type, fileType, mayAutoCreate, _callback);
}
/**
* Execute downloadCertificate request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return downloadCertificateAsync(type, fileType, mayAutoCreate, _callback, opts);
}
}
/**
* [EXPERIMENTAL] DownloadCertificate: Download Domain or your personal certificates
* Downloads your latest Domain or your User certificate's public or private key - if any. The following error codes are to be anticipated with standard Problem Detail reports: - 400 BadRequest - certificate is not available for some reason - 401 Unauthorized - 403 Forbidden
* @return APIdownloadCertificateRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIdownloadCertificateRequest downloadCertificate() {
return new APIdownloadCertificateRequest();
}
private okhttp3.Call listCertificatesCall(final ApiCallback _callback) throws ApiException {
return listCertificatesCall( _callback, new ConfigurationOptions());
}
private okhttp3.Call listCertificatesCall(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/Certificate/certificates";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/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 listCertificatesValidateBeforeCall(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return listCertificatesCall(_callback, opts);
}
private ApiResponse> listCertificatesWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = listCertificatesValidateBeforeCall(null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse> listCertificatesWithHttpInfo(ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listCertificatesValidateBeforeCall(null, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listCertificatesAsync(final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = listCertificatesValidateBeforeCall(_callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call listCertificatesAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = listCertificatesValidateBeforeCall(_callback, opts);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APIlistCertificatesRequest {
private APIlistCertificatesRequest() {
}
/**
* Build call for listCertificates
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return listCertificatesCall(_callback);
}
/**
* Execute listCertificates request
* @return List<CertificateState>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public List execute() throws ApiException {
ApiResponse> localVarResp = listCertificatesWithHttpInfo();
return localVarResp.getData();
}
/**
* Execute listCertificates request. Use any specified configuration options to override any other configuration for this request only.
* @return List<CertificateState>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public List execute(ConfigurationOptions opts) throws ApiException {
ApiResponse> localVarResp = listCertificatesWithHttpInfo(opts);
return localVarResp.getData();
}
/**
* Execute listCertificates request with HTTP info returned
* @return ApiResponse<List<CertificateState>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse> executeWithHttpInfo() throws ApiException {
return listCertificatesWithHttpInfo();
}
/**
* Execute listCertificates request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<List<CertificateState>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse> executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return listCertificatesWithHttpInfo(opts);
}
/**
* Execute listCertificates request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException {
return listCertificatesAsync(_callback);
}
/**
* Execute listCertificates request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback, ConfigurationOptions opts) throws ApiException {
return listCertificatesAsync(_callback, opts);
}
}
/**
* [EXPERIMENTAL] ListCertificates: Lists previously minted certificates
* Lists all the certificates previously minted to which you have access. The following error codes are to be anticipated with standard Problem Detail reports: - 401 Unauthorized - 403 Forbidden
* @return APIlistCertificatesRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APIlistCertificatesRequest listCertificates() {
return new APIlistCertificatesRequest();
}
private okhttp3.Call manageCertificateCall(CertificateAction action, CertificateType type, Integer version, OffsetDateTime validityStart, OffsetDateTime validityEnd, Boolean dryRun, final ApiCallback _callback) throws ApiException {
return manageCertificateCall(action, type, version, validityStart, validityEnd, dryRun, _callback, new ConfigurationOptions());
}
private okhttp3.Call manageCertificateCall(CertificateAction action, CertificateType type, Integer version, OffsetDateTime validityStart, OffsetDateTime validityEnd, Boolean dryRun, 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/Certificate/manage";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (action != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("action", action));
}
if (type != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("type", type));
}
if (version != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("version", version));
}
if (validityStart != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("validityStart", validityStart));
}
if (validityEnd != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("validityEnd", validityEnd));
}
if (dryRun != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun));
}
final String[] localVarAccepts = {
"text/plain",
"application/json",
"text/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, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback, opts);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call manageCertificateValidateBeforeCall(CertificateAction action, CertificateType type, Integer version, OffsetDateTime validityStart, OffsetDateTime validityEnd, Boolean dryRun, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return manageCertificateCall(action, type, version, validityStart, validityEnd, dryRun, _callback, opts);
}
private ApiResponse manageCertificateWithHttpInfo(CertificateAction action, CertificateType type, Integer version, OffsetDateTime validityStart, OffsetDateTime validityEnd, Boolean dryRun) throws ApiException {
okhttp3.Call localVarCall = manageCertificateValidateBeforeCall(action, type, version, validityStart, validityEnd, dryRun, null, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private ApiResponse manageCertificateWithHttpInfo(CertificateAction action, CertificateType type, Integer version, OffsetDateTime validityStart, OffsetDateTime validityEnd, Boolean dryRun, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = manageCertificateValidateBeforeCall(action, type, version, validityStart, validityEnd, dryRun, null, opts);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call manageCertificateAsync(CertificateAction action, CertificateType type, Integer version, OffsetDateTime validityStart, OffsetDateTime validityEnd, Boolean dryRun, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = manageCertificateValidateBeforeCall(action, type, version, validityStart, validityEnd, dryRun, _callback, new ConfigurationOptions());
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
private okhttp3.Call manageCertificateAsync(CertificateAction action, CertificateType type, Integer version, OffsetDateTime validityStart, OffsetDateTime validityEnd, Boolean dryRun, final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
okhttp3.Call localVarCall = manageCertificateValidateBeforeCall(action, type, version, validityStart, validityEnd, dryRun, _callback, opts);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class APImanageCertificateRequest {
private CertificateAction action;
private CertificateType type;
private Integer version;
private OffsetDateTime validityStart;
private OffsetDateTime validityEnd;
private Boolean dryRun;
private APImanageCertificateRequest() {
}
/**
* Set action
* @param action The Action to perform, e.g. Create / Renew / Revoke (optional)
* @return APImanageCertificateRequest
*/
public APImanageCertificateRequest action(CertificateAction action) {
this.action = action;
return this;
}
/**
* Set type
* @param type User or Domain level cert (Domain level requires additional entitlements) (optional)
* @return APImanageCertificateRequest
*/
public APImanageCertificateRequest type(CertificateType type) {
this.type = type;
return this;
}
/**
* Set version
* @param version Version number of the cert, the request will fail to validate if incorrect (optional, default to 1)
* @return APImanageCertificateRequest
*/
public APImanageCertificateRequest version(Integer version) {
this.version = version;
return this;
}
/**
* Set validityStart
* @param validityStart When should the cert first be valid (defaults to the current time in UTC) (optional)
* @return APImanageCertificateRequest
*/
public APImanageCertificateRequest validityStart(OffsetDateTime validityStart) {
this.validityStart = validityStart;
return this;
}
/**
* Set validityEnd
* @param validityEnd When should the cert no longer be valid (defaults to 13 months from now) (optional)
* @return APImanageCertificateRequest
*/
public APImanageCertificateRequest validityEnd(OffsetDateTime validityEnd) {
this.validityEnd = validityEnd;
return this;
}
/**
* Set dryRun
* @param dryRun True will just validate the request, but perform no changes to any system (optional, default to true)
* @return APImanageCertificateRequest
*/
public APImanageCertificateRequest dryRun(Boolean dryRun) {
this.dryRun = dryRun;
return this;
}
/**
* Build call for manageCertificate
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return manageCertificateCall(action, type, version, validityStart, validityEnd, dryRun, _callback);
}
/**
* Execute manageCertificate request
* @return CertificateState
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public CertificateState execute() throws ApiException {
ApiResponse localVarResp = manageCertificateWithHttpInfo(action, type, version, validityStart, validityEnd, dryRun);
return localVarResp.getData();
}
/**
* Execute manageCertificate request. Use any specified configuration options to override any other configuration for this request only.
* @return CertificateState
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public CertificateState execute(ConfigurationOptions opts) throws ApiException {
ApiResponse localVarResp = manageCertificateWithHttpInfo(action, type, version, validityStart, validityEnd, dryRun, opts);
return localVarResp.getData();
}
/**
* Execute manageCertificate request with HTTP info returned
* @return ApiResponse<CertificateState>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo() throws ApiException {
return manageCertificateWithHttpInfo(action, type, version, validityStart, validityEnd, dryRun);
}
/**
* Execute manageCertificate request with HTTP info returned. Use any specified configuration options to override any other configuration for this request only.
* @return ApiResponse<CertificateState>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public ApiResponse executeWithHttpInfo(ConfigurationOptions opts) throws ApiException {
return manageCertificateWithHttpInfo(action, type, version, validityStart, validityEnd, dryRun, opts);
}
/**
* Execute manageCertificate request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return manageCertificateAsync(action, type, version, validityStart, validityEnd, dryRun, _callback);
}
/**
* Execute manageCertificate request (asynchronously). Use any specified configuration options to override any other configuration for this request only.
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback, ConfigurationOptions opts) throws ApiException {
return manageCertificateAsync(action, type, version, validityStart, validityEnd, dryRun, _callback, opts);
}
}
/**
* [EXPERIMENTAL] ManageCertificate: Create / Renew / Revoke a certificate
* Manages a certificate. This could be creating a new one, renewing an old one or revoking one explicitly. The following error codes are to be anticipated with standard Problem Detail reports: - 400 BadRequest - something about the request cannot be processed - 401 Unauthorized - 403 Forbidden
* @return APImanageCertificateRequest
* @http.response.details
Status Code
Description
Response Headers
200
Success
-
400
Bad Request
-
403
Forbidden
-
*/
public APImanageCertificateRequest manageCertificate() {
return new APImanageCertificateRequest();
}
}