@@ -1293,42 +1293,11 @@ async def sample_set_iam_policy():
1293
1293
1294
1294
**JSON example:**
1295
1295
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 }`\ \`
1318
1297
1319
1298
**YAML example:**
1320
1299
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`\ \`
1332
1301
1333
1302
For a description of IAM and its features, see the
1334
1303
[IAM
@@ -1467,42 +1436,11 @@ async def sample_get_iam_policy():
1467
1436
1468
1437
**JSON example:**
1469
1438
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 }`\ \`
1492
1440
1493
1441
**YAML example:**
1494
1442
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`\ \`
1506
1444
1507
1445
For a description of IAM and its features, see the
1508
1446
[IAM
0 commit comments