Skip to content

Commit 60efc42

Browse files
docs: Minor formatting (#991)
* docs: Minor formatting PiperOrigin-RevId: 553099804 Source-Link: googleapis/googleapis@f48d1a3 Source-Link: googleapis/googleapis-gen@9607990 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTYwNzk5MGY0YzMyMTdiYWM2ZWRkODEzMTYxNGNmY2M3MTc0NGE2ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 79e1398 commit 60efc42

File tree

10 files changed

+198
-447
lines changed

10 files changed

+198
-447
lines changed

‎google/cloud/spanner_admin_database_v1/services/database_admin/async_client.py

Lines changed: 4 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -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

‎google/cloud/spanner_admin_database_v1/services/database_admin/client.py

Lines changed: 4 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,42 +1559,11 @@ def sample_set_iam_policy():
15591559
15601560
**JSON example:**
15611561
1562-
{
1563-
"bindings": [
1564-
{
1565-
"role":
1566-
"roles/resourcemanager.organizationAdmin",
1567-
"members": [ "user:mike@example.com",
1568-
"group:admins@example.com",
1569-
"domain:google.com",
1570-
"serviceAccount:my-project-id@appspot.gserviceaccount.com"
1571-
]
1572-
1573-
}, { "role":
1574-
"roles/resourcemanager.organizationViewer",
1575-
"members": [ "user:eve@example.com" ],
1576-
"condition": { "title": "expirable access",
1577-
"description": "Does not grant access after
1578-
Sep 2020", "expression": "request.time <
1579-
timestamp('2020-10-01T00:00:00.000Z')", } }
1580-
1581-
], "etag": "BwWWja0YfJA=", "version": 3
1582-
1583-
}
1562+
: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 }`\ \`
15841563
15851564
**YAML example:**
15861565
1587-
bindings: - members: - user:\ mike@example.com -
1588-
group:\ admins@example.com - domain:google.com -
1589-
serviceAccount:\ my-project-id@appspot.gserviceaccount.com
1590-
role: roles/resourcemanager.organizationAdmin -
1591-
members: - user:\ eve@example.com role:
1592-
roles/resourcemanager.organizationViewer
1593-
condition: title: expirable access description:
1594-
Does not grant access after Sep 2020 expression:
1595-
request.time <
1596-
timestamp('2020-10-01T00:00:00.000Z') etag:
1597-
BwWWja0YfJA= version: 3
1566+
: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`\ \`
15981567
15991568
For a description of IAM and its features, see the
16001569
[IAM
@@ -1730,42 +1699,11 @@ def sample_get_iam_policy():
17301699
17311700
**JSON example:**
17321701
1733-
{
1734-
"bindings": [
1735-
{
1736-
"role":
1737-
"roles/resourcemanager.organizationAdmin",
1738-
"members": [ "user:mike@example.com",
1739-
"group:admins@example.com",
1740-
"domain:google.com",
1741-
"serviceAccount:my-project-id@appspot.gserviceaccount.com"
1742-
]
1743-
1744-
}, { "role":
1745-
"roles/resourcemanager.organizationViewer",
1746-
"members": [ "user:eve@example.com" ],
1747-
"condition": { "title": "expirable access",
1748-
"description": "Does not grant access after
1749-
Sep 2020", "expression": "request.time <
1750-
timestamp('2020-10-01T00:00:00.000Z')", } }
1751-
1752-
], "etag": "BwWWja0YfJA=", "version": 3
1753-
1754-
}
1702+
: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 }`\ \`
17551703
17561704
**YAML example:**
17571705
1758-
bindings: - members: - user:\ mike@example.com -
1759-
group:\ admins@example.com - domain:google.com -
1760-
serviceAccount:\ my-project-id@appspot.gserviceaccount.com
1761-
role: roles/resourcemanager.organizationAdmin -
1762-
members: - user:\ eve@example.com role:
1763-
roles/resourcemanager.organizationViewer
1764-
condition: title: expirable access description:
1765-
Does not grant access after Sep 2020 expression:
1766-
request.time <
1767-
timestamp('2020-10-01T00:00:00.000Z') etag:
1768-
BwWWja0YfJA= version: 3
1706+
: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`\ \`
17691707
17701708
For a description of IAM and its features, see the
17711709
[IAM

0 commit comments

Comments
 (0)