Skip to content

Commit

Permalink
fix: add clarity to param model_name (#888)
Browse files Browse the repository at this point in the history
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> 🦕
  • Loading branch information
andrewferlitsch committed Dec 10, 2021
1 parent dc0a30a commit 1d81783
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -31,6 +31,11 @@ def deploy_model_with_automatic_resources_sample(
metadata: Optional[Sequence[Tuple[str, str]]] = (),
sync: bool = True,
):
"""
model_name: A fully-qualified model resource name or model ID.
Example: "projects/123/locations/us-central1/models/456" or
"456" when project and location are initialized or passed.
"""

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

Expand Down
Expand Up @@ -37,6 +37,11 @@ def deploy_model_with_dedicated_resources_sample(
metadata: Optional[Sequence[Tuple[str, str]]] = (),
sync: bool = True,
):
"""
model_name: A fully-qualified model resource name or model ID.
Example: "projects/123/locations/us-central1/models/456" or
"456" when project and location are initialized or passed.
"""

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

Expand Down

0 comments on commit 1d81783

Please sign in to comment.