Skip to content

Commit

Permalink
accept registry string type for component on a batch component deploy…
Browse files Browse the repository at this point in the history
…ment (Azure#29230)

* accept registry string type for component on a batch component deployment

* reformatting black changes
  • Loading branch information
TajiHarrisMicrosoft authored Mar 10, 2023
1 parent 15b83c7 commit b5a383d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@

from marshmallow import fields, post_load

from azure.ai.ml._schema import ArmVersionedStr, PatchedSchemaMeta, StringTransformedEnum, UnionField, ArmStr
from azure.ai.ml._schema import (
ArmVersionedStr,
PatchedSchemaMeta,
StringTransformedEnum,
UnionField,
ArmStr,
RegistryStr,
)
from azure.ai.ml._schema.pipeline.pipeline_component import PipelineComponentFileRefField
from azure.ai.ml.constants._common import AzureMLResourceType
from azure.ai.ml.constants._job.job import JobType
Expand All @@ -27,6 +34,7 @@ class JobDefinitionSchema(metaclass=PatchedSchemaMeta):
)
component = UnionField(
[
RegistryStr(azureml_type=AzureMLResourceType.COMPONENT),
ArmVersionedStr(azureml_type=AzureMLResourceType.COMPONENT, allow_default_version=True),
PipelineComponentFileRefField(),
]
Expand Down

0 comments on commit b5a383d

Please sign in to comment.