diff options
| author | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
|---|---|---|
| committer | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
| commit | 4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch) | |
| tree | ee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification | |
| parent | cc961e04ba734dd72309fb548a2f97d67d578813 (diff) | |
| download | gn-ai-master.tar.gz | |
Diffstat (limited to '.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification')
| -rw-r--r-- | .venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/__init__.py | 5 | ||||
| -rw-r--r-- | .venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/notification.py | 33 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/__init__.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/__init__.py new file mode 100644 index 00000000..fdf8caba --- /dev/null +++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/__init__.py @@ -0,0 +1,5 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- + +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/notification.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/notification.py new file mode 100644 index 00000000..91380870 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/notification.py @@ -0,0 +1,33 @@ +# --------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# --------------------------------------------------------- + +from typing import List, Optional + +from azure.ai.ml._restclient.v2023_02_01_preview.models import NotificationSetting as RestNotificationSetting +from azure.ai.ml.entities._mixins import RestTranslatableMixin + + +class Notification(RestTranslatableMixin): + """Configuration for notification. + + :param email_on: Send email notification to user on specified notification type. Accepted values are + "JobCompleted", "JobFailed", and "JobCancelled". + :type email_on: Optional[list[str]] + :param: The email recipient list which. Note that this parameter has a character limit of 499 which + includes all of the recipient strings and each comma seperator. + :paramtype emails: Optional[list[str]] + """ + + def __init__(self, *, email_on: Optional[List[str]] = None, emails: Optional[List[str]] = None) -> None: + self.email_on = email_on + self.emails = emails + + def _to_rest_object(self) -> RestNotificationSetting: + return RestNotificationSetting(email_on=self.email_on, emails=self.emails) + + @classmethod + def _from_rest_object(cls, obj: RestNotificationSetting) -> Optional["Notification"]: + if not obj: + return None + return Notification(email_on=obj.email_on, emails=obj.emails) |
