Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 6cca598

Browse files
1 parent 418c777 commit 6cca598

File tree

315 files changed

+1027
-135625
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

315 files changed

+1027
-135625
lines changed

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ class DatabaseAdminAsyncClient:
8484
8585
The Cloud Spanner Database Admin API can be used to:
8686
87-
- create, drop, and list databases
88-
- update the schema of pre-existing databases
89-
- create, delete, copy and list backups for a database
90-
- restore a database from an existing backup
87+
- create, drop, and list databases
88+
- update the schema of pre-existing databases
89+
- create, delete, copy and list backups for a database
90+
- restore a database from an existing backup
9191
"""
9292

9393
_client: DatabaseAdminClient
@@ -749,26 +749,26 @@ async def update_database(
749749
750750
While the operation is pending:
751751
752-
- The database's
753-
[reconciling][google.spanner.admin.database.v1.Database.reconciling]
754-
field is set to true.
755-
- Cancelling the operation is best-effort. If the cancellation
756-
succeeds, the operation metadata's
757-
[cancel_time][google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time]
758-
is set, the updates are reverted, and the operation
759-
terminates with a ``CANCELLED`` status.
760-
- New UpdateDatabase requests will return a
761-
``FAILED_PRECONDITION`` error until the pending operation is
762-
done (returns successfully or with error).
763-
- Reading the database via the API continues to give the
764-
pre-request values.
752+
- The database's
753+
[reconciling][google.spanner.admin.database.v1.Database.reconciling]
754+
field is set to true.
755+
- Cancelling the operation is best-effort. If the cancellation
756+
succeeds, the operation metadata's
757+
[cancel_time][google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time]
758+
is set, the updates are reverted, and the operation terminates
759+
with a ``CANCELLED`` status.
760+
- New UpdateDatabase requests will return a
761+
``FAILED_PRECONDITION`` error until the pending operation is
762+
done (returns successfully or with error).
763+
- Reading the database via the API continues to give the
764+
pre-request values.
765765
766766
Upon completion of the returned operation:
767767
768-
- The new values are in effect and readable via the API.
769-
- The database's
770-
[reconciling][google.spanner.admin.database.v1.Database.reconciling]
771-
field becomes false.
768+
- The new values are in effect and readable via the API.
769+
- The database's
770+
[reconciling][google.spanner.admin.database.v1.Database.reconciling]
771+
field becomes false.
772772
773773
The returned [long-running
774774
operation][google.longrunning.Operation] will have a name of the
@@ -1384,19 +1384,19 @@ async def sample_set_iam_policy():
13841384
constraints based on attributes of the request, the
13851385
resource, or both. To learn which resources support
13861386
conditions in their IAM policies, see the [IAM
1387-
documentation](\ https://cloud.google.com/iam/help/conditions/resource-policies).
1387+
documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
13881388
13891389
**JSON example:**
13901390
1391-
: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 }`\ \`
1391+
: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 }`\ \`
13921392
13931393
**YAML example:**
13941394
1395-
: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`\ \`
1395+
: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`\ \`
13961396
13971397
For a description of IAM and its features, see the
13981398
[IAM
1399-
documentation](\ https://cloud.google.com/iam/docs/).
1399+
documentation](https://cloud.google.com/iam/docs/).
14001400
14011401
"""
14021402
# Create or coerce a protobuf request object.
@@ -1531,19 +1531,19 @@ async def sample_get_iam_policy():
15311531
constraints based on attributes of the request, the
15321532
resource, or both. To learn which resources support
15331533
conditions in their IAM policies, see the [IAM
1534-
documentation](\ https://cloud.google.com/iam/help/conditions/resource-policies).
1534+
documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
15351535
15361536
**JSON example:**
15371537
1538-
: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 }`\ \`
1538+
: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 }`\ \`
15391539
15401540
**YAML example:**
15411541
1542-
: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`\ \`
1542+
: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`\ \`
15431543
15441544
For a description of IAM and its features, see the
15451545
[IAM
1546-
documentation](\ https://cloud.google.com/iam/docs/).
1546+
documentation](https://cloud.google.com/iam/docs/).
15471547
15481548
"""
15491549
# Create or coerce a protobuf request object.
@@ -2226,7 +2226,7 @@ async def sample_update_backup():
22262226
required. Other fields are ignored. Update is only
22272227
supported for the following fields:
22282228
2229-
- ``backup.expire_time``.
2229+
- ``backup.expire_time``.
22302230
22312231
This corresponds to the ``backup`` field
22322232
on the ``request`` instance; if ``request`` is provided, this

0 commit comments

Comments
 (0)