Skip to content

Commit 1763dab

Browse files
Re-add experimental flags (#34510)
* readd experimental flags * black reformatting
1 parent 6f39338 commit 1763dab

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_deployment/batch/model_batch_deployment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from azure.ai.ml._schema._deployment.deployment import DeploymentSchema
1515
from azure.ai.ml.constants._common import BASE_PATH_CONTEXT_KEY
1616
from azure.ai.ml.constants._deployment import BatchDeploymentType
17+
from azure.ai.ml._schema import ExperimentalField
1718
from .model_batch_deployment_settings import ModelBatchDeploymentSettingsSchema
1819

1920

@@ -36,7 +37,7 @@ class ModelBatchDeploymentSchema(DeploymentSchema):
3637
allowed_values=[BatchDeploymentType.PIPELINE, BatchDeploymentType.MODEL], required=False
3738
)
3839

39-
settings = NestedField(ModelBatchDeploymentSettingsSchema)
40+
settings = ExperimentalField(NestedField(ModelBatchDeploymentSettingsSchema))
4041

4142
@post_load
4243
def make(self, data: Any, **kwargs: Any) -> Any:

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_deployment/model_batch_deployment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from azure.ai.ml._restclient.v2022_05_01.models import CodeConfiguration as RestCodeConfiguration
1313
from azure.ai.ml._restclient.v2022_05_01.models import IdAssetReference
1414
from azure.ai.ml._schema._deployment.batch.model_batch_deployment import ModelBatchDeploymentSchema
15+
from azure.ai.ml._utils._experimental import experimental
1516
from azure.ai.ml.constants._common import BASE_PATH_CONTEXT_KEY, PARAMS_OVERRIDE_KEY
1617
from azure.ai.ml.constants._deployment import BatchDeploymentOutputAction
1718
from azure.ai.ml.entities._assets import Environment, Model
@@ -25,6 +26,7 @@
2526
from .model_batch_deployment_settings import ModelBatchDeploymentSettings
2627

2728

29+
@experimental
2830
class ModelBatchDeployment(Deployment):
2931
"""Job Definition entity.
3032

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_deployment/model_batch_deployment_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
from typing import Any, Dict, Optional
66

77
from azure.ai.ml._schema._deployment.batch.model_batch_deployment_settings import ModelBatchDeploymentSettingsSchema
8+
from azure.ai.ml._utils._experimental import experimental
89
from azure.ai.ml.constants._common import BASE_PATH_CONTEXT_KEY
910
from azure.ai.ml.constants._deployment import BatchDeploymentOutputAction
1011
from azure.ai.ml.entities._deployment.deployment_settings import BatchRetrySettings
1112

1213

14+
@experimental
1315
class ModelBatchDeploymentSettings:
1416
"""Model Batch Deployment Settings entity.
1517

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_deployment/pipeline_component_batch_deployment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
PipelineComponentBatchDeploymentSchema,
1717
)
1818
from azure.ai.ml._utils._arm_id_utils import _parse_endpoint_name_from_deployment_id
19+
from azure.ai.ml._utils._experimental import experimental
1920
from azure.ai.ml._utils.utils import dump_yaml_to_file
2021
from azure.ai.ml.constants._common import BASE_PATH_CONTEXT_KEY, PARAMS_OVERRIDE_KEY
2122
from azure.ai.ml.entities import PipelineComponent
@@ -25,6 +26,7 @@
2526
from azure.ai.ml.entities._util import load_from_dict
2627

2728

29+
@experimental
2830
class PipelineComponentBatchDeployment(Resource):
2931
"""Pipeline Component Batch Deployment entity.
3032

0 commit comments

Comments
 (0)