google-cloud-securesourcemanager 0.1.11__tar.gz → 0.1.13__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. {google_cloud_securesourcemanager-0.1.11/google_cloud_securesourcemanager.egg-info → google_cloud_securesourcemanager-0.1.13}/PKG-INFO +1 -1
  2. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager/gapic_version.py +1 -1
  3. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/gapic_version.py +1 -1
  4. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/async_client.py +157 -75
  5. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/client.py +282 -138
  6. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/pagers.py +30 -18
  7. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc.py +116 -28
  8. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc_asyncio.py +113 -28
  9. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest.py +1926 -158
  10. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13/google_cloud_securesourcemanager.egg-info}/PKG-INFO +1 -1
  11. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/tests/unit/gapic/securesourcemanager_v1/test_secure_source_manager.py +255 -0
  12. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/LICENSE +0 -0
  13. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/MANIFEST.in +0 -0
  14. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/README.rst +0 -0
  15. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager/__init__.py +0 -0
  16. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager/py.typed +0 -0
  17. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/__init__.py +0 -0
  18. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/gapic_metadata.json +0 -0
  19. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/py.typed +0 -0
  20. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/__init__.py +0 -0
  21. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/__init__.py +0 -0
  22. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/__init__.py +0 -0
  23. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/base.py +0 -0
  24. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest_base.py +0 -0
  25. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/types/__init__.py +0 -0
  26. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google/cloud/securesourcemanager_v1/types/secure_source_manager.py +0 -0
  27. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google_cloud_securesourcemanager.egg-info/SOURCES.txt +0 -0
  28. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google_cloud_securesourcemanager.egg-info/dependency_links.txt +0 -0
  29. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google_cloud_securesourcemanager.egg-info/not-zip-safe +0 -0
  30. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google_cloud_securesourcemanager.egg-info/requires.txt +0 -0
  31. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/google_cloud_securesourcemanager.egg-info/top_level.txt +0 -0
  32. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/setup.cfg +0 -0
  33. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/setup.py +0 -0
  34. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/tests/__init__.py +0 -0
  35. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/tests/unit/__init__.py +0 -0
  36. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/tests/unit/gapic/__init__.py +0 -0
  37. {google_cloud_securesourcemanager-0.1.11 → google_cloud_securesourcemanager-0.1.13}/tests/unit/gapic/securesourcemanager_v1/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-cloud-securesourcemanager
3
- Version: 0.1.11
3
+ Version: 0.1.13
4
4
  Summary: Google Cloud Securesourcemanager API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-securesourcemanager
6
6
  Author: Google LLC
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.1.11" # {x-release-please-version}
16
+ __version__ = "0.1.13" # {x-release-please-version}
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "0.1.11" # {x-release-please-version}
16
+ __version__ = "0.1.13" # {x-release-please-version}
@@ -14,6 +14,7 @@
14
14
  # limitations under the License.
15
15
  #
16
16
  from collections import OrderedDict
17
+ import logging as std_logging
17
18
  import re
18
19
  from typing import (
19
20
  Callable,
@@ -59,6 +60,15 @@ from .client import SecureSourceManagerClient
59
60
  from .transports.base import DEFAULT_CLIENT_INFO, SecureSourceManagerTransport
60
61
  from .transports.grpc_asyncio import SecureSourceManagerGrpcAsyncIOTransport
61
62
 
63
+ try:
64
+ from google.api_core import client_logging # type: ignore
65
+
66
+ CLIENT_LOGGING_SUPPORTED = True # pragma: NO COVER
67
+ except ImportError: # pragma: NO COVER
68
+ CLIENT_LOGGING_SUPPORTED = False
69
+
70
+ _LOGGER = std_logging.getLogger(__name__)
71
+
62
72
 
63
73
  class SecureSourceManagerAsyncClient:
64
74
  """Secure Source Manager API
@@ -313,6 +323,28 @@ class SecureSourceManagerAsyncClient:
313
323
  client_info=client_info,
314
324
  )
315
325
 
326
+ if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(
327
+ std_logging.DEBUG
328
+ ): # pragma: NO COVER
329
+ _LOGGER.debug(
330
+ "Created client `google.cloud.securesourcemanager_v1.SecureSourceManagerAsyncClient`.",
331
+ extra={
332
+ "serviceName": "google.cloud.securesourcemanager.v1.SecureSourceManager",
333
+ "universeDomain": getattr(
334
+ self._client._transport._credentials, "universe_domain", ""
335
+ ),
336
+ "credentialsType": f"{type(self._client._transport._credentials).__module__}.{type(self._client._transport._credentials).__qualname__}",
337
+ "credentialsInfo": getattr(
338
+ self.transport._credentials, "get_cred_info", lambda: None
339
+ )(),
340
+ }
341
+ if hasattr(self._client._transport, "_credentials")
342
+ else {
343
+ "serviceName": "google.cloud.securesourcemanager.v1.SecureSourceManager",
344
+ "credentialsType": None,
345
+ },
346
+ )
347
+
316
348
  async def list_instances(
317
349
  self,
318
350
  request: Optional[
@@ -322,7 +354,7 @@ class SecureSourceManagerAsyncClient:
322
354
  parent: Optional[str] = None,
323
355
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
324
356
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
325
- metadata: Sequence[Tuple[str, str]] = (),
357
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
326
358
  ) -> pagers.ListInstancesAsyncPager:
327
359
  r"""Lists Instances in a given project and location.
328
360
 
@@ -367,8 +399,10 @@ class SecureSourceManagerAsyncClient:
367
399
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
368
400
  should be retried.
369
401
  timeout (float): The timeout for this request.
370
- metadata (Sequence[Tuple[str, str]]): Strings which should be
371
- sent along with the request as metadata.
402
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
403
+ sent along with the request as metadata. Normally, each value must be of type `str`,
404
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
405
+ be of type `bytes`.
372
406
 
373
407
  Returns:
374
408
  google.cloud.securesourcemanager_v1.services.secure_source_manager.pagers.ListInstancesAsyncPager:
@@ -441,7 +475,7 @@ class SecureSourceManagerAsyncClient:
441
475
  name: Optional[str] = None,
442
476
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
443
477
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
444
- metadata: Sequence[Tuple[str, str]] = (),
478
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
445
479
  ) -> secure_source_manager.Instance:
446
480
  r"""Gets details of a single instance.
447
481
 
@@ -483,8 +517,10 @@ class SecureSourceManagerAsyncClient:
483
517
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
484
518
  should be retried.
485
519
  timeout (float): The timeout for this request.
486
- metadata (Sequence[Tuple[str, str]]): Strings which should be
487
- sent along with the request as metadata.
520
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
521
+ sent along with the request as metadata. Normally, each value must be of type `str`,
522
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
523
+ be of type `bytes`.
488
524
 
489
525
  Returns:
490
526
  google.cloud.securesourcemanager_v1.types.Instance:
@@ -549,7 +585,7 @@ class SecureSourceManagerAsyncClient:
549
585
  instance_id: Optional[str] = None,
550
586
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
551
587
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
552
- metadata: Sequence[Tuple[str, str]] = (),
588
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
553
589
  ) -> operation_async.AsyncOperation:
554
590
  r"""Creates a new instance in a given project and
555
591
  location.
@@ -609,8 +645,10 @@ class SecureSourceManagerAsyncClient:
609
645
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
610
646
  should be retried.
611
647
  timeout (float): The timeout for this request.
612
- metadata (Sequence[Tuple[str, str]]): Strings which should be
613
- sent along with the request as metadata.
648
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
649
+ sent along with the request as metadata. Normally, each value must be of type `str`,
650
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
651
+ be of type `bytes`.
614
652
 
615
653
  Returns:
616
654
  google.api_core.operation_async.AsyncOperation:
@@ -689,7 +727,7 @@ class SecureSourceManagerAsyncClient:
689
727
  name: Optional[str] = None,
690
728
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
691
729
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
692
- metadata: Sequence[Tuple[str, str]] = (),
730
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
693
731
  ) -> operation_async.AsyncOperation:
694
732
  r"""Deletes a single instance.
695
733
 
@@ -735,8 +773,10 @@ class SecureSourceManagerAsyncClient:
735
773
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
736
774
  should be retried.
737
775
  timeout (float): The timeout for this request.
738
- metadata (Sequence[Tuple[str, str]]): Strings which should be
739
- sent along with the request as metadata.
776
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
777
+ sent along with the request as metadata. Normally, each value must be of type `str`,
778
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
779
+ be of type `bytes`.
740
780
 
741
781
  Returns:
742
782
  google.api_core.operation_async.AsyncOperation:
@@ -817,7 +857,7 @@ class SecureSourceManagerAsyncClient:
817
857
  parent: Optional[str] = None,
818
858
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
819
859
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
820
- metadata: Sequence[Tuple[str, str]] = (),
860
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
821
861
  ) -> pagers.ListRepositoriesAsyncPager:
822
862
  r"""Lists Repositories in a given project and location.
823
863
 
@@ -864,8 +904,10 @@ class SecureSourceManagerAsyncClient:
864
904
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
865
905
  should be retried.
866
906
  timeout (float): The timeout for this request.
867
- metadata (Sequence[Tuple[str, str]]): Strings which should be
868
- sent along with the request as metadata.
907
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
908
+ sent along with the request as metadata. Normally, each value must be of type `str`,
909
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
910
+ be of type `bytes`.
869
911
 
870
912
  Returns:
871
913
  google.cloud.securesourcemanager_v1.services.secure_source_manager.pagers.ListRepositoriesAsyncPager:
@@ -940,7 +982,7 @@ class SecureSourceManagerAsyncClient:
940
982
  name: Optional[str] = None,
941
983
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
942
984
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
943
- metadata: Sequence[Tuple[str, str]] = (),
985
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
944
986
  ) -> secure_source_manager.Repository:
945
987
  r"""Gets metadata of a repository.
946
988
 
@@ -987,8 +1029,10 @@ class SecureSourceManagerAsyncClient:
987
1029
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
988
1030
  should be retried.
989
1031
  timeout (float): The timeout for this request.
990
- metadata (Sequence[Tuple[str, str]]): Strings which should be
991
- sent along with the request as metadata.
1032
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1033
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1034
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1035
+ be of type `bytes`.
992
1036
 
993
1037
  Returns:
994
1038
  google.cloud.securesourcemanager_v1.types.Repository:
@@ -1053,7 +1097,7 @@ class SecureSourceManagerAsyncClient:
1053
1097
  repository_id: Optional[str] = None,
1054
1098
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1055
1099
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1056
- metadata: Sequence[Tuple[str, str]] = (),
1100
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1057
1101
  ) -> operation_async.AsyncOperation:
1058
1102
  r"""Creates a new repository in a given project and location.
1059
1103
 
@@ -1119,8 +1163,10 @@ class SecureSourceManagerAsyncClient:
1119
1163
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
1120
1164
  should be retried.
1121
1165
  timeout (float): The timeout for this request.
1122
- metadata (Sequence[Tuple[str, str]]): Strings which should be
1123
- sent along with the request as metadata.
1166
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1167
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1168
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1169
+ be of type `bytes`.
1124
1170
 
1125
1171
  Returns:
1126
1172
  google.api_core.operation_async.AsyncOperation:
@@ -1198,7 +1244,7 @@ class SecureSourceManagerAsyncClient:
1198
1244
  name: Optional[str] = None,
1199
1245
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1200
1246
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1201
- metadata: Sequence[Tuple[str, str]] = (),
1247
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1202
1248
  ) -> operation_async.AsyncOperation:
1203
1249
  r"""Deletes a Repository.
1204
1250
 
@@ -1249,8 +1295,10 @@ class SecureSourceManagerAsyncClient:
1249
1295
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
1250
1296
  should be retried.
1251
1297
  timeout (float): The timeout for this request.
1252
- metadata (Sequence[Tuple[str, str]]): Strings which should be
1253
- sent along with the request as metadata.
1298
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1299
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1300
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1301
+ be of type `bytes`.
1254
1302
 
1255
1303
  Returns:
1256
1304
  google.api_core.operation_async.AsyncOperation:
@@ -1329,7 +1377,7 @@ class SecureSourceManagerAsyncClient:
1329
1377
  resource: Optional[str] = None,
1330
1378
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1331
1379
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1332
- metadata: Sequence[Tuple[str, str]] = (),
1380
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1333
1381
  ) -> policy_pb2.Policy:
1334
1382
  r"""Get IAM policy for a repository.
1335
1383
 
@@ -1375,8 +1423,10 @@ class SecureSourceManagerAsyncClient:
1375
1423
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
1376
1424
  should be retried.
1377
1425
  timeout (float): The timeout for this request.
1378
- metadata (Sequence[Tuple[str, str]]): Strings which should be
1379
- sent along with the request as metadata.
1426
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1427
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1428
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1429
+ be of type `bytes`.
1380
1430
 
1381
1431
  Returns:
1382
1432
  google.iam.v1.policy_pb2.Policy:
@@ -1462,7 +1512,7 @@ class SecureSourceManagerAsyncClient:
1462
1512
  resource: Optional[str] = None,
1463
1513
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1464
1514
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1465
- metadata: Sequence[Tuple[str, str]] = (),
1515
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1466
1516
  ) -> policy_pb2.Policy:
1467
1517
  r"""Set IAM policy on a repository.
1468
1518
 
@@ -1508,8 +1558,10 @@ class SecureSourceManagerAsyncClient:
1508
1558
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
1509
1559
  should be retried.
1510
1560
  timeout (float): The timeout for this request.
1511
- metadata (Sequence[Tuple[str, str]]): Strings which should be
1512
- sent along with the request as metadata.
1561
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1562
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1563
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1564
+ be of type `bytes`.
1513
1565
 
1514
1566
  Returns:
1515
1567
  google.iam.v1.policy_pb2.Policy:
@@ -1595,7 +1647,7 @@ class SecureSourceManagerAsyncClient:
1595
1647
  resource: Optional[str] = None,
1596
1648
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1597
1649
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1598
- metadata: Sequence[Tuple[str, str]] = (),
1650
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1599
1651
  ) -> iam_policy_pb2.TestIamPermissionsResponse:
1600
1652
  r"""Test IAM permissions on a repository.
1601
1653
  IAM permission checks are not required on this method.
@@ -1643,8 +1695,10 @@ class SecureSourceManagerAsyncClient:
1643
1695
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
1644
1696
  should be retried.
1645
1697
  timeout (float): The timeout for this request.
1646
- metadata (Sequence[Tuple[str, str]]): Strings which should be
1647
- sent along with the request as metadata.
1698
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1699
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1700
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1701
+ be of type `bytes`.
1648
1702
 
1649
1703
  Returns:
1650
1704
  google.iam.v1.iam_policy_pb2.TestIamPermissionsResponse:
@@ -1704,7 +1758,7 @@ class SecureSourceManagerAsyncClient:
1704
1758
  branch_rule_id: Optional[str] = None,
1705
1759
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1706
1760
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1707
- metadata: Sequence[Tuple[str, str]] = (),
1761
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1708
1762
  ) -> operation_async.AsyncOperation:
1709
1763
  r"""CreateBranchRule creates a branch rule in a given
1710
1764
  repository.
@@ -1762,8 +1816,10 @@ class SecureSourceManagerAsyncClient:
1762
1816
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
1763
1817
  should be retried.
1764
1818
  timeout (float): The timeout for this request.
1765
- metadata (Sequence[Tuple[str, str]]): Strings which should be
1766
- sent along with the request as metadata.
1819
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1820
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1821
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1822
+ be of type `bytes`.
1767
1823
 
1768
1824
  Returns:
1769
1825
  google.api_core.operation_async.AsyncOperation:
@@ -1841,7 +1897,7 @@ class SecureSourceManagerAsyncClient:
1841
1897
  parent: Optional[str] = None,
1842
1898
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1843
1899
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1844
- metadata: Sequence[Tuple[str, str]] = (),
1900
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1845
1901
  ) -> pagers.ListBranchRulesAsyncPager:
1846
1902
  r"""ListBranchRules lists branch rules in a given
1847
1903
  repository.
@@ -1885,8 +1941,10 @@ class SecureSourceManagerAsyncClient:
1885
1941
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
1886
1942
  should be retried.
1887
1943
  timeout (float): The timeout for this request.
1888
- metadata (Sequence[Tuple[str, str]]): Strings which should be
1889
- sent along with the request as metadata.
1944
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1945
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1946
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1947
+ be of type `bytes`.
1890
1948
 
1891
1949
  Returns:
1892
1950
  google.cloud.securesourcemanager_v1.services.secure_source_manager.pagers.ListBranchRulesAsyncPager:
@@ -1963,7 +2021,7 @@ class SecureSourceManagerAsyncClient:
1963
2021
  name: Optional[str] = None,
1964
2022
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
1965
2023
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1966
- metadata: Sequence[Tuple[str, str]] = (),
2024
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1967
2025
  ) -> secure_source_manager.BranchRule:
1968
2026
  r"""GetBranchRule gets a branch rule.
1969
2027
 
@@ -2008,8 +2066,10 @@ class SecureSourceManagerAsyncClient:
2008
2066
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
2009
2067
  should be retried.
2010
2068
  timeout (float): The timeout for this request.
2011
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2012
- sent along with the request as metadata.
2069
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2070
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2071
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2072
+ be of type `bytes`.
2013
2073
 
2014
2074
  Returns:
2015
2075
  google.cloud.securesourcemanager_v1.types.BranchRule:
@@ -2075,7 +2135,7 @@ class SecureSourceManagerAsyncClient:
2075
2135
  update_mask: Optional[field_mask_pb2.FieldMask] = None,
2076
2136
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2077
2137
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2078
- metadata: Sequence[Tuple[str, str]] = (),
2138
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2079
2139
  ) -> operation_async.AsyncOperation:
2080
2140
  r"""UpdateBranchRule updates a branch rule.
2081
2141
 
@@ -2131,8 +2191,10 @@ class SecureSourceManagerAsyncClient:
2131
2191
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
2132
2192
  should be retried.
2133
2193
  timeout (float): The timeout for this request.
2134
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2135
- sent along with the request as metadata.
2194
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2195
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2196
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2197
+ be of type `bytes`.
2136
2198
 
2137
2199
  Returns:
2138
2200
  google.api_core.operation_async.AsyncOperation:
@@ -2210,7 +2272,7 @@ class SecureSourceManagerAsyncClient:
2210
2272
  name: Optional[str] = None,
2211
2273
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2212
2274
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2213
- metadata: Sequence[Tuple[str, str]] = (),
2275
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2214
2276
  ) -> operation_async.AsyncOperation:
2215
2277
  r"""DeleteBranchRule deletes a branch rule.
2216
2278
 
@@ -2256,8 +2318,10 @@ class SecureSourceManagerAsyncClient:
2256
2318
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
2257
2319
  should be retried.
2258
2320
  timeout (float): The timeout for this request.
2259
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2260
- sent along with the request as metadata.
2321
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2322
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2323
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2324
+ be of type `bytes`.
2261
2325
 
2262
2326
  Returns:
2263
2327
  google.api_core.operation_async.AsyncOperation:
@@ -2335,7 +2399,7 @@ class SecureSourceManagerAsyncClient:
2335
2399
  *,
2336
2400
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2337
2401
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2338
- metadata: Sequence[Tuple[str, str]] = (),
2402
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2339
2403
  ) -> operations_pb2.ListOperationsResponse:
2340
2404
  r"""Lists operations that match the specified filter in the request.
2341
2405
 
@@ -2346,8 +2410,10 @@ class SecureSourceManagerAsyncClient:
2346
2410
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
2347
2411
  if any, should be retried.
2348
2412
  timeout (float): The timeout for this request.
2349
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2350
- sent along with the request as metadata.
2413
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2414
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2415
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2416
+ be of type `bytes`.
2351
2417
  Returns:
2352
2418
  ~.operations_pb2.ListOperationsResponse:
2353
2419
  Response message for ``ListOperations`` method.
@@ -2388,7 +2454,7 @@ class SecureSourceManagerAsyncClient:
2388
2454
  *,
2389
2455
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2390
2456
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2391
- metadata: Sequence[Tuple[str, str]] = (),
2457
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2392
2458
  ) -> operations_pb2.Operation:
2393
2459
  r"""Gets the latest state of a long-running operation.
2394
2460
 
@@ -2399,8 +2465,10 @@ class SecureSourceManagerAsyncClient:
2399
2465
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
2400
2466
  if any, should be retried.
2401
2467
  timeout (float): The timeout for this request.
2402
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2403
- sent along with the request as metadata.
2468
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2469
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2470
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2471
+ be of type `bytes`.
2404
2472
  Returns:
2405
2473
  ~.operations_pb2.Operation:
2406
2474
  An ``Operation`` object.
@@ -2441,7 +2509,7 @@ class SecureSourceManagerAsyncClient:
2441
2509
  *,
2442
2510
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2443
2511
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2444
- metadata: Sequence[Tuple[str, str]] = (),
2512
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2445
2513
  ) -> None:
2446
2514
  r"""Deletes a long-running operation.
2447
2515
 
@@ -2457,8 +2525,10 @@ class SecureSourceManagerAsyncClient:
2457
2525
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
2458
2526
  if any, should be retried.
2459
2527
  timeout (float): The timeout for this request.
2460
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2461
- sent along with the request as metadata.
2528
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2529
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2530
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2531
+ be of type `bytes`.
2462
2532
  Returns:
2463
2533
  None
2464
2534
  """
@@ -2495,7 +2565,7 @@ class SecureSourceManagerAsyncClient:
2495
2565
  *,
2496
2566
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2497
2567
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2498
- metadata: Sequence[Tuple[str, str]] = (),
2568
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2499
2569
  ) -> None:
2500
2570
  r"""Starts asynchronous cancellation on a long-running operation.
2501
2571
 
@@ -2510,8 +2580,10 @@ class SecureSourceManagerAsyncClient:
2510
2580
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
2511
2581
  if any, should be retried.
2512
2582
  timeout (float): The timeout for this request.
2513
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2514
- sent along with the request as metadata.
2583
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2584
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2585
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2586
+ be of type `bytes`.
2515
2587
  Returns:
2516
2588
  None
2517
2589
  """
@@ -2548,7 +2620,7 @@ class SecureSourceManagerAsyncClient:
2548
2620
  *,
2549
2621
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2550
2622
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2551
- metadata: Sequence[Tuple[str, str]] = (),
2623
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2552
2624
  ) -> policy_pb2.Policy:
2553
2625
  r"""Sets the IAM access control policy on the specified function.
2554
2626
 
@@ -2561,8 +2633,10 @@ class SecureSourceManagerAsyncClient:
2561
2633
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
2562
2634
  should be retried.
2563
2635
  timeout (float): The timeout for this request.
2564
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2565
- sent along with the request as metadata.
2636
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2637
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2638
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2639
+ be of type `bytes`.
2566
2640
  Returns:
2567
2641
  ~.policy_pb2.Policy:
2568
2642
  Defines an Identity and Access Management (IAM) policy.
@@ -2667,7 +2741,7 @@ class SecureSourceManagerAsyncClient:
2667
2741
  *,
2668
2742
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2669
2743
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2670
- metadata: Sequence[Tuple[str, str]] = (),
2744
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2671
2745
  ) -> policy_pb2.Policy:
2672
2746
  r"""Gets the IAM access control policy for a function.
2673
2747
 
@@ -2681,8 +2755,10 @@ class SecureSourceManagerAsyncClient:
2681
2755
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if
2682
2756
  any, should be retried.
2683
2757
  timeout (float): The timeout for this request.
2684
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2685
- sent along with the request as metadata.
2758
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2759
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2760
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2761
+ be of type `bytes`.
2686
2762
  Returns:
2687
2763
  ~.policy_pb2.Policy:
2688
2764
  Defines an Identity and Access Management (IAM) policy.
@@ -2787,7 +2863,7 @@ class SecureSourceManagerAsyncClient:
2787
2863
  *,
2788
2864
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2789
2865
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2790
- metadata: Sequence[Tuple[str, str]] = (),
2866
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2791
2867
  ) -> iam_policy_pb2.TestIamPermissionsResponse:
2792
2868
  r"""Tests the specified IAM permissions against the IAM access control
2793
2869
  policy for a function.
@@ -2802,8 +2878,10 @@ class SecureSourceManagerAsyncClient:
2802
2878
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
2803
2879
  if any, should be retried.
2804
2880
  timeout (float): The timeout for this request.
2805
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2806
- sent along with the request as metadata.
2881
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2882
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2883
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2884
+ be of type `bytes`.
2807
2885
  Returns:
2808
2886
  ~.iam_policy_pb2.TestIamPermissionsResponse:
2809
2887
  Response message for ``TestIamPermissions`` method.
@@ -2847,7 +2925,7 @@ class SecureSourceManagerAsyncClient:
2847
2925
  *,
2848
2926
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2849
2927
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2850
- metadata: Sequence[Tuple[str, str]] = (),
2928
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2851
2929
  ) -> locations_pb2.Location:
2852
2930
  r"""Gets information about a location.
2853
2931
 
@@ -2858,8 +2936,10 @@ class SecureSourceManagerAsyncClient:
2858
2936
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
2859
2937
  if any, should be retried.
2860
2938
  timeout (float): The timeout for this request.
2861
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2862
- sent along with the request as metadata.
2939
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2940
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2941
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2942
+ be of type `bytes`.
2863
2943
  Returns:
2864
2944
  ~.location_pb2.Location:
2865
2945
  Location object.
@@ -2900,7 +2980,7 @@ class SecureSourceManagerAsyncClient:
2900
2980
  *,
2901
2981
  retry: OptionalRetry = gapic_v1.method.DEFAULT,
2902
2982
  timeout: Union[float, object] = gapic_v1.method.DEFAULT,
2903
- metadata: Sequence[Tuple[str, str]] = (),
2983
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
2904
2984
  ) -> locations_pb2.ListLocationsResponse:
2905
2985
  r"""Lists information about the supported locations for this service.
2906
2986
 
@@ -2911,8 +2991,10 @@ class SecureSourceManagerAsyncClient:
2911
2991
  retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
2912
2992
  if any, should be retried.
2913
2993
  timeout (float): The timeout for this request.
2914
- metadata (Sequence[Tuple[str, str]]): Strings which should be
2915
- sent along with the request as metadata.
2994
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
2995
+ sent along with the request as metadata. Normally, each value must be of type `str`,
2996
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
2997
+ be of type `bytes`.
2916
2998
  Returns:
2917
2999
  ~.location_pb2.ListLocationsResponse:
2918
3000
  Response message for ``ListLocations`` method.