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

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

There is a newer version: 66.0.0-v202410141803
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.ConditionMonitorNotificationConfigurationInputV1;
import com.seeq.model.ConditionNotificationOutputListV1;
import com.seeq.model.NotificationConfigurationOutputV1;
import com.seeq.model.ReportNotificationConfigurationInputV1;


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

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

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

    public NotificationConfigurationsApi(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;
    }

    /**
    * Delete a notification configuration
    * 
    * @param id The Seeq ID of the notifiable item (required)
    * @throws ApiException if fails to make API call
    */
    public void deleteNotificationConfiguration(String id) throws ApiException {
        deleteNotificationConfigurationWithHttpInfo(id);
    }
    
    /**
    * Delete a notification configuration
    * 
    * @param id The Seeq ID of the notifiable item (required)
    * @throws ApiException if fails to make API call
    */
    public void deleteNotificationConfigurationWithHttpInfo(String id) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        
         deleteNotificationConfigurationWithHeadersAndHttpInfo(id, localVarHeaderParams);
    }

    /**
    * Delete a notification configuration
    * 
    * @param id The Seeq ID of the notifiable item (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public void deleteNotificationConfigurationWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        deleteNotificationConfigurationInternal(id, localVarQueryParams, localVarHeaderParams);
    }
    
    private void deleteNotificationConfigurationInternal(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 deleteNotificationConfiguration");
        }
        // create path and map variables
        String localVarPath = "/notification-configurations/{id}"
          .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));

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

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

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

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

        long apiClientInvocationTime = System.currentTimeMillis();
        while(true) {
            try {
                apiClient.invokeAPIWithHttpInfo(localVarPath, "DELETE", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
                return;
                // Possible exceptions:
                // ===================
                // * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
                //    during conversion of the response entity data to an instance of a particular Java type).
                // * ProcessingException - in case the request processing or subsequent I/O operation fails.
                // * WebApplicationException - in case the response status code of the response returned by the server is not
                //    successful and the specified response type is not Response.
                // * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
                //    in ApiException(s)
            } catch (ApiException | ProcessingException e) {
                if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
                    long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
                    if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
                        continue;
                    }
                }
                throw e;
            }
        } // while
    }
    /**
    * Get a list of condition notifications
    * 
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional, default to 0)
    * @param limit The pagination limit, the total number of items that will be returned in this page of results (optional, default to 40)
    * @param sortField Order the items by either name or createdAt (optional, default to Name)
    * @param sortAsc Sorts the sort field in ascending order when true and descending when false (optional, default to true)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit, String sortField, Boolean sortAsc) throws ApiException {
        ApiClient.ApiResponse localVarResponse = getConditionNotificationsWithHttpInfo(creatorIds, nameSearch, workbookSearch, conditionIds, enabledFilter, offset, limit, sortField, sortAsc);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Get a list of condition notifications
    * 
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional, default to 0)
    * @param limit The pagination limit, the total number of items that will be returned in this page of results (optional, default to 40)
    * @param sortField Order the items by either name or createdAt (optional, default to Name)
    * @param sortAsc Sorts the sort field in ascending order when true and descending when false (optional, default to true)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit, String sortField, Boolean sortAsc) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return getConditionNotificationsWithHeadersAndHttpInfo(creatorIds, nameSearch, workbookSearch, conditionIds, enabledFilter, offset, limit, sortField, sortAsc, localVarHeaderParams);
        
    }

    /**
    * Get a list of condition notifications
    * 
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional, default to 0)
    * @param limit The pagination limit, the total number of items that will be returned in this page of results (optional, default to 40)
    * @param sortField Order the items by either name or createdAt (optional, default to Name)
    * @param sortAsc Sorts the sort field 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 getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit, String sortField, Boolean sortAsc, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "creatorIds", creatorIds));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "nameSearch", nameSearch));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "workbookSearch", workbookSearch));
        localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "conditionIds", conditionIds));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "enabledFilter", enabledFilter));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortField", sortField));
        localVarQueryParams.addAll(apiClient.parameterToPairs("", "sortAsc", sortAsc));
                localVarHeaderParams.putAll(customHeaders);
        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse getConditionNotificationsInternal(List queryParams, Map headerParams) throws ApiException {
        Object localVarPostBody = null;
        // create path and map variables
        String localVarPath = "/notification-configurations/condition-monitors";

        // 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 notification configuration
    * 
    * @param id The Seeq ID of the notifiable item (required)
    * @return NotificationConfigurationOutputV1
    * @throws ApiException if fails to make API call
    */
    public NotificationConfigurationOutputV1 getNotificationConfiguration(String id) throws ApiException {
        ApiClient.ApiResponse localVarResponse = getNotificationConfigurationWithHttpInfo(id);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Get a notification configuration
    * 
    * @param id The Seeq ID of the notifiable item (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getNotificationConfigurationWithHttpInfo(String id) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return getNotificationConfigurationWithHeadersAndHttpInfo(id, localVarHeaderParams);
        
    }

    /**
    * Get a notification configuration
    * 
    * @param id The Seeq ID of the notifiable item (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getNotificationConfigurationWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return getNotificationConfigurationInternal(id, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse getNotificationConfigurationInternal(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 getNotificationConfiguration");
        }
        // create path and map variables
        String localVarPath = "/notification-configurations/{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
    }
    /**
    * Create or update a notification configuration on a condition monitor
    * 
    * @param id The Seeq ID of the condition monitor (required)
    * @param body  (required)
    * @return NotificationConfigurationOutputV1
    * @throws ApiException if fails to make API call
    */
    public NotificationConfigurationOutputV1 setNotificationConfigurationForConditionMonitor(String id, ConditionMonitorNotificationConfigurationInputV1 body) throws ApiException {
        ApiClient.ApiResponse localVarResponse = setNotificationConfigurationForConditionMonitorWithHttpInfo(id, body);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Create or update a notification configuration on a condition monitor
    * 
    * @param id The Seeq ID of the condition monitor (required)
    * @param body  (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse setNotificationConfigurationForConditionMonitorWithHttpInfo(String id, ConditionMonitorNotificationConfigurationInputV1 body) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return setNotificationConfigurationForConditionMonitorWithHeadersAndHttpInfo(id, body, localVarHeaderParams);
        
    }

    /**
    * Create or update a notification configuration on a condition monitor
    * 
    * @param id The Seeq ID of the condition monitor (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 setNotificationConfigurationForConditionMonitorWithHeadersAndHttpInfo(String id, ConditionMonitorNotificationConfigurationInputV1 body, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return setNotificationConfigurationForConditionMonitorInternal(id, body, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse setNotificationConfigurationForConditionMonitorInternal(String id, ConditionMonitorNotificationConfigurationInputV1 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 setNotificationConfigurationForConditionMonitor");
        }
        // verify the required body parameter 'body' is set
        if (body == null) {
            throw new ApiException(400, "Missing the required body parameter 'body' when calling setNotificationConfigurationForConditionMonitor");
        }
        // create path and map variables
        String localVarPath = "/notification-configurations/condition-monitors/{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
    }
    /**
    * Create or update a notification configuration on a report
    * 
    * @param id The Seeq ID of the report (required)
    * @param body  (required)
    * @return NotificationConfigurationOutputV1
    * @throws ApiException if fails to make API call
    */
    public NotificationConfigurationOutputV1 setNotificationConfigurationForReport(String id, ReportNotificationConfigurationInputV1 body) throws ApiException {
        ApiClient.ApiResponse localVarResponse = setNotificationConfigurationForReportWithHttpInfo(id, body);
        return localVarResponse != null ? localVarResponse.getData() : null;
    }
    
    /**
    * Create or update a notification configuration on a report
    * 
    * @param id The Seeq ID of the report (required)
    * @param body  (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse setNotificationConfigurationForReportWithHttpInfo(String id, ReportNotificationConfigurationInputV1 body) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        return setNotificationConfigurationForReportWithHeadersAndHttpInfo(id, body, localVarHeaderParams);
        
    }

    /**
    * Create or update a notification configuration on a report
    * 
    * @param id The Seeq ID of 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 setNotificationConfigurationForReportWithHeadersAndHttpInfo(String id, ReportNotificationConfigurationInputV1 body, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        return setNotificationConfigurationForReportInternal(id, body, localVarQueryParams, localVarHeaderParams);
    }
    
    private ApiClient.ApiResponse setNotificationConfigurationForReportInternal(String id, ReportNotificationConfigurationInputV1 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 setNotificationConfigurationForReport");
        }
        // verify the required body parameter 'body' is set
        if (body == null) {
            throw new ApiException(400, "Missing the required body parameter 'body' when calling setNotificationConfigurationForReport");
        }
        // create path and map variables
        String localVarPath = "/notification-configurations/reports/{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
    }
    /**
    * Unsubscribe the current user from the notification on the specified item
    * 
    * @param id The ID of the item to unsubscribe from (required)
    * @throws ApiException if fails to make API call
    */
    public void unsubscribeFromItem(String id) throws ApiException {
        unsubscribeFromItemWithHttpInfo(id);
    }
    
    /**
    * Unsubscribe the current user from the notification on the specified item
    * 
    * @param id The ID of the item to unsubscribe from (required)
    * @throws ApiException if fails to make API call
    */
    public void unsubscribeFromItemWithHttpInfo(String id) throws ApiException {
        Map localVarHeaderParams = new HashMap();
        
         unsubscribeFromItemWithHeadersAndHttpInfo(id, localVarHeaderParams);
    }

    /**
    * Unsubscribe the current user from the notification on the specified item
    * 
    * @param id The ID of the item to unsubscribe from (required)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public void unsubscribeFromItemWithHeadersAndHttpInfo(String id, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
                localVarHeaderParams.putAll(customHeaders);
        unsubscribeFromItemInternal(id, localVarQueryParams, localVarHeaderParams);
    }
    
    private void unsubscribeFromItemInternal(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 unsubscribeFromItem");
        }
        // create path and map variables
        String localVarPath = "/notification-configurations/unsubscribe/{id}"
          .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));

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

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

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

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

        long apiClientInvocationTime = System.currentTimeMillis();
        while(true) {
            try {
                apiClient.invokeAPIWithHttpInfo(localVarPath, "DELETE", queryParams, localVarPostBody, headerParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null);
                return;
                // Possible exceptions:
                // ===================
                // * ResponseProcessingException - in case processing of a received HTTP response fails (e.g. in a filter or
                //    during conversion of the response entity data to an instance of a particular Java type).
                // * ProcessingException - in case the request processing or subsequent I/O operation fails.
                // * WebApplicationException - in case the response status code of the response returned by the server is not
                //    successful and the specified response type is not Response.
                // * ApiException for exceptions wrapped by ApiClient. Most likely all WebApplicationException are wrapped
                //    in ApiException(s)
            } catch (ApiException | ProcessingException e) {
                if (e instanceof ProcessingException || e instanceof ApiException && ((ApiException) e).getCode() == 504) {
                    long elapsedTime = System.currentTimeMillis() - apiClientInvocationTime;
                    if (elapsedTime <= this.retryTimeout && this.retryTimeout != 0) {
                        continue;
                    }
                }
                throw e;
            }
        } // while
    }
    // OVERLOADS START

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @param limit The pagination limit, the total number of items that will be returned in this page of results (optional)
    * @param sortField Order the items by either name or createdAt (optional)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit, String sortField) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

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

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

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

    /**
    * Get a list of condition notifications
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @param limit The pagination limit, the total number of items that will be returned in this page of results (optional)
    * @param sortField Order the items by either name or createdAt (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit, String sortField) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

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

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

        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @param limit The pagination limit, the total number of items that will be returned in this page of results (optional)
    * @param sortField Order the items by either name or createdAt (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit, String sortField, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

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

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

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


    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @param limit The pagination limit, the total number of items that will be returned in this page of results (optional)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

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

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

    /**
    * Get a list of condition notifications
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @param limit The pagination limit, the total number of items that will be returned in this page of results (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

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

        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @param limit The pagination limit, the total number of items 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 getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Integer limit, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

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

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


    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

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

    /**
    * Get a list of condition notifications
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param offset Whether to filter items to only users who are enabled. (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Integer offset, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

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


    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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

    /**
    * Get a list of condition notifications
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param enabledFilter Filter items by their enabled status (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Boolean enabledFilter, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

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


    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds, String nameSearch, String workbookSearch, List conditionIds) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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

    /**
    * Get a list of condition notifications
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param conditionIds Filter items to only those that are monitoring one of the specified conditions as specified by the list of IDs (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, String nameSearch, String workbookSearch, List conditionIds, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

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


    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds, String nameSearch, String workbookSearch) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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

    /**
    * Get a list of condition notifications
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds, String nameSearch, String workbookSearch) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param workbookSearch Filter the items to those whose condition are scoped to workbooks that match any part of the specified string (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, String nameSearch, String workbookSearch, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

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


    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds, String nameSearch) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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

    /**
    * Get a list of condition notifications
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds, String nameSearch) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param nameSearch Filter the items to those whose name match any part of the specified string (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, String nameSearch, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

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


    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications(List creatorIds) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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

    /**
    * Get a list of condition notifications
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHttpInfo(List creatorIds) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

    /**
    * Get a list of condition notifications
    *
    * @param creatorIds Filter items to only those created by the specified user IDs (optional)
    * @param customHeaders a map with custom headers for the HTTP request (required)
    * @throws ApiException if fails to make API call
    */
    public ApiClient.ApiResponse getConditionNotificationsWithHeadersAndHttpInfo(List creatorIds, Map customHeaders) throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();

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

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


    /**
    * Get a list of condition notifications
    *
    *
    * @return ConditionNotificationOutputListV1
    * @throws ApiException if fails to make API call
    */
    public ConditionNotificationOutputListV1 getConditionNotifications() throws ApiException {
        List localVarQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();


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

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


        return getConditionNotificationsInternal(localVarQueryParams, localVarHeaderParams);
    }

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


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

// OVERLOADS END
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy