@@ -1293,42 +1293,11 @@ async def sample_set_iam_policy():
12931293
12941294 **JSON example:**
12951295
1296- {
1297- "bindings": [
1298- {
1299- "role":
1300- "roles/resourcemanager.organizationAdmin",
1301- "members": [ "user:mike@example.com",
1302- "group:admins@example.com",
1303- "domain:google.com",
1304- "serviceAccount:my-project-id@appspot.gserviceaccount.com"
1305- ]
1306-
1307- }, { "role":
1308- "roles/resourcemanager.organizationViewer",
1309- "members": [ "user:eve@example.com" ],
1310- "condition": { "title": "expirable access",
1311- "description": "Does not grant access after
1312- Sep 2020", "expression": "request.time <
1313- timestamp('2020-10-01T00:00:00.000Z')", } }
1314-
1315- ], "etag": "BwWWja0YfJA=", "version": 3
1316-
1317- }
1296+ :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 }`\ \`
13181297
13191298 **YAML example:**
13201299
1321- bindings: - members: - user:\ mike@example.com -
1322- group:\ admins@example.com - domain:google.com -
1323- serviceAccount:\ my-project-id@appspot.gserviceaccount.com
1324- role: roles/resourcemanager.organizationAdmin -
1325- members: - user:\ eve@example.com role:
1326- roles/resourcemanager.organizationViewer
1327- condition: title: expirable access description:
1328- Does not grant access after Sep 2020 expression:
1329- request.time <
1330- timestamp('2020-10-01T00:00:00.000Z') etag:
1331- BwWWja0YfJA= version: 3
1300+ :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`\ \`
13321301
13331302 For a description of IAM and its features, see the
13341303 [IAM
@@ -1467,42 +1436,11 @@ async def sample_get_iam_policy():
14671436
14681437 **JSON example:**
14691438
1470- {
1471- "bindings": [
1472- {
1473- "role":
1474- "roles/resourcemanager.organizationAdmin",
1475- "members": [ "user:mike@example.com",
1476- "group:admins@example.com",
1477- "domain:google.com",
1478- "serviceAccount:my-project-id@appspot.gserviceaccount.com"
1479- ]
1480-
1481- }, { "role":
1482- "roles/resourcemanager.organizationViewer",
1483- "members": [ "user:eve@example.com" ],
1484- "condition": { "title": "expirable access",
1485- "description": "Does not grant access after
1486- Sep 2020", "expression": "request.time <
1487- timestamp('2020-10-01T00:00:00.000Z')", } }
1488-
1489- ], "etag": "BwWWja0YfJA=", "version": 3
1490-
1491- }
1439+ :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 }`\ \`
14921440
14931441 **YAML example:**
14941442
1495- bindings: - members: - user:\ mike@example.com -
1496- group:\ admins@example.com - domain:google.com -
1497- serviceAccount:\ my-project-id@appspot.gserviceaccount.com
1498- role: roles/resourcemanager.organizationAdmin -
1499- members: - user:\ eve@example.com role:
1500- roles/resourcemanager.organizationViewer
1501- condition: title: expirable access description:
1502- Does not grant access after Sep 2020 expression:
1503- request.time <
1504- timestamp('2020-10-01T00:00:00.000Z') etag:
1505- BwWWja0YfJA= version: 3
1443+ :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`\ \`
15061444
15071445 For a description of IAM and its features, see the
15081446 [IAM
0 commit comments