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 {
Map localVarHeaderParams = new HashMap();
return archiveAssetSelectionWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Archive an asset selection
*
* @param id The Seeq ID for the asset selection (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse archiveAssetSelectionWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return archiveAssetSelectionInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse archiveAssetSelectionInternal(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 archiveAssetSelection");
}
// create path and map variables
String localVarPath = "/content/asset-selections/{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 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 {
Map localVarHeaderParams = new HashMap();
return archiveContentWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Archive a content item
*
* @param id The Seeq ID for the content (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse archiveContentWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return archiveContentInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse archiveContentInternal(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 archiveContent");
}
// create path and map variables
String localVarPath = "/content/{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 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 {
Map localVarHeaderParams = new HashMap();
return archiveDateRangeWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Archive a date range
*
* @param id The Seeq ID for the date range (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse archiveDateRangeWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return archiveDateRangeInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse archiveDateRangeInternal(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 archiveDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges/{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
}
/**
* 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 {
Map localVarHeaderParams = new HashMap();
clearImageCacheWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Clear the cached images for a piece of content
*
* @param id The Seeq ID for the content (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public void clearImageCacheWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
clearImageCacheInternal(id, localVarQueryParams, localVarHeaderParams);
}
private void clearImageCacheInternal(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 clearImageCache");
}
// create path and map variables
String localVarPath = "/content/{id}/image"
.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
}
/**
* 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 {
Map localVarHeaderParams = new HashMap();
return createAssetSelectionWithHeadersAndHttpInfo(body, localVarHeaderParams);
}
/**
* Create new asset selection
*
* @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 createAssetSelectionWithHeadersAndHttpInfo(AssetSelectionInputV1 body, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return createAssetSelectionInternal(body, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse createAssetSelectionInternal(AssetSelectionInputV1 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 createAssetSelection");
}
// create path and map variables
String localVarPath = "/content/asset-selections";
// 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
}
/**
* 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 {
Map localVarHeaderParams = new HashMap();
return createContentWithHeadersAndHttpInfo(body, localVarHeaderParams);
}
/**
* Create a new content item
*
* @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 createContentWithHeadersAndHttpInfo(ContentInputV1 body, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return createContentInternal(body, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse createContentInternal(ContentInputV1 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 createContent");
}
// create path and map variables
String localVarPath = "/content";
// 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
}
/**
* 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 {
Map localVarHeaderParams = new HashMap();
return createDateRangeWithHeadersAndHttpInfo(body, localVarHeaderParams);
}
/**
* Create a new date range
*
* @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 createDateRangeWithHeadersAndHttpInfo(DateRangeInputV1 body, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return createDateRangeInternal(body, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse createDateRangeInternal(DateRangeInputV1 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 createDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges";
// 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 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 {
Map localVarHeaderParams = new HashMap();
return getAssetSelectionWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Get an asset selection
*
* @param id The Seeq ID for the asset selection (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getAssetSelectionWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return getAssetSelectionInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getAssetSelectionInternal(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 getAssetSelection");
}
// create path and map variables
String localVarPath = "/content/asset-selections/{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 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 {
Map localVarHeaderParams = new HashMap();
return getContentWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Get a content item
*
* @param id The Seeq ID for the content (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getContentWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return getContentInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getContentInternal(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 getContent");
}
// create path and map variables
String localVarPath = "/content/{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 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 {
Map localVarHeaderParams = new HashMap();
return getContentItemsWithHeadersAndHttpInfo(offset, limit, localVarHeaderParams);
}
/**
* 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)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getContentItemsWithHeadersAndHttpInfo(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 getContentItemsInternal(localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getContentItemsInternal(List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/content";
// 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 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 {
Map localVarHeaderParams = new HashMap();
return getContentItemsForDateRangeWithHeadersAndHttpInfo(id, offset, limit, localVarHeaderParams);
}
/**
* 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)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getContentItemsForDateRangeWithHeadersAndHttpInfo(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 getContentItemsForDateRangeInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getContentItemsForDateRangeInternal(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 getContentItemsForDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges/{id}/content"
.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
}
/**
* 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)
* @param includeWorkstepBlobs Set to true to include the source and workstep blobs in the output (optional, default to false)
* @return ContentWithMetadataListOutputV1
* @throws ApiException if fails to make API call
*/
public ContentWithMetadataListOutputV1 getContentsWithAllMetadata(String reportId, Boolean includeWorkstepBlobs) throws ApiException {
ApiClient.ApiResponse localVarResponse = getContentsWithAllMetadataWithHttpInfo(reportId, includeWorkstepBlobs);
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)
* @param includeWorkstepBlobs Set to true to include the source and workstep blobs in the output (optional, default to false)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getContentsWithAllMetadataWithHttpInfo(String reportId, Boolean includeWorkstepBlobs) throws ApiException {
Map localVarHeaderParams = new HashMap();
return getContentsWithAllMetadataWithHeadersAndHttpInfo(reportId, includeWorkstepBlobs, localVarHeaderParams);
}
/**
* 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)
* @param includeWorkstepBlobs Set to true to include the source and workstep blobs in the output (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 getContentsWithAllMetadataWithHeadersAndHttpInfo(String reportId, Boolean includeWorkstepBlobs, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeWorkstepBlobs", includeWorkstepBlobs));
localVarHeaderParams.putAll(customHeaders);
return getContentsWithAllMetadataInternal(reportId, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getContentsWithAllMetadataInternal(String reportId, List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// verify the required path parameter 'reportId' is set
if (reportId == null) {
throw new ApiException(400, "Missing the required path parameter 'reportId' when calling getContentsWithAllMetadata");
}
// create path and map variables
String localVarPath = "/content/report/{reportId}"
.replaceAll("\\{" + "reportId" + "\\}", apiClient.escapeString(reportId.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 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 {
Map localVarHeaderParams = new HashMap();
return getDateRangeWithHeadersAndHttpInfo(id, localVarHeaderParams);
}
/**
* Get a date range
*
* @param id The Seeq ID for the date range (required)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getDateRangeWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarHeaderParams.putAll(customHeaders);
return getDateRangeInternal(id, localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getDateRangeInternal(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 getDateRange");
}
// create path and map variables
String localVarPath = "/content/date-ranges/{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 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 {
Map localVarHeaderParams = new HashMap();
return getDateRangesWithHeadersAndHttpInfo(offset, limit, localVarHeaderParams);
}
/**
* 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)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getDateRangesWithHeadersAndHttpInfo(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 getDateRangesInternal(localVarQueryParams, localVarHeaderParams);
}
private ApiClient.ApiResponse getDateRangesInternal(List queryParams, Map headerParams) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/content/date-ranges";
// 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 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 {
Map localVarHeaderParams = new HashMap();
getImageWithHeadersAndHttpInfo(id, useAsync, localVarHeaderParams);
}
/**
* 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)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public void getImageWithHeadersAndHttpInfo(String id, Boolean useAsync, Map customHeaders) throws ApiException {
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "useAsync", useAsync));
localVarHeaderParams.putAll(customHeaders);
getImageInternal(id, localVarQueryParams, localVarHeaderParams);
}
private void getImageInternal(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 getImage");
}
// create path and map variables
String localVarPath = "/content/{id}/image"
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
// query params
Map localVarFormParams = new HashMap();
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", 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
}
/**
* 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 {
Map localVarHeaderParams = new HashMap();
return getNotifiableReportsWithHeadersAndHttpInfo(ownerIds, nameSearch, offset, limit, sortAsc, localVarHeaderParams);
}
/**
* 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)
* @param customHeaders a map with custom headers for the HTTP request (required)
* @throws ApiException if fails to make API call
*/
public ApiClient.ApiResponse getNotifiableReportsWithHeadersAndHttpInfo(List ownerIds, String nameSearch, Integer offset, Integer limit, Boolean sortAsc, Map