@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-12T14:56:03.264844-05:00[America/New_York]") public class NotificationRestApi extends Object
Constructor and Description |
---|
NotificationRestApi() |
NotificationRestApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
Notification |
deleteNotification(String sessionid,
Long notificationId)
Deletes a notification
|
ApiResponse<Notification> |
deleteNotificationWithHttpInfo(String sessionid,
Long notificationId)
Deletes a notification
|
ApiClient |
getApiClient()
Get the API client
|
UnreadNotificationCount |
getCategorizedUnreadNotificationsCount(String sessionid)
Gets the unread notification count for a user for each subscription type
|
ApiResponse<UnreadNotificationCount> |
getCategorizedUnreadNotificationsCountWithHttpInfo(String sessionid)
Gets the unread notification count for a user for each subscription type
|
Map<String,List<EventTypeSeverityPair>> |
getEventTypes(String sessionid)
Gets the event groups and types
|
ApiResponse<Map<String,List<EventTypeSeverityPair>>> |
getEventTypesWithHttpInfo(String sessionid)
Gets the event groups and types
|
List<Notification> |
getNotifications(String sessionid,
String readStatus,
Long beforeId,
Long afterId,
Integer limit,
List<String> eventGroups,
List<String> eventTypes,
String bucketName,
String projectName,
String workflowName,
Boolean myJobsOnly,
String eventSeverities,
String sortByElement,
String sortByOrder,
Set<String> channels,
Long jobId)
Gets user filtered notifications
|
ApiResponse<List<Notification>> |
getNotificationsWithHttpInfo(String sessionid,
String readStatus,
Long beforeId,
Long afterId,
Integer limit,
List<String> eventGroups,
List<String> eventTypes,
String bucketName,
String projectName,
String workflowName,
Boolean myJobsOnly,
String eventSeverities,
String sortByElement,
String sortByOrder,
Set<String> channels,
Long jobId)
Gets user filtered notifications
|
Long |
getUnreadNotificationsCount(String sessionid)
Gets the unread notification count for a user
|
ApiResponse<Long> |
getUnreadNotificationsCountWithHttpInfo(String sessionid)
Gets the unread notification count for a user
|
Notification |
removeUserFromNotification(String sessionid,
Long notificationId)
Removes a user from a notification
|
ApiResponse<Notification> |
removeUserFromNotificationWithHttpInfo(String sessionid,
Long notificationId)
Removes a user from a notification
|
void |
setApiClient(ApiClient apiClient)
Set the API client
|
List<Notification> |
updateHasReadStatus(String sessionid,
Map<String,Boolean> requestBody)
Flags a notification as read/not read
|
ApiResponse<List<Notification>> |
updateHasReadStatusWithHttpInfo(String sessionid,
Map<String,Boolean> requestBody)
Flags a notification as read/not read
|
public NotificationRestApi()
public NotificationRestApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- an instance of API clientpublic Notification deleteNotification(String sessionid, Long notificationId) throws ApiException
sessionid
- (required)notificationId
- (required)ApiException
- if fails to make API callpublic ApiResponse<Notification> deleteNotificationWithHttpInfo(String sessionid, Long notificationId) throws ApiException
sessionid
- (required)notificationId
- (required)ApiException
- if fails to make API callpublic UnreadNotificationCount getCategorizedUnreadNotificationsCount(String sessionid) throws ApiException
sessionid
- (required)ApiException
- if fails to make API callpublic ApiResponse<UnreadNotificationCount> getCategorizedUnreadNotificationsCountWithHttpInfo(String sessionid) throws ApiException
sessionid
- (required)ApiException
- if fails to make API callpublic Map<String,List<EventTypeSeverityPair>> getEventTypes(String sessionid) throws ApiException
sessionid
- (required)ApiException
- if fails to make API callpublic ApiResponse<Map<String,List<EventTypeSeverityPair>>> getEventTypesWithHttpInfo(String sessionid) throws ApiException
sessionid
- (required)ApiException
- if fails to make API callpublic List<Notification> getNotifications(String sessionid, String readStatus, Long beforeId, Long afterId, Integer limit, List<String> eventGroups, List<String> eventTypes, String bucketName, String projectName, String workflowName, Boolean myJobsOnly, String eventSeverities, String sortByElement, String sortByOrder, Set<String> channels, Long jobId) throws ApiException
sessionid
- (required)readStatus
- (optional)beforeId
- (optional)afterId
- (optional)limit
- (optional)eventGroups
- (optional)eventTypes
- (optional)bucketName
- (optional)projectName
- (optional)workflowName
- (optional)myJobsOnly
- (optional)eventSeverities
- (optional)sortByElement
- (optional)sortByOrder
- (optional)channels
- (optional)jobId
- (optional)ApiException
- if fails to make API callpublic ApiResponse<List<Notification>> getNotificationsWithHttpInfo(String sessionid, String readStatus, Long beforeId, Long afterId, Integer limit, List<String> eventGroups, List<String> eventTypes, String bucketName, String projectName, String workflowName, Boolean myJobsOnly, String eventSeverities, String sortByElement, String sortByOrder, Set<String> channels, Long jobId) throws ApiException
sessionid
- (required)readStatus
- (optional)beforeId
- (optional)afterId
- (optional)limit
- (optional)eventGroups
- (optional)eventTypes
- (optional)bucketName
- (optional)projectName
- (optional)workflowName
- (optional)myJobsOnly
- (optional)eventSeverities
- (optional)sortByElement
- (optional)sortByOrder
- (optional)channels
- (optional)jobId
- (optional)ApiException
- if fails to make API callpublic Long getUnreadNotificationsCount(String sessionid) throws ApiException
sessionid
- (required)ApiException
- if fails to make API callpublic ApiResponse<Long> getUnreadNotificationsCountWithHttpInfo(String sessionid) throws ApiException
sessionid
- (required)ApiException
- if fails to make API callpublic Notification removeUserFromNotification(String sessionid, Long notificationId) throws ApiException
sessionid
- (required)notificationId
- (required)ApiException
- if fails to make API callpublic ApiResponse<Notification> removeUserFromNotificationWithHttpInfo(String sessionid, Long notificationId) throws ApiException
sessionid
- (required)notificationId
- (required)ApiException
- if fails to make API callpublic List<Notification> updateHasReadStatus(String sessionid, Map<String,Boolean> requestBody) throws ApiException
sessionid
- (required)requestBody
- (required)ApiException
- if fails to make API callpublic ApiResponse<List<Notification>> updateHasReadStatusWithHttpInfo(String sessionid, Map<String,Boolean> requestBody) throws ApiException
sessionid
- (required)requestBody
- (required)ApiException
- if fails to make API call