nexla_sdk.resources.notifications
Classes
NotificationsResource
Defined in nexla_sdk/resources/notifications.py:13
Resource for managing notifications.
Methods:
create_channel_setting(self, data: nexla_sdk.models.notifications.requests.NotificationChannelSettingCreate) -> nexla_sdk.models.notifications.responses.NotificationChannelSetting- Source:
nexla_sdk/resources/notifications.py:185 - Create notification channel setting.
- Source:
create_setting(self, data: nexla_sdk.models.notifications.requests.NotificationSettingCreate) -> nexla_sdk.models.notifications.responses.NotificationSetting- Source:
nexla_sdk/resources/notifications.py:271 - Create notification setting.
- Source:
delete(self, notification_id: int) -> Dict[str, Any]- Source:
nexla_sdk/resources/notifications.py:34 - Delete notification.
- Source:
delete_all(self) -> Dict[str, Any]- Source:
nexla_sdk/resources/notifications.py:77 - Delete all notifications.
- Source:
delete_channel_setting(self, setting_id: int) -> Dict[str, Any]- Source:
nexla_sdk/resources/notifications.py:230 - Delete notification channel setting.
- Source:
delete_setting(self, setting_id: int) -> Dict[str, Any]- Source:
nexla_sdk/resources/notifications.py:316 - Delete notification setting.
- Source:
get(self, notification_id: int, expand: bool = False) -> nexla_sdk.models.notifications.responses.Notification- Source:
nexla_sdk/resources/notifications.py:21 - Get single notification by ID.
- Source:
get_channel_setting(self, setting_id: int) -> nexla_sdk.models.notifications.responses.NotificationChannelSetting- Source:
nexla_sdk/resources/notifications.py:199 - Get notification channel setting.
- Source:
get_count(self, read: Optional[int] = None) -> nexla_sdk.models.notifications.responses.NotificationCount- Source:
nexla_sdk/resources/notifications.py:87 - Get notification count.
- Source:
get_resource_settings(self, resource_type: str, resource_id: int, expand: bool = False, filter_overridden: bool = False, notification_type_id: Optional[int] = None) -> List[nexla_sdk.models.notifications.responses.NotificationSetting]- Source:
nexla_sdk/resources/notifications.py:347 - Get notification settings for a resource.
- Source:
get_setting(self, setting_id: int) -> nexla_sdk.models.notifications.responses.NotificationSetting- Source:
nexla_sdk/resources/notifications.py:285 - Get notification setting.
- Source:
get_settings_by_type(self, notification_type_id: int, expand: bool = False) -> List[nexla_sdk.models.notifications.responses.NotificationSetting]- Source:
nexla_sdk/resources/notifications.py:329 - Get notification settings for a type.
- Source:
get_type(self, event_type: str, resource_type: str) -> nexla_sdk.models.notifications.responses.NotificationType- Source:
nexla_sdk/resources/notifications.py:154 - Get specific notification type.
- Source:
get_types(self, status: Optional[str] = None) -> List[nexla_sdk.models.notifications.responses.NotificationType]- Source:
nexla_sdk/resources/notifications.py:139 - Get all notification types.
- Source:
list(self, read: Optional[int] = None, level: Optional[str] = None, from_timestamp: Optional[int] = None, to_timestamp: Optional[int] = None, **kwargs) -> List[nexla_sdk.models.notifications.responses.Notification]- Source:
nexla_sdk/resources/notifications.py:46 - List notifications.
- Source:
list_channel_settings(self) -> List[nexla_sdk.models.notifications.responses.NotificationChannelSetting]- Source:
nexla_sdk/resources/notifications.py:174 - List notification channel settings.
- Source:
list_settings(self, event_type: Optional[str] = None, resource_type: Optional[str] = None, status: Optional[str] = None) -> List[nexla_sdk.models.notifications.responses.NotificationSetting]- Source:
nexla_sdk/resources/notifications.py:244 - List notification settings.
- Source:
mark_read(self, notification_ids: Union[List[int], str]) -> Dict[str, Any]- Source:
nexla_sdk/resources/notifications.py:102 - Mark notifications as read.
- Source:
mark_unread(self, notification_ids: Union[List[int], str]) -> Dict[str, Any]- Source:
nexla_sdk/resources/notifications.py:120 - Mark notifications as unread.
- Source:
update_channel_setting(self, setting_id: int, data: nexla_sdk.models.notifications.requests.NotificationChannelSettingUpdate) -> nexla_sdk.models.notifications.responses.NotificationChannelSetting- Source:
nexla_sdk/resources/notifications.py:213 - Update notification channel setting.
- Source:
update_setting(self, setting_id: int, data: nexla_sdk.models.notifications.requests.NotificationSettingUpdate) -> nexla_sdk.models.notifications.responses.NotificationSetting- Source:
nexla_sdk/resources/notifications.py:299 - Update notification setting.
- Source: