about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are here HEAD master
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__.py5
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_notification/notification.py33
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)