Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff2667a

Browse files
committed
indent docs
1 parent da80589 commit ff2667a

File tree

1 file changed

+20
-20
lines changed
  • api_core/google/api_core

1 file changed

+20
-20
lines changed

api_core/google/api_core/iam.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -186,26 +186,26 @@ def bindings(self):
186186
187187
Example:
188188
.. code-block:: python
189-
USER = "user:[email protected]"
190-
ADMIN_GROUP = "group:[email protected]"
191-
SERVICE_ACCOUNT = "serviceAccount:[email protected]"
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:[email protected]"
190+
ADMIN_GROUP = "group:[email protected]"
191+
SERVICE_ACCOUNT = "serviceAccount:[email protected]"
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

0 commit comments

Comments
 (0)