GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(storage): support optionsRequestedPolicyVersion by jkwlui · Pull Request #9989 · googleapis/google-cloud-python

Conversation

@jkwlui

@jkwlui jkwlui commented Dec 17, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Requires #9869

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jkwlui
jkwlui requested review from busunkim96, crwilcox, frankyn and tseaver as code owners December 17, 2019 20:37
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 17, 2019
@jkwlui jkwlui changed the title Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-cloud-python/issues) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) feat(storage): support optionsRequestedPolicyVersion Dec 17, 2019
@jkwlui
jkwlui changed the base branch from master to iam-proposal3 December 17, 2019 20:38
frankyn
frankyn reviewed Dec 17, 2019
View reviewed changes
Comment thread storage/google/cloud/storage/bucket.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

frankyn
frankyn reviewed Dec 18, 2019
View reviewed changes

@frankyn frankyn left a comment

Copy link
Copy Markdown
Contributor

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.

Overall LGTM, I have one nit question.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread storage/tests/system.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jkwlui
iam proposal #3
583ca42
maintain compatibility with defaultdict

remove in place

raise KeyError on delete

update deprecation for dict-key access and factory  methods

clean up

maintain compatibility - removing duplicate in __setitems__

check for conditions for dict access

remove empty binding

fix test accessing private var _bindings

fix(tests): change version to make existing tests pass

tests: add tests for getitem, delitem, setitem on v3 and conditions

test policy.bindings property

fixlint

black

sort bindings by role when converting to api repr

add deprecation warning for iam factory methods

update deprecation message for role methods

make Policy#bindings.members a set

update policy docs

fix docs

make docs better

fix: Bigtable policy class to use Policy.bindings

add from_pb with conditions test

add to_pb condition test

blacken

fix policy __delitem__

add docs on dict access

do not modify binding in to_apr_repr
@jkwlui
jkwlui force-pushed the iam-proposal3 branch from 74a32cc to 583ca42 Compare December 19, 2019 21:16
jkwlui added 5 commits December 19, 2019 13:16
@jkwlui
feat(storage): support requested_policy_version for get_iam_policy
7a9bc44
@jkwlui
add system-test
33898d7
@jkwlui
add ref doc sample to get_iam_policy
2dd85e1
@jkwlui
add requested_policy_version to blob
4077045
@jkwlui
fix tests
c210d29
@jkwlui
jkwlui force-pushed the storage-policy-version branch from 1badb64 to c210d29 Compare December 19, 2019 21:17
@jkwlui
jkwlui requested a review from frankyn December 19, 2019 21:19
frankyn
frankyn approved these changes Dec 19, 2019
View reviewed changes

@frankyn frankyn left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jkwlui jkwlui added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 19, 2019
crwilcox
crwilcox suggested changes Dec 20, 2019
View reviewed changes
Comment thread api_core/google/api_core/iam.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread storage/tests/unit/test_bucket.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jkwlui
nit: typo
cc717bd
@jkwlui
jkwlui force-pushed the iam-proposal3 branch from 583ca42 to 6c9556d Compare December 21, 2019 00:56
@jkwlui
jkwlui force-pushed the iam-proposal3 branch from bae8997 to ef37fde Compare January 9, 2020 02:16
@jkwlui
jkwlui changed the base branch from iam-proposal3 to master January 9, 2020 21:01
jkwlui added 5 commits January 9, 2020 13:03
@jkwlui
Merge branch 'master' into storage-policy-version
bc2f40a
@jkwlui
blacken
62b003a
@jkwlui
fix docs build
70a1886
@jkwlui
format docs
27c3e6a
@jkwlui
remove unused variables
a17cbc1
@jkwlui
jkwlui requested review from crwilcox and frankyn January 9, 2020 23:46
@jkwlui

jkwlui commented Jan 9, 2020

Copy link
Copy Markdown
Contributor Author

@crwilcox fixed the builds. Would you mind taking a look again?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jkwlui
jkwlui removed request for busunkim96 and tseaver January 9, 2020 23:56
crwilcox
crwilcox approved these changes Jan 13, 2020
View reviewed changes
@jkwlui
jkwlui merged commit 9b856cf into master Jan 13, 2020
@jkwlui
jkwlui deleted the storage-policy-version branch January 13, 2020 21:05
This was referenced Jan 29, 2020
chore(asset): bump copyright year to 2020, tweak docstring formatting (via synth) #10223
Merged
chore(automl): bump copyright year to 2020, tweak docstring formatting (via synth) #10224
Merged
chore(bigquery): bump copyright year to 2020, tweak docstring formatting (via synth) #10225
Merged
chore(billingbudgets): bump copyright year to 2020, tweak docstring formatting (via synth) #10227
Merged
docs(datalabeling): update docstrings; bump copyright year to 2020 (via synth) #10229
Merged
feat(documentai): bump copyright year to 2020, tweak docstring formatting (via synth) #10230
Merged
fix(iam): bump copyright year to 2020 (via synth) #10231
Merged
chore(iot): bump copyright year to 2020 (via synth) #10232
Merged
fix(irm): change default retry and timeout config; bump copyright year to 2020 (via synth) #10233
Merged
docs(language): change docstring formatting; bump copyright year to 2020 (via synth) #10234
Merged
chore(phishingprotection): bump copyright year to 2020 (via synth) #10235
Merged
chore(redis): bump copyright year to 2020, tweak docstring formatting (via synth) #10237
Merged
chore(speech): bump copyright year to 2020, tweak docstring formatting (via synth) #10238
Merged
fix(talent): change default timeout values; edit docstrings; bump copyright year to 2020 (via synth) #10239
Merged
chore(texttospeech): bump copyright year to 2020, tweak docstring formatting (via synth) #10240
Merged
chore(trace): bump copyright year to 2020, tweak docstring formatting (via synth) #10241
Merged
chore(vision): bump copyright year to 2020, tweak docstring formatting (via synth) #10242
Merged
chore(websecurityscanner): bump copyright year to 2020, tweak docstring formatting (via synth) #10243
Merged
[CHANGE ME] Re-generated container to pick up changes in the API or client library generator. #10256
Closed
[CHANGE ME] Re-generated datastore to pick up changes in the API or client library generator. #10261
Closed
parthea pushed a commit that referenced this pull request Nov 24, 2025
@jkwlui
feat(storage): support optionsRequestedPolicyVersion (#9989)
77bb915
* iam proposal #3

maintain compatibility with defaultdict

remove in place

raise KeyError on delete

update deprecation for dict-key access and factory  methods

clean up

maintain compatibility - removing duplicate in __setitems__

check for conditions for dict access

remove empty binding

fix test accessing private var _bindings

fix(tests): change version to make existing tests pass

tests: add tests for getitem, delitem, setitem on v3 and conditions

test policy.bindings property

fixlint

black

sort bindings by role when converting to api repr

add deprecation warning for iam factory methods

update deprecation message for role methods

make Policy#bindings.members a set

update policy docs

fix docs

make docs better

fix: Bigtable policy class to use Policy.bindings

add from_pb with conditions test

add to_pb condition test

blacken

fix policy __delitem__

add docs on dict access

do not modify binding in to_apr_repr

* feat(storage): support requested_policy_version for get_iam_policy

* add system-test

* add ref doc sample to get_iam_policy

* add requested_policy_version to blob

* fix tests

* nit: typo

* blacken

* fix docs build

* format docs

* remove unused variables
parthea pushed a commit that referenced this pull request Mar 9, 2026
@jkwlui
feat(storage): support optionsRequestedPolicyVersion (#9989)
43f44ba
* iam proposal #3

maintain compatibility with defaultdict

remove in place

raise KeyError on delete

update deprecation for dict-key access and factory  methods

clean up

maintain compatibility - removing duplicate in __setitems__

check for conditions for dict access

remove empty binding

fix test accessing private var _bindings

fix(tests): change version to make existing tests pass

tests: add tests for getitem, delitem, setitem on v3 and conditions

test policy.bindings property

fixlint

black

sort bindings by role when converting to api repr

add deprecation warning for iam factory methods

update deprecation message for role methods

make Policy#bindings.members a set

update policy docs

fix docs

make docs better

fix: Bigtable policy class to use Policy.bindings

add from_pb with conditions test

add to_pb condition test

blacken

fix policy __delitem__

add docs on dict access

do not modify binding in to_apr_repr

* feat(storage): support requested_policy_version for get_iam_policy

* add system-test

* add ref doc sample to get_iam_policy

* add requested_policy_version to blob

* fix tests

* nit: typo

* blacken

* fix docs build

* format docs

* remove unused variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@frankyn frankyn Awaiting requested review from frankyn
1 more reviewer
@crwilcox crwilcox crwilcox approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@jkwlui @crwilcox @frankyn @googlebot @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.