google-cloud-beyondcorp-clientgateways 0.4.4__tar.gz → 0.4.5__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-beyondcorp-clientgateways-0.4.4/google_cloud_beyondcorp_clientgateways.egg-info → google-cloud-beyondcorp-clientgateways-0.4.5}/PKG-INFO +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways/gapic_version.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/gapic_version.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/async_client.py +91 -14
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/client.py +294 -34
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/base.py +5 -1
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc_asyncio.py +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/rest.py +3 -3
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5/google_cloud_beyondcorp_clientgateways.egg-info}/PKG-INFO +1 -1
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/tests/unit/gapic/beyondcorp_clientgateways_v1/test_client_gateways_service.py +664 -213
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/LICENSE +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/MANIFEST.in +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/README.rst +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways/py.typed +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/gapic_metadata.json +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/py.typed +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/pagers.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/types/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google/cloud/beyondcorp_clientgateways_v1/types/client_gateways_service.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google_cloud_beyondcorp_clientgateways.egg-info/SOURCES.txt +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google_cloud_beyondcorp_clientgateways.egg-info/dependency_links.txt +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google_cloud_beyondcorp_clientgateways.egg-info/not-zip-safe +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google_cloud_beyondcorp_clientgateways.egg-info/requires.txt +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/google_cloud_beyondcorp_clientgateways.egg-info/top_level.txt +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/setup.cfg +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/setup.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/tests/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/tests/unit/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/tests/unit/gapic/__init__.py +0 -0
- {google-cloud-beyondcorp-clientgateways-0.4.4 → google-cloud-beyondcorp-clientgateways-0.4.5}/tests/unit/gapic/beyondcorp_clientgateways_v1/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: google-cloud-beyondcorp-clientgateways
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.5
|
|
4
4
|
Summary: Google Cloud Beyondcorp Clientgateways API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-beyondcorp-clientgateways
|
|
6
6
|
Author: Google LLC
|
|
@@ -38,9 +38,9 @@ from google.oauth2 import service_account # type: ignore
|
|
|
38
38
|
from google.cloud.beyondcorp_clientgateways_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
|
|
@@ -77,8 +77,12 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
77
77
|
|
|
78
78
|
_client: ClientGatewaysServiceClient
|
|
79
79
|
|
|
80
|
+
# Copy defaults from the synchronous client for use here.
|
|
81
|
+
# Note: DEFAULT_ENDPOINT is deprecated. Use _DEFAULT_ENDPOINT_TEMPLATE instead.
|
|
80
82
|
DEFAULT_ENDPOINT = ClientGatewaysServiceClient.DEFAULT_ENDPOINT
|
|
81
83
|
DEFAULT_MTLS_ENDPOINT = ClientGatewaysServiceClient.DEFAULT_MTLS_ENDPOINT
|
|
84
|
+
_DEFAULT_ENDPOINT_TEMPLATE = ClientGatewaysServiceClient._DEFAULT_ENDPOINT_TEMPLATE
|
|
85
|
+
_DEFAULT_UNIVERSE = ClientGatewaysServiceClient._DEFAULT_UNIVERSE
|
|
82
86
|
|
|
83
87
|
client_gateway_path = staticmethod(ClientGatewaysServiceClient.client_gateway_path)
|
|
84
88
|
parse_client_gateway_path = staticmethod(
|
|
@@ -189,6 +193,25 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
189
193
|
"""
|
|
190
194
|
return self._client.transport
|
|
191
195
|
|
|
196
|
+
@property
|
|
197
|
+
def api_endpoint(self):
|
|
198
|
+
"""Return the API endpoint used by the client instance.
|
|
199
|
+
|
|
200
|
+
Returns:
|
|
201
|
+
str: The API endpoint used by the client instance.
|
|
202
|
+
"""
|
|
203
|
+
return self._client._api_endpoint
|
|
204
|
+
|
|
205
|
+
@property
|
|
206
|
+
def universe_domain(self) -> str:
|
|
207
|
+
"""Return the universe domain used by the client instance.
|
|
208
|
+
|
|
209
|
+
Returns:
|
|
210
|
+
str: The universe domain used
|
|
211
|
+
by the client instance.
|
|
212
|
+
"""
|
|
213
|
+
return self._client._universe_domain
|
|
214
|
+
|
|
192
215
|
get_transport_class = functools.partial(
|
|
193
216
|
type(ClientGatewaysServiceClient).get_transport_class,
|
|
194
217
|
type(ClientGatewaysServiceClient),
|
|
@@ -202,7 +225,7 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
202
225
|
client_options: Optional[ClientOptions] = None,
|
|
203
226
|
client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
|
|
204
227
|
) -> None:
|
|
205
|
-
"""Instantiates the client gateways service client.
|
|
228
|
+
"""Instantiates the client gateways service async client.
|
|
206
229
|
|
|
207
230
|
Args:
|
|
208
231
|
credentials (Optional[google.auth.credentials.Credentials]): The
|
|
@@ -213,23 +236,38 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
213
236
|
transport (Union[str, ~.ClientGatewaysServiceTransport]): The
|
|
214
237
|
transport to use. If set to None, a transport is chosen
|
|
215
238
|
automatically.
|
|
216
|
-
client_options (ClientOptions):
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
239
|
+
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]):
|
|
240
|
+
Custom options for the client.
|
|
241
|
+
|
|
242
|
+
1. The ``api_endpoint`` property can be used to override the
|
|
243
|
+
default endpoint provided by the client when ``transport`` is
|
|
244
|
+
not explicitly provided. Only if this property is not set and
|
|
245
|
+
``transport`` was not explicitly provided, the endpoint is
|
|
246
|
+
determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment
|
|
247
|
+
variable, which have one of the following values:
|
|
221
248
|
"always" (always use the default mTLS endpoint), "never" (always
|
|
222
|
-
use the default regular endpoint) and "auto" (auto
|
|
223
|
-
default mTLS endpoint if client certificate is present
|
|
224
|
-
the default value).
|
|
225
|
-
|
|
226
|
-
|
|
249
|
+
use the default regular endpoint) and "auto" (auto-switch to the
|
|
250
|
+
default mTLS endpoint if client certificate is present; this is
|
|
251
|
+
the default value).
|
|
252
|
+
|
|
253
|
+
2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable
|
|
227
254
|
is "true", then the ``client_cert_source`` property can be used
|
|
228
|
-
to provide client certificate for
|
|
255
|
+
to provide a client certificate for mTLS transport. If
|
|
229
256
|
not provided, the default SSL client certificate will be used if
|
|
230
257
|
present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not
|
|
231
258
|
set, no client certificate will be used.
|
|
232
259
|
|
|
260
|
+
3. The ``universe_domain`` property can be used to override the
|
|
261
|
+
default "googleapis.com" universe. Note that ``api_endpoint``
|
|
262
|
+
property still takes precedence; and ``universe_domain`` is
|
|
263
|
+
currently not supported for mTLS.
|
|
264
|
+
|
|
265
|
+
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
|
|
266
|
+
The client info used to send a user-agent string along with
|
|
267
|
+
API requests. If ``None``, then default info will be used.
|
|
268
|
+
Generally, you only need to set this if you're developing
|
|
269
|
+
your own client library.
|
|
270
|
+
|
|
233
271
|
Raises:
|
|
234
272
|
google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
|
|
235
273
|
creation failed for any reason.
|
|
@@ -338,6 +376,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
338
376
|
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
339
377
|
)
|
|
340
378
|
|
|
379
|
+
# Validate the universe domain.
|
|
380
|
+
self._client._validate_universe_domain()
|
|
381
|
+
|
|
341
382
|
# Send the request.
|
|
342
383
|
response = await rpc(
|
|
343
384
|
request,
|
|
@@ -448,6 +489,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
448
489
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
449
490
|
)
|
|
450
491
|
|
|
492
|
+
# Validate the universe domain.
|
|
493
|
+
self._client._validate_universe_domain()
|
|
494
|
+
|
|
451
495
|
# Send the request.
|
|
452
496
|
response = await rpc(
|
|
453
497
|
request,
|
|
@@ -583,6 +627,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
583
627
|
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
|
|
584
628
|
)
|
|
585
629
|
|
|
630
|
+
# Validate the universe domain.
|
|
631
|
+
self._client._validate_universe_domain()
|
|
632
|
+
|
|
586
633
|
# Send the request.
|
|
587
634
|
response = await rpc(
|
|
588
635
|
request,
|
|
@@ -706,6 +753,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
706
753
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
707
754
|
)
|
|
708
755
|
|
|
756
|
+
# Validate the universe domain.
|
|
757
|
+
self._client._validate_universe_domain()
|
|
758
|
+
|
|
709
759
|
# Send the request.
|
|
710
760
|
response = await rpc(
|
|
711
761
|
request,
|
|
@@ -768,6 +818,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
768
818
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
769
819
|
)
|
|
770
820
|
|
|
821
|
+
# Validate the universe domain.
|
|
822
|
+
self._client._validate_universe_domain()
|
|
823
|
+
|
|
771
824
|
# Send the request.
|
|
772
825
|
response = await rpc(
|
|
773
826
|
request,
|
|
@@ -822,6 +875,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
822
875
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
823
876
|
)
|
|
824
877
|
|
|
878
|
+
# Validate the universe domain.
|
|
879
|
+
self._client._validate_universe_domain()
|
|
880
|
+
|
|
825
881
|
# Send the request.
|
|
826
882
|
response = await rpc(
|
|
827
883
|
request,
|
|
@@ -880,6 +936,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
880
936
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
881
937
|
)
|
|
882
938
|
|
|
939
|
+
# Validate the universe domain.
|
|
940
|
+
self._client._validate_universe_domain()
|
|
941
|
+
|
|
883
942
|
# Send the request.
|
|
884
943
|
await rpc(
|
|
885
944
|
request,
|
|
@@ -934,6 +993,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
934
993
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
935
994
|
)
|
|
936
995
|
|
|
996
|
+
# Validate the universe domain.
|
|
997
|
+
self._client._validate_universe_domain()
|
|
998
|
+
|
|
937
999
|
# Send the request.
|
|
938
1000
|
await rpc(
|
|
939
1001
|
request,
|
|
@@ -1051,6 +1113,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1051
1113
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
1052
1114
|
)
|
|
1053
1115
|
|
|
1116
|
+
# Validate the universe domain.
|
|
1117
|
+
self._client._validate_universe_domain()
|
|
1118
|
+
|
|
1054
1119
|
# Send the request.
|
|
1055
1120
|
response = await rpc(
|
|
1056
1121
|
request,
|
|
@@ -1172,6 +1237,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1172
1237
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
1173
1238
|
)
|
|
1174
1239
|
|
|
1240
|
+
# Validate the universe domain.
|
|
1241
|
+
self._client._validate_universe_domain()
|
|
1242
|
+
|
|
1175
1243
|
# Send the request.
|
|
1176
1244
|
response = await rpc(
|
|
1177
1245
|
request,
|
|
@@ -1231,6 +1299,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1231
1299
|
gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)),
|
|
1232
1300
|
)
|
|
1233
1301
|
|
|
1302
|
+
# Validate the universe domain.
|
|
1303
|
+
self._client._validate_universe_domain()
|
|
1304
|
+
|
|
1234
1305
|
# Send the request.
|
|
1235
1306
|
response = await rpc(
|
|
1236
1307
|
request,
|
|
@@ -1285,6 +1356,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1285
1356
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
1286
1357
|
)
|
|
1287
1358
|
|
|
1359
|
+
# Validate the universe domain.
|
|
1360
|
+
self._client._validate_universe_domain()
|
|
1361
|
+
|
|
1288
1362
|
# Send the request.
|
|
1289
1363
|
response = await rpc(
|
|
1290
1364
|
request,
|
|
@@ -1339,6 +1413,9 @@ class ClientGatewaysServiceAsyncClient:
|
|
|
1339
1413
|
gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)),
|
|
1340
1414
|
)
|
|
1341
1415
|
|
|
1416
|
+
# Validate the universe domain.
|
|
1417
|
+
self._client._validate_universe_domain()
|
|
1418
|
+
|
|
1342
1419
|
# Send the request.
|
|
1343
1420
|
response = await rpc(
|
|
1344
1421
|
request,
|