google-cloud-securesourcemanager 0.1.1__tar.gz → 0.1.2__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.1/google_cloud_securesourcemanager.egg-info → google-cloud-securesourcemanager-0.1.2}/PKG-INFO +1 -1
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager/gapic_version.py +1 -1
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/gapic_version.py +1 -1
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/async_client.py +112 -14
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/client.py +313 -34
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/base.py +5 -1
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc.py +1 -1
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/grpc_asyncio.py +1 -1
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/rest.py +3 -3
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2/google_cloud_securesourcemanager.egg-info}/PKG-INFO +1 -1
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/tests/unit/gapic/securesourcemanager_v1/test_secure_source_manager.py +802 -353
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/LICENSE +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/MANIFEST.in +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/README.rst +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager/py.typed +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/gapic_metadata.json +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/py.typed +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/pagers.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/services/secure_source_manager/transports/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/types/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google/cloud/securesourcemanager_v1/types/secure_source_manager.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google_cloud_securesourcemanager.egg-info/SOURCES.txt +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google_cloud_securesourcemanager.egg-info/dependency_links.txt +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google_cloud_securesourcemanager.egg-info/not-zip-safe +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google_cloud_securesourcemanager.egg-info/requires.txt +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/google_cloud_securesourcemanager.egg-info/top_level.txt +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/setup.cfg +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/setup.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/tests/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/tests/unit/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/tests/unit/gapic/__init__.py +0 -0
- {google-cloud-securesourcemanager-0.1.1 → google-cloud-securesourcemanager-0.1.2}/tests/unit/gapic/securesourcemanager_v1/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-securesourcemanager
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
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
|
|
@@ -38,9 +38,9 @@ from google.oauth2 import service_account # type: ignore
|
|
|
38
38
|
from google.cloud.securesourcemanager_v1 import gapic_version as package_version
|
|
39
39
|
|
|
40
40
|
try:
|
|
41
|
-
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
|
|
41
|
+
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault, None]
|
|
42
42
|
except AttributeError: # pragma: NO COVER
|
|
43
|
-
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore
|
|
43
|
+
OptionalRetry = Union[retries.AsyncRetry, object, None] # type: ignore
|
|
44
44
|
|
|
45
45
|
from google.api_core import operation # type: ignore
|
|
46
46
|
from google.api_core import operation_async # type: ignore
|
|
@@ -89,8 +89,12 @@ class SecureSourceManagerAsyncClient:
|
|
|
89
89
|
|
|
90
90
|
_client: SecureSourceManagerClient
|
|
91
91
|
|
|
92
|
+
# Copy defaults from the synchronous client for use here.
|
|
93
|
+
# Note: DEFAULT_ENDPOINT is deprecated. Use _DEFAULT_ENDPOINT_TEMPLATE instead.
|
|
92
94
|
DEFAULT_ENDPOINT = SecureSourceManagerClient.DEFAULT_ENDPOINT
|
|
93
95
|
DEFAULT_MTLS_ENDPOINT = SecureSourceManagerClient.DEFAULT_MTLS_ENDPOINT
|
|
96
|
+
_DEFAULT_ENDPOINT_TEMPLATE = SecureSourceManagerClient._DEFAULT_ENDPOINT_TEMPLATE
|
|
97
|
+
_DEFAULT_UNIVERSE = SecureSourceManagerClient._DEFAULT_UNIVERSE
|
|
94
98
|
|
|
95
99
|
crypto_key_path = staticmethod(SecureSourceManagerClient.crypto_key_path)
|
|
96
100
|
parse_crypto_key_path = staticmethod(
|
|
@@ -205,6 +209,25 @@ class SecureSourceManagerAsyncClient:
|
|
|
205
209
|
"""
|
|
206
210
|
return self._client.transport
|
|
207
211
|
|
|
212
|
+
@property
|
|
213
|
+
def api_endpoint(self):
|
|
214
|
+
"""Return the API endpoint used by the client instance.
|
|
215
|
+
|
|
216
|
+
Returns:
|
|
217
|
+
str: The API endpoint used by the client instance.
|
|
218
|
+
"""
|
|
219
|
+
return self._client._api_endpoint
|
|
220
|
+
|
|
221
|
+
@property
|
|
222
|
+
def universe_domain(self) -> str:
|
|
223
|
+
"""Return the universe domain used by the client instance.
|
|
224
|
+
|
|
225
|
+
Returns:
|
|
226
|
+
str: The universe domain used
|
|
227
|
+
by the client instance.
|
|
228
|
+
"""
|
|
229
|
+
return self._client._universe_domain
|
|
230
|
+
|
|
208
231
|
get_transport_class = functools.partial(
|
|
209
232
|
type(SecureSourceManagerClient).get_transport_class,
|
|
210
233
|
type(SecureSourceManagerClient),
|
|
@@ -218,7 +241,7 @@ class SecureSourceManagerAsyncClient:
|
|
|
218
241
|
client_options: Optional[ClientOptions] = None,
|
|
219
242
|
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
|
|
220
243
|
) -> None:
|
|
221
|
-
"""Instantiates the secure source manager client.
|
|
244
|
+
"""Instantiates the secure source manager async client.
|
|
222
245
|
|
|
223
246
|
Args:
|
|
224
247
|
credentials (Optional[google.auth.credentials.Credentials]): The
|
|
@@ -229,23 +252,38 @@ class SecureSourceManagerAsyncClient:
|
|
|
229
252
|
transport (Union[str, ~.SecureSourceManagerTransport]): The
|
|
230
253
|
transport to use. If set to None, a transport is chosen
|
|
231
254
|
automatically.
|
|
232
|
-
client_options (ClientOptions):
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
255
|
+
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]):
|
|
256
|
+
Custom options for the client.
|
|
257
|
+
|
|
258
|
+
1. The ``api_endpoint`` property can be used to override the
|
|
259
|
+
default endpoint provided by the client when ``transport`` is
|
|
260
|
+
not explicitly provided. Only if this property is not set and
|
|
261
|
+
``transport`` was not explicitly provided, the endpoint is
|
|
262
|
+
determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment
|
|
263
|
+
variable, which have one of the following values:
|
|
237
264
|
"always" (always use the default mTLS endpoint), "never" (always
|
|
238
|
-
use the default regular endpoint) and "auto" (auto
|
|
239
|
-
default mTLS endpoint if client certificate is present
|
|
240
|
-
the default value).
|
|
241
|
-
|
|
242
|
-
|
|
265
|
+
use the default regular endpoint) and "auto" (auto-switch to the
|
|
266
|
+
default mTLS endpoint if client certificate is present; this is
|
|
267
|
+
the default value).
|
|
268
|
+
|
|
269
|
+
2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable
|
|
243
270
|
is "true", then the ``client_cert_source`` property can be used
|
|
244
|
-
to provide client certificate for
|
|
271
|
+
to provide a client certificate for mTLS transport. If
|
|
245
272
|
not provided, the default SSL client certificate will be used if
|
|
246
273
|
present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not
|
|
247
274
|
set, no client certificate will be used.
|
|
248
275
|
|
|
276
|
+
3. The ``universe_domain`` property can be used to override the
|
|
277
|
+
default "googleapis.com" universe. Note that ``api_endpoint``
|
|
278
|
+
property still takes precedence; and ``universe_domain`` is
|
|
279
|
+
currently not supported for mTLS.
|
|
280
|
+
|
|
281
|
+
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
|
|
282
|
+
The client info used to send a user-agent string along with
|
|
283
|
+
API requests. If ``None``, then default info will be used.
|
|
284
|
+
Generally, you only need to set this if you're developing
|
|
285
|
+
your own client library.
|
|
286
|
+
|
|
249
287
|
Raises:
|
|
250
288
|
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
|
|
251
289
|
creation failed for any reason.
|
|
@@ -361,6 +399,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
361
399
|
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
362
400
|
)
|
|
363
401
|
|
|
402
|
+
# Validate the universe domain.
|
|
403
|
+
self._client._validate_universe_domain()
|
|
404
|
+
|
|
364
405
|
# Send the request.
|
|
365
406
|
response = await rpc(
|
|
366
407
|
request,
|
|
@@ -479,6 +520,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
479
520
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
480
521
|
)
|
|
481
522
|
|
|
523
|
+
# Validate the universe domain.
|
|
524
|
+
self._client._validate_universe_domain()
|
|
525
|
+
|
|
482
526
|
# Send the request.
|
|
483
527
|
response = await rpc(
|
|
484
528
|
request,
|
|
@@ -609,6 +653,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
609
653
|
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
610
654
|
)
|
|
611
655
|
|
|
656
|
+
# Validate the universe domain.
|
|
657
|
+
self._client._validate_universe_domain()
|
|
658
|
+
|
|
612
659
|
# Send the request.
|
|
613
660
|
response = await rpc(
|
|
614
661
|
request,
|
|
@@ -733,6 +780,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
733
780
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
734
781
|
)
|
|
735
782
|
|
|
783
|
+
# Validate the universe domain.
|
|
784
|
+
self._client._validate_universe_domain()
|
|
785
|
+
|
|
736
786
|
# Send the request.
|
|
737
787
|
response = await rpc(
|
|
738
788
|
request,
|
|
@@ -858,6 +908,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
858
908
|
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
859
909
|
)
|
|
860
910
|
|
|
911
|
+
# Validate the universe domain.
|
|
912
|
+
self._client._validate_universe_domain()
|
|
913
|
+
|
|
861
914
|
# Send the request.
|
|
862
915
|
response = await rpc(
|
|
863
916
|
request,
|
|
@@ -983,6 +1036,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
983
1036
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
984
1037
|
)
|
|
985
1038
|
|
|
1039
|
+
# Validate the universe domain.
|
|
1040
|
+
self._client._validate_universe_domain()
|
|
1041
|
+
|
|
986
1042
|
# Send the request.
|
|
987
1043
|
response = await rpc(
|
|
988
1044
|
request,
|
|
@@ -1118,6 +1174,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1118
1174
|
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
1119
1175
|
)
|
|
1120
1176
|
|
|
1177
|
+
# Validate the universe domain.
|
|
1178
|
+
self._client._validate_universe_domain()
|
|
1179
|
+
|
|
1121
1180
|
# Send the request.
|
|
1122
1181
|
response = await rpc(
|
|
1123
1182
|
request,
|
|
@@ -1247,6 +1306,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1247
1306
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
1248
1307
|
)
|
|
1249
1308
|
|
|
1309
|
+
# Validate the universe domain.
|
|
1310
|
+
self._client._validate_universe_domain()
|
|
1311
|
+
|
|
1250
1312
|
# Send the request.
|
|
1251
1313
|
response = await rpc(
|
|
1252
1314
|
request,
|
|
@@ -1398,6 +1460,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1398
1460
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
1399
1461
|
)
|
|
1400
1462
|
|
|
1463
|
+
# Validate the universe domain.
|
|
1464
|
+
self._client._validate_universe_domain()
|
|
1465
|
+
|
|
1401
1466
|
# Send the request.
|
|
1402
1467
|
response = await rpc(
|
|
1403
1468
|
request,
|
|
@@ -1532,6 +1597,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1532
1597
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
1533
1598
|
)
|
|
1534
1599
|
|
|
1600
|
+
# Validate the universe domain.
|
|
1601
|
+
self._client._validate_universe_domain()
|
|
1602
|
+
|
|
1535
1603
|
# Send the request.
|
|
1536
1604
|
response = await rpc(
|
|
1537
1605
|
request,
|
|
@@ -1638,6 +1706,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1638
1706
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
1639
1707
|
)
|
|
1640
1708
|
|
|
1709
|
+
# Validate the universe domain.
|
|
1710
|
+
self._client._validate_universe_domain()
|
|
1711
|
+
|
|
1641
1712
|
# Send the request.
|
|
1642
1713
|
response = await rpc(
|
|
1643
1714
|
request,
|
|
@@ -1692,6 +1763,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1692
1763
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
1693
1764
|
)
|
|
1694
1765
|
|
|
1766
|
+
# Validate the universe domain.
|
|
1767
|
+
self._client._validate_universe_domain()
|
|
1768
|
+
|
|
1695
1769
|
# Send the request.
|
|
1696
1770
|
response = await rpc(
|
|
1697
1771
|
request,
|
|
@@ -1746,6 +1820,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1746
1820
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
1747
1821
|
)
|
|
1748
1822
|
|
|
1823
|
+
# Validate the universe domain.
|
|
1824
|
+
self._client._validate_universe_domain()
|
|
1825
|
+
|
|
1749
1826
|
# Send the request.
|
|
1750
1827
|
response = await rpc(
|
|
1751
1828
|
request,
|
|
@@ -1804,6 +1881,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1804
1881
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
1805
1882
|
)
|
|
1806
1883
|
|
|
1884
|
+
# Validate the universe domain.
|
|
1885
|
+
self._client._validate_universe_domain()
|
|
1886
|
+
|
|
1807
1887
|
# Send the request.
|
|
1808
1888
|
await rpc(
|
|
1809
1889
|
request,
|
|
@@ -1858,6 +1938,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1858
1938
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
1859
1939
|
)
|
|
1860
1940
|
|
|
1941
|
+
# Validate the universe domain.
|
|
1942
|
+
self._client._validate_universe_domain()
|
|
1943
|
+
|
|
1861
1944
|
# Send the request.
|
|
1862
1945
|
await rpc(
|
|
1863
1946
|
request,
|
|
@@ -1975,6 +2058,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
1975
2058
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
1976
2059
|
)
|
|
1977
2060
|
|
|
2061
|
+
# Validate the universe domain.
|
|
2062
|
+
self._client._validate_universe_domain()
|
|
2063
|
+
|
|
1978
2064
|
# Send the request.
|
|
1979
2065
|
response = await rpc(
|
|
1980
2066
|
request,
|
|
@@ -2096,6 +2182,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
2096
2182
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
2097
2183
|
)
|
|
2098
2184
|
|
|
2185
|
+
# Validate the universe domain.
|
|
2186
|
+
self._client._validate_universe_domain()
|
|
2187
|
+
|
|
2099
2188
|
# Send the request.
|
|
2100
2189
|
response = await rpc(
|
|
2101
2190
|
request,
|
|
@@ -2155,6 +2244,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
2155
2244
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
2156
2245
|
)
|
|
2157
2246
|
|
|
2247
|
+
# Validate the universe domain.
|
|
2248
|
+
self._client._validate_universe_domain()
|
|
2249
|
+
|
|
2158
2250
|
# Send the request.
|
|
2159
2251
|
response = await rpc(
|
|
2160
2252
|
request,
|
|
@@ -2209,6 +2301,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
2209
2301
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
2210
2302
|
)
|
|
2211
2303
|
|
|
2304
|
+
# Validate the universe domain.
|
|
2305
|
+
self._client._validate_universe_domain()
|
|
2306
|
+
|
|
2212
2307
|
# Send the request.
|
|
2213
2308
|
response = await rpc(
|
|
2214
2309
|
request,
|
|
@@ -2263,6 +2358,9 @@ class SecureSourceManagerAsyncClient:
|
|
|
2263
2358
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
2264
2359
|
)
|
|
2265
2360
|
|
|
2361
|
+
# Validate the universe domain.
|
|
2362
|
+
self._client._validate_universe_domain()
|
|
2363
|
+
|
|
2266
2364
|
# Send the request.
|
|
2267
2365
|
response = await rpc(
|
|
2268
2366
|
request,
|