google-cloud-securesourcemanager 0.1.4__tar.gz → 0.1.6__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.4/google_cloud_securesourcemanager.egg-info → google-cloud-securesourcemanager-0.1.6}/PKG-INFO +4 -4
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/README.rst +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager/gapic_version.py +2 -2
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/gapic_version.py +2 -2
- {google-cloud-securesourcemanager-0.1.4/tests/unit → google-cloud-securesourcemanager-0.1.6/google/cloud/securesourcemanager_v1/services}/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/async_client.py +110 -150
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/client.py +68 -67
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/pagers.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/base.py +4 -2
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc.py +18 -12
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc_asyncio.py +124 -12
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/types/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/types/secure_source_manager.py +1 -1
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6/google_cloud_securesourcemanager.egg-info}/PKG-INFO +4 -4
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google_cloud_securesourcemanager.egg-info/requires.txt +2 -2
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/setup.py +5 -3
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/tests/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.4/tests/unit/gapic → google-cloud-securesourcemanager-0.1.6/tests/unit}/__init__.py +1 -1
- {google-cloud-securesourcemanager-0.1.4/google/cloud/securesourcemanager_v1/services → google-cloud-securesourcemanager-0.1.6/tests/unit/gapic}/__init__.py +1 -1
- google-cloud-securesourcemanager-0.1.6/tests/unit/gapic/securesourcemanager_v1/__init__.py +15 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/tests/unit/gapic/securesourcemanager_v1/test_secure_source_manager.py +2037 -59
- google-cloud-securesourcemanager-0.1.4/tests/unit/gapic/securesourcemanager_v1/__init__.py +0 -15
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/LICENSE +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/MANIFEST.in +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager/py.typed +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/gapic_metadata.json +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google/cloud/securesourcemanager_v1/py.typed +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google_cloud_securesourcemanager.egg-info/SOURCES.txt +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google_cloud_securesourcemanager.egg-info/dependency_links.txt +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google_cloud_securesourcemanager.egg-info/not-zip-safe +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/google_cloud_securesourcemanager.egg-info/top_level.txt +0 -0
- {google-cloud-securesourcemanager-0.1.4 → google-cloud-securesourcemanager-0.1.6}/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.6
|
|
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
|
|
@@ -23,9 +23,9 @@ Classifier: Topic :: Internet
|
|
|
23
23
|
Requires-Python: >=3.7
|
|
24
24
|
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
|
-
Requires-Dist: google-auth
|
|
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.4 → google-cloud-securesourcemanager-0.1.6}/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.6" # {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.6" # {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,
|
|
@@ -237,7 +238,13 @@ class SecureSourceManagerAsyncClient:
|
|
|
237
238
|
self,
|
|
238
239
|
*,
|
|
239
240
|
credentials: Optional[ga_credentials.Credentials] = None,
|
|
240
|
-
transport:
|
|
241
|
+
transport: Optional[
|
|
242
|
+
Union[
|
|
243
|
+
str,
|
|
244
|
+
SecureSourceManagerTransport,
|
|
245
|
+
Callable[..., SecureSourceManagerTransport],
|
|
246
|
+
]
|
|
247
|
+
] = "grpc_asyncio",
|
|
241
248
|
client_options: Optional[ClientOptions] = None,
|
|
242
249
|
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
|
|
243
250
|
) -> None:
|
|
@@ -249,9 +256,11 @@ class SecureSourceManagerAsyncClient:
|
|
|
249
256
|
credentials identify the application to the service; if none
|
|
250
257
|
are specified, the client will attempt to ascertain the
|
|
251
258
|
credentials from the environment.
|
|
252
|
-
transport (Union[str,
|
|
253
|
-
transport to use
|
|
254
|
-
|
|
259
|
+
transport (Optional[Union[str,SecureSourceManagerTransport,Callable[..., SecureSourceManagerTransport]]]):
|
|
260
|
+
The transport to use, or a Callable that constructs and returns a new transport to use.
|
|
261
|
+
If a Callable is given, it will be called with the same set of initialization
|
|
262
|
+
arguments as used in the SecureSourceManagerTransport constructor.
|
|
263
|
+
If set to None, a transport is chosen automatically.
|
|
255
264
|
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]):
|
|
256
265
|
Custom options for the client.
|
|
257
266
|
|
|
@@ -360,8 +369,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
360
369
|
|
|
361
370
|
"""
|
|
362
371
|
# Create or coerce a protobuf request object.
|
|
363
|
-
# Quick check: If we got a request object, we should *not* have
|
|
364
|
-
#
|
|
372
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
373
|
+
# gotten any keyword arguments that map to the request.
|
|
365
374
|
has_flattened_params = any([parent])
|
|
366
375
|
if request is not None and has_flattened_params:
|
|
367
376
|
raise ValueError(
|
|
@@ -369,7 +378,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
369
378
|
"the individual field arguments should be set."
|
|
370
379
|
)
|
|
371
380
|
|
|
372
|
-
request
|
|
381
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
382
|
+
# there are no flattened fields), or create one.
|
|
383
|
+
if not isinstance(request, secure_source_manager.ListInstancesRequest):
|
|
384
|
+
request = secure_source_manager.ListInstancesRequest(request)
|
|
373
385
|
|
|
374
386
|
# If we have keyword arguments corresponding to fields on the
|
|
375
387
|
# request, apply these.
|
|
@@ -378,20 +390,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
378
390
|
|
|
379
391
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
380
392
|
# 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
|
-
)
|
|
393
|
+
rpc = self._client._transport._wrapped_methods[
|
|
394
|
+
self._client._transport.list_instances
|
|
395
|
+
]
|
|
395
396
|
|
|
396
397
|
# Certain fields should be provided within the metadata header;
|
|
397
398
|
# add these here.
|
|
@@ -481,8 +482,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
481
482
|
|
|
482
483
|
"""
|
|
483
484
|
# Create or coerce a protobuf request object.
|
|
484
|
-
# Quick check: If we got a request object, we should *not* have
|
|
485
|
-
#
|
|
485
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
486
|
+
# gotten any keyword arguments that map to the request.
|
|
486
487
|
has_flattened_params = any([name])
|
|
487
488
|
if request is not None and has_flattened_params:
|
|
488
489
|
raise ValueError(
|
|
@@ -490,7 +491,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
490
491
|
"the individual field arguments should be set."
|
|
491
492
|
)
|
|
492
493
|
|
|
493
|
-
request
|
|
494
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
495
|
+
# there are no flattened fields), or create one.
|
|
496
|
+
if not isinstance(request, secure_source_manager.GetInstanceRequest):
|
|
497
|
+
request = secure_source_manager.GetInstanceRequest(request)
|
|
494
498
|
|
|
495
499
|
# If we have keyword arguments corresponding to fields on the
|
|
496
500
|
# request, apply these.
|
|
@@ -499,20 +503,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
499
503
|
|
|
500
504
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
501
505
|
# 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
|
-
)
|
|
506
|
+
rpc = self._client._transport._wrapped_methods[
|
|
507
|
+
self._client._transport.get_instance
|
|
508
|
+
]
|
|
516
509
|
|
|
517
510
|
# Certain fields should be provided within the metadata header;
|
|
518
511
|
# add these here.
|
|
@@ -619,8 +612,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
619
612
|
|
|
620
613
|
"""
|
|
621
614
|
# Create or coerce a protobuf request object.
|
|
622
|
-
# Quick check: If we got a request object, we should *not* have
|
|
623
|
-
#
|
|
615
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
616
|
+
# gotten any keyword arguments that map to the request.
|
|
624
617
|
has_flattened_params = any([parent, instance, instance_id])
|
|
625
618
|
if request is not None and has_flattened_params:
|
|
626
619
|
raise ValueError(
|
|
@@ -628,7 +621,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
628
621
|
"the individual field arguments should be set."
|
|
629
622
|
)
|
|
630
623
|
|
|
631
|
-
request
|
|
624
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
625
|
+
# there are no flattened fields), or create one.
|
|
626
|
+
if not isinstance(request, secure_source_manager.CreateInstanceRequest):
|
|
627
|
+
request = secure_source_manager.CreateInstanceRequest(request)
|
|
632
628
|
|
|
633
629
|
# If we have keyword arguments corresponding to fields on the
|
|
634
630
|
# request, apply these.
|
|
@@ -641,11 +637,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
641
637
|
|
|
642
638
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
643
639
|
# and friendly error handling.
|
|
644
|
-
rpc =
|
|
645
|
-
self._client._transport.create_instance
|
|
646
|
-
|
|
647
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
648
|
-
)
|
|
640
|
+
rpc = self._client._transport._wrapped_methods[
|
|
641
|
+
self._client._transport.create_instance
|
|
642
|
+
]
|
|
649
643
|
|
|
650
644
|
# Certain fields should be provided within the metadata header;
|
|
651
645
|
# add these here.
|
|
@@ -750,8 +744,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
750
744
|
|
|
751
745
|
"""
|
|
752
746
|
# Create or coerce a protobuf request object.
|
|
753
|
-
# Quick check: If we got a request object, we should *not* have
|
|
754
|
-
#
|
|
747
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
748
|
+
# gotten any keyword arguments that map to the request.
|
|
755
749
|
has_flattened_params = any([name])
|
|
756
750
|
if request is not None and has_flattened_params:
|
|
757
751
|
raise ValueError(
|
|
@@ -759,7 +753,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
759
753
|
"the individual field arguments should be set."
|
|
760
754
|
)
|
|
761
755
|
|
|
762
|
-
request
|
|
756
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
757
|
+
# there are no flattened fields), or create one.
|
|
758
|
+
if not isinstance(request, secure_source_manager.DeleteInstanceRequest):
|
|
759
|
+
request = secure_source_manager.DeleteInstanceRequest(request)
|
|
763
760
|
|
|
764
761
|
# If we have keyword arguments corresponding to fields on the
|
|
765
762
|
# request, apply these.
|
|
@@ -768,11 +765,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
768
765
|
|
|
769
766
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
770
767
|
# and friendly error handling.
|
|
771
|
-
rpc =
|
|
772
|
-
self._client._transport.delete_instance
|
|
773
|
-
|
|
774
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
775
|
-
)
|
|
768
|
+
rpc = self._client._transport._wrapped_methods[
|
|
769
|
+
self._client._transport.delete_instance
|
|
770
|
+
]
|
|
776
771
|
|
|
777
772
|
# Certain fields should be provided within the metadata header;
|
|
778
773
|
# add these here.
|
|
@@ -869,8 +864,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
869
864
|
|
|
870
865
|
"""
|
|
871
866
|
# Create or coerce a protobuf request object.
|
|
872
|
-
# Quick check: If we got a request object, we should *not* have
|
|
873
|
-
#
|
|
867
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
868
|
+
# gotten any keyword arguments that map to the request.
|
|
874
869
|
has_flattened_params = any([parent])
|
|
875
870
|
if request is not None and has_flattened_params:
|
|
876
871
|
raise ValueError(
|
|
@@ -878,7 +873,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
878
873
|
"the individual field arguments should be set."
|
|
879
874
|
)
|
|
880
875
|
|
|
881
|
-
request
|
|
876
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
877
|
+
# there are no flattened fields), or create one.
|
|
878
|
+
if not isinstance(request, secure_source_manager.ListRepositoriesRequest):
|
|
879
|
+
request = secure_source_manager.ListRepositoriesRequest(request)
|
|
882
880
|
|
|
883
881
|
# If we have keyword arguments corresponding to fields on the
|
|
884
882
|
# request, apply these.
|
|
@@ -887,20 +885,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
887
885
|
|
|
888
886
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
889
887
|
# 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
|
-
)
|
|
888
|
+
rpc = self._client._transport._wrapped_methods[
|
|
889
|
+
self._client._transport.list_repositories
|
|
890
|
+
]
|
|
904
891
|
|
|
905
892
|
# Certain fields should be provided within the metadata header;
|
|
906
893
|
# add these here.
|
|
@@ -997,8 +984,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
997
984
|
|
|
998
985
|
"""
|
|
999
986
|
# Create or coerce a protobuf request object.
|
|
1000
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1001
|
-
#
|
|
987
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
988
|
+
# gotten any keyword arguments that map to the request.
|
|
1002
989
|
has_flattened_params = any([name])
|
|
1003
990
|
if request is not None and has_flattened_params:
|
|
1004
991
|
raise ValueError(
|
|
@@ -1006,7 +993,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
1006
993
|
"the individual field arguments should be set."
|
|
1007
994
|
)
|
|
1008
995
|
|
|
1009
|
-
request
|
|
996
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
997
|
+
# there are no flattened fields), or create one.
|
|
998
|
+
if not isinstance(request, secure_source_manager.GetRepositoryRequest):
|
|
999
|
+
request = secure_source_manager.GetRepositoryRequest(request)
|
|
1010
1000
|
|
|
1011
1001
|
# If we have keyword arguments corresponding to fields on the
|
|
1012
1002
|
# request, apply these.
|
|
@@ -1015,20 +1005,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1015
1005
|
|
|
1016
1006
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1017
1007
|
# 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
|
-
)
|
|
1008
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1009
|
+
self._client._transport.get_repository
|
|
1010
|
+
]
|
|
1032
1011
|
|
|
1033
1012
|
# Certain fields should be provided within the metadata header;
|
|
1034
1013
|
# add these here.
|
|
@@ -1140,8 +1119,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1140
1119
|
|
|
1141
1120
|
"""
|
|
1142
1121
|
# Create or coerce a protobuf request object.
|
|
1143
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1144
|
-
#
|
|
1122
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1123
|
+
# gotten any keyword arguments that map to the request.
|
|
1145
1124
|
has_flattened_params = any([parent, repository, repository_id])
|
|
1146
1125
|
if request is not None and has_flattened_params:
|
|
1147
1126
|
raise ValueError(
|
|
@@ -1149,7 +1128,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
1149
1128
|
"the individual field arguments should be set."
|
|
1150
1129
|
)
|
|
1151
1130
|
|
|
1152
|
-
request
|
|
1131
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
1132
|
+
# there are no flattened fields), or create one.
|
|
1133
|
+
if not isinstance(request, secure_source_manager.CreateRepositoryRequest):
|
|
1134
|
+
request = secure_source_manager.CreateRepositoryRequest(request)
|
|
1153
1135
|
|
|
1154
1136
|
# If we have keyword arguments corresponding to fields on the
|
|
1155
1137
|
# request, apply these.
|
|
@@ -1162,11 +1144,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1162
1144
|
|
|
1163
1145
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1164
1146
|
# and friendly error handling.
|
|
1165
|
-
rpc =
|
|
1166
|
-
self._client._transport.create_repository
|
|
1167
|
-
|
|
1168
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1169
|
-
)
|
|
1147
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1148
|
+
self._client._transport.create_repository
|
|
1149
|
+
]
|
|
1170
1150
|
|
|
1171
1151
|
# Certain fields should be provided within the metadata header;
|
|
1172
1152
|
# add these here.
|
|
@@ -1276,8 +1256,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1276
1256
|
|
|
1277
1257
|
"""
|
|
1278
1258
|
# Create or coerce a protobuf request object.
|
|
1279
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1280
|
-
#
|
|
1259
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1260
|
+
# gotten any keyword arguments that map to the request.
|
|
1281
1261
|
has_flattened_params = any([name])
|
|
1282
1262
|
if request is not None and has_flattened_params:
|
|
1283
1263
|
raise ValueError(
|
|
@@ -1285,7 +1265,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
1285
1265
|
"the individual field arguments should be set."
|
|
1286
1266
|
)
|
|
1287
1267
|
|
|
1288
|
-
request
|
|
1268
|
+
# - Use the request object if provided (there's no risk of modifying the input as
|
|
1269
|
+
# there are no flattened fields), or create one.
|
|
1270
|
+
if not isinstance(request, secure_source_manager.DeleteRepositoryRequest):
|
|
1271
|
+
request = secure_source_manager.DeleteRepositoryRequest(request)
|
|
1289
1272
|
|
|
1290
1273
|
# If we have keyword arguments corresponding to fields on the
|
|
1291
1274
|
# request, apply these.
|
|
@@ -1294,11 +1277,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1294
1277
|
|
|
1295
1278
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1296
1279
|
# and friendly error handling.
|
|
1297
|
-
rpc =
|
|
1298
|
-
self._client._transport.delete_repository
|
|
1299
|
-
|
|
1300
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1301
|
-
)
|
|
1280
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1281
|
+
self._client._transport.delete_repository
|
|
1282
|
+
]
|
|
1302
1283
|
|
|
1303
1284
|
# Certain fields should be provided within the metadata header;
|
|
1304
1285
|
# add these here.
|
|
@@ -1419,8 +1400,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1419
1400
|
|
|
1420
1401
|
"""
|
|
1421
1402
|
# Create or coerce a protobuf request object.
|
|
1422
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1423
|
-
#
|
|
1403
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1404
|
+
# gotten any keyword arguments that map to the request.
|
|
1424
1405
|
has_flattened_params = any([resource])
|
|
1425
1406
|
if request is not None and has_flattened_params:
|
|
1426
1407
|
raise ValueError(
|
|
@@ -1428,31 +1409,18 @@ class SecureSourceManagerAsyncClient:
|
|
|
1428
1409
|
"the individual field arguments should be set."
|
|
1429
1410
|
)
|
|
1430
1411
|
|
|
1431
|
-
# The request isn't a proto-plus wrapped type,
|
|
1432
|
-
#
|
|
1412
|
+
# - The request isn't a proto-plus wrapped type,
|
|
1413
|
+
# so it must be constructed via keyword expansion.
|
|
1433
1414
|
if isinstance(request, dict):
|
|
1434
1415
|
request = iam_policy_pb2.GetIamPolicyRequest(**request)
|
|
1435
1416
|
elif not request:
|
|
1436
|
-
request = iam_policy_pb2.GetIamPolicyRequest(
|
|
1437
|
-
resource=resource,
|
|
1438
|
-
)
|
|
1417
|
+
request = iam_policy_pb2.GetIamPolicyRequest(resource=resource)
|
|
1439
1418
|
|
|
1440
1419
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1441
1420
|
# 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
|
-
)
|
|
1421
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1422
|
+
self._client._transport.get_iam_policy_repo
|
|
1423
|
+
]
|
|
1456
1424
|
|
|
1457
1425
|
# Certain fields should be provided within the metadata header;
|
|
1458
1426
|
# add these here.
|
|
@@ -1565,8 +1533,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1565
1533
|
|
|
1566
1534
|
"""
|
|
1567
1535
|
# Create or coerce a protobuf request object.
|
|
1568
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1569
|
-
#
|
|
1536
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1537
|
+
# gotten any keyword arguments that map to the request.
|
|
1570
1538
|
has_flattened_params = any([resource])
|
|
1571
1539
|
if request is not None and has_flattened_params:
|
|
1572
1540
|
raise ValueError(
|
|
@@ -1574,22 +1542,18 @@ class SecureSourceManagerAsyncClient:
|
|
|
1574
1542
|
"the individual field arguments should be set."
|
|
1575
1543
|
)
|
|
1576
1544
|
|
|
1577
|
-
# The request isn't a proto-plus wrapped type,
|
|
1578
|
-
#
|
|
1545
|
+
# - The request isn't a proto-plus wrapped type,
|
|
1546
|
+
# so it must be constructed via keyword expansion.
|
|
1579
1547
|
if isinstance(request, dict):
|
|
1580
1548
|
request = iam_policy_pb2.SetIamPolicyRequest(**request)
|
|
1581
1549
|
elif not request:
|
|
1582
|
-
request = iam_policy_pb2.SetIamPolicyRequest(
|
|
1583
|
-
resource=resource,
|
|
1584
|
-
)
|
|
1550
|
+
request = iam_policy_pb2.SetIamPolicyRequest(resource=resource)
|
|
1585
1551
|
|
|
1586
1552
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1587
1553
|
# and friendly error handling.
|
|
1588
|
-
rpc =
|
|
1589
|
-
self._client._transport.set_iam_policy_repo
|
|
1590
|
-
|
|
1591
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1592
|
-
)
|
|
1554
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1555
|
+
self._client._transport.set_iam_policy_repo
|
|
1556
|
+
]
|
|
1593
1557
|
|
|
1594
1558
|
# Certain fields should be provided within the metadata header;
|
|
1595
1559
|
# add these here.
|
|
@@ -1674,8 +1638,8 @@ class SecureSourceManagerAsyncClient:
|
|
|
1674
1638
|
Response message for TestIamPermissions method.
|
|
1675
1639
|
"""
|
|
1676
1640
|
# Create or coerce a protobuf request object.
|
|
1677
|
-
# Quick check: If we got a request object, we should *not* have
|
|
1678
|
-
#
|
|
1641
|
+
# - Quick check: If we got a request object, we should *not* have
|
|
1642
|
+
# gotten any keyword arguments that map to the request.
|
|
1679
1643
|
has_flattened_params = any([resource])
|
|
1680
1644
|
if request is not None and has_flattened_params:
|
|
1681
1645
|
raise ValueError(
|
|
@@ -1683,22 +1647,18 @@ class SecureSourceManagerAsyncClient:
|
|
|
1683
1647
|
"the individual field arguments should be set."
|
|
1684
1648
|
)
|
|
1685
1649
|
|
|
1686
|
-
# The request isn't a proto-plus wrapped type,
|
|
1687
|
-
#
|
|
1650
|
+
# - The request isn't a proto-plus wrapped type,
|
|
1651
|
+
# so it must be constructed via keyword expansion.
|
|
1688
1652
|
if isinstance(request, dict):
|
|
1689
1653
|
request = iam_policy_pb2.TestIamPermissionsRequest(**request)
|
|
1690
1654
|
elif not request:
|
|
1691
|
-
request = iam_policy_pb2.TestIamPermissionsRequest(
|
|
1692
|
-
resource=resource,
|
|
1693
|
-
)
|
|
1655
|
+
request = iam_policy_pb2.TestIamPermissionsRequest(resource=resource)
|
|
1694
1656
|
|
|
1695
1657
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
1696
1658
|
# and friendly error handling.
|
|
1697
|
-
rpc =
|
|
1698
|
-
self._client._transport.test_iam_permissions_repo
|
|
1699
|
-
|
|
1700
|
-
client_info=DEFAULT_CLIENT_INFO,
|
|
1701
|
-
)
|
|
1659
|
+
rpc = self._client._transport._wrapped_methods[
|
|
1660
|
+
self._client._transport.test_iam_permissions_repo
|
|
1661
|
+
]
|
|
1702
1662
|
|
|
1703
1663
|
# Certain fields should be provided within the metadata header;
|
|
1704
1664
|
# add these here.
|