Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quickstart list assets from Org & Folders #9646

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shashyajoshi
Copy link

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

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.
@shashyajoshi shashyajoshi requested a review from a team as a code owner April 16, 2023 15:37
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: asset labels Apr 16, 2023
@dandhlee dandhlee added the kokoro:run Add this label to force Kokoro to re-run the tests. label Apr 17, 2023
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Apr 17, 2023
@kweinmeister
Copy link
Contributor

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

@leahecole leahecole marked this pull request as draft July 26, 2023 14:07
@msampathkumar
Copy link
Member

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

@msampathkumar msampathkumar added the waiting-response Waiting for the author's response. label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: asset samples Issues that are directly related to samples. waiting-response Waiting for the author's response.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to list assets from Organizations and Folders along with Projects
6 participants