google-cloud-beyondcorp-clientgateways 0.4.0__tar.gz → 0.4.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.
Files changed (37) hide show
  1. {google-cloud-beyondcorp-clientgateways-0.4.0/google_cloud_beyondcorp_clientgateways.egg-info → google-cloud-beyondcorp-clientgateways-0.4.2}/PKG-INFO +11 -11
  2. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/README.rst +9 -9
  3. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways/gapic_version.py +1 -1
  4. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/gapic_version.py +1 -1
  5. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/async_client.py +2 -3
  6. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/client.py +1 -2
  7. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/rest.py +26 -35
  8. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/types/client_gateways_service.py +2 -0
  9. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2/google_cloud_beyondcorp_clientgateways.egg-info}/PKG-INFO +11 -11
  10. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/setup.py +2 -2
  11. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/tests/unit/gapic/beyondcorp_clientgateways_v1/test_client_gateways_service.py +4 -2
  12. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/LICENSE +0 -0
  13. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/MANIFEST.in +0 -0
  14. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways/__init__.py +0 -0
  15. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways/py.typed +0 -0
  16. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/__init__.py +0 -0
  17. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/gapic_metadata.json +0 -0
  18. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/py.typed +0 -0
  19. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/__init__.py +0 -0
  20. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/__init__.py +0 -0
  21. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/pagers.py +0 -0
  22. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/__init__.py +0 -0
  23. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/base.py +0 -0
  24. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc.py +0 -0
  25. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc_asyncio.py +0 -0
  26. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google/cloud/beyondcorp_clientgateways_v1/types/__init__.py +0 -0
  27. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google_cloud_beyondcorp_clientgateways.egg-info/SOURCES.txt +0 -0
  28. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google_cloud_beyondcorp_clientgateways.egg-info/dependency_links.txt +0 -0
  29. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google_cloud_beyondcorp_clientgateways.egg-info/namespace_packages.txt +0 -0
  30. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google_cloud_beyondcorp_clientgateways.egg-info/not-zip-safe +0 -0
  31. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google_cloud_beyondcorp_clientgateways.egg-info/requires.txt +0 -0
  32. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/google_cloud_beyondcorp_clientgateways.egg-info/top_level.txt +0 -0
  33. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/setup.cfg +0 -0
  34. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/tests/__init__.py +0 -0
  35. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/tests/unit/__init__.py +0 -0
  36. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/tests/unit/gapic/__init__.py +0 -0
  37. {google-cloud-beyondcorp-clientgateways-0.4.0 → google-cloud-beyondcorp-clientgateways-0.4.2}/tests/unit/gapic/beyondcorp_clientgateways_v1/__init__.py +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-cloud-beyondcorp-clientgateways
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Google Cloud Beyondcorp Clientgateways API client library
5
- Home-page: https://github.com/googleapis/python-beyondcorp-clientgateways
5
+ Home-page: https://github.com/googleapis/google-cloud-python
6
6
  Author: Google LLC
7
7
  Author-email: googleapis-packages@google.com
8
8
  License: Apache 2.0
@@ -22,12 +22,12 @@ Classifier: Topic :: Internet
22
22
  Requires-Python: >=3.7
23
23
  License-File: LICENSE
24
24
 
25
- Python Client for BeyondCorp ClientGateways API
26
- ===============================================
25
+ Python Client for BeyondCorp ClientGateways
26
+ ===========================================
27
27
 
28
28
  |preview| |pypi| |versions|
29
29
 
30
- `BeyondCorp ClientGateways API`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.
30
+ `BeyondCorp ClientGateways`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.
31
31
 
32
32
  - `Client Library Documentation`_
33
33
  - `Product Documentation`_
@@ -38,7 +38,7 @@ Python Client for BeyondCorp ClientGateways API
38
38
  :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/
39
39
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-clientgateways.svg
40
40
  :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/
41
- .. _BeyondCorp ClientGateways API: https://cloud.google.com/beyondcorp/
41
+ .. _BeyondCorp ClientGateways: https://cloud.google.com/beyondcorp/
42
42
  .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpclientgateways/latest
43
43
  .. _Product Documentation: https://cloud.google.com/beyondcorp/
44
44
 
@@ -49,12 +49,12 @@ In order to use this library, you first need to go through the following steps:
49
49
 
50
50
  1. `Select or create a Cloud Platform project.`_
51
51
  2. `Enable billing for your project.`_
52
- 3. `Enable the BeyondCorp ClientGateways API.`_
52
+ 3. `Enable the BeyondCorp ClientGateways.`_
53
53
  4. `Setup Authentication.`_
54
54
 
55
55
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
56
56
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
57
- .. _Enable the BeyondCorp ClientGateways API.: https://cloud.google.com/beyondcorp/
57
+ .. _Enable the BeyondCorp ClientGateways.: https://cloud.google.com/beyondcorp/
58
58
  .. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
59
59
 
60
60
  Installation
@@ -120,12 +120,12 @@ Windows
120
120
  Next Steps
121
121
  ~~~~~~~~~~
122
122
 
123
- - Read the `Client Library Documentation`_ for BeyondCorp ClientGateways API
123
+ - Read the `Client Library Documentation`_ for BeyondCorp ClientGateways
124
124
  to see other available methods on the client.
125
- - Read the `BeyondCorp ClientGateways API Product documentation`_ to learn
125
+ - Read the `BeyondCorp ClientGateways Product documentation`_ to learn
126
126
  more about the product and see How-to Guides.
127
127
  - View this `README`_ to see the full list of Cloud
128
128
  APIs that we cover.
129
129
 
130
- .. _BeyondCorp ClientGateways API Product documentation: https://cloud.google.com/beyondcorp/
130
+ .. _BeyondCorp ClientGateways Product documentation: https://cloud.google.com/beyondcorp/
131
131
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
@@ -1,9 +1,9 @@
1
- Python Client for BeyondCorp ClientGateways API
2
- ===============================================
1
+ Python Client for BeyondCorp ClientGateways
2
+ ===========================================
3
3
 
4
4
  |preview| |pypi| |versions|
5
5
 
6
- `BeyondCorp ClientGateways API`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.
6
+ `BeyondCorp ClientGateways`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.
7
7
 
8
8
  - `Client Library Documentation`_
9
9
  - `Product Documentation`_
@@ -14,7 +14,7 @@ Python Client for BeyondCorp ClientGateways API
14
14
  :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/
15
15
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-clientgateways.svg
16
16
  :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/
17
- .. _BeyondCorp ClientGateways API: https://cloud.google.com/beyondcorp/
17
+ .. _BeyondCorp ClientGateways: https://cloud.google.com/beyondcorp/
18
18
  .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpclientgateways/latest
19
19
  .. _Product Documentation: https://cloud.google.com/beyondcorp/
20
20
 
@@ -25,12 +25,12 @@ In order to use this library, you first need to go through the following steps:
25
25
 
26
26
  1. `Select or create a Cloud Platform project.`_
27
27
  2. `Enable billing for your project.`_
28
- 3. `Enable the BeyondCorp ClientGateways API.`_
28
+ 3. `Enable the BeyondCorp ClientGateways.`_
29
29
  4. `Setup Authentication.`_
30
30
 
31
31
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
32
32
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
33
- .. _Enable the BeyondCorp ClientGateways API.: https://cloud.google.com/beyondcorp/
33
+ .. _Enable the BeyondCorp ClientGateways.: https://cloud.google.com/beyondcorp/
34
34
  .. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
35
35
 
36
36
  Installation
@@ -96,12 +96,12 @@ Windows
96
96
  Next Steps
97
97
  ~~~~~~~~~~
98
98
 
99
- - Read the `Client Library Documentation`_ for BeyondCorp ClientGateways API
99
+ - Read the `Client Library Documentation`_ for BeyondCorp ClientGateways
100
100
  to see other available methods on the client.
101
- - Read the `BeyondCorp ClientGateways API Product documentation`_ to learn
101
+ - Read the `BeyondCorp ClientGateways Product documentation`_ to learn
102
102
  more about the product and see How-to Guides.
103
103
  - View this `README`_ to see the full list of Cloud
104
104
  APIs that we cover.
105
105
 
106
- .. _BeyondCorp ClientGateways API Product documentation: https://cloud.google.com/beyondcorp/
106
+ .. _BeyondCorp ClientGateways Product documentation: https://cloud.google.com/beyondcorp/
107
107
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
@@ -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.4.0" # {x-release-please-version}
16
+ __version__ = "0.4.2" # {x-release-please-version}
@@ -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.4.0" # {x-release-please-version}
16
+ __version__ = "0.4.2" # {x-release-please-version}
@@ -511,8 +511,7 @@ class ClientGatewaysServiceAsyncClient:
511
511
 
512
512
  Args:
513
513
  request (Optional[Union[google.cloud.beyondcorp_clientgateways_v1.types.CreateClientGatewayRequest, dict]]):
514
- The request object. Message for creating a
515
- ClientGateway.
514
+ The request object. Message for creating a ClientGateway.
516
515
  parent (:class:`str`):
517
516
  Required. Value for parent.
518
517
  This corresponds to the ``parent`` field
@@ -1351,7 +1350,7 @@ class ClientGatewaysServiceAsyncClient:
1351
1350
  # Done; return the response.
1352
1351
  return response
1353
1352
 
1354
- async def __aenter__(self):
1353
+ async def __aenter__(self) -> "ClientGatewaysServiceAsyncClient":
1355
1354
  return self
1356
1355
 
1357
1356
  async def __aexit__(self, exc_type, exc, tb):
@@ -735,8 +735,7 @@ class ClientGatewaysServiceClient(metaclass=ClientGatewaysServiceClientMeta):
735
735
 
736
736
  Args:
737
737
  request (Union[google.cloud.beyondcorp_clientgateways_v1.types.CreateClientGatewayRequest, dict]):
738
- The request object. Message for creating a
739
- ClientGateway.
738
+ The request object. Message for creating a ClientGateway.
740
739
  parent (str):
741
740
  Required. Value for parent.
742
741
  This corresponds to the ``parent`` field
@@ -17,7 +17,7 @@
17
17
  import dataclasses
18
18
  import json # type: ignore
19
19
  import re
20
- from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20
+ from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
21
21
  import warnings
22
22
 
23
23
  from google.api_core import (
@@ -217,7 +217,7 @@ class ClientGatewaysServiceRestInterceptor:
217
217
  self,
218
218
  request: locations_pb2.GetLocationRequest,
219
219
  metadata: Sequence[Tuple[str, str]],
220
- ) -> locations_pb2.Location:
220
+ ) -> Tuple[locations_pb2.GetLocationRequest, Sequence[Tuple[str, str]]]:
221
221
  """Pre-rpc interceptor for get_location
222
222
 
223
223
  Override in a subclass to manipulate the request or metadata
@@ -226,7 +226,7 @@ class ClientGatewaysServiceRestInterceptor:
226
226
  return request, metadata
227
227
 
228
228
  def post_get_location(
229
- self, response: locations_pb2.GetLocationRequest
229
+ self, response: locations_pb2.Location
230
230
  ) -> locations_pb2.Location:
231
231
  """Post-rpc interceptor for get_location
232
232
 
@@ -240,7 +240,7 @@ class ClientGatewaysServiceRestInterceptor:
240
240
  self,
241
241
  request: locations_pb2.ListLocationsRequest,
242
242
  metadata: Sequence[Tuple[str, str]],
243
- ) -> locations_pb2.ListLocationsResponse:
243
+ ) -> Tuple[locations_pb2.ListLocationsRequest, Sequence[Tuple[str, str]]]:
244
244
  """Pre-rpc interceptor for list_locations
245
245
 
246
246
  Override in a subclass to manipulate the request or metadata
@@ -249,7 +249,7 @@ class ClientGatewaysServiceRestInterceptor:
249
249
  return request, metadata
250
250
 
251
251
  def post_list_locations(
252
- self, response: locations_pb2.ListLocationsRequest
252
+ self, response: locations_pb2.ListLocationsResponse
253
253
  ) -> locations_pb2.ListLocationsResponse:
254
254
  """Post-rpc interceptor for list_locations
255
255
 
@@ -263,7 +263,7 @@ class ClientGatewaysServiceRestInterceptor:
263
263
  self,
264
264
  request: iam_policy_pb2.GetIamPolicyRequest,
265
265
  metadata: Sequence[Tuple[str, str]],
266
- ) -> policy_pb2.Policy:
266
+ ) -> Tuple[iam_policy_pb2.GetIamPolicyRequest, Sequence[Tuple[str, str]]]:
267
267
  """Pre-rpc interceptor for get_iam_policy
268
268
 
269
269
  Override in a subclass to manipulate the request or metadata
@@ -271,9 +271,7 @@ class ClientGatewaysServiceRestInterceptor:
271
271
  """
272
272
  return request, metadata
273
273
 
274
- def post_get_iam_policy(
275
- self, response: iam_policy_pb2.GetIamPolicyRequest
276
- ) -> policy_pb2.Policy:
274
+ def post_get_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
277
275
  """Post-rpc interceptor for get_iam_policy
278
276
 
279
277
  Override in a subclass to manipulate the response
@@ -286,7 +284,7 @@ class ClientGatewaysServiceRestInterceptor:
286
284
  self,
287
285
  request: iam_policy_pb2.SetIamPolicyRequest,
288
286
  metadata: Sequence[Tuple[str, str]],
289
- ) -> policy_pb2.Policy:
287
+ ) -> Tuple[iam_policy_pb2.SetIamPolicyRequest, Sequence[Tuple[str, str]]]:
290
288
  """Pre-rpc interceptor for set_iam_policy
291
289
 
292
290
  Override in a subclass to manipulate the request or metadata
@@ -294,9 +292,7 @@ class ClientGatewaysServiceRestInterceptor:
294
292
  """
295
293
  return request, metadata
296
294
 
297
- def post_set_iam_policy(
298
- self, response: iam_policy_pb2.SetIamPolicyRequest
299
- ) -> policy_pb2.Policy:
295
+ def post_set_iam_policy(self, response: policy_pb2.Policy) -> policy_pb2.Policy:
300
296
  """Post-rpc interceptor for set_iam_policy
301
297
 
302
298
  Override in a subclass to manipulate the response
@@ -309,7 +305,7 @@ class ClientGatewaysServiceRestInterceptor:
309
305
  self,
310
306
  request: iam_policy_pb2.TestIamPermissionsRequest,
311
307
  metadata: Sequence[Tuple[str, str]],
312
- ) -> iam_policy_pb2.TestIamPermissionsResponse:
308
+ ) -> Tuple[iam_policy_pb2.TestIamPermissionsRequest, Sequence[Tuple[str, str]]]:
313
309
  """Pre-rpc interceptor for test_iam_permissions
314
310
 
315
311
  Override in a subclass to manipulate the request or metadata
@@ -318,7 +314,7 @@ class ClientGatewaysServiceRestInterceptor:
318
314
  return request, metadata
319
315
 
320
316
  def post_test_iam_permissions(
321
- self, response: iam_policy_pb2.TestIamPermissionsRequest
317
+ self, response: iam_policy_pb2.TestIamPermissionsResponse
322
318
  ) -> iam_policy_pb2.TestIamPermissionsResponse:
323
319
  """Post-rpc interceptor for test_iam_permissions
324
320
 
@@ -332,7 +328,7 @@ class ClientGatewaysServiceRestInterceptor:
332
328
  self,
333
329
  request: operations_pb2.CancelOperationRequest,
334
330
  metadata: Sequence[Tuple[str, str]],
335
- ) -> None:
331
+ ) -> Tuple[operations_pb2.CancelOperationRequest, Sequence[Tuple[str, str]]]:
336
332
  """Pre-rpc interceptor for cancel_operation
337
333
 
338
334
  Override in a subclass to manipulate the request or metadata
@@ -340,9 +336,7 @@ class ClientGatewaysServiceRestInterceptor:
340
336
  """
341
337
  return request, metadata
342
338
 
343
- def post_cancel_operation(
344
- self, response: operations_pb2.CancelOperationRequest
345
- ) -> None:
339
+ def post_cancel_operation(self, response: None) -> None:
346
340
  """Post-rpc interceptor for cancel_operation
347
341
 
348
342
  Override in a subclass to manipulate the response
@@ -355,7 +349,7 @@ class ClientGatewaysServiceRestInterceptor:
355
349
  self,
356
350
  request: operations_pb2.DeleteOperationRequest,
357
351
  metadata: Sequence[Tuple[str, str]],
358
- ) -> None:
352
+ ) -> Tuple[operations_pb2.DeleteOperationRequest, Sequence[Tuple[str, str]]]:
359
353
  """Pre-rpc interceptor for delete_operation
360
354
 
361
355
  Override in a subclass to manipulate the request or metadata
@@ -363,9 +357,7 @@ class ClientGatewaysServiceRestInterceptor:
363
357
  """
364
358
  return request, metadata
365
359
 
366
- def post_delete_operation(
367
- self, response: operations_pb2.DeleteOperationRequest
368
- ) -> None:
360
+ def post_delete_operation(self, response: None) -> None:
369
361
  """Post-rpc interceptor for delete_operation
370
362
 
371
363
  Override in a subclass to manipulate the response
@@ -378,7 +370,7 @@ class ClientGatewaysServiceRestInterceptor:
378
370
  self,
379
371
  request: operations_pb2.GetOperationRequest,
380
372
  metadata: Sequence[Tuple[str, str]],
381
- ) -> operations_pb2.Operation:
373
+ ) -> Tuple[operations_pb2.GetOperationRequest, Sequence[Tuple[str, str]]]:
382
374
  """Pre-rpc interceptor for get_operation
383
375
 
384
376
  Override in a subclass to manipulate the request or metadata
@@ -387,7 +379,7 @@ class ClientGatewaysServiceRestInterceptor:
387
379
  return request, metadata
388
380
 
389
381
  def post_get_operation(
390
- self, response: operations_pb2.GetOperationRequest
382
+ self, response: operations_pb2.Operation
391
383
  ) -> operations_pb2.Operation:
392
384
  """Post-rpc interceptor for get_operation
393
385
 
@@ -401,7 +393,7 @@ class ClientGatewaysServiceRestInterceptor:
401
393
  self,
402
394
  request: operations_pb2.ListOperationsRequest,
403
395
  metadata: Sequence[Tuple[str, str]],
404
- ) -> operations_pb2.ListOperationsResponse:
396
+ ) -> Tuple[operations_pb2.ListOperationsRequest, Sequence[Tuple[str, str]]]:
405
397
  """Pre-rpc interceptor for list_operations
406
398
 
407
399
  Override in a subclass to manipulate the request or metadata
@@ -410,7 +402,7 @@ class ClientGatewaysServiceRestInterceptor:
410
402
  return request, metadata
411
403
 
412
404
  def post_list_operations(
413
- self, response: operations_pb2.ListOperationsRequest
405
+ self, response: operations_pb2.ListOperationsResponse
414
406
  ) -> operations_pb2.ListOperationsResponse:
415
407
  """Post-rpc interceptor for list_operations
416
408
 
@@ -585,7 +577,7 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
585
577
  def __hash__(self):
586
578
  return hash("CreateClientGateway")
587
579
 
588
- __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
580
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
589
581
 
590
582
  @classmethod
591
583
  def _get_unset_required_fields(cls, message_dict):
@@ -683,7 +675,7 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
683
675
  def __hash__(self):
684
676
  return hash("DeleteClientGateway")
685
677
 
686
- __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
678
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
687
679
 
688
680
  @classmethod
689
681
  def _get_unset_required_fields(cls, message_dict):
@@ -772,7 +764,7 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
772
764
  def __hash__(self):
773
765
  return hash("GetClientGateway")
774
766
 
775
- __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
767
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
776
768
 
777
769
  @classmethod
778
770
  def _get_unset_required_fields(cls, message_dict):
@@ -862,7 +854,7 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
862
854
  def __hash__(self):
863
855
  return hash("ListClientGateways")
864
856
 
865
- __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
857
+ __REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
866
858
 
867
859
  @classmethod
868
860
  def _get_unset_required_fields(cls, message_dict):
@@ -886,7 +878,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
886
878
  request (~.client_gateways_service.ListClientGatewaysRequest):
887
879
  The request object. Message for requesting list of
888
880
  ClientGateways.
889
-
890
881
  retry (google.api_core.retry.Retry): Designation of what errors, if any,
891
882
  should be retried.
892
883
  timeout (float): The timeout for this request.
@@ -1270,7 +1261,7 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
1270
1261
  request_kwargs = json_format.MessageToDict(request)
1271
1262
  transcoded_request = path_template.transcode(http_options, **request_kwargs)
1272
1263
 
1273
- body = json.loads(json.dumps(transcoded_request["body"]))
1264
+ body = json.dumps(transcoded_request["body"])
1274
1265
  uri = transcoded_request["uri"]
1275
1266
  method = transcoded_request["method"]
1276
1267
 
@@ -1362,7 +1353,7 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
1362
1353
  request_kwargs = json_format.MessageToDict(request)
1363
1354
  transcoded_request = path_template.transcode(http_options, **request_kwargs)
1364
1355
 
1365
- body = json.loads(json.dumps(transcoded_request["body"]))
1356
+ body = json.dumps(transcoded_request["body"])
1366
1357
  uri = transcoded_request["uri"]
1367
1358
  method = transcoded_request["method"]
1368
1359
 
@@ -1431,7 +1422,7 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
1431
1422
  request_kwargs = json_format.MessageToDict(request)
1432
1423
  transcoded_request = path_template.transcode(http_options, **request_kwargs)
1433
1424
 
1434
- body = json.loads(json.dumps(transcoded_request["body"]))
1425
+ body = json.dumps(transcoded_request["body"])
1435
1426
  uri = transcoded_request["uri"]
1436
1427
  method = transcoded_request["method"]
1437
1428
 
@@ -13,6 +13,8 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
+ from __future__ import annotations
17
+
16
18
  from typing import MutableMapping, MutableSequence
17
19
 
18
20
  from google.protobuf import timestamp_pb2 # type: ignore
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-cloud-beyondcorp-clientgateways
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: Google Cloud Beyondcorp Clientgateways API client library
5
- Home-page: https://github.com/googleapis/python-beyondcorp-clientgateways
5
+ Home-page: https://github.com/googleapis/google-cloud-python
6
6
  Author: Google LLC
7
7
  Author-email: googleapis-packages@google.com
8
8
  License: Apache 2.0
@@ -22,12 +22,12 @@ Classifier: Topic :: Internet
22
22
  Requires-Python: >=3.7
23
23
  License-File: LICENSE
24
24
 
25
- Python Client for BeyondCorp ClientGateways API
26
- ===============================================
25
+ Python Client for BeyondCorp ClientGateways
26
+ ===========================================
27
27
 
28
28
  |preview| |pypi| |versions|
29
29
 
30
- `BeyondCorp ClientGateways API`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.
30
+ `BeyondCorp ClientGateways`_: Beyondcorp Enterprise provides identity and context aware access controls for enterprise resources and enables zero-trust access. Using the Beyondcorp Enterprise APIs, enterprises can set up multi-cloud and on-prem connectivity using the App Connector hybrid connectivity solution.
31
31
 
32
32
  - `Client Library Documentation`_
33
33
  - `Product Documentation`_
@@ -38,7 +38,7 @@ Python Client for BeyondCorp ClientGateways API
38
38
  :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/
39
39
  .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-beyondcorp-clientgateways.svg
40
40
  :target: https://pypi.org/project/google-cloud-beyondcorp-clientgateways/
41
- .. _BeyondCorp ClientGateways API: https://cloud.google.com/beyondcorp/
41
+ .. _BeyondCorp ClientGateways: https://cloud.google.com/beyondcorp/
42
42
  .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/beyondcorpclientgateways/latest
43
43
  .. _Product Documentation: https://cloud.google.com/beyondcorp/
44
44
 
@@ -49,12 +49,12 @@ In order to use this library, you first need to go through the following steps:
49
49
 
50
50
  1. `Select or create a Cloud Platform project.`_
51
51
  2. `Enable billing for your project.`_
52
- 3. `Enable the BeyondCorp ClientGateways API.`_
52
+ 3. `Enable the BeyondCorp ClientGateways.`_
53
53
  4. `Setup Authentication.`_
54
54
 
55
55
  .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
56
56
  .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
57
- .. _Enable the BeyondCorp ClientGateways API.: https://cloud.google.com/beyondcorp/
57
+ .. _Enable the BeyondCorp ClientGateways.: https://cloud.google.com/beyondcorp/
58
58
  .. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
59
59
 
60
60
  Installation
@@ -120,12 +120,12 @@ Windows
120
120
  Next Steps
121
121
  ~~~~~~~~~~
122
122
 
123
- - Read the `Client Library Documentation`_ for BeyondCorp ClientGateways API
123
+ - Read the `Client Library Documentation`_ for BeyondCorp ClientGateways
124
124
  to see other available methods on the client.
125
- - Read the `BeyondCorp ClientGateways API Product documentation`_ to learn
125
+ - Read the `BeyondCorp ClientGateways Product documentation`_ to learn
126
126
  more about the product and see How-to Guides.
127
127
  - View this `README`_ to see the full list of Cloud
128
128
  APIs that we cover.
129
129
 
130
- .. _BeyondCorp ClientGateways API Product documentation: https://cloud.google.com/beyondcorp/
130
+ .. _BeyondCorp ClientGateways Product documentation: https://cloud.google.com/beyondcorp/
131
131
  .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
@@ -44,9 +44,9 @@ dependencies = [
44
44
  "proto-plus >= 1.22.0, <2.0.0dev",
45
45
  "proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'",
46
46
  "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
47
- "grpc-google-iam-v1 >= 0.12.4, < 1.0.0dev",
47
+ "grpc-google-iam-v1 >= 0.12.4, <1.0.0dev",
48
48
  ]
49
- url = "https://github.com/googleapis/python-beyondcorp-clientgateways"
49
+ url = "https://github.com/googleapis/google-cloud-python"
50
50
 
51
51
  package_root = os.path.abspath(os.path.dirname(__file__))
52
52
 
@@ -1207,9 +1207,11 @@ async def test_list_client_gateways_async_pages():
1207
1207
  RuntimeError,
1208
1208
  )
1209
1209
  pages = []
1210
- async for page_ in (
1210
+ # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch`
1211
+ # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372
1212
+ async for page_ in ( # pragma: no branch
1211
1213
  await client.list_client_gateways(request={})
1212
- ).pages: # pragma: no branch
1214
+ ).pages:
1213
1215
  pages.append(page_)
1214
1216
  for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
1215
1217
  assert page_.raw_page.next_page_token == token