python-docs-samples icon indicating copy to clipboard operation
python-docs-samples copied to clipboard

quickstart list assets from Org & Folders

Open shashyajoshi opened this issue 2 years ago • 2 comments

Current code accepts only projects as "parent" for the Asset API, whereas the API can list assets from Orgs and Folders as well. A small change to accept the other two options for "parent" will make the code more useful. Many people use Asset API to search for resources across multiple projects.

The current code at has project_id as an argument, instead we can have parent_resource as an argument, and the parent_resource can be either projects/ or folders/ or organizations/. We then can change references to project_id with parent_resource in other places.

Description

Fixes #9641

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

shashyajoshi avatar Apr 16 '23 15:04 shashyajoshi

@shashyajoshi please consider changing this to draft status, until tests are passing. Then we can seek reviews. Thanks for your contribution!

kweinmeister avatar Apr 20 '23 15:04 kweinmeister

@shashyajoshi - checking to know if there are any new update on this PR?

msampathkumar avatar Jun 20 '24 14:06 msampathkumar