Skip to content

Commit 1d81783

Browse files
fix: add clarity to param model_name (#888)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-aiplatform/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent dc0a30a commit 1d81783

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

samples/model-builder/deploy_model_with_automatic_resources_sample.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ def deploy_model_with_automatic_resources_sample(
3131
metadata: Optional[Sequence[Tuple[str, str]]] = (),
3232
sync: bool = True,
3333
):
34+
"""
35+
model_name: A fully-qualified model resource name or model ID.
36+
Example: "projects/123/locations/us-central1/models/456" or
37+
"456" when project and location are initialized or passed.
38+
"""
3439

3540
aiplatform.init(project=project, location=location)
3641

samples/model-builder/deploy_model_with_dedicated_resources_sample.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ def deploy_model_with_dedicated_resources_sample(
3737
metadata: Optional[Sequence[Tuple[str, str]]] = (),
3838
sync: bool = True,
3939
):
40+
"""
41+
model_name: A fully-qualified model resource name or model ID.
42+
Example: "projects/123/locations/us-central1/models/456" or
43+
"456" when project and location are initialized or passed.
44+
"""
4045

4146
aiplatform.init(project=project, location=location)
4247

0 commit comments

Comments
 (0)