google-cloud-securesourcemanager 0.3.0__tar.gz → 0.4.0__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.3.0/google_cloud_securesourcemanager.egg-info → google_cloud_securesourcemanager-0.4.0}/PKG-INFO +6 -8
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/README.rst +2 -2
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager/gapic_version.py +1 -1
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/__init__.py +1 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/gapic_version.py +1 -1
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/async_client.py +115 -61
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/client.py +119 -74
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/pagers.py +20 -20
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/__init__.py +1 -3
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/base.py +29 -10
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc.py +65 -57
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc_asyncio.py +64 -56
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest.py +143 -229
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest_base.py +6 -2
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/types/secure_source_manager.py +10 -2
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0/google_cloud_securesourcemanager.egg-info}/PKG-INFO +6 -8
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google_cloud_securesourcemanager.egg-info/requires.txt +2 -2
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/setup.py +3 -5
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/tests/unit/gapic/securesourcemanager_v1/test_secure_source_manager.py +1462 -979
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/LICENSE +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/MANIFEST.in +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager/__init__.py +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager/py.typed +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/gapic_metadata.json +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/py.typed +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/__init__.py +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/services/secure_source_manager/__init__.py +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google/cloud/securesourcemanager_v1/types/__init__.py +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google_cloud_securesourcemanager.egg-info/SOURCES.txt +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google_cloud_securesourcemanager.egg-info/dependency_links.txt +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google_cloud_securesourcemanager.egg-info/not-zip-safe +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/google_cloud_securesourcemanager.egg-info/top_level.txt +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/setup.cfg +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/tests/__init__.py +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/tests/unit/__init__.py +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/tests/unit/gapic/securesourcemanager_v1/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-securesourcemanager
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
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
|
|
@@ -12,8 +12,6 @@ Classifier: Intended Audience :: Developers
|
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -22,15 +20,15 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
23
21
|
Classifier: Operating System :: OS Independent
|
|
24
22
|
Classifier: Topic :: Internet
|
|
25
|
-
Requires-Python: >=3.
|
|
23
|
+
Requires-Python: >=3.9
|
|
26
24
|
License-File: LICENSE
|
|
27
|
-
Requires-Dist: google-api-core[grpc]
|
|
25
|
+
Requires-Dist: google-api-core[grpc]<3.0.0,>=2.11.0
|
|
28
26
|
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
|
|
29
27
|
Requires-Dist: grpcio<2.0.0,>=1.33.2
|
|
30
28
|
Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
|
|
31
29
|
Requires-Dist: proto-plus<2.0.0,>=1.22.3
|
|
32
30
|
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
33
|
-
Requires-Dist: protobuf
|
|
31
|
+
Requires-Dist: protobuf<8.0.0,>=4.25.8
|
|
34
32
|
Requires-Dist: grpc-google-iam-v1<1.0.0,>=0.14.0
|
|
35
33
|
Dynamic: author
|
|
36
34
|
Dynamic: author-email
|
|
@@ -107,14 +105,14 @@ Supported Python Versions
|
|
|
107
105
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
108
106
|
Python.
|
|
109
107
|
|
|
110
|
-
Python >= 3.
|
|
108
|
+
Python >= 3.9, including 3.14
|
|
111
109
|
|
|
112
110
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
113
111
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
114
112
|
|
|
115
113
|
Unsupported Python Versions
|
|
116
114
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
117
|
-
Python <= 3.
|
|
115
|
+
Python <= 3.8
|
|
118
116
|
|
|
119
117
|
If you are using an `end-of-life`_
|
|
120
118
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
{google_cloud_securesourcemanager-0.3.0 → google_cloud_securesourcemanager-0.4.0}/README.rst
RENAMED
|
@@ -61,14 +61,14 @@ Supported Python Versions
|
|
|
61
61
|
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
|
|
62
62
|
Python.
|
|
63
63
|
|
|
64
|
-
Python >= 3.
|
|
64
|
+
Python >= 3.9, including 3.14
|
|
65
65
|
|
|
66
66
|
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
|
|
67
67
|
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
|
|
68
68
|
|
|
69
69
|
Unsupported Python Versions
|
|
70
70
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
71
|
-
Python <= 3.
|
|
71
|
+
Python <= 3.8
|
|
72
72
|
|
|
73
73
|
If you are using an `end-of-life`_
|
|
74
74
|
version of Python, we recommend that you update as soon as possible to an actively supported version.
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
# See the License for the specific language governing permissions and
|
|
14
14
|
# limitations under the License.
|
|
15
15
|
#
|
|
16
|
-
from collections import OrderedDict
|
|
17
16
|
import logging as std_logging
|
|
18
17
|
import re
|
|
18
|
+
from collections import OrderedDict
|
|
19
19
|
from typing import (
|
|
20
20
|
Callable,
|
|
21
21
|
Dict,
|
|
@@ -29,13 +29,13 @@ from typing import (
|
|
|
29
29
|
Union,
|
|
30
30
|
)
|
|
31
31
|
|
|
32
|
+
import google.protobuf
|
|
32
33
|
from google.api_core import exceptions as core_exceptions
|
|
33
34
|
from google.api_core import gapic_v1
|
|
34
35
|
from google.api_core import retry_async as retries
|
|
35
36
|
from google.api_core.client_options import ClientOptions
|
|
36
37
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
37
38
|
from google.oauth2 import service_account # type: ignore
|
|
38
|
-
import google.protobuf
|
|
39
39
|
|
|
40
40
|
from google.cloud.securesourcemanager_v1 import gapic_version as package_version
|
|
41
41
|
|
|
@@ -44,15 +44,19 @@ try:
|
|
|
44
44
|
except AttributeError: # pragma: NO COVER
|
|
45
45
|
OptionalRetry = Union[retries.AsyncRetry, object, None] # type: ignore
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
import google.api_core.operation as operation # type: ignore
|
|
48
|
+
import google.api_core.operation_async as operation_async # type: ignore
|
|
49
|
+
import google.iam.v1.iam_policy_pb2 as iam_policy_pb2 # type: ignore
|
|
50
|
+
import google.iam.v1.policy_pb2 as policy_pb2 # type: ignore
|
|
51
|
+
import google.protobuf.empty_pb2 as empty_pb2 # type: ignore
|
|
52
|
+
import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
|
|
53
|
+
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
|
|
49
54
|
from google.cloud.location import locations_pb2 # type: ignore
|
|
50
|
-
from google.iam.v1 import
|
|
51
|
-
|
|
55
|
+
from google.iam.v1 import (
|
|
56
|
+
iam_policy_pb2, # type: ignore
|
|
57
|
+
policy_pb2, # type: ignore
|
|
58
|
+
)
|
|
52
59
|
from google.longrunning import operations_pb2 # type: ignore
|
|
53
|
-
from google.protobuf import empty_pb2 # type: ignore
|
|
54
|
-
from google.protobuf import field_mask_pb2 # type: ignore
|
|
55
|
-
from google.protobuf import timestamp_pb2 # type: ignore
|
|
56
60
|
|
|
57
61
|
from google.cloud.securesourcemanager_v1.services.secure_source_manager import pagers
|
|
58
62
|
from google.cloud.securesourcemanager_v1.types import secure_source_manager
|
|
@@ -165,7 +169,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
165
169
|
Returns:
|
|
166
170
|
SecureSourceManagerAsyncClient: The constructed client.
|
|
167
171
|
"""
|
|
168
|
-
|
|
172
|
+
sa_info_func = (
|
|
173
|
+
SecureSourceManagerClient.from_service_account_info.__func__ # type: ignore
|
|
174
|
+
)
|
|
175
|
+
return sa_info_func(SecureSourceManagerAsyncClient, info, *args, **kwargs)
|
|
169
176
|
|
|
170
177
|
@classmethod
|
|
171
178
|
def from_service_account_file(cls, filename: str, *args, **kwargs):
|
|
@@ -181,7 +188,10 @@ class SecureSourceManagerAsyncClient:
|
|
|
181
188
|
Returns:
|
|
182
189
|
SecureSourceManagerAsyncClient: The constructed client.
|
|
183
190
|
"""
|
|
184
|
-
|
|
191
|
+
sa_file_func = (
|
|
192
|
+
SecureSourceManagerClient.from_service_account_file.__func__ # type: ignore
|
|
193
|
+
)
|
|
194
|
+
return sa_file_func(SecureSourceManagerAsyncClient, filename, *args, **kwargs)
|
|
185
195
|
|
|
186
196
|
from_service_account_json = from_service_account_file
|
|
187
197
|
|
|
@@ -219,7 +229,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
219
229
|
Raises:
|
|
220
230
|
google.auth.exceptions.MutualTLSChannelError: If any errors happen.
|
|
221
231
|
"""
|
|
222
|
-
return SecureSourceManagerClient.get_mtls_endpoint_and_cert_source(
|
|
232
|
+
return SecureSourceManagerClient.get_mtls_endpoint_and_cert_source(
|
|
233
|
+
client_options
|
|
234
|
+
) # type: ignore
|
|
223
235
|
|
|
224
236
|
@property
|
|
225
237
|
def transport(self) -> SecureSourceManagerTransport:
|
|
@@ -231,7 +243,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
231
243
|
return self._client.transport
|
|
232
244
|
|
|
233
245
|
@property
|
|
234
|
-
def api_endpoint(self):
|
|
246
|
+
def api_endpoint(self) -> str:
|
|
235
247
|
"""Return the API endpoint used by the client instance.
|
|
236
248
|
|
|
237
249
|
Returns:
|
|
@@ -2222,7 +2234,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
2222
2234
|
# client as shown in:
|
|
2223
2235
|
# https://googleapis.dev/python/google-api-core/latest/client_options.html
|
|
2224
2236
|
from google.cloud import securesourcemanager_v1
|
|
2225
|
-
|
|
2237
|
+
import google.iam.v1.iam_policy_pb2 as iam_policy_pb2 # type: ignore
|
|
2226
2238
|
|
|
2227
2239
|
async def sample_get_iam_policy_repo():
|
|
2228
2240
|
# Create a client
|
|
@@ -2360,7 +2372,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
2360
2372
|
# client as shown in:
|
|
2361
2373
|
# https://googleapis.dev/python/google-api-core/latest/client_options.html
|
|
2362
2374
|
from google.cloud import securesourcemanager_v1
|
|
2363
|
-
|
|
2375
|
+
import google.iam.v1.iam_policy_pb2 as iam_policy_pb2 # type: ignore
|
|
2364
2376
|
|
|
2365
2377
|
async def sample_set_iam_policy_repo():
|
|
2366
2378
|
# Create a client
|
|
@@ -2499,7 +2511,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
2499
2511
|
# client as shown in:
|
|
2500
2512
|
# https://googleapis.dev/python/google-api-core/latest/client_options.html
|
|
2501
2513
|
from google.cloud import securesourcemanager_v1
|
|
2502
|
-
|
|
2514
|
+
import google.iam.v1.iam_policy_pb2 as iam_policy_pb2 # type: ignore
|
|
2503
2515
|
|
|
2504
2516
|
async def sample_test_iam_permissions_repo():
|
|
2505
2517
|
# Create a client
|
|
@@ -7196,7 +7208,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7196
7208
|
|
|
7197
7209
|
async def list_operations(
|
|
7198
7210
|
self,
|
|
7199
|
-
request: Optional[operations_pb2.ListOperationsRequest] = None,
|
|
7211
|
+
request: Optional[Union[operations_pb2.ListOperationsRequest, dict]] = None,
|
|
7200
7212
|
*,
|
|
7201
7213
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7202
7214
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7222,8 +7234,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7222
7234
|
# Create or coerce a protobuf request object.
|
|
7223
7235
|
# The request isn't a proto-plus wrapped type,
|
|
7224
7236
|
# so it must be constructed via keyword expansion.
|
|
7225
|
-
if
|
|
7226
|
-
|
|
7237
|
+
if request is None:
|
|
7238
|
+
request_pb = operations_pb2.ListOperationsRequest()
|
|
7239
|
+
elif isinstance(request, dict):
|
|
7240
|
+
request_pb = operations_pb2.ListOperationsRequest(**request)
|
|
7241
|
+
else:
|
|
7242
|
+
request_pb = request
|
|
7227
7243
|
|
|
7228
7244
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7229
7245
|
# and friendly error handling.
|
|
@@ -7232,7 +7248,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7232
7248
|
# Certain fields should be provided within the metadata header;
|
|
7233
7249
|
# add these here.
|
|
7234
7250
|
metadata = tuple(metadata) + (
|
|
7235
|
-
gapic_v1.routing_header.to_grpc_metadata((("name",
|
|
7251
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
|
|
7236
7252
|
)
|
|
7237
7253
|
|
|
7238
7254
|
# Validate the universe domain.
|
|
@@ -7240,7 +7256,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7240
7256
|
|
|
7241
7257
|
# Send the request.
|
|
7242
7258
|
response = await rpc(
|
|
7243
|
-
|
|
7259
|
+
request_pb,
|
|
7244
7260
|
retry=retry,
|
|
7245
7261
|
timeout=timeout,
|
|
7246
7262
|
metadata=metadata,
|
|
@@ -7251,7 +7267,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7251
7267
|
|
|
7252
7268
|
async def get_operation(
|
|
7253
7269
|
self,
|
|
7254
|
-
request: Optional[operations_pb2.GetOperationRequest] = None,
|
|
7270
|
+
request: Optional[Union[operations_pb2.GetOperationRequest, dict]] = None,
|
|
7255
7271
|
*,
|
|
7256
7272
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7257
7273
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7277,8 +7293,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7277
7293
|
# Create or coerce a protobuf request object.
|
|
7278
7294
|
# The request isn't a proto-plus wrapped type,
|
|
7279
7295
|
# so it must be constructed via keyword expansion.
|
|
7280
|
-
if
|
|
7281
|
-
|
|
7296
|
+
if request is None:
|
|
7297
|
+
request_pb = operations_pb2.GetOperationRequest()
|
|
7298
|
+
elif isinstance(request, dict):
|
|
7299
|
+
request_pb = operations_pb2.GetOperationRequest(**request)
|
|
7300
|
+
else:
|
|
7301
|
+
request_pb = request
|
|
7282
7302
|
|
|
7283
7303
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7284
7304
|
# and friendly error handling.
|
|
@@ -7287,7 +7307,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7287
7307
|
# Certain fields should be provided within the metadata header;
|
|
7288
7308
|
# add these here.
|
|
7289
7309
|
metadata = tuple(metadata) + (
|
|
7290
|
-
gapic_v1.routing_header.to_grpc_metadata((("name",
|
|
7310
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
|
|
7291
7311
|
)
|
|
7292
7312
|
|
|
7293
7313
|
# Validate the universe domain.
|
|
@@ -7295,7 +7315,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7295
7315
|
|
|
7296
7316
|
# Send the request.
|
|
7297
7317
|
response = await rpc(
|
|
7298
|
-
|
|
7318
|
+
request_pb,
|
|
7299
7319
|
retry=retry,
|
|
7300
7320
|
timeout=timeout,
|
|
7301
7321
|
metadata=metadata,
|
|
@@ -7306,7 +7326,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7306
7326
|
|
|
7307
7327
|
async def delete_operation(
|
|
7308
7328
|
self,
|
|
7309
|
-
request: Optional[operations_pb2.DeleteOperationRequest] = None,
|
|
7329
|
+
request: Optional[Union[operations_pb2.DeleteOperationRequest, dict]] = None,
|
|
7310
7330
|
*,
|
|
7311
7331
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7312
7332
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7336,8 +7356,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7336
7356
|
# Create or coerce a protobuf request object.
|
|
7337
7357
|
# The request isn't a proto-plus wrapped type,
|
|
7338
7358
|
# so it must be constructed via keyword expansion.
|
|
7339
|
-
if
|
|
7340
|
-
|
|
7359
|
+
if request is None:
|
|
7360
|
+
request_pb = operations_pb2.DeleteOperationRequest()
|
|
7361
|
+
elif isinstance(request, dict):
|
|
7362
|
+
request_pb = operations_pb2.DeleteOperationRequest(**request)
|
|
7363
|
+
else:
|
|
7364
|
+
request_pb = request
|
|
7341
7365
|
|
|
7342
7366
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7343
7367
|
# and friendly error handling.
|
|
@@ -7346,7 +7370,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7346
7370
|
# Certain fields should be provided within the metadata header;
|
|
7347
7371
|
# add these here.
|
|
7348
7372
|
metadata = tuple(metadata) + (
|
|
7349
|
-
gapic_v1.routing_header.to_grpc_metadata((("name",
|
|
7373
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
|
|
7350
7374
|
)
|
|
7351
7375
|
|
|
7352
7376
|
# Validate the universe domain.
|
|
@@ -7354,7 +7378,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7354
7378
|
|
|
7355
7379
|
# Send the request.
|
|
7356
7380
|
await rpc(
|
|
7357
|
-
|
|
7381
|
+
request_pb,
|
|
7358
7382
|
retry=retry,
|
|
7359
7383
|
timeout=timeout,
|
|
7360
7384
|
metadata=metadata,
|
|
@@ -7362,7 +7386,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7362
7386
|
|
|
7363
7387
|
async def cancel_operation(
|
|
7364
7388
|
self,
|
|
7365
|
-
request: Optional[operations_pb2.CancelOperationRequest] = None,
|
|
7389
|
+
request: Optional[Union[operations_pb2.CancelOperationRequest, dict]] = None,
|
|
7366
7390
|
*,
|
|
7367
7391
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7368
7392
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7391,8 +7415,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7391
7415
|
# Create or coerce a protobuf request object.
|
|
7392
7416
|
# The request isn't a proto-plus wrapped type,
|
|
7393
7417
|
# so it must be constructed via keyword expansion.
|
|
7394
|
-
if
|
|
7395
|
-
|
|
7418
|
+
if request is None:
|
|
7419
|
+
request_pb = operations_pb2.CancelOperationRequest()
|
|
7420
|
+
elif isinstance(request, dict):
|
|
7421
|
+
request_pb = operations_pb2.CancelOperationRequest(**request)
|
|
7422
|
+
else:
|
|
7423
|
+
request_pb = request
|
|
7396
7424
|
|
|
7397
7425
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7398
7426
|
# and friendly error handling.
|
|
@@ -7401,7 +7429,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7401
7429
|
# Certain fields should be provided within the metadata header;
|
|
7402
7430
|
# add these here.
|
|
7403
7431
|
metadata = tuple(metadata) + (
|
|
7404
|
-
gapic_v1.routing_header.to_grpc_metadata((("name",
|
|
7432
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
|
|
7405
7433
|
)
|
|
7406
7434
|
|
|
7407
7435
|
# Validate the universe domain.
|
|
@@ -7409,7 +7437,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7409
7437
|
|
|
7410
7438
|
# Send the request.
|
|
7411
7439
|
await rpc(
|
|
7412
|
-
|
|
7440
|
+
request_pb,
|
|
7413
7441
|
retry=retry,
|
|
7414
7442
|
timeout=timeout,
|
|
7415
7443
|
metadata=metadata,
|
|
@@ -7417,7 +7445,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7417
7445
|
|
|
7418
7446
|
async def set_iam_policy(
|
|
7419
7447
|
self,
|
|
7420
|
-
request: Optional[iam_policy_pb2.SetIamPolicyRequest] = None,
|
|
7448
|
+
request: Optional[Union[iam_policy_pb2.SetIamPolicyRequest, dict]] = None,
|
|
7421
7449
|
*,
|
|
7422
7450
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7423
7451
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7509,8 +7537,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7509
7537
|
|
|
7510
7538
|
# The request isn't a proto-plus wrapped type,
|
|
7511
7539
|
# so it must be constructed via keyword expansion.
|
|
7512
|
-
if
|
|
7513
|
-
|
|
7540
|
+
if request is None:
|
|
7541
|
+
request_pb = iam_policy_pb2.SetIamPolicyRequest()
|
|
7542
|
+
elif isinstance(request, dict):
|
|
7543
|
+
request_pb = iam_policy_pb2.SetIamPolicyRequest(**request)
|
|
7544
|
+
else:
|
|
7545
|
+
request_pb = request
|
|
7514
7546
|
|
|
7515
7547
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7516
7548
|
# and friendly error handling.
|
|
@@ -7519,7 +7551,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
7519
7551
|
# Certain fields should be provided within the metadata header;
|
|
7520
7552
|
# add these here.
|
|
7521
7553
|
metadata = tuple(metadata) + (
|
|
7522
|
-
gapic_v1.routing_header.to_grpc_metadata(
|
|
7554
|
+
gapic_v1.routing_header.to_grpc_metadata(
|
|
7555
|
+
(("resource", request_pb.resource),)
|
|
7556
|
+
),
|
|
7523
7557
|
)
|
|
7524
7558
|
|
|
7525
7559
|
# Validate the universe domain.
|
|
@@ -7527,7 +7561,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7527
7561
|
|
|
7528
7562
|
# Send the request.
|
|
7529
7563
|
response = await rpc(
|
|
7530
|
-
|
|
7564
|
+
request_pb,
|
|
7531
7565
|
retry=retry,
|
|
7532
7566
|
timeout=timeout,
|
|
7533
7567
|
metadata=metadata,
|
|
@@ -7538,7 +7572,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7538
7572
|
|
|
7539
7573
|
async def get_iam_policy(
|
|
7540
7574
|
self,
|
|
7541
|
-
request: Optional[iam_policy_pb2.GetIamPolicyRequest] = None,
|
|
7575
|
+
request: Optional[Union[iam_policy_pb2.GetIamPolicyRequest, dict]] = None,
|
|
7542
7576
|
*,
|
|
7543
7577
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7544
7578
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7631,8 +7665,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7631
7665
|
|
|
7632
7666
|
# The request isn't a proto-plus wrapped type,
|
|
7633
7667
|
# so it must be constructed via keyword expansion.
|
|
7634
|
-
if
|
|
7635
|
-
|
|
7668
|
+
if request is None:
|
|
7669
|
+
request_pb = iam_policy_pb2.GetIamPolicyRequest()
|
|
7670
|
+
elif isinstance(request, dict):
|
|
7671
|
+
request_pb = iam_policy_pb2.GetIamPolicyRequest(**request)
|
|
7672
|
+
else:
|
|
7673
|
+
request_pb = request
|
|
7636
7674
|
|
|
7637
7675
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7638
7676
|
# and friendly error handling.
|
|
@@ -7641,7 +7679,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
7641
7679
|
# Certain fields should be provided within the metadata header;
|
|
7642
7680
|
# add these here.
|
|
7643
7681
|
metadata = tuple(metadata) + (
|
|
7644
|
-
gapic_v1.routing_header.to_grpc_metadata(
|
|
7682
|
+
gapic_v1.routing_header.to_grpc_metadata(
|
|
7683
|
+
(("resource", request_pb.resource),)
|
|
7684
|
+
),
|
|
7645
7685
|
)
|
|
7646
7686
|
|
|
7647
7687
|
# Validate the universe domain.
|
|
@@ -7649,7 +7689,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7649
7689
|
|
|
7650
7690
|
# Send the request.
|
|
7651
7691
|
response = await rpc(
|
|
7652
|
-
|
|
7692
|
+
request_pb,
|
|
7653
7693
|
retry=retry,
|
|
7654
7694
|
timeout=timeout,
|
|
7655
7695
|
metadata=metadata,
|
|
@@ -7660,7 +7700,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7660
7700
|
|
|
7661
7701
|
async def test_iam_permissions(
|
|
7662
7702
|
self,
|
|
7663
|
-
request: Optional[iam_policy_pb2.TestIamPermissionsRequest] = None,
|
|
7703
|
+
request: Optional[Union[iam_policy_pb2.TestIamPermissionsRequest, dict]] = None,
|
|
7664
7704
|
*,
|
|
7665
7705
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7666
7706
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7691,8 +7731,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7691
7731
|
|
|
7692
7732
|
# The request isn't a proto-plus wrapped type,
|
|
7693
7733
|
# so it must be constructed via keyword expansion.
|
|
7694
|
-
if
|
|
7695
|
-
|
|
7734
|
+
if request is None:
|
|
7735
|
+
request_pb = iam_policy_pb2.TestIamPermissionsRequest()
|
|
7736
|
+
elif isinstance(request, dict):
|
|
7737
|
+
request_pb = iam_policy_pb2.TestIamPermissionsRequest(**request)
|
|
7738
|
+
else:
|
|
7739
|
+
request_pb = request
|
|
7696
7740
|
|
|
7697
7741
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7698
7742
|
# and friendly error handling.
|
|
@@ -7703,7 +7747,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
7703
7747
|
# Certain fields should be provided within the metadata header;
|
|
7704
7748
|
# add these here.
|
|
7705
7749
|
metadata = tuple(metadata) + (
|
|
7706
|
-
gapic_v1.routing_header.to_grpc_metadata(
|
|
7750
|
+
gapic_v1.routing_header.to_grpc_metadata(
|
|
7751
|
+
(("resource", request_pb.resource),)
|
|
7752
|
+
),
|
|
7707
7753
|
)
|
|
7708
7754
|
|
|
7709
7755
|
# Validate the universe domain.
|
|
@@ -7711,7 +7757,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7711
7757
|
|
|
7712
7758
|
# Send the request.
|
|
7713
7759
|
response = await rpc(
|
|
7714
|
-
|
|
7760
|
+
request_pb,
|
|
7715
7761
|
retry=retry,
|
|
7716
7762
|
timeout=timeout,
|
|
7717
7763
|
metadata=metadata,
|
|
@@ -7722,7 +7768,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7722
7768
|
|
|
7723
7769
|
async def get_location(
|
|
7724
7770
|
self,
|
|
7725
|
-
request: Optional[locations_pb2.GetLocationRequest] = None,
|
|
7771
|
+
request: Optional[Union[locations_pb2.GetLocationRequest, dict]] = None,
|
|
7726
7772
|
*,
|
|
7727
7773
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7728
7774
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7748,8 +7794,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7748
7794
|
# Create or coerce a protobuf request object.
|
|
7749
7795
|
# The request isn't a proto-plus wrapped type,
|
|
7750
7796
|
# so it must be constructed via keyword expansion.
|
|
7751
|
-
if
|
|
7752
|
-
|
|
7797
|
+
if request is None:
|
|
7798
|
+
request_pb = locations_pb2.GetLocationRequest()
|
|
7799
|
+
elif isinstance(request, dict):
|
|
7800
|
+
request_pb = locations_pb2.GetLocationRequest(**request)
|
|
7801
|
+
else:
|
|
7802
|
+
request_pb = request
|
|
7753
7803
|
|
|
7754
7804
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7755
7805
|
# and friendly error handling.
|
|
@@ -7758,7 +7808,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7758
7808
|
# Certain fields should be provided within the metadata header;
|
|
7759
7809
|
# add these here.
|
|
7760
7810
|
metadata = tuple(metadata) + (
|
|
7761
|
-
gapic_v1.routing_header.to_grpc_metadata((("name",
|
|
7811
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
|
|
7762
7812
|
)
|
|
7763
7813
|
|
|
7764
7814
|
# Validate the universe domain.
|
|
@@ -7766,7 +7816,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7766
7816
|
|
|
7767
7817
|
# Send the request.
|
|
7768
7818
|
response = await rpc(
|
|
7769
|
-
|
|
7819
|
+
request_pb,
|
|
7770
7820
|
retry=retry,
|
|
7771
7821
|
timeout=timeout,
|
|
7772
7822
|
metadata=metadata,
|
|
@@ -7777,7 +7827,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7777
7827
|
|
|
7778
7828
|
async def list_locations(
|
|
7779
7829
|
self,
|
|
7780
|
-
request: Optional[locations_pb2.ListLocationsRequest] = None,
|
|
7830
|
+
request: Optional[Union[locations_pb2.ListLocationsRequest, dict]] = None,
|
|
7781
7831
|
*,
|
|
7782
7832
|
retry: OptionalRetry = gapic_v1.method.DEFAULT,
|
|
7783
7833
|
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
|
|
@@ -7803,8 +7853,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
7803
7853
|
# Create or coerce a protobuf request object.
|
|
7804
7854
|
# The request isn't a proto-plus wrapped type,
|
|
7805
7855
|
# so it must be constructed via keyword expansion.
|
|
7806
|
-
if
|
|
7807
|
-
|
|
7856
|
+
if request is None:
|
|
7857
|
+
request_pb = locations_pb2.ListLocationsRequest()
|
|
7858
|
+
elif isinstance(request, dict):
|
|
7859
|
+
request_pb = locations_pb2.ListLocationsRequest(**request)
|
|
7860
|
+
else:
|
|
7861
|
+
request_pb = request
|
|
7808
7862
|
|
|
7809
7863
|
# Wrap the RPC method; this adds retry and timeout information,
|
|
7810
7864
|
# and friendly error handling.
|
|
@@ -7813,7 +7867,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7813
7867
|
# Certain fields should be provided within the metadata header;
|
|
7814
7868
|
# add these here.
|
|
7815
7869
|
metadata = tuple(metadata) + (
|
|
7816
|
-
gapic_v1.routing_header.to_grpc_metadata((("name",
|
|
7870
|
+
gapic_v1.routing_header.to_grpc_metadata((("name", request_pb.name),)),
|
|
7817
7871
|
)
|
|
7818
7872
|
|
|
7819
7873
|
# Validate the universe domain.
|
|
@@ -7821,7 +7875,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
7821
7875
|
|
|
7822
7876
|
# Send the request.
|
|
7823
7877
|
response = await rpc(
|
|
7824
|
-
|
|
7878
|
+
request_pb,
|
|
7825
7879
|
retry=retry,
|
|
7826
7880
|
timeout=timeout,
|
|
7827
7881
|
metadata=metadata,
|