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.
package com.seeq.api;
import com.seeq.ApiException;
import com.seeq.ApiClient;
import com.seeq.Configuration;
import com.seeq.model.*;
import com.seeq.Pair;
import javax.ws.rs.core.GenericType;
import javax.ws.rs.ProcessingException;
import com.seeq.model.AceInputV1;
import com.seeq.model.AclInputV1;
import com.seeq.model.AclOutputV1;
import com.seeq.model.CacheInfoV1;
import com.seeq.model.CalculatedItemOutputV1;
import com.seeq.model.FormulaCompileOutputV1;
import com.seeq.model.FormulaUpdateInputV1;
import com.seeq.model.ItemDependencyOutputV1;
import com.seeq.model.ItemFinderInputV1;
import com.seeq.model.ItemFinderOutputListV1;
import com.seeq.model.ItemFinderOutputV1;
import com.seeq.model.ItemOutputV1;
import com.seeq.model.ItemPreviewListV1;
import com.seeq.model.ItemPreviewV1;
import com.seeq.model.ItemSearchPreviewListV1;
import com.seeq.model.ItemSearchPreviewPaginatedListV1;
import com.seeq.model.ItemUserAttributesInputV1;
import com.seeq.model.ItemUserAttributesOutputV1;
import com.seeq.model.PropertyHrefOutputV1;
import com.seeq.model.PropertyInputV1;
import com.seeq.model.PropertyOutputV1;
import com.seeq.model.ScalarPropertyV1;
import com.seeq.model.StatusMessageBase;
import com.seeq.model.SwapInputV1;
import com.seeq.model.SwapOptionListV1;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ItemsApi {
private ApiClient apiClient;
private long retryTimeout = 5_000; // Default of 5 seconds
public ItemsApi() {
this(Configuration.getDefaultApiClient());
}
public ItemsApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public void setRetryTimeout(long retryTimeout) {
this.retryTimeout = retryTimeout;
}
public long getRetryTimeout() {
return this.retryTimeout;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Add an access control entry to an item
*
* @param id ID of the item to add access control entry to (required)
* @param body The access control entry to add to the item (required)
* @return AclOutputV1
* @throws ApiException if fails to make API call
*/
public AclOutputV1 addAccessControlEntry(String id, AceInputV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = addAccessControlEntryWithHttpInfo(id, body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Add an access control entry to an item
*
* @param id ID of the item to add access control entry to (required)
* @param body The access control entry to add to the item (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse addAccessControlEntryWithHttpInfo(String id, AceInputV1 body) throws ApiException {
Map localVarHeaderParams = new HashMap();
return addAccessControlEntryWithHeadersAndHttpInfo(id, body, localVarHeaderParams);
}
/**
* Add an access control entry to an item
*
* @param id ID of the item to add access control entry to (required)
* @param body The access control entry to add to the item (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse addAccessControlEntryWithHeadersAndHttpInfo(String id, AceInputV1 body, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return addAccessControlEntryInternal(id, body, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse addAccessControlEntryInternal(String id, AceInputV1 body, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = body;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling addAccessControlEntry");
}
// verify the required body parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required body parameter 'body' when calling addAccessControlEntry");
}
// create path and map variables
String localVarPath = "/items/{id}/ace"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/vnd.seeq.v1+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Archive or delete an item
*
* @param id ID of the item for which to retrieve properties (required)
* @param delete Permanently and irretrievably delete the item (optional, default to false)
* @param archivedReason The reason for archiving the item. Can be one of OBSOLETE_SQLV1, BY_USER, DATASOURCE_CLEANUP, BY_MIGRATION, BY_PARENT_ITEM, BY_AUTO_ARCHIVE, BY_SANDBOX_MODE, or NONE (optional, default to BY_USER)
* @param note An optional note for why the item was archived (optional)
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase archiveItem(String id, Boolean delete, String archivedReason, String note) throws ApiException {
ApiClient.ApiResponse localVarResponse = archiveItemWithHttpInfo(id, delete, archivedReason, note);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Archive or delete an item
*
* @param id ID of the item for which to retrieve properties (required)
* @param delete Permanently and irretrievably delete the item (optional, default to false)
* @param archivedReason The reason for archiving the item. Can be one of OBSOLETE_SQLV1, BY_USER, DATASOURCE_CLEANUP, BY_MIGRATION, BY_PARENT_ITEM, BY_AUTO_ARCHIVE, BY_SANDBOX_MODE, or NONE (optional, default to BY_USER)
* @param note An optional note for why the item was archived (optional)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse archiveItemWithHttpInfo(String id, Boolean delete, String archivedReason, String note) throws ApiException {
Map localVarHeaderParams = new HashMap();
return archiveItemWithHeadersAndHttpInfo(id, delete, archivedReason, note, localVarHeaderParams);
}
/**
* Archive or delete an item
*
* @param id ID of the item for which to retrieve properties (required)
* @param delete Permanently and irretrievably delete the item (optional, default to false)
* @param archivedReason The reason for archiving the item. Can be one of OBSOLETE_SQLV1, BY_USER, DATASOURCE_CLEANUP, BY_MIGRATION, BY_PARENT_ITEM, BY_AUTO_ARCHIVE, BY_SANDBOX_MODE, or NONE (optional, default to BY_USER)
* @param note An optional note for why the item was archived (optional)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse archiveItemWithHeadersAndHttpInfo(String id, Boolean delete, String archivedReason, String note, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "delete", delete));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "archivedReason", archivedReason));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "note", note));
localVarHeaderParams.putAll(customHeaders);
return archiveItemInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse archiveItemInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling archiveItem");
}
// create path and map variables
String localVarPath = "/items/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "DELETE", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Archive an item finder
*
* @param id ID of the item finder to archive. (required)
* @throws ApiException if fails to make API call
*/
public void archiveItemFinder(String id) throws ApiException {
archiveItemFinderWithHttpInfo(id);
}
/**
* Archive an item finder
*
* @param id ID of the item finder to archive. (required)
* @throws ApiException if fails to make API call
*/
public void archiveItemFinderWithHttpInfo(String id) throws ApiException {
Map localVarHeaderParams = new HashMap();
archiveItemFinderWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Archive an item finder
*
* @param id ID of the item finder to archive. (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public void archiveItemFinderWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
archiveItemFinderInternal(id, localVarQueryParams, localVarHeaderParams);
}
private void archiveItemFinderInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling archiveItemFinder");
}
// create path and map variables
String localVarPath = "/items/finders/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
apiClient.invokeAPIWithHttpInfo(localVarPath, "DELETE", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
return;
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Change the owner of the specified item to the specified user. You need to be an administrator to be able to change the owner.
*
* @param itemId ID of the item to change owner for (required)
* @param newOwnerId ID of the user to become the new owner (required)
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase changeOwner(String itemId, String newOwnerId) throws ApiException {
ApiClient.ApiResponse localVarResponse = changeOwnerWithHttpInfo(itemId, newOwnerId);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Change the owner of the specified item to the specified user. You need to be an administrator to be able to change the owner.
*
* @param itemId ID of the item to change owner for (required)
* @param newOwnerId ID of the user to become the new owner (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse changeOwnerWithHttpInfo(String itemId, String newOwnerId) throws ApiException {
Map localVarHeaderParams = new HashMap();
return changeOwnerWithHeadersAndHttpInfo(itemId, newOwnerId, localVarHeaderParams);
}
/**
* Change the owner of the specified item to the specified user. You need to be an administrator to be able to change the owner.
*
* @param itemId ID of the item to change owner for (required)
* @param newOwnerId ID of the user to become the new owner (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse changeOwnerWithHeadersAndHttpInfo(String itemId, String newOwnerId, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return changeOwnerInternal(itemId, newOwnerId, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse changeOwnerInternal(String itemId, String newOwnerId, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'itemId' is set
if (itemId == null) {
throw new ApiException(400, "Missing the required path parameter 'itemId' when calling changeOwner");
}
// verify the required path parameter 'newOwnerId' is set
if (newOwnerId == null) {
throw new ApiException(400, "Missing the required path parameter 'newOwnerId' when calling changeOwner");
}
// create path and map variables
String localVarPath = "/items/{itemId}/owner/{newOwnerId}"
.replaceAll("\\{" + "itemId" + "\\}", apiClient.escapeString(itemId.toString()))
.replaceAll("\\{" + "newOwnerId" + "\\}", apiClient.escapeString(newOwnerId.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/vnd.seeq.v1+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Clear the cache for an item.
*
* @param id ID of the item on which to clear cache (required)
* @param clearDependents Whether dependent caches should be cleared. Should always be true if a cache is in error, but false may be valuable when merely trying to recover disk space. (optional, default to true)
* @return CacheInfoV1
* @throws ApiException if fails to make API call
*/
public CacheInfoV1 clearCache(String id, Boolean clearDependents) throws ApiException {
ApiClient.ApiResponse localVarResponse = clearCacheWithHttpInfo(id, clearDependents);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Clear the cache for an item.
*
* @param id ID of the item on which to clear cache (required)
* @param clearDependents Whether dependent caches should be cleared. Should always be true if a cache is in error, but false may be valuable when merely trying to recover disk space. (optional, default to true)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse clearCacheWithHttpInfo(String id, Boolean clearDependents) throws ApiException {
Map localVarHeaderParams = new HashMap();
return clearCacheWithHeadersAndHttpInfo(id, clearDependents, localVarHeaderParams);
}
/**
* Clear the cache for an item.
*
* @param id ID of the item on which to clear cache (required)
* @param clearDependents Whether dependent caches should be cleared. Should always be true if a cache is in error, but false may be valuable when merely trying to recover disk space. (optional, default to true)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse clearCacheWithHeadersAndHttpInfo(String id, Boolean clearDependents, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "clearDependents", clearDependents));
localVarHeaderParams.putAll(customHeaders);
return clearCacheInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse clearCacheInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling clearCache");
}
// create path and map variables
String localVarPath = "/items/{id}/cache"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "DELETE", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Create a new item finder
*
* @param body (required)
* @return ItemFinderOutputV1
* @throws ApiException if fails to make API call
*/
public ItemFinderOutputV1 createItemFinder(ItemFinderInputV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = createItemFinderWithHttpInfo(body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Create a new item finder
*
* @param body (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse createItemFinderWithHttpInfo(ItemFinderInputV1 body) throws ApiException {
Map localVarHeaderParams = new HashMap();
return createItemFinderWithHeadersAndHttpInfo(body, localVarHeaderParams);
}
/**
* Create a new item finder
*
* @param body (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse createItemFinderWithHeadersAndHttpInfo(ItemFinderInputV1 body, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return createItemFinderInternal(body, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse createItemFinderInternal(ItemFinderInputV1 body, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = body;
// verify the required body parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required body parameter 'body' when calling createItemFinder");
}
// create path and map variables
String localVarPath = "/items/finders";
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/vnd.seeq.v1+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Delete a property
*
* @param id ID of the item whose property is being deleted (required)
* @param propertyName Name of the property to delete (required)
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase deleteProperty(String id, String propertyName) throws ApiException {
ApiClient.ApiResponse localVarResponse = deletePropertyWithHttpInfo(id, propertyName);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Delete a property
*
* @param id ID of the item whose property is being deleted (required)
* @param propertyName Name of the property to delete (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse deletePropertyWithHttpInfo(String id, String propertyName) throws ApiException {
Map localVarHeaderParams = new HashMap();
return deletePropertyWithHeadersAndHttpInfo(id, propertyName, localVarHeaderParams);
}
/**
* Delete a property
*
* @param id ID of the item whose property is being deleted (required)
* @param propertyName Name of the property to delete (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse deletePropertyWithHeadersAndHttpInfo(String id, String propertyName, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return deletePropertyInternal(id, propertyName, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse deletePropertyInternal(String id, String propertyName, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling deleteProperty");
}
// verify the required path parameter 'propertyName' is set
if (propertyName == null) {
throw new ApiException(400, "Missing the required path parameter 'propertyName' when calling deleteProperty");
}
// create path and map variables
String localVarPath = "/items/{id}/properties/{propertyName}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()))
.replaceAll("\\{" + "propertyName" + "\\}", apiClient.escapeString(propertyName.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "DELETE", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Create, or find, a variant of the item that is based on the specified asset. For example, given the ID for Temperature in Area A, find its equivalent for Area B. Or, for a formula that uses Area A Temperature as an input, create a variant that that is based off Area B.
*
* @param id ID of the item that is being updated (required)
* @param body Asset swap information (required)
* @return ItemPreviewV1
* @throws ApiException if fails to make API call
*/
public ItemPreviewV1 findSwap(String id, List body) throws ApiException {
ApiClient.ApiResponse localVarResponse = findSwapWithHttpInfo(id, body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Create, or find, a variant of the item that is based on the specified asset. For example, given the ID for Temperature in Area A, find its equivalent for Area B. Or, for a formula that uses Area A Temperature as an input, create a variant that that is based off Area B.
*
* @param id ID of the item that is being updated (required)
* @param body Asset swap information (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse findSwapWithHttpInfo(String id, List body) throws ApiException {
Map localVarHeaderParams = new HashMap();
return findSwapWithHeadersAndHttpInfo(id, body, localVarHeaderParams);
}
/**
* Create, or find, a variant of the item that is based on the specified asset. For example, given the ID for Temperature in Area A, find its equivalent for Area B. Or, for a formula that uses Area A Temperature as an input, create a variant that that is based off Area B.
*
* @param id ID of the item that is being updated (required)
* @param body Asset swap information (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse findSwapWithHeadersAndHttpInfo(String id, List body, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return findSwapInternal(id, body, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse findSwapInternal(String id, List body, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = body;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling findSwap");
}
// verify the required body parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required body parameter 'body' when calling findSwap");
}
// create path and map variables
String localVarPath = "/items/{id}/swap"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
"application/vnd.seeq.v1+json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get the current access control list for an item
*
* @param id ID of the item to get access control list for (required)
* @return AclOutputV1
* @throws ApiException if fails to make API call
*/
public AclOutputV1 getAccessControl(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = getAccessControlWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get the current access control list for an item
*
* @param id ID of the item to get access control list for (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAccessControlWithHttpInfo(String id) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getAccessControlWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Get the current access control list for an item
*
* @param id ID of the item to get access control list for (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAccessControlWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return getAccessControlInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getAccessControlInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling getAccessControl");
}
// create path and map variables
String localVarPath = "/items/{id}/acl"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get the current access control list for an item with details of inherited entries
*
* @param id ID of the item to get access control list for (required)
* @param forceAclInheritance Show the ACL details as if access control inheritance would be enabled for the item (optional, default to false)
* @return AclOutputV1
* @throws ApiException if fails to make API call
*/
public AclOutputV1 getAccessControlDetails(String id, Boolean forceAclInheritance) throws ApiException {
ApiClient.ApiResponse localVarResponse = getAccessControlDetailsWithHttpInfo(id, forceAclInheritance);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get the current access control list for an item with details of inherited entries
*
* @param id ID of the item to get access control list for (required)
* @param forceAclInheritance Show the ACL details as if access control inheritance would be enabled for the item (optional, default to false)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAccessControlDetailsWithHttpInfo(String id, Boolean forceAclInheritance) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getAccessControlDetailsWithHeadersAndHttpInfo(id, forceAclInheritance, localVarHeaderParams);
}
/**
* Get the current access control list for an item with details of inherited entries
*
* @param id ID of the item to get access control list for (required)
* @param forceAclInheritance Show the ACL details as if access control inheritance would be enabled for the item (optional, default to false)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAccessControlDetailsWithHeadersAndHttpInfo(String id, Boolean forceAclInheritance, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "forceAclInheritance", forceAclInheritance));
localVarHeaderParams.putAll(customHeaders);
return getAccessControlDetailsInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getAccessControlDetailsInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling getAccessControlDetails");
}
// create path and map variables
String localVarPath = "/items/{id}/acl/details"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get the formula dependencies of an Item.
*
* @param id ID of the item to find dependencies of (required)
* @return ItemDependencyOutputV1
* @throws ApiException if fails to make API call
*/
public ItemDependencyOutputV1 getFormulaDependencies(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = getFormulaDependenciesWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get the formula dependencies of an Item.
*
* @param id ID of the item to find dependencies of (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getFormulaDependenciesWithHttpInfo(String id) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getFormulaDependenciesWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Get the formula dependencies of an Item.
*
* @param id ID of the item to find dependencies of (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getFormulaDependenciesWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return getFormulaDependenciesInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getFormulaDependenciesInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling getFormulaDependencies");
}
// create path and map variables
String localVarPath = "/items/{id}/dependencies"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get a collection of items dependent on the item identified by the supplied ID.
*
* @param id ID of the item to find dependents of (required)
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @return ItemPreviewListV1
* @throws ApiException if fails to make API call
*/
public ItemPreviewListV1 getFormulaDependents(String id, Integer offset, Integer limit) throws ApiException {
ApiClient.ApiResponse localVarResponse = getFormulaDependentsWithHttpInfo(id, offset, limit);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get a collection of items dependent on the item identified by the supplied ID.
*
* @param id ID of the item to find dependents of (required)
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getFormulaDependentsWithHttpInfo(String id, Integer offset, Integer limit) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getFormulaDependentsWithHeadersAndHttpInfo(id, offset, limit, localVarHeaderParams);
}
/**
* Get a collection of items dependent on the item identified by the supplied ID.
*
* @param id ID of the item to find dependents of (required)
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getFormulaDependentsWithHeadersAndHttpInfo(String id, Integer offset, Integer limit, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
localVarHeaderParams.putAll(customHeaders);
return getFormulaDependentsInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getFormulaDependentsInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling getFormulaDependents");
}
// create path and map variables
String localVarPath = "/items/{id}/dependents"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get a collection of items interested in the item identified by the supplied ID.
*
* @param id ID of the item to find all other items interested in the parameter (required)
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @return ItemPreviewListV1
* @throws ApiException if fails to make API call
*/
public ItemPreviewListV1 getInterested(String id, Integer offset, Integer limit) throws ApiException {
ApiClient.ApiResponse localVarResponse = getInterestedWithHttpInfo(id, offset, limit);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get a collection of items interested in the item identified by the supplied ID.
*
* @param id ID of the item to find all other items interested in the parameter (required)
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getInterestedWithHttpInfo(String id, Integer offset, Integer limit) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getInterestedWithHeadersAndHttpInfo(id, offset, limit, localVarHeaderParams);
}
/**
* Get a collection of items interested in the item identified by the supplied ID.
*
* @param id ID of the item to find all other items interested in the parameter (required)
* @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getInterestedWithHeadersAndHttpInfo(String id, Integer offset, Integer limit, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
localVarHeaderParams.putAll(customHeaders);
return getInterestedInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getInterestedInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling getInterested");
}
// create path and map variables
String localVarPath = "/items/{id}/interested"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get all the properties for the item identified by the supplied ID
*
* @param id ID of the item for which to retrieve properties (required)
* @return ItemOutputV1
* @throws ApiException if fails to make API call
*/
public ItemOutputV1 getItemAndAllProperties(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = getItemAndAllPropertiesWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get all the properties for the item identified by the supplied ID
*
* @param id ID of the item for which to retrieve properties (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getItemAndAllPropertiesWithHttpInfo(String id) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getItemAndAllPropertiesWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Get all the properties for the item identified by the supplied ID
*
* @param id ID of the item for which to retrieve properties (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getItemAndAllPropertiesWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return getItemAndAllPropertiesInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getItemAndAllPropertiesInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling getItemAndAllProperties");
}
// create path and map variables
String localVarPath = "/items/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
// Possible exceptions:
// ===================
// * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
// during conversion of the response entity data to an instance of a particular Java type).
// * ProcessingException - in case the request processing or subsequent I/O operation fails.
// * WebApplicationException - in case the response status code of the response returned by the server is not
// successful and the specified response type is not Response.
// * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
// in ApiException(s)
} catch (ApiException | ProcessingException e) {
if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
continue;
}
}
throw e;
}
} // while
}
/**
* Get an item finder
*
* @param id The Seeq ID for the item finder (required)
* @return ItemFinderOutputV1
* @throws ApiException if fails to make API call
*/
public ItemFinderOutputV1 getItemFinder(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = getItemFinderWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get an item finder
*
* @param id The Seeq ID for the item finder (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getItemFinderWithHttpInfo(String id) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getItemFinderWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Get an item finder
*
* @param id The Seeq ID for the item finder (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getItemFinderWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return getItemFinderInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getItemFinderInternal(String id, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required path parameter 'id' when calling getItemFinder");
}
// create path and map variables
String localVarPath = "/items/finders/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "api_key" };
long apiClientInvocationTime = System.currentTimeMillis();
while(true) {
try {
GenericType