-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add list() method to all resource nouns (#294)
### [Colab for manual testing](https://colab.research.google.com/drive/14iLNaJEyZaPGebCgJZxgUJJeU9r7z_Fu) ### Summary of Changes - Added a `_list_method` property to `AiPlatformResourceNoun` to store GAPIC method name for each noun - Added a `create_time` and `update_time` property to `AiPlatformResourceNoun` - Added a single `list()` method that takes four optional fields and returns a list of SDK types - All of the fields except `order_by` are available in every GAPIC list methods - Added local sorting for GAPIC list methods that do not take `order_by` - Added 3 unit tests to check correct GAPIC calls and local sorting - Added `aiplatform.init()` to test class setup and dropped it from some unit tests Fixes [b/183498826](http://b/183498826) 🦕
- Loading branch information
1 parent
674227d
commit 3ec9386
Showing
10 changed files
with
630 additions
and
25 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
Oops, something went wrong.