-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Resource created by
_construct_sdk_resource_from_gapic
should …
…use the project from the resource name instead of the default project. This fixes the following failing assertion: ``` assert aiplatform.Endpoint._construct_sdk_resource_from_gapic( aiplatform_models.gca_endpoint_compat.Endpoint(name='projects/my-project/locations/us-central1/publishers/google/models/text-bison@001') ).project == "my-project" ``` PiperOrigin-RevId: 536839787
- Loading branch information
1 parent
50e0898
commit 162b2f2
Showing
4 changed files
with
36 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters