google-cloud-securesourcemanager 0.1.5__tar.gz → 0.1.7__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.
- {google-cloud-securesourcemanager-0.1.5/google_cloud_securesourcemanager.egg-info → google-cloud-securesourcemanager-0.1.7}/PKG-INFO +3 -3
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/README.rst +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager/gapic_version.py +2 -2
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/gapic_version.py +2 -2
- {google-cloud-securesourcemanager-0.1.5/tests/unit → google-cloud-securesourcemanager-0.1.7/google/cloud/securesourcemanager_v1/services}/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/async_client.py +118 -150
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/client.py +112 -67
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/pagers.py +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/base.py +4 -2
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc.py +18 -12
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc_asyncio.py +124 -12
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest.py +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/types/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/types/secure_source_manager.py +56 -3
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7/google_cloud_securesourcemanager.egg-info}/PKG-INFO +3 -3
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google_cloud_securesourcemanager.egg-info/requires.txt +1 -1
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/setup.py +2 -2
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/tests/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.5/tests/unit/gapic → google-cloud-securesourcemanager-0.1.7/tests/unit}/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.5/google/cloud/securesourcemanager_v1/services → google-cloud-securesourcemanager-0.1.7/tests/unit/gapic}/__init__.py +1 -1
- google-cloud-securesourcemanager-0.1.7/tests/unit/gapic/securesourcemanager_v1/__init__.py +15 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/tests/unit/gapic/securesourcemanager_v1/test_secure_source_manager.py +2114 -76
- google-cloud-securesourcemanager-0.1.5/tests/unit/gapic/securesourcemanager_v1/__init__.py +0 -15
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/LICENSE +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/MANIFEST.in +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager/py.typed +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/gapic_metadata.json +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google/cloud/securesourcemanager_v1/py.typed +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google_cloud_securesourcemanager.egg-info/SOURCES.txt +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google_cloud_securesourcemanager.egg-info/dependency_links.txt +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google_cloud_securesourcemanager.egg-info/not-zip-safe +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/google_cloud_securesourcemanager.egg-info/top_level.txt +0 -0
- {google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-securesourcemanager
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.7
|
|
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
|
|
@@ -25,7 +25,7 @@ License-File: LICENSE
|
|
|
25
25
|
Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
|
|
26
26
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0dev,>=2.14.1
|
|
27
27
|
Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
|
|
28
|
-
Requires-Dist: protobuf!=
|
|
28
|
+
Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<6.0.0dev,>=3.20.2
|
|
29
29
|
Requires-Dist: grpc-google-iam-v1<1.0.0dev,>=0.12.4
|
|
30
30
|
|
|
31
31
|
Python Client for Secure Source Manager API
|
|
@@ -45,7 +45,7 @@ Python Client for Secure Source Manager API
|
|
|
45
45
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-securesourcemanager.svg
|
|
46
46
|
:target: https://pypi.org/project/google-cloud-securesourcemanager/
|
|
47
47
|
.. _Secure Source Manager API: https://cloud.google.com/secure-source-manager/docs/overview
|
|
48
|
-
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/securesourcemanager/latest
|
|
48
|
+
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/securesourcemanager/latest/summary_overview
|
|
49
49
|
.. _Product Documentation: https://cloud.google.com/secure-source-manager/docs/overview
|
|
50
50
|
|
|
51
51
|
Quick Start
|
{google-cloud-securesourcemanager-0.1.5 → google-cloud-securesourcemanager-0.1.7}/README.rst
RENAMED
|
@@ -15,7 +15,7 @@ Python Client for Secure Source Manager API
|
|
|
15
15
|
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-securesourcemanager.svg
|
|
16
16
|
:target: https://pypi.org/project/google-cloud-securesourcemanager/
|
|
17
17
|
.. _Secure Source Manager API: https://cloud.google.com/secure-source-manager/docs/overview
|
|
18
|
-
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/securesourcemanager/latest
|
|
18
|
+
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/securesourcemanager/latest/summary_overview
|
|
19
19
|
.. _Product Documentation: https://cloud.google.com/secure-source-manager/docs/overview
|
|
20
20
|
|
|
21
21
|
Quick Start
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2024 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -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.
|
|
16
|
+
__version__ = "0.1.7" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2024 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -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.
|
|
16
|
+
__version__ = "0.1.7" # {x-release-please-version}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Copyright
|
|
2
|
+
# Copyright 2024 Google LLC
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -17,6 +17,7 @@ from collections import OrderedDict
|
|
|
17
17
|
import functools
|
|
18
18
|
import re
|
|
19
19
|
from typing import (
|
|
20
|
+
Callable,
|
|
20
21
|
Dict,
|
|
21
22
|
Mapping,
|
|
22
23
|
MutableMapping,
|
|
@@ -96,6 +97,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
96
97
|
_DEFAULT_ENDPOINT_TEMPLATE = SecureSourceManagerClient._DEFAULT_ENDPOINT_TEMPLATE
|
|
97
98
|
_DEFAULT_UNIVERSE = SecureSourceManagerClient._DEFAULT_UNIVERSE
|
|
98
99
|
|
|
100
|
+
ca_pool_path = staticmethod(SecureSourceManagerClient.ca_pool_path)
|
|
101
|
+
parse_ca_pool_path = staticmethod(SecureSourceManagerClient.parse_ca_pool_path)
|
|
99
102
|
crypto_key_path = staticmethod(SecureSourceManagerClient.crypto_key_path)
|
|
100
103
|
parse_crypto_key_path = staticmethod(
|
|
101
104
|
SecureSourceManagerClient.parse_crypto_key_path
|
|
@@ -106,6 +109,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
106
109
|
parse_repository_path = staticmethod(
|
|
107
110
|
SecureSourceManagerClient.parse_repository_path
|
|
108
111
|
)
|
|
112
|
+
service_attachment_path = staticmethod(
|
|
113
|
+
SecureSourceManagerClient.service_attachment_path
|
|
114
|
+
)
|
|
115
|
+
parse_service_attachment_path = staticmethod(
|
|
116
|
+
SecureSourceManagerClient.parse_service_attachment_path
|
|
117
|
+
)
|
|
109
118
|
common_billing_account_path = staticmethod(
|
|
110
119
|
SecureSourceManagerClient.common_billing_account_path
|
|
111
120
|
)
|
|
@@ -237,7 +246,13 @@ class SecureSourceManagerAsyncClient:
|
|
|
237
246
|
self,
|
|
238
247
|
*,
|
|
239
248
|
credentials: Optional[ga_credentials.Credentials] = None,
|
|
240
|
-
transport:
|
|
249
|
+
transport: Optional[
|
|
250
|
+
Union[
|
|
251
|
+
str,
|
|
252
|
+
SecureSourceManagerTransport,
|
|
253
|
+
Callable[..., SecureSourceManagerTransport],
|
|
254
|
+
]
|
|
255
|
+
] = "grpc_asyncio",
|
|
241
256
|
client_options: Optional[ClientOptions] = None,
|
|
242
257
|
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
|
|
243
258
|
) -> None:
|
|
@@ -249,9 +264,11 @@ class SecureSourceManagerAsyncClient:
|
|
|
249
264
|
credentials identify the application to the service; if none
|
|
250
265
|
are specified, the client will attempt to ascertain the
|
|
251
266
|
credentials from the environment.
|
|
252
|
-
transport (Union[str,
|
|
253
|
-
transport to use
|
|
254
|
-
|
|
267
|
+
transport (Optional[Union[str,SecureSourceManagerTransport,Callable[..., SecureSourceManagerTransport]]]):
|
|
268
|
+
The transport to use, or a Callable that constructs and returns a new transport to use.
|
|
269
|
+
If a Callable is given, it will be called with the same set of initialization
|
|
270
|
+
arguments as used in the SecureSourceManagerTransport constructor.
|
|
271
|
+
If set to None, a transport is chosen automatically.
|
|
255
272
|
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]):
|
|
256
273
|
Custom options for the client.
|
|
257
274
|
|
|
@@ -360,8 +377,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
360
377
|
|
|
361
378
|
"""
|
|
362
379
|
# Create or coerce a protobuf request object.
|
|
363
|
-
# Quick check: If we got a request object, we should *not* have
|
|
364
|
-
#
|
|
380
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
381
|
+
# gotten any keyword arguments that map to the request.
|
|
365
382
|
has_flattened_params = any([parent])
|
|
366
383
|
if request is not None and has_flattened_params:
|
|
367
384
|
raise ValueError(
|
|
@@ -369,7 +386,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
369
386
|
"the individual field arguments should be set."
|
|
370
387
|
)
|
|
371
388
|
|
|
372
|
-
request
|
|
389
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
390
|
+
# there are no flattened fields), or create one.
|
|
391
|
+
if not isinstance(request, secure_source_manager.ListInstancesRequest):
|
|
392
|
+
request = secure_source_manager.ListInstancesRequest(request)
|
|
373
393
|
|
|
374
394
|
# If we have keyword arguments corresponding to fields on the
|
|
375
395
|
# request, apply these.
|
|
@@ -378,20 +398,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
378
398
|
|
|
379
399
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
380
400
|
# and friendly error handling.
|
|
381
|
-
rpc =
|
|
382
|
-
self._client._transport.list_instances
|
|
383
|
-
|
|
384
|
-
initial=1.0,
|
|
385
|
-
maximum=10.0,
|
|
386
|
-
multiplier=1.3,
|
|
387
|
-
predicate=retries.if_exception_type(
|
|
388
|
-
core_exceptions.ServiceUnavailable,
|
|
389
|
-
),
|
|
390
|
-
deadline=60.0,
|
|
391
|
-
),
|
|
392
|
-
default_timeout=60.0,
|
|
393
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
394
|
-
)
|
|
401
|
+
rpc = self._client._transport._wrapped_methods[
|
|
402
|
+
self._client._transport.list_instances
|
|
403
|
+
]
|
|
395
404
|
|
|
396
405
|
# Certain fields should be provided within the metadata header;
|
|
397
406
|
# add these here.
|
|
@@ -481,8 +490,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
481
490
|
|
|
482
491
|
"""
|
|
483
492
|
# Create or coerce a protobuf request object.
|
|
484
|
-
# Quick check: If we got a request object, we should *not* have
|
|
485
|
-
#
|
|
493
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
494
|
+
# gotten any keyword arguments that map to the request.
|
|
486
495
|
has_flattened_params = any([name])
|
|
487
496
|
if request is not None and has_flattened_params:
|
|
488
497
|
raise ValueError(
|
|
@@ -490,7 +499,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
490
499
|
"the individual field arguments should be set."
|
|
491
500
|
)
|
|
492
501
|
|
|
493
|
-
request
|
|
502
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
503
|
+
# there are no flattened fields), or create one.
|
|
504
|
+
if not isinstance(request, secure_source_manager.GetInstanceRequest):
|
|
505
|
+
request = secure_source_manager.GetInstanceRequest(request)
|
|
494
506
|
|
|
495
507
|
# If we have keyword arguments corresponding to fields on the
|
|
496
508
|
# request, apply these.
|
|
@@ -499,20 +511,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
499
511
|
|
|
500
512
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
501
513
|
# and friendly error handling.
|
|
502
|
-
rpc =
|
|
503
|
-
self._client._transport.get_instance
|
|
504
|
-
|
|
505
|
-
initial=1.0,
|
|
506
|
-
maximum=10.0,
|
|
507
|
-
multiplier=1.3,
|
|
508
|
-
predicate=retries.if_exception_type(
|
|
509
|
-
core_exceptions.ServiceUnavailable,
|
|
510
|
-
),
|
|
511
|
-
deadline=60.0,
|
|
512
|
-
),
|
|
513
|
-
default_timeout=60.0,
|
|
514
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
515
|
-
)
|
|
514
|
+
rpc = self._client._transport._wrapped_methods[
|
|
515
|
+
self._client._transport.get_instance
|
|
516
|
+
]
|
|
516
517
|
|
|
517
518
|
# Certain fields should be provided within the metadata header;
|
|
518
519
|
# add these here.
|
|
@@ -619,8 +620,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
619
620
|
|
|
620
621
|
"""
|
|
621
622
|
# Create or coerce a protobuf request object.
|
|
622
|
-
# Quick check: If we got a request object, we should *not* have
|
|
623
|
-
#
|
|
623
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
624
|
+
# gotten any keyword arguments that map to the request.
|
|
624
625
|
has_flattened_params = any([parent, instance, instance_id])
|
|
625
626
|
if request is not None and has_flattened_params:
|
|
626
627
|
raise ValueError(
|
|
@@ -628,7 +629,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
628
629
|
"the individual field arguments should be set."
|
|
629
630
|
)
|
|
630
631
|
|
|
631
|
-
request
|
|
632
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
633
|
+
# there are no flattened fields), or create one.
|
|
634
|
+
if not isinstance(request, secure_source_manager.CreateInstanceRequest):
|
|
635
|
+
request = secure_source_manager.CreateInstanceRequest(request)
|
|
632
636
|
|
|
633
637
|
# If we have keyword arguments corresponding to fields on the
|
|
634
638
|
# request, apply these.
|
|
@@ -641,11 +645,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
641
645
|
|
|
642
646
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
643
647
|
# and friendly error handling.
|
|
644
|
-
rpc =
|
|
645
|
-
self._client._transport.create_instance
|
|
646
|
-
|
|
647
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
648
|
-
)
|
|
648
|
+
rpc = self._client._transport._wrapped_methods[
|
|
649
|
+
self._client._transport.create_instance
|
|
650
|
+
]
|
|
649
651
|
|
|
650
652
|
# Certain fields should be provided within the metadata header;
|
|
651
653
|
# add these here.
|
|
@@ -750,8 +752,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
750
752
|
|
|
751
753
|
"""
|
|
752
754
|
# Create or coerce a protobuf request object.
|
|
753
|
-
# Quick check: If we got a request object, we should *not* have
|
|
754
|
-
#
|
|
755
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
756
|
+
# gotten any keyword arguments that map to the request.
|
|
755
757
|
has_flattened_params = any([name])
|
|
756
758
|
if request is not None and has_flattened_params:
|
|
757
759
|
raise ValueError(
|
|
@@ -759,7 +761,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
759
761
|
"the individual field arguments should be set."
|
|
760
762
|
)
|
|
761
763
|
|
|
762
|
-
request
|
|
764
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
765
|
+
# there are no flattened fields), or create one.
|
|
766
|
+
if not isinstance(request, secure_source_manager.DeleteInstanceRequest):
|
|
767
|
+
request = secure_source_manager.DeleteInstanceRequest(request)
|
|
763
768
|
|
|
764
769
|
# If we have keyword arguments corresponding to fields on the
|
|
765
770
|
# request, apply these.
|
|
@@ -768,11 +773,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
768
773
|
|
|
769
774
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
770
775
|
# and friendly error handling.
|
|
771
|
-
rpc =
|
|
772
|
-
self._client._transport.delete_instance
|
|
773
|
-
|
|
774
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
775
|
-
)
|
|
776
|
+
rpc = self._client._transport._wrapped_methods[
|
|
777
|
+
self._client._transport.delete_instance
|
|
778
|
+
]
|
|
776
779
|
|
|
777
780
|
# Certain fields should be provided within the metadata header;
|
|
778
781
|
# add these here.
|
|
@@ -869,8 +872,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
869
872
|
|
|
870
873
|
"""
|
|
871
874
|
# Create or coerce a protobuf request object.
|
|
872
|
-
# Quick check: If we got a request object, we should *not* have
|
|
873
|
-
#
|
|
875
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
876
|
+
# gotten any keyword arguments that map to the request.
|
|
874
877
|
has_flattened_params = any([parent])
|
|
875
878
|
if request is not None and has_flattened_params:
|
|
876
879
|
raise ValueError(
|
|
@@ -878,7 +881,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
878
881
|
"the individual field arguments should be set."
|
|
879
882
|
)
|
|
880
883
|
|
|
881
|
-
request
|
|
884
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
885
|
+
# there are no flattened fields), or create one.
|
|
886
|
+
if not isinstance(request, secure_source_manager.ListRepositoriesRequest):
|
|
887
|
+
request = secure_source_manager.ListRepositoriesRequest(request)
|
|
882
888
|
|
|
883
889
|
# If we have keyword arguments corresponding to fields on the
|
|
884
890
|
# request, apply these.
|
|
@@ -887,20 +893,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
887
893
|
|
|
888
894
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
889
895
|
# and friendly error handling.
|
|
890
|
-
rpc =
|
|
891
|
-
self._client._transport.list_repositories
|
|
892
|
-
|
|
893
|
-
initial=1.0,
|
|
894
|
-
maximum=10.0,
|
|
895
|
-
multiplier=1.3,
|
|
896
|
-
predicate=retries.if_exception_type(
|
|
897
|
-
core_exceptions.ServiceUnavailable,
|
|
898
|
-
),
|
|
899
|
-
deadline=60.0,
|
|
900
|
-
),
|
|
901
|
-
default_timeout=60.0,
|
|
902
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
903
|
-
)
|
|
896
|
+
rpc = self._client._transport._wrapped_methods[
|
|
897
|
+
self._client._transport.list_repositories
|
|
898
|
+
]
|
|
904
899
|
|
|
905
900
|
# Certain fields should be provided within the metadata header;
|
|
906
901
|
# add these here.
|
|
@@ -997,8 +992,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
997
992
|
|
|
998
993
|
"""
|
|
999
994
|
# Create or coerce a protobuf request object.
|
|
1000
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1001
|
-
#
|
|
995
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
996
|
+
# gotten any keyword arguments that map to the request.
|
|
1002
997
|
has_flattened_params = any([name])
|
|
1003
998
|
if request is not None and has_flattened_params:
|
|
1004
999
|
raise ValueError(
|
|
@@ -1006,7 +1001,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
1006
1001
|
"the individual field arguments should be set."
|
|
1007
1002
|
)
|
|
1008
1003
|
|
|
1009
|
-
request
|
|
1004
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
1005
|
+
# there are no flattened fields), or create one.
|
|
1006
|
+
if not isinstance(request, secure_source_manager.GetRepositoryRequest):
|
|
1007
|
+
request = secure_source_manager.GetRepositoryRequest(request)
|
|
1010
1008
|
|
|
1011
1009
|
# If we have keyword arguments corresponding to fields on the
|
|
1012
1010
|
# request, apply these.
|
|
@@ -1015,20 +1013,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1015
1013
|
|
|
1016
1014
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1017
1015
|
# and friendly error handling.
|
|
1018
|
-
rpc =
|
|
1019
|
-
self._client._transport.get_repository
|
|
1020
|
-
|
|
1021
|
-
initial=1.0,
|
|
1022
|
-
maximum=10.0,
|
|
1023
|
-
multiplier=1.3,
|
|
1024
|
-
predicate=retries.if_exception_type(
|
|
1025
|
-
core_exceptions.ServiceUnavailable,
|
|
1026
|
-
),
|
|
1027
|
-
deadline=60.0,
|
|
1028
|
-
),
|
|
1029
|
-
default_timeout=60.0,
|
|
1030
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1031
|
-
)
|
|
1016
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1017
|
+
self._client._transport.get_repository
|
|
1018
|
+
]
|
|
1032
1019
|
|
|
1033
1020
|
# Certain fields should be provided within the metadata header;
|
|
1034
1021
|
# add these here.
|
|
@@ -1140,8 +1127,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1140
1127
|
|
|
1141
1128
|
"""
|
|
1142
1129
|
# Create or coerce a protobuf request object.
|
|
1143
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1144
|
-
#
|
|
1130
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1131
|
+
# gotten any keyword arguments that map to the request.
|
|
1145
1132
|
has_flattened_params = any([parent, repository, repository_id])
|
|
1146
1133
|
if request is not None and has_flattened_params:
|
|
1147
1134
|
raise ValueError(
|
|
@@ -1149,7 +1136,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
1149
1136
|
"the individual field arguments should be set."
|
|
1150
1137
|
)
|
|
1151
1138
|
|
|
1152
|
-
request
|
|
1139
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
1140
|
+
# there are no flattened fields), or create one.
|
|
1141
|
+
if not isinstance(request, secure_source_manager.CreateRepositoryRequest):
|
|
1142
|
+
request = secure_source_manager.CreateRepositoryRequest(request)
|
|
1153
1143
|
|
|
1154
1144
|
# If we have keyword arguments corresponding to fields on the
|
|
1155
1145
|
# request, apply these.
|
|
@@ -1162,11 +1152,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1162
1152
|
|
|
1163
1153
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1164
1154
|
# and friendly error handling.
|
|
1165
|
-
rpc =
|
|
1166
|
-
self._client._transport.create_repository
|
|
1167
|
-
|
|
1168
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1169
|
-
)
|
|
1155
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1156
|
+
self._client._transport.create_repository
|
|
1157
|
+
]
|
|
1170
1158
|
|
|
1171
1159
|
# Certain fields should be provided within the metadata header;
|
|
1172
1160
|
# add these here.
|
|
@@ -1276,8 +1264,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1276
1264
|
|
|
1277
1265
|
"""
|
|
1278
1266
|
# Create or coerce a protobuf request object.
|
|
1279
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1280
|
-
#
|
|
1267
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1268
|
+
# gotten any keyword arguments that map to the request.
|
|
1281
1269
|
has_flattened_params = any([name])
|
|
1282
1270
|
if request is not None and has_flattened_params:
|
|
1283
1271
|
raise ValueError(
|
|
@@ -1285,7 +1273,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
1285
1273
|
"the individual field arguments should be set."
|
|
1286
1274
|
)
|
|
1287
1275
|
|
|
1288
|
-
request
|
|
1276
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
1277
|
+
# there are no flattened fields), or create one.
|
|
1278
|
+
if not isinstance(request, secure_source_manager.DeleteRepositoryRequest):
|
|
1279
|
+
request = secure_source_manager.DeleteRepositoryRequest(request)
|
|
1289
1280
|
|
|
1290
1281
|
# If we have keyword arguments corresponding to fields on the
|
|
1291
1282
|
# request, apply these.
|
|
@@ -1294,11 +1285,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1294
1285
|
|
|
1295
1286
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1296
1287
|
# and friendly error handling.
|
|
1297
|
-
rpc =
|
|
1298
|
-
self._client._transport.delete_repository
|
|
1299
|
-
|
|
1300
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1301
|
-
)
|
|
1288
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1289
|
+
self._client._transport.delete_repository
|
|
1290
|
+
]
|
|
1302
1291
|
|
|
1303
1292
|
# Certain fields should be provided within the metadata header;
|
|
1304
1293
|
# add these here.
|
|
@@ -1419,8 +1408,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1419
1408
|
|
|
1420
1409
|
"""
|
|
1421
1410
|
# Create or coerce a protobuf request object.
|
|
1422
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1423
|
-
#
|
|
1411
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1412
|
+
# gotten any keyword arguments that map to the request.
|
|
1424
1413
|
has_flattened_params = any([resource])
|
|
1425
1414
|
if request is not None and has_flattened_params:
|
|
1426
1415
|
raise ValueError(
|
|
@@ -1428,31 +1417,18 @@ class SecureSourceManagerAsyncClient:
|
|
|
1428
1417
|
"the individual field arguments should be set."
|
|
1429
1418
|
)
|
|
1430
1419
|
|
|
1431
|
-
# The request isn't a proto-plus wrapped type,
|
|
1432
|
-
#
|
|
1420
|
+
# - The request isn't a proto-plus wrapped type,
|
|
1421
|
+
# so it must be constructed via keyword expansion.
|
|
1433
1422
|
if isinstance(request, dict):
|
|
1434
1423
|
request = iam_policy_pb2.GetIamPolicyRequest(**request)
|
|
1435
1424
|
elif not request:
|
|
1436
|
-
request = iam_policy_pb2.GetIamPolicyRequest(
|
|
1437
|
-
resource=resource,
|
|
1438
|
-
)
|
|
1425
|
+
request = iam_policy_pb2.GetIamPolicyRequest(resource=resource)
|
|
1439
1426
|
|
|
1440
1427
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1441
1428
|
# and friendly error handling.
|
|
1442
|
-
rpc =
|
|
1443
|
-
self._client._transport.get_iam_policy_repo
|
|
1444
|
-
|
|
1445
|
-
initial=1.0,
|
|
1446
|
-
maximum=10.0,
|
|
1447
|
-
multiplier=1.3,
|
|
1448
|
-
predicate=retries.if_exception_type(
|
|
1449
|
-
core_exceptions.ServiceUnavailable,
|
|
1450
|
-
),
|
|
1451
|
-
deadline=60.0,
|
|
1452
|
-
),
|
|
1453
|
-
default_timeout=60.0,
|
|
1454
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1455
|
-
)
|
|
1429
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1430
|
+
self._client._transport.get_iam_policy_repo
|
|
1431
|
+
]
|
|
1456
1432
|
|
|
1457
1433
|
# Certain fields should be provided within the metadata header;
|
|
1458
1434
|
# add these here.
|
|
@@ -1565,8 +1541,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1565
1541
|
|
|
1566
1542
|
"""
|
|
1567
1543
|
# Create or coerce a protobuf request object.
|
|
1568
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1569
|
-
#
|
|
1544
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1545
|
+
# gotten any keyword arguments that map to the request.
|
|
1570
1546
|
has_flattened_params = any([resource])
|
|
1571
1547
|
if request is not None and has_flattened_params:
|
|
1572
1548
|
raise ValueError(
|
|
@@ -1574,22 +1550,18 @@ class SecureSourceManagerAsyncClient:
|
|
|
1574
1550
|
"the individual field arguments should be set."
|
|
1575
1551
|
)
|
|
1576
1552
|
|
|
1577
|
-
# The request isn't a proto-plus wrapped type,
|
|
1578
|
-
#
|
|
1553
|
+
# - The request isn't a proto-plus wrapped type,
|
|
1554
|
+
# so it must be constructed via keyword expansion.
|
|
1579
1555
|
if isinstance(request, dict):
|
|
1580
1556
|
request = iam_policy_pb2.SetIamPolicyRequest(**request)
|
|
1581
1557
|
elif not request:
|
|
1582
|
-
request = iam_policy_pb2.SetIamPolicyRequest(
|
|
1583
|
-
resource=resource,
|
|
1584
|
-
)
|
|
1558
|
+
request = iam_policy_pb2.SetIamPolicyRequest(resource=resource)
|
|
1585
1559
|
|
|
1586
1560
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1587
1561
|
# and friendly error handling.
|
|
1588
|
-
rpc =
|
|
1589
|
-
self._client._transport.set_iam_policy_repo
|
|
1590
|
-
|
|
1591
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1592
|
-
)
|
|
1562
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1563
|
+
self._client._transport.set_iam_policy_repo
|
|
1564
|
+
]
|
|
1593
1565
|
|
|
1594
1566
|
# Certain fields should be provided within the metadata header;
|
|
1595
1567
|
# add these here.
|
|
@@ -1674,8 +1646,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1674
1646
|
Response message for TestIamPermissions method.
|
|
1675
1647
|
"""
|
|
1676
1648
|
# Create or coerce a protobuf request object.
|
|
1677
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1678
|
-
#
|
|
1649
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1650
|
+
# gotten any keyword arguments that map to the request.
|
|
1679
1651
|
has_flattened_params = any([resource])
|
|
1680
1652
|
if request is not None and has_flattened_params:
|
|
1681
1653
|
raise ValueError(
|
|
@@ -1683,22 +1655,18 @@ class SecureSourceManagerAsyncClient:
|
|
|
1683
1655
|
"the individual field arguments should be set."
|
|
1684
1656
|
)
|
|
1685
1657
|
|
|
1686
|
-
# The request isn't a proto-plus wrapped type,
|
|
1687
|
-
#
|
|
1658
|
+
# - The request isn't a proto-plus wrapped type,
|
|
1659
|
+
# so it must be constructed via keyword expansion.
|
|
1688
1660
|
if isinstance(request, dict):
|
|
1689
1661
|
request = iam_policy_pb2.TestIamPermissionsRequest(**request)
|
|
1690
1662
|
elif not request:
|
|
1691
|
-
request = iam_policy_pb2.TestIamPermissionsRequest(
|
|
1692
|
-
resource=resource,
|
|
1693
|
-
)
|
|
1663
|
+
request = iam_policy_pb2.TestIamPermissionsRequest(resource=resource)
|
|
1694
1664
|
|
|
1695
1665
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1696
1666
|
# and friendly error handling.
|
|
1697
|
-
rpc =
|
|
1698
|
-
self._client._transport.test_iam_permissions_repo
|
|
1699
|
-
|
|
1700
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1701
|
-
)
|
|
1667
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1668
|
+
self._client._transport.test_iam_permissions_repo
|
|
1669
|
+
]
|
|
1702
1670
|
|
|
1703
1671
|
# Certain fields should be provided within the metadata header;
|
|
1704
1672
|
# add these here.
|