You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"`config` will be deprecated in 3.0.0 and will be ignored now. Please use `ads.set_auth()` to config the auth information."
303
+
"Parameter `config` was deprecated in 2.8.2 from ModelDeployment constructor and will be removed in 3.0.0. Please use `ads.set_auth()` to config the auth information. "
"`properties` will be deprecated in 3.0.0. Please use `spec` or the builder pattern to initialize model deployment instance."
309
+
"Parameter `properties` was deprecated in 2.8.2 from ModelDeployment constructor and will be removed in 3.0.0. Please use `spec` or the builder pattern to initialize model deployment instance. "
"`model_deployment_url` and `model_deployment_id` will be deprecated in 3.0.0 and will be ignored now. These two fields will be auto-populated from the service side."
315
+
"Parameter `model_deployment_url` and `model_deployment_id` were deprecated in 2.8.2 from ModelDeployment constructor and will be removed in 3.0.0. These two fields will be auto-populated from the service side. "
"Parameter `properties` is deprecated from ModelDeployment `update()` in 2.8.6 and will be removed in 3.0.0. Please use the builder pattern or kwargs to update model deployment instance. "
>>> # Update access log id, freeform tags and description for the model deployment
1621
1619
>>> model.update_deployment(
1622
-
>>>properties=ModelDeploymentProperties(
1623
-
>>>access_log_id=<log_ocid>,
1624
-
>>> description="Description for Custom Model",
1625
-
>>> freeform_tags={"key": "value"},
1626
-
>>>)
1627
-
>>> )
1620
+
...access_log={
1621
+
...log_id=<log_ocid>
1622
+
...},
1623
+
...description="Description for Custom Model",
1624
+
...freeform_tags={"key": "value"},
1625
+
... )
1628
1626
1629
1627
Parameters
1630
1628
----------
@@ -1647,12 +1645,30 @@ def update_deployment(
1647
1645
If you need to override the default, use the `ads.common.auth.api_keys` or
1648
1646
`ads.common.auth.resource_principal` to create appropriate authentication signer
1649
1647
and kwargs required to instantiate IdentityClient object.
1648
+
display_name: (str)
1649
+
Model deployment display name
1650
+
description: (str)
1651
+
Model deployment description
1652
+
freeform_tags: (dict)
1653
+
Model deployment freeform tags
1654
+
defined_tags: (dict)
1655
+
Model deployment defined tags
1656
+
1657
+
Additional kwargs arguments.
1658
+
Can be any attribute that `ads.model.deployment.ModelDeploymentCondaRuntime`, `ads.model.deployment.ModelDeploymentContainerRuntime`
1659
+
and `ads.model.deployment.ModelDeploymentInfrastructure` accepts.
1650
1660
1651
1661
Returns
1652
1662
-------
1653
1663
ModelDeployment
1654
1664
An instance of ModelDeployment class.
1655
1665
"""
1666
+
ifproperties:
1667
+
warnings.warn(
1668
+
"Parameter `properties` is deprecated from GenericModel `update_deployment()` in 2.8.6 and will be removed in 3.0.0. Please use kwargs to update model deployment. "
0 commit comments