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.AssetSelectionInputV1;
import com.seeq.model.AssetSelectionOutputV1;
import com.seeq.model.ContentInputV1;
import com.seeq.model.ContentOutputV1;
import com.seeq.model.ContentWithMetadataListOutputV1;
import com.seeq.model.DateRangeInputV1;
import com.seeq.model.DateRangeOutputV1;
import com.seeq.model.GetContentItemsOutputV1;
import com.seeq.model.GetDateRangesOutputV1;
import com.seeq.model.NotifiableReportOutputListV1;
import com.seeq.model.SchedulableAdminListOutputV1;
import com.seeq.model.SchedulableSummaryWeekOutputV1;
import com.seeq.model.StatusMessageBase;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ContentApi {
private ApiClient apiClient;
private long retryTimeout = 5_000; // Default of 5 seconds
public ContentApi() {
this(Configuration.getDefaultApiClient());
}
public ContentApi(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;
}
/**
* Archive an asset selection
*
* @param id The Seeq ID for the asset selection (required)
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase archiveAssetSelection(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = archiveAssetSelectionWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Archive an asset selection
*
* @param id The Seeq ID for the asset selection (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse archiveAssetSelectionWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling archiveAssetSelection");
}
// create path and map variables
String localVarPath = "/content/asset-selections/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 a content item
*
* @param id The Seeq ID for the content (required)
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase archiveContent(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = archiveContentWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Archive a content item
*
* @param id The Seeq ID for the content (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse archiveContentWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling archiveContent");
}
// create path and map variables
String localVarPath = "/content/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 a date range
*
* @param id The Seeq ID for the date range (required)
* @return StatusMessageBase
* @throws ApiException if fails to make API call
*/
public StatusMessageBase archiveDateRange(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = archiveDateRangeWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Archive a date range
*
* @param id The Seeq ID for the date range (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse archiveDateRangeWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling archiveDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 cached images for a piece of content
*
* @param id The Seeq ID for the content (required)
* @throws ApiException if fails to make API call
*/
public void clearImageCache(String id) throws ApiException {
clearImageCacheWithHttpInfo(id);
}
/**
* Clear the cached images for a piece of content
*
* @param id The Seeq ID for the content (required)
* @throws ApiException if fails to make API call
*/
public void clearImageCacheWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling clearImageCache");
}
// create path and map variables
String localVarPath = "/content/{id}/image"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Create new asset selection
*
* @param body (required)
* @return AssetSelectionOutputV1
* @throws ApiException if fails to make API call
*/
public AssetSelectionOutputV1 createAssetSelection(AssetSelectionInputV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = createAssetSelectionWithHttpInfo(body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Create new asset selection
*
* @param body (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse createAssetSelectionWithHttpInfo(AssetSelectionInputV1 body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling createAssetSelection");
}
// create path and map variables
String localVarPath = "/content/asset-selections";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 content item
*
* @param body (required)
* @return ContentOutputV1
* @throws ApiException if fails to make API call
*/
public ContentOutputV1 createContent(ContentInputV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = createContentWithHttpInfo(body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Create a new content item
*
* @param body (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse createContentWithHttpInfo(ContentInputV1 body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling createContent");
}
// create path and map variables
String localVarPath = "/content";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 date range
*
* @param body (required)
* @return DateRangeOutputV1
* @throws ApiException if fails to make API call
*/
public DateRangeOutputV1 createDateRange(DateRangeInputV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = createDateRangeWithHttpInfo(body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Create a new date range
*
* @param body (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse createDateRangeWithHttpInfo(DateRangeInputV1 body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling createDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 asset selection
*
* @param id The Seeq ID for the asset selection (required)
* @return AssetSelectionOutputV1
* @throws ApiException if fails to make API call
*/
public AssetSelectionOutputV1 getAssetSelection(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = getAssetSelectionWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get an asset selection
*
* @param id The Seeq ID for the asset selection (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAssetSelectionWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getAssetSelection");
}
// create path and map variables
String localVarPath = "/content/asset-selections/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 content item
*
* @param id The Seeq ID for the content (required)
* @return ContentOutputV1
* @throws ApiException if fails to make API call
*/
public ContentOutputV1 getContent(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = getContentWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get a content item
*
* @param id The Seeq ID for the content (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getContentWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getContent");
}
// create path and map variables
String localVarPath = "/content/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 content items
*
* @param offset The pagination offset, the index of the first content item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of content items that will be returned in this page of results (optional, default to 40)
* @return GetContentItemsOutputV1
* @throws ApiException if fails to make API call
*/
public GetContentItemsOutputV1 getContentItems(Integer offset, Integer limit) throws ApiException {
ApiClient.ApiResponse localVarResponse = getContentItemsWithHttpInfo(offset, limit);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get content items
*
* @param offset The pagination offset, the index of the first content item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of content 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 getContentItemsWithHttpInfo(Integer offset, Integer limit) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/content";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 content items that depend on a given date range
*
* @param id The Seeq ID for the content (required)
* @param offset The pagination offset, the index of the first content item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of content items that will be returned in this page of results (optional, default to 40)
* @return GetContentItemsOutputV1
* @throws ApiException if fails to make API call
*/
public GetContentItemsOutputV1 getContentItemsForDateRange(String id, Integer offset, Integer limit) throws ApiException {
ApiClient.ApiResponse localVarResponse = getContentItemsForDateRangeWithHttpInfo(id, offset, limit);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get the content items that depend on a given date range
*
* @param id The Seeq ID for the content (required)
* @param offset The pagination offset, the index of the first content item that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of content 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 getContentItemsForDateRangeWithHttpInfo(String id, Integer offset, Integer limit) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getContentItemsForDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges/{id}/content"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Retrieves all pieces of content and date ranges associated with the given report with extra metadata attached
*
* @param reportId Report to retrieve content and date ranges for (required)
* @return ContentWithMetadataListOutputV1
* @throws ApiException if fails to make API call
*/
public ContentWithMetadataListOutputV1 getContentsWithAllMetadata(String reportId) throws ApiException {
ApiClient.ApiResponse localVarResponse = getContentsWithAllMetadataWithHttpInfo(reportId);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Retrieves all pieces of content and date ranges associated with the given report with extra metadata attached
*
* @param reportId Report to retrieve content and date ranges for (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getContentsWithAllMetadataWithHttpInfo(String reportId) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'reportId' is set
if (reportId == null) {
throw new ApiException(400, "Missing the required parameter 'reportId' when calling getContentsWithAllMetadata");
}
// create path and map variables
String localVarPath = "/content/report/{reportId}"
.replaceAll("\\{" + "reportId" + "\\}", apiClient.escapeString(reportId.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 date range
*
* @param id The Seeq ID for the date range (required)
* @return DateRangeOutputV1
* @throws ApiException if fails to make API call
*/
public DateRangeOutputV1 getDateRange(String id) throws ApiException {
ApiClient.ApiResponse localVarResponse = getDateRangeWithHttpInfo(id);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get a date range
*
* @param id The Seeq ID for the date range (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getDateRangeWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 date range items
*
* @param offset The pagination offset, the index of the first date range that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of date ranges that will be returned in this page of results (optional, default to 40)
* @return GetDateRangesOutputV1
* @throws ApiException if fails to make API call
*/
public GetDateRangesOutputV1 getDateRanges(Integer offset, Integer limit) throws ApiException {
ApiClient.ApiResponse localVarResponse = getDateRangesWithHttpInfo(offset, limit);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Get date range items
*
* @param offset The pagination offset, the index of the first date range that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of date ranges that will be returned in this page of results (optional, default to 40)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getDateRangesWithHttpInfo(Integer offset, Integer limit) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/content/date-ranges";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 image from a piece of content
*
* @param id The Seeq ID for the content (required)
* @param useAsync When true, if the image is not cached a one pixel image will be returned from this call and a job will be started to generate the new image. Used to avoid blocking requests when called from a browser context. (optional, default to false)
* @throws ApiException if fails to make API call
*/
public void getImage(String id, Boolean useAsync) throws ApiException {
getImageWithHttpInfo(id, useAsync);
}
/**
* Get the image from a piece of content
*
* @param id The Seeq ID for the content (required)
* @param useAsync When true, if the image is not cached a one pixel image will be returned from this call and a job will be started to generate the new image. Used to avoid blocking requests when called from a browser context. (optional, default to false)
* @throws ApiException if fails to make API call
*/
public void getImageWithHttpInfo(String id, Boolean useAsync) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getImage");
}
// create path and map variables
String localVarPath = "/content/{id}/image"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "useAsync", useAsync));
final String[] localVarAccepts = {
"application/vnd.seeq.v1+json", "image/gif", "image/jpg", "image/png", "image/svg+xml", "image/webp"
};
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, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Retrieves all reports that have notifications configured
*
* @param ownerIds (optional)
* @param nameSearch Filter the reports to those that are part of a topic document with the provided name (optional)
* @param offset The pagination offset, the index of the first reports that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of reports that will be returned in this page of results (optional, default to 40)
* @param sortAsc Sorts the document name in ascending order when true and descending when false (optional, default to true)
* @return NotifiableReportOutputListV1
* @throws ApiException if fails to make API call
*/
public NotifiableReportOutputListV1 getNotifiableReports(List ownerIds, String nameSearch, Integer offset, Integer limit, Boolean sortAsc) throws ApiException {
ApiClient.ApiResponse localVarResponse = getNotifiableReportsWithHttpInfo(ownerIds, nameSearch, offset, limit, sortAsc);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Retrieves all reports that have notifications configured
*
* @param ownerIds (optional)
* @param nameSearch Filter the reports to those that are part of a topic document with the provided name (optional)
* @param offset The pagination offset, the index of the first reports that will be returned in this page of results (optional, default to 0)
* @param limit The pagination limit, the total number of reports that will be returned in this page of results (optional, default to 40)
* @param sortAsc Sorts the document name in ascending order when true and descending when false (optional, default to true)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getNotifiableReportsWithHttpInfo(List ownerIds, String nameSearch, Integer offset, Integer limit, Boolean sortAsc) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/content/notifiableReports";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "ownerIds", ownerIds));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "nameSearch", nameSearch));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortAsc", sortAsc));
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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 react json blob for a piece of content
*
* @param id The Seeq ID for the content (required)
* @throws ApiException if fails to make API call
*/
public void getReactBlob(String id) throws ApiException {
getReactBlobWithHttpInfo(id);
}
/**
* Get the react json blob for a piece of content
*
* @param id The Seeq ID for the content (required)
* @throws ApiException if fails to make API call
*/
public void getReactBlobWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getReactBlob");
}
// create path and map variables
String localVarPath = "/content/{id}/react"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Gets a collection of statistics for scheduled items
*
* @param types List of types to filter on (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 sortBy A field by which to order the items'. Options: AverageRunTime, TotalRunTime, Name, Username, ContentCount, LastViewedAt, NextRunTime. Note: sorting by NextRunTime may be significantly slower than other options. (optional, default to AverageRunTime)
* @param sortAsc If true or blank, sorts ascending. If false sorts descending. (optional, default to true)
* @param isEnabled If true, includes only items with enabled schedules. If false, includes only items with disabled schedules. (optional, default to true)
* @param nameFilter The topic/worksheet name to filter on. (optional)
* @param ownerFilter The owner username to filter on. (optional)
* @param scheduleFilter The schedule text to filter on. (optional)
* @return SchedulableAdminListOutputV1
* @throws ApiException if fails to make API call
*/
public SchedulableAdminListOutputV1 getSchedulableStatistics(List types, Integer offset, Integer limit, String sortBy, Boolean sortAsc, Boolean isEnabled, String nameFilter, String ownerFilter, String scheduleFilter) throws ApiException {
ApiClient.ApiResponse localVarResponse = getSchedulableStatisticsWithHttpInfo(types, offset, limit, sortBy, sortAsc, isEnabled, nameFilter, ownerFilter, scheduleFilter);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Gets a collection of statistics for scheduled items
*
* @param types List of types to filter on (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 sortBy A field by which to order the items'. Options: AverageRunTime, TotalRunTime, Name, Username, ContentCount, LastViewedAt, NextRunTime. Note: sorting by NextRunTime may be significantly slower than other options. (optional, default to AverageRunTime)
* @param sortAsc If true or blank, sorts ascending. If false sorts descending. (optional, default to true)
* @param isEnabled If true, includes only items with enabled schedules. If false, includes only items with disabled schedules. (optional, default to true)
* @param nameFilter The topic/worksheet name to filter on. (optional)
* @param ownerFilter The owner username to filter on. (optional)
* @param scheduleFilter The schedule text to filter on. (optional)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getSchedulableStatisticsWithHttpInfo(List types, Integer offset, Integer limit, String sortBy, Boolean sortAsc, Boolean isEnabled, String nameFilter, String ownerFilter, String scheduleFilter) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'types' is set
if (types == null) {
throw new ApiException(400, "Missing the required parameter 'types' when calling getSchedulableStatistics");
}
// create path and map variables
String localVarPath = "/content/schedulable/metrics";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "types", types));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortBy", sortBy));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortAsc", sortAsc));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "isEnabled", isEnabled));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "nameFilter", nameFilter));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "ownerFilter", ownerFilter));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "scheduleFilter", scheduleFilter));
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Gets a summary of statistics for scheduled items across a week, with each day being separated into 24 buckets
*
* @param stat The stat to summarize by (optional, default to AverageRunTime)
* @param start The ISO Date string to start the summary from. The time must start at midnight on some day (required)
* @param ownerFilter The owner username to filter on. (optional)
* @return SchedulableSummaryWeekOutputV1
* @throws ApiException if fails to make API call
*/
public SchedulableSummaryWeekOutputV1 getSchedulableSummary(String stat, String start, String ownerFilter) throws ApiException {
ApiClient.ApiResponse localVarResponse = getSchedulableSummaryWithHttpInfo(stat, start, ownerFilter);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Gets a summary of statistics for scheduled items across a week, with each day being separated into 24 buckets
*
* @param stat The stat to summarize by (optional, default to AverageRunTime)
* @param start The ISO Date string to start the summary from. The time must start at midnight on some day (required)
* @param ownerFilter The owner username to filter on. (optional)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getSchedulableSummaryWithHttpInfo(String stat, String start, String ownerFilter) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'start' is set
if (start == null) {
throw new ApiException(400, "Missing the required parameter 'start' when calling getSchedulableSummary");
}
// create path and map variables
String localVarPath = "/content/schedulable/metrics/summary";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "stat", stat));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "start", start));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "ownerFilter", ownerFilter));
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Preview an image for given content parameters
*
* @param worksheetId The content's source worksheet (required)
* @param workstepId The content's source workstep (required)
* @param height The content's desired height (required)
* @param width The content's desired width (required)
* @param scale The content's desired scale (optional, default to 1.0)
* @param timezone The content's desired timezone (optional)
* @param selector The content's desired selector (optional)
* @param dateRangeId The content's date range; mutually exclusive with dateRangeFormula (optional)
* @param dateRangeFormula Formula used as a temporary date range; mutually exclusive with dateRangeId (optional)
* @param validityDuration A duration to use as the Expires header (optional)
* @param reportId The content's report (optional)
* @param contentId The content's ID (optional)
* @param summaryType The content's desired summary type (optional)
* @param summaryValue The content's desired summary value (optional)
* @param assetSelectionId The content's asset selection id (optional)
* @param react Whether the content is for a react component (optional)
* @throws ApiException if fails to make API call
*/
public void previewContent(String worksheetId, String workstepId, Long height, Long width, Double scale, String timezone, String selector, String dateRangeId, String dateRangeFormula, String validityDuration, String reportId, String contentId, String summaryType, String summaryValue, String assetSelectionId, Boolean react) throws ApiException {
previewContentWithHttpInfo(worksheetId, workstepId, height, width, scale, timezone, selector, dateRangeId, dateRangeFormula, validityDuration, reportId, contentId, summaryType, summaryValue, assetSelectionId, react);
}
/**
* Preview an image for given content parameters
*
* @param worksheetId The content's source worksheet (required)
* @param workstepId The content's source workstep (required)
* @param height The content's desired height (required)
* @param width The content's desired width (required)
* @param scale The content's desired scale (optional, default to 1.0)
* @param timezone The content's desired timezone (optional)
* @param selector The content's desired selector (optional)
* @param dateRangeId The content's date range; mutually exclusive with dateRangeFormula (optional)
* @param dateRangeFormula Formula used as a temporary date range; mutually exclusive with dateRangeId (optional)
* @param validityDuration A duration to use as the Expires header (optional)
* @param reportId The content's report (optional)
* @param contentId The content's ID (optional)
* @param summaryType The content's desired summary type (optional)
* @param summaryValue The content's desired summary value (optional)
* @param assetSelectionId The content's asset selection id (optional)
* @param react Whether the content is for a react component (optional)
* @throws ApiException if fails to make API call
*/
public void previewContentWithHttpInfo(String worksheetId, String workstepId, Long height, Long width, Double scale, String timezone, String selector, String dateRangeId, String dateRangeFormula, String validityDuration, String reportId, String contentId, String summaryType, String summaryValue, String assetSelectionId, Boolean react) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'worksheetId' is set
if (worksheetId == null) {
throw new ApiException(400, "Missing the required parameter 'worksheetId' when calling previewContent");
}
// verify the required parameter 'workstepId' is set
if (workstepId == null) {
throw new ApiException(400, "Missing the required parameter 'workstepId' when calling previewContent");
}
// verify the required parameter 'height' is set
if (height == null) {
throw new ApiException(400, "Missing the required parameter 'height' when calling previewContent");
}
// verify the required parameter 'width' is set
if (width == null) {
throw new ApiException(400, "Missing the required parameter 'width' when calling previewContent");
}
// create path and map variables
String localVarPath = "/content/preview";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "worksheetId", worksheetId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "workstepId", workstepId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "height", height));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "width", width));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "scale", scale));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "timezone", timezone));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "selector", selector));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "dateRangeId", dateRangeId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "dateRangeFormula", dateRangeFormula));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "validityDuration", validityDuration));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "reportId", reportId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "contentId", contentId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "summaryType", summaryType));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "summaryValue", summaryValue));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "assetSelectionId", assetSelectionId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "react", react));
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, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Redirect to the source worksheet for a given content image
*
* @param id The Seeq ID for the content (required)
* @param noRedirect Set to true to receive the redirected URL as data rather than redirecting (optional, default to false)
* @throws ApiException if fails to make API call
*/
public void redirectToSourceWorksheet(String id, Boolean noRedirect) throws ApiException {
redirectToSourceWorksheetWithHttpInfo(id, noRedirect);
}
/**
* Redirect to the source worksheet for a given content image
*
* @param id The Seeq ID for the content (required)
* @param noRedirect Set to true to receive the redirected URL as data rather than redirecting (optional, default to false)
* @throws ApiException if fails to make API call
*/
public void redirectToSourceWorksheetWithHttpInfo(String id, Boolean noRedirect) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling redirectToSourceWorksheet");
}
// create path and map variables
String localVarPath = "/content/{id}/sourceUrl"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "noRedirect", noRedirect));
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, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Update an asset selection
*
* @param id The Seeq ID for the asset selection (required)
* @param body (required)
* @return AssetSelectionOutputV1
* @throws ApiException if fails to make API call
*/
public AssetSelectionOutputV1 updateAssetSelection(String id, AssetSelectionInputV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = updateAssetSelectionWithHttpInfo(id, body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Update an asset selection
*
* @param id The Seeq ID for the asset selection (required)
* @param body (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse updateAssetSelectionWithHttpInfo(String id, AssetSelectionInputV1 body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling updateAssetSelection");
}
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling updateAssetSelection");
}
// create path and map variables
String localVarPath = "/content/asset-selections/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Update a content item
*
* @param id The Seeq ID for the content (required)
* @param body (required)
* @param clearCache Whether the content's cache should be cleared. Useful to force regeneration of an image when content parameters have not changed (optional, default to false)
* @return ContentOutputV1
* @throws ApiException if fails to make API call
*/
public ContentOutputV1 updateContent(String id, ContentInputV1 body, Boolean clearCache) throws ApiException {
ApiClient.ApiResponse localVarResponse = updateContentWithHttpInfo(id, body, clearCache);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Update a content item
*
* @param id The Seeq ID for the content (required)
* @param body (required)
* @param clearCache Whether the content's cache should be cleared. Useful to force regeneration of an image when content parameters have not changed (optional, default to false)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse updateContentWithHttpInfo(String id, ContentInputV1 body, Boolean clearCache) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling updateContent");
}
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling updateContent");
}
// create path and map variables
String localVarPath = "/content/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "clearCache", clearCache));
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
/**
* Update a date range
*
* @param id The Seeq ID for the date range (required)
* @param body (required)
* @return DateRangeOutputV1
* @throws ApiException if fails to make API call
*/
public DateRangeOutputV1 updateDateRange(String id, DateRangeInputV1 body) throws ApiException {
ApiClient.ApiResponse localVarResponse = updateDateRangeWithHttpInfo(id, body);
return localVarResponse != null ? localVarResponse.getData() : null;
}
/**
* Update a date range
*
* @param id The Seeq ID for the date range (required)
* @param body (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse updateDateRangeWithHttpInfo(String id, DateRangeInputV1 body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling updateDateRange");
}
// verify the required parameter 'body' is set
if (body == null) {
throw new ApiException(400, "Missing the required parameter 'body' when calling updateDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges/{id}"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
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", localVarQueryParams, localVarPostBody, localVarHeaderParams, 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
}
}