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

Storage: Bucket.go doesn't export projectNumber available in the REST API #4804

Closed
anrajitha opened this issue Sep 24, 2021 · 0 comments · Fixed by #4805
Closed

Storage: Bucket.go doesn't export projectNumber available in the REST API #4804

anrajitha opened this issue Sep 24, 2021 · 0 comments · Fixed by #4805
Assignees
Labels
api: storage Issues related to the Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@anrajitha
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I intend to verify the project where bucket exists, in my 'CheckIfBucketExists' functionality.
For me to do this check, it would be great if bucket.go would export the projectNumber field available in the REST API:
https://cloud.google.com/storage/docs/json_api/v1/buckets/get

Describe the solution you'd like
bucket.attrs would give me the projectNumber associated with the project as well.

Describe alternatives you've considered
Other alternatives would for checking the existence of a bucket in a project is : to list all the buckets in the project check whether the bucket is one of them. (I dont intend to do this as it adds latency).

Additional context
https://cloud.google.com/storage/docs/json_api/v1/buckets#resource-representations --> projectNumber

@anrajitha anrajitha added the triage me I really want to be triaged. label Sep 24, 2021
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Sep 24, 2021
@BrennaEpp BrennaEpp added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed triage me I really want to be triaged. labels Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants