Skip to content

Commit 17bbd63

Browse files
authored
feat(storage): support optionsRequestedPolicyVersion (#9989)
* 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
1 parent fd47fda commit 17bbd63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

google/api_core/iam.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ def bindings(self):
210210
policy.version = 3
211211
212212
policy.bindings = [
213-
{
214-
"role": "roles/viewer",
215-
"members": {USER, ADMIN_GROUP, SERVICE_ACCOUNT},
216-
"condition": CONDITION
213+
{
214+
"role": "roles/viewer",
215+
"members": {USER, ADMIN_GROUP, SERVICE_ACCOUNT},
216+
"condition": CONDITION
217217
},
218218
...
219219
]

0 commit comments

Comments
 (0)