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
Copy file name to clipboardExpand all lines: ads/model/deployment/model_deployment.py
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -297,17 +297,20 @@ def __init__(
297
297
298
298
ifconfig:
299
299
warnings.warn(
300
-
"Parameter `config` will be removed from ModelDeployment constructor in 3.0.0 and will be ignored now. Please use `ads.set_auth()` to config the auth information."
300
+
"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. "
"Parameter `properties` will be removed from ModelDeployment constructor in 3.0.0. Please use `spec` or the builder pattern to initialize model deployment instance."
306
+
"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. "
"Parameter `model_deployment_url` and `model_deployment_id` will be removed from ModelDeployment constructor in 3.0.0 and will be ignored now. These two fields will be auto-populated from the service side."
312
+
"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` will be removed from ModelDeployment `update()` in 3.0.0. Please use the builder pattern or kwargs to update model deployment instance."
707
+
"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. "
Copy file name to clipboardExpand all lines: ads/model/generic_model.py
+4-10Lines changed: 4 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1615,15 +1615,7 @@ def update_deployment(
1615
1615
1616
1616
Examples
1617
1617
--------
1618
-
>>> # Deprecated way to update access log id, freeform tags and description for the model deployment
1619
-
>>> model.update_deployment(
1620
-
>>> properties=ModelDeploymentProperties(
1621
-
>>> access_log_id=<log_ocid>,
1622
-
>>> description="Description for Custom Model",
1623
-
>>> freeform_tags={"key": "value"},
1624
-
>>> )
1625
-
>>> )
1626
-
>>> # New way to update access log id, freeform tags and description for the model deployment
1618
+
>>> # Update access log id, freeform tags and description for the model deployment
1627
1619
>>> model.update_deployment(
1628
1620
... access_log={
1629
1621
... log_id=<log_ocid>
@@ -1673,8 +1665,10 @@ def update_deployment(
1673
1665
"""
1674
1666
ifproperties:
1675
1667
warnings.warn(
1676
-
"Parameter `properties` will be removed from GenericModel `update_deployment()` in 3.0.0. Please use kwargs to update model deployment."
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