-
Notifications
You must be signed in to change notification settings - Fork 84
feat: expose BucketInfo.getProject as a BigInteger #3119
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -328,7 +328,7 @@ public void storage_BucketGetOption_fields_BucketField() { | |
"website", | ||
"softDeletePolicy", | ||
"hierarchicalNamespace", | ||
"website"); | ||
"projectNumber"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
s.get( | ||
b.getName(), | ||
BucketGetOption.fields(TestUtils.filterOutHttpOnlyBucketFields(BucketField.values()))); | ||
|
@@ -821,7 +821,7 @@ public void storage_BucketListOption_fields_BucketField() { | |
"items/website", | ||
"items/softDeletePolicy", | ||
"items/hierarchicalNamespace", | ||
"items/website"); | ||
"items/projectNumber"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
s.list(BucketListOption.fields(TestUtils.filterOutHttpOnlyBucketFields(BucketField.values()))); | ||
requestAuditing.assertQueryParam("fields", expected, splitOnCommaToSet()); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we name it
set/getProjectNumber
to make it more clear?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the v2/storage.proto it's named
project
in the discovery doc it's namedprojectNumber
. Rather annoying.We first added this field internally when doing the gRPC effort and before projectNUmber was public. In this case, I'm simply exposing the getter for the field we already have plumbed around.