Skip to content

Commit 22bc842

Browse files
1 parent 92c1de3 commit 22bc842

File tree

303 files changed

+5758
-126353
lines changed

Some content is hidden

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

303 files changed

+5758
-126353
lines changed

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

Lines changed: 177 additions & 87 deletions
Large diffs are not rendered by default.

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

Lines changed: 182 additions & 87 deletions
Large diffs are not rendered by default.

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

Lines changed: 60 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(
6969
*,
7070
retry: OptionalRetry = gapic_v1.method.DEFAULT,
7171
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
72-
metadata: Sequence[Tuple[str, str]] = ()
72+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
7373
):
7474
"""Instantiate the pager.
7575
@@ -83,8 +83,10 @@ def __init__(
8383
retry (google.api_core.retry.Retry): Designation of what errors,
8484
if any, should be retried.
8585
timeout (float): The timeout for this request.
86-
metadata (Sequence[Tuple[str, str]]): Strings which should be
87-
sent along with the request as metadata.
86+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
87+
sent along with the request as metadata. Normally, each value must be of type `str`,
88+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
89+
be of type `bytes`.
8890
"""
8991
self._method = method
9092
self._request = spanner_database_admin.ListDatabasesRequest(request)
@@ -143,7 +145,7 @@ def __init__(
143145
*,
144146
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
145147
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
146-
metadata: Sequence[Tuple[str, str]] = ()
148+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
147149
):
148150
"""Instantiates the pager.
149151
@@ -157,8 +159,10 @@ def __init__(
157159
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
158160
if any, should be retried.
159161
timeout (float): The timeout for this request.
160-
metadata (Sequence[Tuple[str, str]]): Strings which should be
161-
sent along with the request as metadata.
162+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
163+
sent along with the request as metadata. Normally, each value must be of type `str`,
164+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
165+
be of type `bytes`.
162166
"""
163167
self._method = method
164168
self._request = spanner_database_admin.ListDatabasesRequest(request)
@@ -223,7 +227,7 @@ def __init__(
223227
*,
224228
retry: OptionalRetry = gapic_v1.method.DEFAULT,
225229
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
226-
metadata: Sequence[Tuple[str, str]] = ()
230+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
227231
):
228232
"""Instantiate the pager.
229233
@@ -237,8 +241,10 @@ def __init__(
237241
retry (google.api_core.retry.Retry): Designation of what errors,
238242
if any, should be retried.
239243
timeout (float): The timeout for this request.
240-
metadata (Sequence[Tuple[str, str]]): Strings which should be
241-
sent along with the request as metadata.
244+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
245+
sent along with the request as metadata. Normally, each value must be of type `str`,
246+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
247+
be of type `bytes`.
242248
"""
243249
self._method = method
244250
self._request = backup.ListBackupsRequest(request)
@@ -297,7 +303,7 @@ def __init__(
297303
*,
298304
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
299305
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
300-
metadata: Sequence[Tuple[str, str]] = ()
306+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
301307
):
302308
"""Instantiates the pager.
303309
@@ -311,8 +317,10 @@ def __init__(
311317
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
312318
if any, should be retried.
313319
timeout (float): The timeout for this request.
314-
metadata (Sequence[Tuple[str, str]]): Strings which should be
315-
sent along with the request as metadata.
320+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
321+
sent along with the request as metadata. Normally, each value must be of type `str`,
322+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
323+
be of type `bytes`.
316324
"""
317325
self._method = method
318326
self._request = backup.ListBackupsRequest(request)
@@ -375,7 +383,7 @@ def __init__(
375383
*,
376384
retry: OptionalRetry = gapic_v1.method.DEFAULT,
377385
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
378-
metadata: Sequence[Tuple[str, str]] = ()
386+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
379387
):
380388
"""Instantiate the pager.
381389
@@ -389,8 +397,10 @@ def __init__(
389397
retry (google.api_core.retry.Retry): Designation of what errors,
390398
if any, should be retried.
391399
timeout (float): The timeout for this request.
392-
metadata (Sequence[Tuple[str, str]]): Strings which should be
393-
sent along with the request as metadata.
400+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
401+
sent along with the request as metadata. Normally, each value must be of type `str`,
402+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
403+
be of type `bytes`.
394404
"""
395405
self._method = method
396406
self._request = spanner_database_admin.ListDatabaseOperationsRequest(request)
@@ -451,7 +461,7 @@ def __init__(
451461
*,
452462
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
453463
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
454-
metadata: Sequence[Tuple[str, str]] = ()
464+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
455465
):
456466
"""Instantiates the pager.
457467
@@ -465,8 +475,10 @@ def __init__(
465475
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
466476
if any, should be retried.
467477
timeout (float): The timeout for this request.
468-
metadata (Sequence[Tuple[str, str]]): Strings which should be
469-
sent along with the request as metadata.
478+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
479+
sent along with the request as metadata. Normally, each value must be of type `str`,
480+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
481+
be of type `bytes`.
470482
"""
471483
self._method = method
472484
self._request = spanner_database_admin.ListDatabaseOperationsRequest(request)
@@ -531,7 +543,7 @@ def __init__(
531543
*,
532544
retry: OptionalRetry = gapic_v1.method.DEFAULT,
533545
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
534-
metadata: Sequence[Tuple[str, str]] = ()
546+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
535547
):
536548
"""Instantiate the pager.
537549
@@ -545,8 +557,10 @@ def __init__(
545557
retry (google.api_core.retry.Retry): Designation of what errors,
546558
if any, should be retried.
547559
timeout (float): The timeout for this request.
548-
metadata (Sequence[Tuple[str, str]]): Strings which should be
549-
sent along with the request as metadata.
560+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
561+
sent along with the request as metadata. Normally, each value must be of type `str`,
562+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
563+
be of type `bytes`.
550564
"""
551565
self._method = method
552566
self._request = backup.ListBackupOperationsRequest(request)
@@ -605,7 +619,7 @@ def __init__(
605619
*,
606620
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
607621
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
608-
metadata: Sequence[Tuple[str, str]] = ()
622+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
609623
):
610624
"""Instantiates the pager.
611625
@@ -619,8 +633,10 @@ def __init__(
619633
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
620634
if any, should be retried.
621635
timeout (float): The timeout for this request.
622-
metadata (Sequence[Tuple[str, str]]): Strings which should be
623-
sent along with the request as metadata.
636+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
637+
sent along with the request as metadata. Normally, each value must be of type `str`,
638+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
639+
be of type `bytes`.
624640
"""
625641
self._method = method
626642
self._request = backup.ListBackupOperationsRequest(request)
@@ -683,7 +699,7 @@ def __init__(
683699
*,
684700
retry: OptionalRetry = gapic_v1.method.DEFAULT,
685701
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
686-
metadata: Sequence[Tuple[str, str]] = ()
702+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
687703
):
688704
"""Instantiate the pager.
689705
@@ -697,8 +713,10 @@ def __init__(
697713
retry (google.api_core.retry.Retry): Designation of what errors,
698714
if any, should be retried.
699715
timeout (float): The timeout for this request.
700-
metadata (Sequence[Tuple[str, str]]): Strings which should be
701-
sent along with the request as metadata.
716+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
717+
sent along with the request as metadata. Normally, each value must be of type `str`,
718+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
719+
be of type `bytes`.
702720
"""
703721
self._method = method
704722
self._request = spanner_database_admin.ListDatabaseRolesRequest(request)
@@ -759,7 +777,7 @@ def __init__(
759777
*,
760778
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
761779
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
762-
metadata: Sequence[Tuple[str, str]] = ()
780+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
763781
):
764782
"""Instantiates the pager.
765783
@@ -773,8 +791,10 @@ def __init__(
773791
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
774792
if any, should be retried.
775793
timeout (float): The timeout for this request.
776-
metadata (Sequence[Tuple[str, str]]): Strings which should be
777-
sent along with the request as metadata.
794+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
795+
sent along with the request as metadata. Normally, each value must be of type `str`,
796+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
797+
be of type `bytes`.
778798
"""
779799
self._method = method
780800
self._request = spanner_database_admin.ListDatabaseRolesRequest(request)
@@ -839,7 +859,7 @@ def __init__(
839859
*,
840860
retry: OptionalRetry = gapic_v1.method.DEFAULT,
841861
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
842-
metadata: Sequence[Tuple[str, str]] = ()
862+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
843863
):
844864
"""Instantiate the pager.
845865
@@ -853,8 +873,10 @@ def __init__(
853873
retry (google.api_core.retry.Retry): Designation of what errors,
854874
if any, should be retried.
855875
timeout (float): The timeout for this request.
856-
metadata (Sequence[Tuple[str, str]]): Strings which should be
857-
sent along with the request as metadata.
876+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
877+
sent along with the request as metadata. Normally, each value must be of type `str`,
878+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
879+
be of type `bytes`.
858880
"""
859881
self._method = method
860882
self._request = backup_schedule.ListBackupSchedulesRequest(request)
@@ -913,7 +935,7 @@ def __init__(
913935
*,
914936
retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
915937
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
916-
metadata: Sequence[Tuple[str, str]] = ()
938+
metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
917939
):
918940
"""Instantiates the pager.
919941
@@ -927,8 +949,10 @@ def __init__(
927949
retry (google.api_core.retry.AsyncRetry): Designation of what errors,
928950
if any, should be retried.
929951
timeout (float): The timeout for this request.
930-
metadata (Sequence[Tuple[str, str]]): Strings which should be
931-
sent along with the request as metadata.
952+
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
953+
sent along with the request as metadata. Normally, each value must be of type `str`,
954+
but for metadata keys ending with the suffix `-bin`, the corresponding values must
955+
be of type `bytes`.
932956
"""
933957
self._method = method
934958
self._request = backup_schedule.ListBackupSchedulesRequest(request)

0 commit comments

Comments
 (0)