aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/azure/ai/ml/_internal/_schema/environment.py
blob: f7c20228871505b79fef816af6cc5a335696d3c0 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------

from marshmallow import fields

from ..._schema import PathAwareSchema
from ..._schema.core.fields import DumpableEnumField, VersionField


class InternalEnvironmentSchema(PathAwareSchema):
    docker = fields.Dict()
    conda = fields.Dict()
    os = DumpableEnumField(
        # add enum instead of use string transformer here to avoid changing the value
        allowed_values=["Linux", "Windows", "linux", "windows"],
        required=False,
    )
    name = fields.Str()
    version = VersionField()
    python = fields.Dict()