mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
@ -859,6 +859,15 @@ class Notifications(Endpoint):
|
|||||||
data=requests.NotificationSearch(container=container),
|
data=requests.NotificationSearch(container=container),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def get(self, notification_id: UUID_EXPANSION) -> List[models.Notification]:
|
||||||
|
"""Get a notification"""
|
||||||
|
self.logger.debug("getting notification")
|
||||||
|
return self._req_model_list(
|
||||||
|
"GET",
|
||||||
|
models.Notification,
|
||||||
|
data=requests.NotificationSearch(notification_id=notification_id),
|
||||||
|
)
|
||||||
|
|
||||||
def migrate_jinja_to_scriban(
|
def migrate_jinja_to_scriban(
|
||||||
self, dry_run: bool = False
|
self, dry_run: bool = False
|
||||||
) -> Union[
|
) -> Union[
|
||||||
|
@ -52,6 +52,7 @@ class NotificationCreate(BaseRequest, NotificationConfig):
|
|||||||
|
|
||||||
class NotificationSearch(BaseRequest):
|
class NotificationSearch(BaseRequest):
|
||||||
container: Optional[List[Container]]
|
container: Optional[List[Container]]
|
||||||
|
notification_id: Optional[UUID]
|
||||||
|
|
||||||
|
|
||||||
class NotificationGet(BaseRequest):
|
class NotificationGet(BaseRequest):
|
||||||
|
Reference in New Issue
Block a user