File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,26 +186,26 @@ def bindings(self):
186186
187187 Example:
188188 .. code-block:: python
189- USER = "user:phred@example.com"
190- ADMIN_GROUP = "group:admins@groups.example.com"
191- SERVICE_ACCOUNT = "serviceAccount:account-1234@accounts.example.com"
192- condition = {
193- "title": "request_time",
194- "description": "Requests made before 2021-01-01T00:00:00Z", # Optional
195- "expression": "request.time < timestamp(\" 2021-01-01T00:00:00Z\" )"
196- }
197-
198- # Set policy's version to 3 before setting bindings containing conditions.
199- policy.version = 3
200-
201- policy.bindings = [
202- {
203- "role": "roles/viewer",
204- "members": {USER, ADMIN_GROUP, SERVICE_ACCOUNT},
205- "condition": CONDITION
206- },
207- ...
208- ]
189+ USER = "user:phred@example.com"
190+ ADMIN_GROUP = "group:admins@groups.example.com"
191+ SERVICE_ACCOUNT = "serviceAccount:account-1234@accounts.example.com"
192+ CONDITION = {
193+ "title": "request_time",
194+ "description": "Requests made before 2021-01-01T00:00:00Z", # Optional
195+ "expression": "request.time < timestamp(\" 2021-01-01T00:00:00Z\" )"
196+ }
197+
198+ # Set policy's version to 3 before setting bindings containing conditions.
199+ policy.version = 3
200+
201+ policy.bindings = [
202+ {
203+ "role": "roles/viewer",
204+ "members": {USER, ADMIN_GROUP, SERVICE_ACCOUNT},
205+ "condition": CONDITION
206+ },
207+ ...
208+ ]
209209 """
210210 return self ._bindings
211211
You can’t perform that action at this time.
0 commit comments