Skip to content

Commit ed4453a

Browse files
jayesh-tannaJayesh Tanna
andauthored
removing deployment templates experimental warning while initializing… (#46347)
* removing deployment templates experimental warning while initializing mlclient * fixing pylint issues --------- Co-authored-by: Jayesh Tanna <jatanna@microsoft.com>
1 parent b741288 commit ed4453a

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_autogen_entities/_model_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,12 +684,12 @@ def _get_deserialize_callable_from_annotation( # pylint: disable=R0911
684684
# is it optional?
685685
try:
686686
if any(
687-
a for a in annotation.__args__ if a == type(None)
688-
): # pyright: ignore # pylint: disable=unidiomatic-typecheck
687+
a for a in annotation.__args__ if a == type(None) # pylint: disable=unidiomatic-typecheck
688+
): # pyright: ignore
689689
if_obj_deserializer = _get_deserialize_callable_from_annotation(
690-
next(a for a in annotation.__args__ if a != type(None)),
690+
next(a for a in annotation.__args__ if a != type(None)), # pylint: disable=unidiomatic-typecheck
691691
module,
692-
rf, # pyright: ignore # pylint: disable=unidiomatic-typecheck
692+
rf, # pyright: ignore
693693
)
694694

695695
return functools.partial(_deserialize_with_optional, if_obj_deserializer)

sdk/ml/azure-ai-ml/azure/ai/ml/operations/_deployment_template_operations.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
module_logger = ops_logger.module_logger
2121

2222

23-
@experimental
2423
class DeploymentTemplateOperations(_ScopeDependentOperations):
2524
"""DeploymentTemplateOperations.
2625
@@ -261,6 +260,7 @@ def convert_to_int(value):
261260

262261
@distributed_trace
263262
@monitor_with_telemetry_mixin(ops_logger, "DeploymentTemplate.List", ActivityType.PUBLICAPI)
263+
@experimental
264264
def list(
265265
self,
266266
*,
@@ -307,6 +307,7 @@ def list(
307307

308308
@distributed_trace
309309
@monitor_with_telemetry_mixin(ops_logger, "DeploymentTemplate.Get", ActivityType.PUBLICAPI)
310+
@experimental
310311
def get(self, name: str, version: Optional[str] = None, **kwargs: Any) -> DeploymentTemplate:
311312
"""Get a deployment template by name and version.
312313
@@ -339,6 +340,7 @@ def get(self, name: str, version: Optional[str] = None, **kwargs: Any) -> Deploy
339340

340341
@distributed_trace
341342
@monitor_with_telemetry_mixin(ops_logger, "DeploymentTemplate.CreateOrUpdate", ActivityType.PUBLICAPI)
343+
@experimental
342344
def create_or_update(self, deployment_template: DeploymentTemplate, **kwargs: Any) -> DeploymentTemplate:
343345
"""Create or update a deployment template.
344346
@@ -372,6 +374,7 @@ def create_or_update(self, deployment_template: DeploymentTemplate, **kwargs: An
372374

373375
@distributed_trace
374376
@monitor_with_telemetry_mixin(ops_logger, "DeploymentTemplate.Delete", ActivityType.PUBLICAPI)
377+
@experimental
375378
def delete(self, name: str, version: Optional[str] = None, **kwargs: Any) -> None:
376379
"""Delete a deployment template.
377380
@@ -405,6 +408,7 @@ def delete(self, name: str, version: Optional[str] = None, **kwargs: Any) -> Non
405408

406409
@distributed_trace
407410
@monitor_with_telemetry_mixin(ops_logger, "DeploymentTemplate.Archive", ActivityType.PUBLICAPI)
411+
@experimental
408412
def archive(self, name: str, version: Optional[str] = None, **kwargs: Any) -> DeploymentTemplate:
409413
"""Archive a deployment template by setting its stage to 'Archived'.
410414
@@ -427,6 +431,7 @@ def archive(self, name: str, version: Optional[str] = None, **kwargs: Any) -> De
427431

428432
@distributed_trace
429433
@monitor_with_telemetry_mixin(ops_logger, "DeploymentTemplate.Restore", ActivityType.PUBLICAPI)
434+
@experimental
430435
def restore(self, name: str, version: Optional[str] = None, **kwargs: Any) -> DeploymentTemplate:
431436
"""Restore a deployment template by setting its stage to 'Development'.
432437

0 commit comments

Comments
 (0)