All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.seeq.api.AnnotationsApi Maven / Gradle / Ivy

There is a newer version: 66.0.0-v202407310200
Show newest version
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.AnnotationImageLinkOutputV1;
import com.seeq.model.AnnotationInputV1;
import com.seeq.model.AnnotationListOutputV1;
import com.seeq.model.AnnotationOutputV1;
import java.io.File;
import com.seeq.model.MigrateEditorInputV1;
import com.seeq.model.StatusMessageBase;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AnnotationsApi {
    private ApiClient apiClient;
    private long retryTimeout = 5_000; // Default of 5 seconds

    public AnnotationsApi() {
        this(Configuration.getDefaultApiClient());
    }

    public AnnotationsApi(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 annotation
    * 
    * @param id ID of the annotation to archive (required)
    * @return StatusMessageBase
    * @throws ApiException if fails to make API call
    */
    public StatusMessageBase archiveAnnotation(String id) throws ApiException {
        ApiClient.ApiResponse localVarResponse = archiveAnnotationWithHttpInfo(id);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Archive an annotation
    * 
    * @param id ID of the annotation to archive (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse archiveAnnotationWithHttpInfo(String id) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return archiveAnnotationWithHeadersAndHttpInfo(id, localVarHeaderParams);
        
    }

    /**
    * Archive an annotation
    * 
    * @param id ID of the annotation to archive (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse archiveAnnotationWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return archiveAnnotationInternal(id, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse archiveAnnotationInternal(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 archiveAnnotation");
        }
        // create path and map variables
        String localVarPath = "/annotations/{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
    }
    /**
    * 
    * 
    * @param accept  (optional)
    * @param imageUrl  (required)
    * @throws ApiException if fails to make API call
    */
    public void corsImageProxy(String accept, String imageUrl) throws ApiException {
        corsImageProxyWithHttpInfo(accept, imageUrl);
    }
    
    /**
    * 
    * 
    * @param accept  (optional)
    * @param imageUrl  (required)
    * @throws ApiException if fails to make API call
    */
    public void corsImageProxyWithHttpInfo(String accept, String imageUrl) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        
         corsImageProxyWithHeadersAndHttpInfo(accept, imageUrl, localVarHeaderParams);
    }

    /**
    * 
    * 
    * @param accept  (optional)
    * @param imageUrl  (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public void corsImageProxyWithHeadersAndHttpInfo(String accept, String imageUrl, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        if (accept != null) {
          localVarHeaderParams.put("Accept", apiClient.parameterToString(accept));
        }
        localVarHeaderParams.putAll(customHeaders);
        corsImageProxyInternal(imageUrl, localVarQueryParams, localVarHeaderParams);
    }
    
    private void corsImageProxyInternal(String imageUrl, List queryParams, Map headerParams) throws ApiException {
        Object localVarPostBody = null;
        // verify the required path parameter 'imageUrl' is set
        if (imageUrl == null) {
            throw new ApiException(400, "Missing the required path parameter 'imageUrl' when calling corsImageProxy");
        }
        // create path and map variables
        String localVarPath = "/annotations/image/cors/{imageUrl}"
          .replaceAll("\\{" + "imageUrl" + "\\}", apiClient.escapeString(imageUrl.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
    }
    /**
    * Create an annotation
    * 
    * @param body Annotation information (required)
    * @return AnnotationOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationOutputV1 createAnnotation(AnnotationInputV1 body) throws ApiException {
        ApiClient.ApiResponse localVarResponse = createAnnotationWithHttpInfo(body);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Create an annotation
    * 
    * @param body Annotation information (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse createAnnotationWithHttpInfo(AnnotationInputV1 body) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return createAnnotationWithHeadersAndHttpInfo(body, localVarHeaderParams);
        
    }

    /**
    * Create an annotation
    * 
    * @param body Annotation information (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse createAnnotationWithHeadersAndHttpInfo(AnnotationInputV1 body, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return createAnnotationInternal(body, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse createAnnotationInternal(AnnotationInputV1 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 createAnnotation");
        }
        // create path and map variables
        String localVarPath = "/annotations";

        // query params
        Map localVarFormParams = new HashMap();

        
        final String[] localVarAccepts = {
        "application/vnd.seeq.v1+json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {
        "application/vnd.seeq.v1+json"
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "api_key" };

        long apiClientInvocationTime = System.currentTimeMillis();
        while(true) {
            try {
                GenericType localVarReturnType = new GenericType() {};
                return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
                // Possible exceptions:
                // ===================
                // * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
                //    during conversion of the response entity data to an instance of a particular Java type).
                // * ProcessingException - in case the request processing or subsequent I/O operation fails.
                // * WebApplicationException - in case the response status code of the response returned by the server is not
                //    successful and the specified response type is not Response.
                // * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
                //    in ApiException(s)
            } catch (ApiException | ProcessingException e) {
                if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
                    long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
                    if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
                        continue;
                    }
                }
                throw e;
            }
        } // while
    }
    /**
    * Delete an image from a journal entry
    * 
    * @param id The ID of the Annotation that uses the image (required)
    * @param fileName The file name of the image (required)
    * @return StatusMessageBase
    * @throws ApiException if fails to make API call
    */
    public StatusMessageBase deleteImage(String id, String fileName) throws ApiException {
        ApiClient.ApiResponse localVarResponse = deleteImageWithHttpInfo(id, fileName);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Delete an image from a journal entry
    * 
    * @param id The ID of the Annotation that uses the image (required)
    * @param fileName The file name of the image (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse deleteImageWithHttpInfo(String id, String fileName) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return deleteImageWithHeadersAndHttpInfo(id, fileName, localVarHeaderParams);
        
    }

    /**
    * Delete an image from a journal entry
    * 
    * @param id The ID of the Annotation that uses the image (required)
    * @param fileName The file name of the image (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse deleteImageWithHeadersAndHttpInfo(String id, String fileName, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return deleteImageInternal(id, fileName, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse deleteImageInternal(String id, String fileName, 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 deleteImage");
        }
        // verify the required path parameter 'fileName' is set
        if (fileName == null) {
            throw new ApiException(400, "Missing the required path parameter 'fileName' when calling deleteImage");
        }
        // create path and map variables
        String localVarPath = "/annotations/{id}/images/{fileName}"
          .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()))
          .replaceAll("\\{" + "fileName" + "\\}", apiClient.escapeString(fileName.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
    }
    /**
    * Get an annotation
    * 
    * @param id ID of the annotation to retrieve (required)
    * @return AnnotationOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationOutputV1 getAnnotation(String id) throws ApiException {
        ApiClient.ApiResponse localVarResponse = getAnnotationWithHttpInfo(id);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Get an annotation
    * 
    * @param id ID of the annotation to retrieve (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationWithHttpInfo(String id) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return getAnnotationWithHeadersAndHttpInfo(id, localVarHeaderParams);
        
    }

    /**
    * Get an annotation
    * 
    * @param id ID of the annotation to retrieve (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return getAnnotationInternal(id, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse getAnnotationInternal(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 getAnnotation");
        }
        // create path and map variables
        String localVarPath = "/annotations/{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 collection of annotations
    * 
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
    * @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
    * @return AnnotationListOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationListOutputV1 getAnnotations(List annotates, String type, Integer offset, Integer limit) throws ApiException {
        ApiClient.ApiResponse localVarResponse = getAnnotationsWithHttpInfo(annotates, type, offset, limit);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Get a collection of annotations
    * 
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
    * @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHttpInfo(List annotates, String type, Integer offset, Integer limit) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return getAnnotationsWithHeadersAndHttpInfo(annotates, type, offset, limit, localVarHeaderParams);
        
    }

    /**
    * Get a collection of annotations
    * 
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional, default to 0)
    * @param limit The pagination limit, the total number of collection items that will be returned in this page of results (optional, default to 40)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHeadersAndHttpInfo(List annotates, String type, Integer offset, Integer limit, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "annotates", annotates));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
                localVarHeaderParams.putAll(customHeaders);
        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse getAnnotationsInternal(List queryParams, Map headerParams) throws ApiException {
        Object localVarPostBody = null;
        // create path and map variables
        String localVarPath = "/annotations";

        // query params
        Map localVarFormParams = new HashMap();

        
        final String[] localVarAccepts = {
        "application/vnd.seeq.v1+json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {
        
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "api_key" };

        long apiClientInvocationTime = System.currentTimeMillis();
        while(true) {
            try {
                GenericType localVarReturnType = new GenericType() {};
                return apiClient.invokeAPIWithHttpInfo(localVarPath, "GET", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
                // Possible exceptions:
                // ===================
                // * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
                //    during conversion of the response entity data to an instance of a particular Java type).
                // * ProcessingException - in case the request processing or subsequent I/O operation fails.
                // * WebApplicationException - in case the response status code of the response returned by the server is not
                //    successful and the specified response type is not Response.
                // * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
                //    in ApiException(s)
            } catch (ApiException | ProcessingException e) {
                if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
                    long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
                    if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
                        continue;
                    }
                }
                throw e;
            }
        } // while
    }
    /**
    * Get an image for a journal entry
    * 
    * @param id The ID of the Annotation that uses the image (required)
    * @param fileName The file name of the image (required)
    * @throws ApiException if fails to make API call
    */
    public void getImage(String id, String fileName) throws ApiException {
        getImageWithHttpInfo(id, fileName);
    }
    
    /**
    * Get an image for a journal entry
    * 
    * @param id The ID of the Annotation that uses the image (required)
    * @param fileName The file name of the image (required)
    * @throws ApiException if fails to make API call
    */
    public void getImageWithHttpInfo(String id, String fileName) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        
         getImageWithHeadersAndHttpInfo(id, fileName, localVarHeaderParams);
    }

    /**
    * Get an image for a journal entry
    * 
    * @param id The ID of the Annotation that uses the image (required)
    * @param fileName The file name of the image (required)
    * @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, String fileName, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        getImageInternal(id, fileName, localVarQueryParams, localVarHeaderParams);
    }
    
    private void getImageInternal(String id, String fileName, 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");
        }
        // verify the required path parameter 'fileName' is set
        if (fileName == null) {
            throw new ApiException(400, "Missing the required path parameter 'fileName' when calling getImage");
        }
        // create path and map variables
        String localVarPath = "/annotations/{id}/images/{fileName}"
          .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()))
          .replaceAll("\\{" + "fileName" + "\\}", apiClient.escapeString(fileName.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
    }
    /**
    * Mark the annotation as upgraded to CK Editor using the provided HTML
    * 
    * @param id The Seeq ID for the report (required)
    * @param body  (required)
    * @return StatusMessageBase
    * @throws ApiException if fails to make API call
    */
    public StatusMessageBase migrateAnnotationToCkEditor(String id, MigrateEditorInputV1 body) throws ApiException {
        ApiClient.ApiResponse localVarResponse = migrateAnnotationToCkEditorWithHttpInfo(id, body);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Mark the annotation as upgraded to CK Editor using the provided HTML
    * 
    * @param id The Seeq ID for the report (required)
    * @param body  (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse migrateAnnotationToCkEditorWithHttpInfo(String id, MigrateEditorInputV1 body) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return migrateAnnotationToCkEditorWithHeadersAndHttpInfo(id, body, localVarHeaderParams);
        
    }

    /**
    * Mark the annotation as upgraded to CK Editor using the provided HTML
    * 
    * @param id The Seeq ID for the report (required)
    * @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 migrateAnnotationToCkEditorWithHeadersAndHttpInfo(String id, MigrateEditorInputV1 body, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return migrateAnnotationToCkEditorInternal(id, body, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse migrateAnnotationToCkEditorInternal(String id, MigrateEditorInputV1 body, List queryParams, Map headerParams) throws ApiException {
        Object localVarPostBody = body;
        // verify the required path parameter 'id' is set
        if (id == null) {
            throw new ApiException(400, "Missing the required path parameter 'id' when calling migrateAnnotationToCkEditor");
        }
        // verify the required body parameter 'body' is set
        if (body == null) {
            throw new ApiException(400, "Missing the required body parameter 'body' when calling migrateAnnotationToCkEditor");
        }
        // create path and map variables
        String localVarPath = "/annotations/editorMigration/{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 = {
        "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
    }
    /**
    * Publish a report so it cannot be changed
    * 
    * @param id ID of the report to publish (required)
    * @return AnnotationOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationOutputV1 publishReport(String id) throws ApiException {
        ApiClient.ApiResponse localVarResponse = publishReportWithHttpInfo(id);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Publish a report so it cannot be changed
    * 
    * @param id ID of the report to publish (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse publishReportWithHttpInfo(String id) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return publishReportWithHeadersAndHttpInfo(id, localVarHeaderParams);
        
    }

    /**
    * Publish a report so it cannot be changed
    * 
    * @param id ID of the report to publish (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse publishReportWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return publishReportInternal(id, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse publishReportInternal(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 publishReport");
        }
        // create path and map variables
        String localVarPath = "/annotations/{id}/publish"
          .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));

        // query params
        Map localVarFormParams = new HashMap();

        
        final String[] localVarAccepts = {
        "application/vnd.seeq.v1+json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {
        "application/vnd.seeq.v1+json"
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "api_key" };

        long apiClientInvocationTime = System.currentTimeMillis();
        while(true) {
            try {
                GenericType localVarReturnType = new GenericType() {};
                return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
                // Possible exceptions:
                // ===================
                // * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
                //    during conversion of the response entity data to an instance of a particular Java type).
                // * ProcessingException - in case the request processing or subsequent I/O operation fails.
                // * WebApplicationException - in case the response status code of the response returned by the server is not
                //    successful and the specified response type is not Response.
                // * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
                //    in ApiException(s)
            } catch (ApiException | ProcessingException e) {
                if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
                    long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
                    if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
                        continue;
                    }
                }
                throw e;
            }
        } // while
    }
    /**
    * Update an annotation
    * 
    * @param id ID of the annotation to update (required)
    * @param body Annotation input (required)
    * @return AnnotationOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationOutputV1 updateAnnotation(String id, AnnotationInputV1 body) throws ApiException {
        ApiClient.ApiResponse localVarResponse = updateAnnotationWithHttpInfo(id, body);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Update an annotation
    * 
    * @param id ID of the annotation to update (required)
    * @param body Annotation input (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse updateAnnotationWithHttpInfo(String id, AnnotationInputV1 body) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return updateAnnotationWithHeadersAndHttpInfo(id, body, localVarHeaderParams);
        
    }

    /**
    * Update an annotation
    * 
    * @param id ID of the annotation to update (required)
    * @param body Annotation input (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse updateAnnotationWithHeadersAndHttpInfo(String id, AnnotationInputV1 body, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return updateAnnotationInternal(id, body, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse updateAnnotationInternal(String id, AnnotationInputV1 body, List queryParams, Map headerParams) throws ApiException {
        Object localVarPostBody = body;
        // verify the required path parameter 'id' is set
        if (id == null) {
            throw new ApiException(400, "Missing the required path parameter 'id' when calling updateAnnotation");
        }
        // verify the required body parameter 'body' is set
        if (body == null) {
            throw new ApiException(400, "Missing the required body parameter 'body' when calling updateAnnotation");
        }
        // create path and map variables
        String localVarPath = "/annotations/{id}/update"
          .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));

        // query params
        Map localVarFormParams = new HashMap();

        
        final String[] localVarAccepts = {
        "application/vnd.seeq.v1+json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {
        "application/vnd.seeq.v1+json"
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

        String[] localVarAuthNames = new String[] { "api_key" };

        long apiClientInvocationTime = System.currentTimeMillis();
        while(true) {
            try {
                GenericType localVarReturnType = new GenericType() {};
                return apiClient.invokeAPIWithHttpInfo(localVarPath, "POST", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
                // Possible exceptions:
                // ===================
                // * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
                //    during conversion of the response entity data to an instance of a particular Java type).
                // * ProcessingException - in case the request processing or subsequent I/O operation fails.
                // * WebApplicationException - in case the response status code of the response returned by the server is not
                //    successful and the specified response type is not Response.
                // * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
                //    in ApiException(s)
            } catch (ApiException | ProcessingException e) {
                if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
                    long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
                    if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
                        continue;
                    }
                }
                throw e;
            }
        } // while
    }
    /**
    * Upload an image for a journal entry
    * 
    * @param file  (optional)
    * @param id The ID of the Annotation that will use the image (required)
    * @return AnnotationImageLinkOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationImageLinkOutputV1 uploadImage(File file, String id) throws ApiException {
        ApiClient.ApiResponse localVarResponse = uploadImageWithHttpInfo(file, id);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Upload an image for a journal entry
    * 
    * @param file  (optional)
    * @param id The ID of the Annotation that will use the image (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse uploadImageWithHttpInfo(File file, String id) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return uploadImageWithHeadersAndHttpInfo(file, id, localVarHeaderParams);
        
    }

    /**
    * Upload an image for a journal entry
    * 
    * @param file  (optional)
    * @param id The ID of the Annotation that will use the image (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse uploadImageWithHeadersAndHttpInfo(File file, String id, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return uploadImageInternal(id, file, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse uploadImageInternal(String id, File file, 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 uploadImage");
        }
        // create path and map variables
        String localVarPath = "/annotations/{id}/images"
          .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));

        // query params
        Map localVarFormParams = new HashMap();

        if (file != null)
            localVarFormParams.put("file", file);

        final String[] localVarAccepts = {
        "application/vnd.seeq.v1+json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

        final String[] localVarContentTypes = {
        "multipart/form-data"
        };
        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
    }
    // OVERLOADS START

    /**
    * Get a collection of annotations
    *
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional)
    * @return AnnotationListOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationListOutputV1 getAnnotations(List annotates, String type, Integer offset) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));

        ApiClient.ApiResponse localVarResponse = getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }

    /**
    * Get a collection of annotations
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHttpInfo(List annotates, String type, Integer offset) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));

        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a collection of annotations
    *
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @param offset The pagination offset, the index of the first collection item that will be returned in this page of results (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHeadersAndHttpInfo(List annotates, String type, Integer offset, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));

        localVarHeaderParams.putAll(customHeaders);
        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }


    /**
    * Get a collection of annotations
    *
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @return AnnotationListOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationListOutputV1 getAnnotations(List annotates, String type) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type));

        ApiClient.ApiResponse localVarResponse = getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }

    /**
    * Get a collection of annotations
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHttpInfo(List annotates, String type) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type));

        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a collection of annotations
    *
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param type The type of annotations to return, either Report or Journal (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHeadersAndHttpInfo(List annotates, String type, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "type", type));

        localVarHeaderParams.putAll(customHeaders);
        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }


    /**
    * Get a collection of annotations
    *
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @return AnnotationListOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationListOutputV1 getAnnotations(List annotates) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        ApiClient.ApiResponse localVarResponse = getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }

    /**
    * Get a collection of annotations
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHttpInfo(List annotates) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a collection of annotations
    *
    * @param annotates A list of item IDs that will filter the annotations returned to only those that annotate the specified items. (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHeadersAndHttpInfo(List annotates, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

        localVarQueryParams.addAll(apiClient.parameterToPairs("", "annotates", annotates));

        localVarHeaderParams.putAll(customHeaders);
        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }


    /**
    * Get a collection of annotations
    *
    *
    * @return AnnotationListOutputV1
    * @throws ApiException if fails to make API call
    */
    public AnnotationListOutputV1 getAnnotations() throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();


        ApiClient.ApiResponse localVarResponse = getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }

    /**
    * Get a collection of annotations
    *
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHttpInfo() throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();


        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a collection of annotations
    *
    *
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getAnnotationsWithHeadersAndHttpInfo(Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();


        localVarHeaderParams.putAll(customHeaders);
        return getAnnotationsInternal(localVarQueryParams, localVarHeaderParams);
    }

// OVERLOADS END
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy