@@ -332,42 +332,11 @@ async def sample_set_iam_policy():
332332
333333 **JSON example:**
334334
335- {
336- "bindings": [
337- {
338- "role":
339- "roles/resourcemanager.organizationAdmin",
340- "members": [ "user:mike@example.com",
341- "group:admins@example.com",
342- "domain:google.com",
343- "serviceAccount:my-project-id@appspot.gserviceaccount.com"
344- ]
345-
346- }, { "role":
347- "roles/resourcemanager.organizationViewer",
348- "members": [ "user:eve@example.com" ],
349- "condition": { "title": "expirable access",
350- "description": "Does not grant access after
351- Sep 2020", "expression": "request.time <
352- timestamp('2020-10-01T00:00:00.000Z')", } }
353-
354- ], "etag": "BwWWja0YfJA=", "version": 3
355-
356- }
335+ :literal:`\` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \`
357336
358337 **YAML example:**
359338
360- bindings: - members: - user:\ mike@example.com -
361- group:\ admins@example.com - domain:google.com -
362- serviceAccount:\ my-project-id@appspot.gserviceaccount.com
363- role: roles/resourcemanager.organizationAdmin -
364- members: - user:\ eve@example.com role:
365- roles/resourcemanager.organizationViewer
366- condition: title: expirable access description:
367- Does not grant access after Sep 2020 expression:
368- request.time <
369- timestamp('2020-10-01T00:00:00.000Z') etag:
370- BwWWja0YfJA= version: 3
339+ :literal:`\` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \`
371340
372341 For a description of IAM and its features, see the
373342 [IAM
@@ -505,42 +474,11 @@ async def sample_get_iam_policy():
505474
506475 **JSON example:**
507476
508- {
509- "bindings": [
510- {
511- "role":
512- "roles/resourcemanager.organizationAdmin",
513- "members": [ "user:mike@example.com",
514- "group:admins@example.com",
515- "domain:google.com",
516- "serviceAccount:my-project-id@appspot.gserviceaccount.com"
517- ]
518-
519- }, { "role":
520- "roles/resourcemanager.organizationViewer",
521- "members": [ "user:eve@example.com" ],
522- "condition": { "title": "expirable access",
523- "description": "Does not grant access after
524- Sep 2020", "expression": "request.time <
525- timestamp('2020-10-01T00:00:00.000Z')", } }
526-
527- ], "etag": "BwWWja0YfJA=", "version": 3
528-
529- }
477+ :literal:`\` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 }`\ \`
530478
531479 **YAML example:**
532480
533- bindings: - members: - user:\ mike@example.com -
534- group:\ admins@example.com - domain:google.com -
535- serviceAccount:\ my-project-id@appspot.gserviceaccount.com
536- role: roles/resourcemanager.organizationAdmin -
537- members: - user:\ eve@example.com role:
538- roles/resourcemanager.organizationViewer
539- condition: title: expirable access description:
540- Does not grant access after Sep 2020 expression:
541- request.time <
542- timestamp('2020-10-01T00:00:00.000Z') etag:
543- BwWWja0YfJA= version: 3
481+ :literal:`\` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3`\ \`
544482
545483 For a description of IAM and its features, see the
546484 [IAM
0 commit comments