Skip to content

Commit 60d5b7e

Browse files
committed
Updated pr.
1 parent cad3d46 commit 60d5b7e

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

ads/model/deployment/model_deployer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353

5454
warnings.warn(
5555
(
56-
"The `ads.model.deployment.model_deployer` is deprecated in `oracle-ads 2.8.7` and will be removed in `oracle-ads 3.0`."
57-
"Use `ModelDeployment` class in `ads.model.deployment` module for initializing and deploy model deployment. "
56+
"The `ads.model.deployment.model_deployer` is deprecated in `oracle-ads 2.8.6` and will be removed in `oracle-ads 3.0`."
57+
"Use `ModelDeployment` class in `ads.model.deployment` module for initializing and deploying model deployment. "
5858
"Check https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/introduction.html"
5959
),
6060
DeprecationWarning,

ads/model/deployment/model_deployment.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,20 @@ def __init__(
297297

298298
if config:
299299
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. "
301+
"Check: https://accelerated-data-science.readthedocs.io/en/latest/user_guide/cli/authentication.html"
301302
)
302303

303304
if properties:
304305
warnings.warn(
305-
"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. "
307+
"Check: https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html"
306308
)
307309

308310
if model_deployment_url or model_deployment_id:
309311
warnings.warn(
310-
"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. "
313+
"Check: https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html"
311314
)
312315

313316
initialize_spec = {}
@@ -701,7 +704,8 @@ def update(
701704
"""
702705
if properties:
703706
warnings.warn(
704-
"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. "
708+
"Check: https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/quick_start.html"
705709
)
706710

707711
updated_properties = properties

ads/model/deployment/model_deployment_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
warnings.warn(
1818
(
19-
"The `ads.model.deployment.model_deployment_properties` is deprecated in `oracle-ads 2.8.7` and will be removed in `oracle-ads 3.0`."
19+
"The `ads.model.deployment.model_deployment_properties` is deprecated in `oracle-ads 2.8.6` and will be removed in `oracle-ads 3.0`."
2020
"Use `ModelDeploymentInfrastructure` and `ModelDeploymentRuntime` classes in `ads.model.deployment` module for configuring model deployment. "
2121
"Check https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/introduction.html"
2222
),

ads/model/generic_model.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,15 +1615,7 @@ def update_deployment(
16151615
16161616
Examples
16171617
--------
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
16271619
>>> model.update_deployment(
16281620
... access_log={
16291621
... log_id=<log_ocid>
@@ -1673,8 +1665,10 @@ def update_deployment(
16731665
"""
16741666
if properties:
16751667
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. "
1669+
"Check: https://accelerated-data-science.readthedocs.io/en/latest/user_guide/model_registration/introduction.html"
16771670
)
1671+
16781672
if not inspect.isclass(cls):
16791673
if cls.model_deployment:
16801674
return cls.model_deployment.update(

0 commit comments

Comments
 (0)