quickstart list assets from Org & Folders
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
- [ ] I have followed Sample Guidelines from AUTHORING_GUIDE.MD
- [ ] README is updated to include all relevant information
- [ ] Tests pass:
nox -s py-3.9(see Test Environment Setup) - [ ] Lint pass:
nox -s lint(see Test Environment Setup) - [ ] These samples need a new API enabled in testing projects to pass (let us know which ones)
- [ ] These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
- [ ] Please merge this PR for me once it is approved.
- [ ] This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
@shashyajoshi please consider changing this to draft status, until tests are passing. Then we can seek reviews. Thanks for your contribution!
@shashyajoshi - checking to know if there are any new update on this PR?