Skip to content

Commit

Permalink
new entity for NotificationRecipients
Browse files Browse the repository at this point in the history
Added new entity `NotificationRecipients` for `/notification_recipients` endpoint.
  • Loading branch information
pnovotny committed Apr 2, 2024
1 parent 5b7e0bd commit 8156792
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -8916,3 +8916,17 @@ def search(self, fields=None, query=None, filters=None):
return super().search(
fields=fields, query=query, filters=filters, path_fields={'user': self.user}
)


class NotificationRecipients(Entity, EntityReadMixin):
"""A representation of /notification_recipients endpoint."""

def __init__(self, server_config=None, **kwargs):
self._fields = {
'notifications': entity_fields.ListField(),
}
self._meta = {
'api_path': '/notification_recipients',
'read_type': 'base',
}
super().__init__(server_config, **kwargs)

0 comments on commit 8156792

Please sign in to comment.