controllers.notifications_controller module¶
-
class
controllers.notifications_controller.
NotificationsController
(config=None, client=None, call_back=None)[source]¶ Bases:
cohesity_management_sdk.controllers.base_controller.BaseController
A Controller to access Endpoints in the cohesity_management_sdk API.
-
get_notifications
()[source]¶ Does a GET request to /public/sessionUser/notifications.
List the notification of the session user.
- Returns:
Notifications: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
update_notifications
(body)[source]¶ Does a PATCH request to /public/sessionUser/notifications.
Returns success or failure.
- Args:
- body (UpdateNotifications): Specifies the list of notificationIds
and the operation to be performed.
- Returns:
void: Response from the API. No Content
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-