* | 201 |
- * 200 OK |
+ * 201 CREATED |
* * Access-Control-Allow-Origin -
* * Access-Control-Allow-Methods -
* * Access-Control-Allow-Headers -
@@ -283,12 +289,13 @@ public ApiResponse addDocumentTagsWithHttpInfo(@javax.annotation.Nonnull S
*/
public okhttp3.Call addDocumentTagsAsync(@javax.annotation.Nonnull String documentId,
@javax.annotation.Nonnull AddDocumentTagsRequest addDocumentTagsRequest,
- @javax.annotation.Nullable String siteId, final ApiCallback _callback)
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback)
throws ApiException {
okhttp3.Call localVarCall =
addDocumentTagsValidateBeforeCall(documentId, addDocumentTagsRequest, siteId, _callback);
- localVarApiClient.executeAsync(localVarCall, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
diff --git a/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java b/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java
index 411b862f0..3219a9060 100644
--- a/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java
+++ b/src/main/java/com/formkiq/client/api/DocumentVersionsApi.java
@@ -11,7 +11,7 @@
* https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ##
* Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key
*
- * The version of the OpenAPI document: 1.17.1 Contact: support@formkiq.com
+ * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech Do not edit the class manually.
diff --git a/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java b/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java
index 926d74bb4..f053e744b 100644
--- a/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java
+++ b/src/main/java/com/formkiq/client/api/DocumentWorkflowsApi.java
@@ -11,7 +11,7 @@
* https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ##
* Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key
*
- * The version of the OpenAPI document: 1.17.1 Contact: support@formkiq.com
+ * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech Do not edit the class manually.
diff --git a/src/main/java/com/formkiq/client/api/DocumentsApi.java b/src/main/java/com/formkiq/client/api/DocumentsApi.java
index 189cb8de3..a0dd7b0e5 100644
--- a/src/main/java/com/formkiq/client/api/DocumentsApi.java
+++ b/src/main/java/com/formkiq/client/api/DocumentsApi.java
@@ -11,7 +11,7 @@
* https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ##
* Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key
*
- * The version of the OpenAPI document: 1.17.1 Contact: support@formkiq.com
+ * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech Do not edit the class manually.
@@ -48,6 +48,7 @@
import com.formkiq.client.model.GetDocumentUrlResponse;
import com.formkiq.client.model.GetDocumentsResponse;
import com.formkiq.client.model.SetDocumentRestoreResponse;
+import com.formkiq.client.model.SetResponse;
import com.formkiq.client.model.UpdateDocumentRequest;
import com.formkiq.client.model.ValidationErrorsResponse;
@@ -1204,6 +1205,205 @@ public okhttp3.Call deleteDocumentAsync(@javax.annotation.Nonnull String documen
return localVarCall;
}
+ /**
+ * Build call for deleteDocumentCheckoutLegalHold
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call deleteDocumentCheckoutLegalHoldCall(
+ @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/documents/{documentId}/legalHold".replace("{" + "documentId" + "}",
+ localVarApiClient.escapeString(documentId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (siteId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId));
+ }
+
+ 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[] {"AWS4Auth"};
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams,
+ localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call deleteDocumentCheckoutLegalHoldValidateBeforeCall(
+ @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'documentId' is set
+ if (documentId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'documentId' when calling deleteDocumentCheckoutLegalHold(Async)");
+ }
+
+ return deleteDocumentCheckoutLegalHoldCall(documentId, siteId, _callback);
+
+ }
+
+ /**
+ * Delete document legal hold checkout Removes a legal hold checkout for the document; available
+ * as an Add-On Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return DeleteResponse
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public DeleteResponse deleteDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId,
+ @javax.annotation.Nullable String siteId) throws ApiException {
+ ApiResponse localVarResp =
+ deleteDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Delete document legal hold checkout Removes a legal hold checkout for the document; available
+ * as an Add-On Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return ApiResponse<DeleteResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public ApiResponse deleteDocumentCheckoutLegalHoldWithHttpInfo(
+ @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Delete document legal hold checkout (asynchronously) Removes a legal hold checkout for the
+ * document; available as an Add-On Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call deleteDocumentCheckoutLegalHoldAsync(
+ @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall =
+ deleteDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
/**
* Build call for deletePublishedDocumentContent
*
@@ -3492,6 +3692,404 @@ public okhttp3.Call purgeDocumentAsync(@javax.annotation.Nonnull String document
return localVarCall;
}
+ /**
+ * Build call for setDocumentCheckout
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call setDocumentCheckoutCall(@javax.annotation.Nonnull String documentId,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/documents/{documentId}/checkout".replace("{" + "documentId" + "}",
+ localVarApiClient.escapeString(documentId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (siteId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId));
+ }
+
+ 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[] {"AWS4Auth"};
+ return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams,
+ localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call setDocumentCheckoutValidateBeforeCall(
+ @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'documentId' is set
+ if (documentId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'documentId' when calling setDocumentCheckout(Async)");
+ }
+
+ return setDocumentCheckoutCall(documentId, siteId, _callback);
+
+ }
+
+ /**
+ * Perform document checkout Creates a checkout for the document. Fails with **409 Conflict** if
+ * the document is already checkedout by another user; available as an Add-On Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return SetResponse
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public SetResponse setDocumentCheckout(@javax.annotation.Nonnull String documentId,
+ @javax.annotation.Nullable String siteId) throws ApiException {
+ ApiResponse localVarResp = setDocumentCheckoutWithHttpInfo(documentId, siteId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Perform document checkout Creates a checkout for the document. Fails with **409 Conflict** if
+ * the document is already checkedout by another user; available as an Add-On Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return ApiResponse<SetResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public ApiResponse setDocumentCheckoutWithHttpInfo(
+ @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId)
+ throws ApiException {
+ okhttp3.Call localVarCall = setDocumentCheckoutValidateBeforeCall(documentId, siteId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Perform document checkout (asynchronously) Creates a checkout for the document. Fails with
+ * **409 Conflict** if the document is already checkedout by another user; available as an Add-On
+ * Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call setDocumentCheckoutAsync(@javax.annotation.Nonnull String documentId,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ setDocumentCheckoutValidateBeforeCall(documentId, siteId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for setDocumentCheckoutLegalHold
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call setDocumentCheckoutLegalHoldCall(@javax.annotation.Nonnull String documentId,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/documents/{documentId}/legalHold".replace("{" + "documentId" + "}",
+ localVarApiClient.escapeString(documentId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (siteId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId));
+ }
+
+ 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[] {"AWS4Auth"};
+ return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams,
+ localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call setDocumentCheckoutLegalHoldValidateBeforeCall(
+ @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'documentId' is set
+ if (documentId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'documentId' when calling setDocumentCheckoutLegalHold(Async)");
+ }
+
+ return setDocumentCheckoutLegalHoldCall(documentId, siteId, _callback);
+
+ }
+
+ /**
+ * Perform document legal hold checkout Creates a legal hold checkout for the document. Fails with
+ * **409 Conflict** if the document is already checkedout by another user; available as an Add-On
+ * Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return SetResponse
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public SetResponse setDocumentCheckoutLegalHold(@javax.annotation.Nonnull String documentId,
+ @javax.annotation.Nullable String siteId) throws ApiException {
+ ApiResponse localVarResp =
+ setDocumentCheckoutLegalHoldWithHttpInfo(documentId, siteId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Perform document legal hold checkout Creates a legal hold checkout for the document. Fails with
+ * **409 Conflict** if the document is already checkedout by another user; available as an Add-On
+ * Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return ApiResponse<SetResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public ApiResponse setDocumentCheckoutLegalHoldWithHttpInfo(
+ @javax.annotation.Nonnull String documentId, @javax.annotation.Nullable String siteId)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Perform document legal hold checkout (asynchronously) Creates a legal hold checkout for the
+ * document. Fails with **409 Conflict** if the document is already checkedout by another user;
+ * available as an Add-On Module
+ *
+ * @param documentId Document Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call setDocumentCheckoutLegalHoldAsync(@javax.annotation.Nonnull String documentId,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ setDocumentCheckoutLegalHoldValidateBeforeCall(documentId, siteId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
/**
* Build call for setDocumentRestore
*
diff --git a/src/main/java/com/formkiq/client/api/ESignatureApi.java b/src/main/java/com/formkiq/client/api/ESignatureApi.java
index d86d5cd2d..4bbd4d8ba 100644
--- a/src/main/java/com/formkiq/client/api/ESignatureApi.java
+++ b/src/main/java/com/formkiq/client/api/ESignatureApi.java
@@ -11,7 +11,7 @@
* https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ##
* Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key
*
- * The version of the OpenAPI document: 1.17.1 Contact: support@formkiq.com
+ * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech Do not edit the class manually.
diff --git a/src/main/java/com/formkiq/client/api/EntityApi.java b/src/main/java/com/formkiq/client/api/EntityApi.java
new file mode 100644
index 000000000..5b5a507c5
--- /dev/null
+++ b/src/main/java/com/formkiq/client/api/EntityApi.java
@@ -0,0 +1,2073 @@
+/*
+ * FormKiQ API JWT Formkiq API: Document Management Platform API using OAuth(JWT) Authentication You
+ * can find out more about FormKiQ at [https://formkiq.com](http://formkiq.com). ## Introduction
+ * FormKiQ is an API-first (head-less), battle-tested document management API. The FormKiQ API
+ * provides all the API endpoints to build your Perfect Document Management Platform. FormKiQ API
+ * was built on top of [OpenAPI specification](https://www.openapis.org), so it is easy to use the
+ * API spec file with any application that supports the OpenAPI specification. Open API OAuth
+ * Specification -
+ * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-jwt.yaml Open
+ * API IAM Specification -
+ * https://raw.githubusercontent.com/formkiq/formkiq-core/master/docs/openapi/openapi-iam.yaml ##
+ * Authentication FormKiQ offers three forms of authentication: - OAuth(JWT) - AWS IAM - API Key
+ *
+ * The version of the OpenAPI document: 1.18.0 Contact: support@formkiq.com
+ *
+ * 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.formkiq.client.api;
+
+import com.formkiq.client.invoker.ApiCallback;
+import com.formkiq.client.invoker.ApiClient;
+import com.formkiq.client.invoker.ApiException;
+import com.formkiq.client.invoker.ApiResponse;
+import com.formkiq.client.invoker.Configuration;
+import com.formkiq.client.invoker.Pair;
+import com.formkiq.client.invoker.ProgressRequestBody;
+import com.formkiq.client.invoker.ProgressResponseBody;
+
+import com.google.gson.reflect.TypeToken;
+
+import java.io.IOException;
+
+
+import com.formkiq.client.model.AddEntityRequest;
+import com.formkiq.client.model.AddEntityResponse;
+import com.formkiq.client.model.AddEntityTypeRequest;
+import com.formkiq.client.model.AddEntityTypeResponse;
+import com.formkiq.client.model.DeleteResponse;
+import com.formkiq.client.model.GetEntitiesResponse;
+import com.formkiq.client.model.GetEntityResponse;
+import com.formkiq.client.model.GetEntityTypeResponse;
+import com.formkiq.client.model.GetEntityTypesResponse;
+import com.formkiq.client.model.UpdateEntityRequest;
+import com.formkiq.client.model.UpdateResponse;
+import com.formkiq.client.model.ValidationErrorsResponse;
+
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class EntityApi {
+ private ApiClient localVarApiClient;
+ private int localHostIndex;
+ private String localCustomBaseUrl;
+
+ public EntityApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public EntityApi(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return localVarApiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.localVarApiClient = apiClient;
+ }
+
+ public int getHostIndex() {
+ return localHostIndex;
+ }
+
+ public void setHostIndex(int hostIndex) {
+ this.localHostIndex = hostIndex;
+ }
+
+ public String getCustomBaseUrl() {
+ return localCustomBaseUrl;
+ }
+
+ public void setCustomBaseUrl(String customBaseUrl) {
+ this.localCustomBaseUrl = customBaseUrl;
+ }
+
+ /**
+ * Build call for addEntity
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param addEntityRequest (required)
+ * @param siteId Site Identifier (optional)
+ * @param namespace Namespace Identifier (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 201 |
+ * 201 CREATED |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ * | 400 |
+ * 400 OK |
+ * - |
+ *
+ *
+ */
+ public okhttp3.Call addEntityCall(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull AddEntityRequest addEntityRequest,
+ @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace,
+ final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = addEntityRequest;
+
+ // create path and map variables
+ String localVarPath = "/entities/{entityTypeId}".replace("{" + "entityTypeId" + "}",
+ localVarApiClient.escapeString(entityTypeId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (siteId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId));
+ }
+
+ if (namespace != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace));
+ }
+
+ final String[] localVarAccepts = {"application/json"};
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/json"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"AWS4Auth"};
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams,
+ localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call addEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull AddEntityRequest addEntityRequest,
+ @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace,
+ final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'entityTypeId' is set
+ if (entityTypeId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'entityTypeId' when calling addEntity(Async)");
+ }
+
+ // verify the required parameter 'addEntityRequest' is set
+ if (addEntityRequest == null) {
+ throw new ApiException(
+ "Missing the required parameter 'addEntityRequest' when calling addEntity(Async)");
+ }
+
+ return addEntityCall(entityTypeId, addEntityRequest, siteId, namespace, _callback);
+
+ }
+
+ /**
+ * Add New Entity Creates a Entity
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param addEntityRequest (required)
+ * @param siteId Site Identifier (optional)
+ * @param namespace Namespace Identifier (optional)
+ * @return AddEntityResponse
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 201 |
+ * 201 CREATED |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ * | 400 |
+ * 400 OK |
+ * - |
+ *
+ *
+ */
+ public AddEntityResponse addEntity(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull AddEntityRequest addEntityRequest,
+ @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace)
+ throws ApiException {
+ ApiResponse localVarResp =
+ addEntityWithHttpInfo(entityTypeId, addEntityRequest, siteId, namespace);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Add New Entity Creates a Entity
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param addEntityRequest (required)
+ * @param siteId Site Identifier (optional)
+ * @param namespace Namespace Identifier (optional)
+ * @return ApiResponse<AddEntityResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 201 |
+ * 201 CREATED |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ * | 400 |
+ * 400 OK |
+ * - |
+ *
+ *
+ */
+ public ApiResponse addEntityWithHttpInfo(
+ @javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull AddEntityRequest addEntityRequest,
+ @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace)
+ throws ApiException {
+ okhttp3.Call localVarCall =
+ addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Add New Entity (asynchronously) Creates a Entity
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param addEntityRequest (required)
+ * @param siteId Site Identifier (optional)
+ * @param namespace Namespace Identifier (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 201 |
+ * 201 CREATED |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ * | 400 |
+ * 400 OK |
+ * - |
+ *
+ *
+ */
+ public okhttp3.Call addEntityAsync(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull AddEntityRequest addEntityRequest,
+ @javax.annotation.Nullable String siteId, @javax.annotation.Nullable String namespace,
+ final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall =
+ addEntityValidateBeforeCall(entityTypeId, addEntityRequest, siteId, namespace, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for addEntityType
+ *
+ * @param addEntityTypeRequest (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 201 |
+ * 201 CREATED |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ * | 400 |
+ * 400 OK |
+ * - |
+ *
+ *
+ */
+ public okhttp3.Call addEntityTypeCall(
+ @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = addEntityTypeRequest;
+
+ // create path and map variables
+ String localVarPath = "/entityTypes";
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (siteId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId));
+ }
+
+ final String[] localVarAccepts = {"application/json"};
+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) {
+ localVarHeaderParams.put("Accept", localVarAccept);
+ }
+
+ final String[] localVarContentTypes = {"application/json"};
+ final String localVarContentType =
+ localVarApiClient.selectHeaderContentType(localVarContentTypes);
+ if (localVarContentType != null) {
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+ }
+
+ String[] localVarAuthNames = new String[] {"AWS4Auth"};
+ return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams,
+ localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call addEntityTypeValidateBeforeCall(
+ @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'addEntityTypeRequest' is set
+ if (addEntityTypeRequest == null) {
+ throw new ApiException(
+ "Missing the required parameter 'addEntityTypeRequest' when calling addEntityType(Async)");
+ }
+
+ return addEntityTypeCall(addEntityTypeRequest, siteId, _callback);
+
+ }
+
+ /**
+ * Add New EntityType Creates a Entity Type
+ *
+ * @param addEntityTypeRequest (required)
+ * @param siteId Site Identifier (optional)
+ * @return AddEntityTypeResponse
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 201 |
+ * 201 CREATED |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ * | 400 |
+ * 400 OK |
+ * - |
+ *
+ *
+ */
+ public AddEntityTypeResponse addEntityType(
+ @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest,
+ @javax.annotation.Nullable String siteId) throws ApiException {
+ ApiResponse localVarResp =
+ addEntityTypeWithHttpInfo(addEntityTypeRequest, siteId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Add New EntityType Creates a Entity Type
+ *
+ * @param addEntityTypeRequest (required)
+ * @param siteId Site Identifier (optional)
+ * @return ApiResponse<AddEntityTypeResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 201 |
+ * 201 CREATED |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ * | 400 |
+ * 400 OK |
+ * - |
+ *
+ *
+ */
+ public ApiResponse addEntityTypeWithHttpInfo(
+ @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest,
+ @javax.annotation.Nullable String siteId) throws ApiException {
+ okhttp3.Call localVarCall = addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Add New EntityType (asynchronously) Creates a Entity Type
+ *
+ * @param addEntityTypeRequest (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 201 |
+ * 201 CREATED |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ * | 400 |
+ * 400 OK |
+ * - |
+ *
+ *
+ */
+ public okhttp3.Call addEntityTypeAsync(
+ @javax.annotation.Nonnull AddEntityTypeRequest addEntityTypeRequest,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall =
+ addEntityTypeValidateBeforeCall(addEntityTypeRequest, siteId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for deleteEntity
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param entityId Entity Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call deleteEntityCall(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/entities/{entityTypeId}/{entityId}"
+ .replace("{" + "entityTypeId" + "}",
+ localVarApiClient.escapeString(entityTypeId.toString()))
+ .replace("{" + "entityId" + "}", localVarApiClient.escapeString(entityId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (siteId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId));
+ }
+
+ 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[] {"AWS4Auth"};
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams,
+ localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call deleteEntityValidateBeforeCall(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'entityTypeId' is set
+ if (entityTypeId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'entityTypeId' when calling deleteEntity(Async)");
+ }
+
+ // verify the required parameter 'entityId' is set
+ if (entityId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'entityId' when calling deleteEntity(Async)");
+ }
+
+ return deleteEntityCall(entityTypeId, entityId, siteId, _callback);
+
+ }
+
+ /**
+ * Deletes Entity Deletes Entity
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param entityId Entity Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return DeleteResponse
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public DeleteResponse deleteEntity(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId)
+ throws ApiException {
+ ApiResponse localVarResp =
+ deleteEntityWithHttpInfo(entityTypeId, entityId, siteId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Deletes Entity Deletes Entity
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param entityId Entity Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return ApiResponse<DeleteResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public ApiResponse deleteEntityWithHttpInfo(
+ @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nonnull String entityId,
+ @javax.annotation.Nullable String siteId) throws ApiException {
+ okhttp3.Call localVarCall =
+ deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Deletes Entity (asynchronously) Deletes Entity
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param entityId Entity Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call deleteEntityAsync(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nonnull String entityId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+
+ okhttp3.Call localVarCall =
+ deleteEntityValidateBeforeCall(entityTypeId, entityId, siteId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for deleteEntityType
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call deleteEntityTypeCall(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback) throws ApiException {
+ String basePath = null;
+ // Operation Servers
+ String[] localBasePaths = new String[] {};
+
+ // Determine Base Path to Use
+ if (localCustomBaseUrl != null) {
+ basePath = localCustomBaseUrl;
+ } else if (localBasePaths.length > 0) {
+ basePath = localBasePaths[localHostIndex];
+ } else {
+ basePath = null;
+ }
+
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/entityTypes/{entityTypeId}".replace("{" + "entityTypeId" + "}",
+ localVarApiClient.escapeString(entityTypeId.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ if (siteId != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("siteId", siteId));
+ }
+
+ 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[] {"AWS4Auth"};
+ return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams,
+ localVarFormParams, localVarAuthNames, _callback);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call deleteEntityTypeValidateBeforeCall(
+ @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId,
+ final ApiCallback _callback) throws ApiException {
+ // verify the required parameter 'entityTypeId' is set
+ if (entityTypeId == null) {
+ throw new ApiException(
+ "Missing the required parameter 'entityTypeId' when calling deleteEntityType(Async)");
+ }
+
+ return deleteEntityTypeCall(entityTypeId, siteId, _callback);
+
+ }
+
+ /**
+ * Deletes Entity Type Deletes Entity Type
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return DeleteResponse
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public DeleteResponse deleteEntityType(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nullable String siteId) throws ApiException {
+ ApiResponse localVarResp = deleteEntityTypeWithHttpInfo(entityTypeId, siteId);
+ return localVarResp.getData();
+ }
+
+ /**
+ * Deletes Entity Type Deletes Entity Type
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @return ApiResponse<DeleteResponse>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
+ * response body
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public ApiResponse deleteEntityTypeWithHttpInfo(
+ @javax.annotation.Nonnull String entityTypeId, @javax.annotation.Nullable String siteId)
+ throws ApiException {
+ okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, null);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ return localVarApiClient.execute(localVarCall, localVarReturnType);
+ }
+
+ /**
+ * Deletes Entity Type (asynchronously) Deletes Entity Type
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param _callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin -
+ * * Access-Control-Allow-Methods -
+ * * Access-Control-Allow-Headers -
+ * |
+ *
+ *
+ */
+ public okhttp3.Call deleteEntityTypeAsync(@javax.annotation.Nonnull String entityTypeId,
+ @javax.annotation.Nullable String siteId, final ApiCallback _callback)
+ throws ApiException {
+
+ okhttp3.Call localVarCall = deleteEntityTypeValidateBeforeCall(entityTypeId, siteId, _callback);
+ Type localVarReturnType = new TypeToken() {}.getType();
+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
+ return localVarCall;
+ }
+
+ /**
+ * Build call for getEntities
+ *
+ * @param entityTypeId EntityType Identifier (required)
+ * @param siteId Site Identifier (optional)
+ * @param namespace Namespace Identifier (optional)
+ * @param next Next page of results token (optional)
+ * @param limit Limit Results (optional, default to 10)
+ * @param _callback Callback for upload/download progress
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ * @http.response.details
+ *
+ * Response Details
+ *
+ * | Status Code |
+ * Description |
+ * Response Headers |
+ *
+ *
+ * | 200 |
+ * 200 OK |
+ * * Access-Control-Allow-Origin - | |