-
Notifications
You must be signed in to change notification settings - Fork 84
Add getProjectNumber method to Bucket.java #3023
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
Comments
Thanks for the interest (and the PR), I'm reaching out to some folks on the API ownership side of things to see if this field being public is intentional -- last I heard, it was an internal field. |
Thanks @BenWhitehead. FWIW, the projectNumber field is available and usable in other language SDKs, here's Python for example: https://cloud.google.com/python/docs/reference/storage/latest/google.cloud.storage.bucket.Bucket#google_cloud_storage_bucket_Bucket_project_number |
I heard from the API team, the field being public is expected to be public, however they need to publish the exact format for how it is exposed for the grpc api. That will hopefully be published soon. Once published your PR will need to be updated to also perform the plumbing for the gRPC transport. I'll followup when it's published. |
Expose publicly the project field which was previously internal only. This field represents the project number of the project the bucket belongs to. This field is still OUTPUT_ONLY, and as such does hot have a setter exposed for it. Fixes #3023
Expose publicly the project field which was previously internal only. This field represents the project number of the project the bucket belongs to. This field is still OUTPUT_ONLY, and as such does hot have a setter exposed for it. Fixes #3023
Expose publicly the project field which was previously internal only. This field represents the project number of the project the bucket belongs to. This field is still OUTPUT_ONLY, and as such does hot have a setter exposed for it. Fixes #3023
Expose publicly the project field which was previously internal only. This field represents the project number of the project the bucket belongs to. This field is still OUTPUT_ONLY, and as such does hot have a setter exposed for it. Fixes #3023
Is your feature request related to a problem? Please describe.
The Java SDK for GCS does not have a method for fetching the project number even though the value is returned from the describeBucket API. This helper exists on the C# SDK as per: https://cloud.google.com/storage/docs/getting-bucket-metadata#storage-get-bucket-metadata-csharp.
Please also see also JSON API reference: https://cloud.google.com/storage/docs/json_api/v1/buckets#resource
Describe the solution you'd like
Add the method for returning the projectNumber. I intend to open a PR shortly adding the required method.
Describe alternatives you've considered
n/a
The text was updated successfully, but these errors were encountered: