aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/azure/ai/ml/_schema/job_resources.py
diff options
context:
space:
mode:
Diffstat (limited to '.venv/lib/python3.12/site-packages/azure/ai/ml/_schema/job_resources.py')
-rw-r--r--.venv/lib/python3.12/site-packages/azure/ai/ml/_schema/job_resources.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/azure/ai/ml/_schema/job_resources.py b/.venv/lib/python3.12/site-packages/azure/ai/ml/_schema/job_resources.py
new file mode 100644
index 00000000..49e6eaa0
--- /dev/null
+++ b/.venv/lib/python3.12/site-packages/azure/ai/ml/_schema/job_resources.py
@@ -0,0 +1,21 @@
+# ---------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# ---------------------------------------------------------
+
+# pylint: disable=unused-argument
+
+from marshmallow import fields, post_load
+
+from azure.ai.ml._schema.core.schema_meta import PatchedSchemaMeta
+
+
+class JobResourcesSchema(metaclass=PatchedSchemaMeta):
+ instance_types = fields.List(
+ fields.Str(), metadata={"description": "The instance type to make available to this job."}
+ )
+
+ @post_load
+ def make(self, data, **kwargs):
+ from azure.ai.ml.entities import JobResources
+
+ return JobResources(**data)