-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: introduce inherited value for pap #7693
Conversation
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
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.
1 small comment. Thanks, Frank!! Also, I'm assuming the inherited sample is the same as the unspecified one (except for the term change)
// non-default state. | ||
storage | ||
.get(BUCKET) | ||
.toBuilder() | ||
.setIamConfiguration( | ||
BucketInfo.IamConfiguration.newBuilder() | ||
.setPublicAccessPrevention(BucketInfo.PublicAccessPrevention.ENFORCED) | ||
.setPublicAccessPrevention(BucketInfo.PublicAccessPrevention.INHERITED) |
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.
this should still be enforced?
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.
Yep.... too aggressive copy-pasting
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.
Thanks a bunch, Frank!
.build() | ||
.update(); | ||
|
||
System.out.println("Public access prevention is set to inherited for " + bucketName); |
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.
minor, inherited isn't really "highlighted" as a value here very much, and might be skimmed over by folks.
Perhaps something like Public access prevention is set to 'inherited' for
...
Fixes #7682