google-cloud-beyondcorp-clientgateways 0.4.5__tar.gz → 0.4.7__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 (36) hide show
  1. {google-cloud-beyondcorp-clientgateways-0.4.5/google_cloud_beyondcorp_clientgateways.egg-info → google-cloud-beyondcorp-clientgateways-0.4.7}/PKG-INFO +3 -2
  2. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways/gapic_version.py +1 -1
  3. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/gapic_version.py +1 -1
  4. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/client.py +14 -11
  5. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/rest.py +1 -7
  6. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7/google_cloud_beyondcorp_clientgateways.egg-info}/PKG-INFO +3 -2
  7. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google_cloud_beyondcorp_clientgateways.egg-info/requires.txt +2 -1
  8. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/setup.py +2 -1
  9. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/tests/unit/gapic/beyondcorp_clientgateways_v1/test_client_gateways_service.py +238 -265
  10. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/LICENSE +0 -0
  11. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/MANIFEST.in +0 -0
  12. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/README.rst +0 -0
  13. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways/__init__.py +0 -0
  14. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways/py.typed +0 -0
  15. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/__init__.py +0 -0
  16. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/gapic_metadata.json +0 -0
  17. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/py.typed +0 -0
  18. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/__init__.py +0 -0
  19. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/__init__.py +0 -0
  20. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/async_client.py +0 -0
  21. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/pagers.py +0 -0
  22. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/__init__.py +0 -0
  23. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/base.py +0 -0
  24. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc.py +0 -0
  25. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/grpc_asyncio.py +0 -0
  26. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/types/__init__.py +0 -0
  27. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google/cloud/beyondcorp_clientgateways_v1/types/client_gateways_service.py +0 -0
  28. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google_cloud_beyondcorp_clientgateways.egg-info/SOURCES.txt +0 -0
  29. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google_cloud_beyondcorp_clientgateways.egg-info/dependency_links.txt +0 -0
  30. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google_cloud_beyondcorp_clientgateways.egg-info/not-zip-safe +0 -0
  31. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/google_cloud_beyondcorp_clientgateways.egg-info/top_level.txt +0 -0
  32. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/setup.cfg +0 -0
  33. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/tests/__init__.py +0 -0
  34. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/tests/unit/__init__.py +0 -0
  35. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/tests/unit/gapic/__init__.py +0 -0
  36. {google-cloud-beyondcorp-clientgateways-0.4.5 → google-cloud-beyondcorp-clientgateways-0.4.7}/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.5
3
+ Version: 0.4.7
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
@@ -22,7 +22,8 @@ Classifier: Operating System :: OS Independent
22
22
  Classifier: Topic :: Internet
23
23
  Requires-Python: >=3.7
24
24
  License-File: LICENSE
25
- Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0
25
+ Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
26
+ Requires-Dist: google-auth<3.0.0dev,>=2.14.1
26
27
  Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
27
28
  Requires-Dist: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
28
29
  Requires-Dist: grpc-google-iam-v1<1.0.0dev,>=0.12.4
@@ -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.5" # {x-release-please-version}
16
+ __version__ = "0.4.7" # {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.5" # {x-release-please-version}
16
+ __version__ = "0.4.7" # {x-release-please-version}
@@ -404,6 +404,7 @@ class ClientGatewaysServiceClient(metaclass=ClientGatewaysServiceClientMeta):
404
404
  )
405
405
  return use_client_cert == "true", use_mtls_endpoint, universe_domain_env
406
406
 
407
+ @staticmethod
407
408
  def _get_client_cert_source(provided_cert_source, use_cert_flag):
408
409
  """Return the client cert source to be used by the client.
409
410
 
@@ -422,6 +423,7 @@ class ClientGatewaysServiceClient(metaclass=ClientGatewaysServiceClientMeta):
422
423
  client_cert_source = mtls.default_client_cert_source()
423
424
  return client_cert_source
424
425
 
426
+ @staticmethod
425
427
  def _get_api_endpoint(
426
428
  api_override, client_cert_source, universe_domain, use_mtls_endpoint
427
429
  ):
@@ -498,17 +500,18 @@ class ClientGatewaysServiceClient(metaclass=ClientGatewaysServiceClientMeta):
498
500
  Raises:
499
501
  ValueError: when client_universe does not match the universe in credentials.
500
502
  """
501
- if credentials:
502
- credentials_universe = credentials.universe_domain
503
- if client_universe != credentials_universe:
504
- default_universe = ClientGatewaysServiceClient._DEFAULT_UNIVERSE
505
- raise ValueError(
506
- "The configured universe domain "
507
- f"({client_universe}) does not match the universe domain "
508
- f"found in the credentials ({credentials_universe}). "
509
- "If you haven't configured the universe domain explicitly, "
510
- f"`{default_universe}` is the default."
511
- )
503
+
504
+ default_universe = ClientGatewaysServiceClient._DEFAULT_UNIVERSE
505
+ credentials_universe = getattr(credentials, "universe_domain", default_universe)
506
+
507
+ if client_universe != credentials_universe:
508
+ raise ValueError(
509
+ "The configured universe domain "
510
+ f"({client_universe}) does not match the universe domain "
511
+ f"found in the credentials ({credentials_universe}). "
512
+ "If you haven't configured the universe domain explicitly, "
513
+ f"`{default_universe}` is the default."
514
+ )
512
515
  return True
513
516
 
514
517
  def _validate_universe_domain(self):
@@ -629,9 +629,7 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
629
629
  # Jsonify the request body
630
630
 
631
631
  body = json_format.MessageToJson(
632
- transcoded_request["body"],
633
- including_default_value_fields=False,
634
- use_integers_for_enums=True,
632
+ transcoded_request["body"], use_integers_for_enums=True
635
633
  )
636
634
  uri = transcoded_request["uri"]
637
635
  method = transcoded_request["method"]
@@ -640,7 +638,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
640
638
  query_params = json.loads(
641
639
  json_format.MessageToJson(
642
640
  transcoded_request["query_params"],
643
- including_default_value_fields=False,
644
641
  use_integers_for_enums=True,
645
642
  )
646
643
  )
@@ -730,7 +727,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
730
727
  query_params = json.loads(
731
728
  json_format.MessageToJson(
732
729
  transcoded_request["query_params"],
733
- including_default_value_fields=False,
734
730
  use_integers_for_enums=True,
735
731
  )
736
732
  )
@@ -818,7 +814,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
818
814
  query_params = json.loads(
819
815
  json_format.MessageToJson(
820
816
  transcoded_request["query_params"],
821
- including_default_value_fields=False,
822
817
  use_integers_for_enums=True,
823
818
  )
824
819
  )
@@ -909,7 +904,6 @@ class ClientGatewaysServiceRestTransport(ClientGatewaysServiceTransport):
909
904
  query_params = json.loads(
910
905
  json_format.MessageToJson(
911
906
  transcoded_request["query_params"],
912
- including_default_value_fields=False,
913
907
  use_integers_for_enums=True,
914
908
  )
915
909
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-cloud-beyondcorp-clientgateways
3
- Version: 0.4.5
3
+ Version: 0.4.7
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
@@ -22,7 +22,8 @@ Classifier: Operating System :: OS Independent
22
22
  Classifier: Topic :: Internet
23
23
  Requires-Python: >=3.7
24
24
  License-File: LICENSE
25
- Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0
25
+ Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
26
+ Requires-Dist: google-auth<3.0.0dev,>=2.14.1
26
27
  Requires-Dist: proto-plus<2.0.0dev,>=1.22.3
27
28
  Requires-Dist: protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
28
29
  Requires-Dist: grpc-google-iam-v1<1.0.0dev,>=0.12.4
@@ -1,4 +1,5 @@
1
- google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.0
1
+ google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0dev,>=1.34.1
2
+ google-auth<3.0.0dev,>=2.14.1
2
3
  proto-plus<2.0.0dev,>=1.22.3
3
4
  protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
4
5
  grpc-google-iam-v1<1.0.0dev,>=0.12.4
@@ -43,7 +43,8 @@ else:
43
43
  release_status = "Development Status :: 5 - Production/Stable"
44
44
 
45
45
  dependencies = [
46
- "google-api-core[grpc] >= 1.34.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
46
+ "google-api-core[grpc] >= 1.34.1, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,!=2.10.*",
47
+ "google-auth >= 2.14.1, <3.0.0dev",
47
48
  "proto-plus >= 1.22.3, <2.0.0dev",
48
49
  "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",
49
50
  "grpc-google-iam-v1 >= 0.12.4, <1.0.0dev",