google-cloud-cloudcontrolspartner 0.2.1__tar.gz → 0.2.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 (96) hide show
  1. {google_cloud_cloudcontrolspartner-0.2.1/google_cloud_cloudcontrolspartner.egg-info → google_cloud_cloudcontrolspartner-0.2.2}/PKG-INFO +1 -1
  2. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner/gapic_version.py +1 -1
  3. {google_cloud_cloudcontrolspartner-0.2.1/google/cloud/cloudcontrolspartner_v1beta → google_cloud_cloudcontrolspartner-0.2.2/google/cloud/cloudcontrolspartner_v1}/gapic_version.py +1 -1
  4. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/client.py +3 -37
  5. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/client.py +3 -37
  6. {google_cloud_cloudcontrolspartner-0.2.1/google/cloud/cloudcontrolspartner_v1 → google_cloud_cloudcontrolspartner-0.2.2/google/cloud/cloudcontrolspartner_v1beta}/gapic_version.py +1 -1
  7. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/client.py +3 -37
  8. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/client.py +3 -37
  9. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2/google_cloud_cloudcontrolspartner.egg-info}/PKG-INFO +1 -1
  10. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/unit/gapic/cloudcontrolspartner_v1/test_cloud_controls_partner_core.py +0 -88
  11. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/unit/gapic/cloudcontrolspartner_v1/test_cloud_controls_partner_monitoring.py +0 -88
  12. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/unit/gapic/cloudcontrolspartner_v1beta/test_cloud_controls_partner_core.py +0 -88
  13. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/unit/gapic/cloudcontrolspartner_v1beta/test_cloud_controls_partner_monitoring.py +0 -88
  14. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/LICENSE +0 -0
  15. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/MANIFEST.in +0 -0
  16. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/README.rst +0 -0
  17. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner/__init__.py +0 -0
  18. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner/py.typed +0 -0
  19. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/__init__.py +0 -0
  20. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/gapic_metadata.json +0 -0
  21. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/py.typed +0 -0
  22. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/__init__.py +0 -0
  23. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/__init__.py +0 -0
  24. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/async_client.py +0 -0
  25. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/pagers.py +0 -0
  26. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/__init__.py +0 -0
  27. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/base.py +0 -0
  28. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc.py +0 -0
  29. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc_asyncio.py +0 -0
  30. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest.py +0 -0
  31. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest_base.py +0 -0
  32. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/__init__.py +0 -0
  33. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/async_client.py +0 -0
  34. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/pagers.py +0 -0
  35. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/__init__.py +0 -0
  36. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/base.py +0 -0
  37. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc.py +0 -0
  38. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +0 -0
  39. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest.py +0 -0
  40. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest_base.py +0 -0
  41. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/__init__.py +0 -0
  42. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/access_approval_requests.py +0 -0
  43. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/completion_state.py +0 -0
  44. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/core.py +0 -0
  45. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/customer_workloads.py +0 -0
  46. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/customers.py +0 -0
  47. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/ekm_connections.py +0 -0
  48. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/monitoring.py +0 -0
  49. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/partner_permissions.py +0 -0
  50. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/partners.py +0 -0
  51. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1/types/violations.py +0 -0
  52. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/__init__.py +0 -0
  53. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/gapic_metadata.json +0 -0
  54. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/py.typed +0 -0
  55. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/__init__.py +0 -0
  56. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/__init__.py +0 -0
  57. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/async_client.py +0 -0
  58. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/pagers.py +0 -0
  59. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/__init__.py +0 -0
  60. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/base.py +0 -0
  61. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc.py +0 -0
  62. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc_asyncio.py +0 -0
  63. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest.py +0 -0
  64. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest_base.py +0 -0
  65. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/__init__.py +0 -0
  66. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/async_client.py +0 -0
  67. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/pagers.py +0 -0
  68. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/__init__.py +0 -0
  69. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/base.py +0 -0
  70. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc.py +0 -0
  71. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +0 -0
  72. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest.py +0 -0
  73. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest_base.py +0 -0
  74. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/__init__.py +0 -0
  75. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/access_approval_requests.py +0 -0
  76. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/completion_state.py +0 -0
  77. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/core.py +0 -0
  78. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/customer_workloads.py +0 -0
  79. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/customers.py +0 -0
  80. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/ekm_connections.py +0 -0
  81. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/monitoring.py +0 -0
  82. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/partner_permissions.py +0 -0
  83. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/partners.py +0 -0
  84. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google/cloud/cloudcontrolspartner_v1beta/types/violations.py +0 -0
  85. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google_cloud_cloudcontrolspartner.egg-info/SOURCES.txt +0 -0
  86. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google_cloud_cloudcontrolspartner.egg-info/dependency_links.txt +0 -0
  87. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google_cloud_cloudcontrolspartner.egg-info/not-zip-safe +0 -0
  88. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google_cloud_cloudcontrolspartner.egg-info/requires.txt +0 -0
  89. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/google_cloud_cloudcontrolspartner.egg-info/top_level.txt +0 -0
  90. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/setup.cfg +0 -0
  91. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/setup.py +0 -0
  92. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/__init__.py +0 -0
  93. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/unit/__init__.py +0 -0
  94. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/unit/gapic/__init__.py +0 -0
  95. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/unit/gapic/cloudcontrolspartner_v1/__init__.py +0 -0
  96. {google_cloud_cloudcontrolspartner-0.2.1 → google_cloud_cloudcontrolspartner-0.2.2}/tests/unit/gapic/cloudcontrolspartner_v1beta/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-cloud-cloudcontrolspartner
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Google Cloud Cloudcontrolspartner API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-cloudcontrolspartner
6
6
  Author: Google LLC
@@ -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.2.1" # {x-release-please-version}
16
+ __version__ = "0.2.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.2.1" # {x-release-please-version}
16
+ __version__ = "0.2.2" # {x-release-please-version}
@@ -592,36 +592,6 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
592
592
  raise ValueError("Universe Domain cannot be an empty string.")
593
593
  return universe_domain
594
594
 
595
- @staticmethod
596
- def _compare_universes(
597
- client_universe: str, credentials: ga_credentials.Credentials
598
- ) -> bool:
599
- """Returns True iff the universe domains used by the client and credentials match.
600
-
601
- Args:
602
- client_universe (str): The universe domain configured via the client options.
603
- credentials (ga_credentials.Credentials): The credentials being used in the client.
604
-
605
- Returns:
606
- bool: True iff client_universe matches the universe in credentials.
607
-
608
- Raises:
609
- ValueError: when client_universe does not match the universe in credentials.
610
- """
611
-
612
- default_universe = CloudControlsPartnerCoreClient._DEFAULT_UNIVERSE
613
- credentials_universe = getattr(credentials, "universe_domain", default_universe)
614
-
615
- if client_universe != credentials_universe:
616
- raise ValueError(
617
- "The configured universe domain "
618
- f"({client_universe}) does not match the universe domain "
619
- f"found in the credentials ({credentials_universe}). "
620
- "If you haven't configured the universe domain explicitly, "
621
- f"`{default_universe}` is the default."
622
- )
623
- return True
624
-
625
595
  def _validate_universe_domain(self):
626
596
  """Validates client's and credentials' universe domains are consistent.
627
597
 
@@ -631,13 +601,9 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
631
601
  Raises:
632
602
  ValueError: If the configured universe domain is not valid.
633
603
  """
634
- self._is_universe_domain_valid = (
635
- self._is_universe_domain_valid
636
- or CloudControlsPartnerCoreClient._compare_universes(
637
- self.universe_domain, self.transport._credentials
638
- )
639
- )
640
- return self._is_universe_domain_valid
604
+
605
+ # NOTE (b/349488459): universe validation is disabled until further notice.
606
+ return True
641
607
 
642
608
  @property
643
609
  def api_endpoint(self):
@@ -478,36 +478,6 @@ class CloudControlsPartnerMonitoringClient(
478
478
  raise ValueError("Universe Domain cannot be an empty string.")
479
479
  return universe_domain
480
480
 
481
- @staticmethod
482
- def _compare_universes(
483
- client_universe: str, credentials: ga_credentials.Credentials
484
- ) -> bool:
485
- """Returns True iff the universe domains used by the client and credentials match.
486
-
487
- Args:
488
- client_universe (str): The universe domain configured via the client options.
489
- credentials (ga_credentials.Credentials): The credentials being used in the client.
490
-
491
- Returns:
492
- bool: True iff client_universe matches the universe in credentials.
493
-
494
- Raises:
495
- ValueError: when client_universe does not match the universe in credentials.
496
- """
497
-
498
- default_universe = CloudControlsPartnerMonitoringClient._DEFAULT_UNIVERSE
499
- credentials_universe = getattr(credentials, "universe_domain", default_universe)
500
-
501
- if client_universe != credentials_universe:
502
- raise ValueError(
503
- "The configured universe domain "
504
- f"({client_universe}) does not match the universe domain "
505
- f"found in the credentials ({credentials_universe}). "
506
- "If you haven't configured the universe domain explicitly, "
507
- f"`{default_universe}` is the default."
508
- )
509
- return True
510
-
511
481
  def _validate_universe_domain(self):
512
482
  """Validates client's and credentials' universe domains are consistent.
513
483
 
@@ -517,13 +487,9 @@ class CloudControlsPartnerMonitoringClient(
517
487
  Raises:
518
488
  ValueError: If the configured universe domain is not valid.
519
489
  """
520
- self._is_universe_domain_valid = (
521
- self._is_universe_domain_valid
522
- or CloudControlsPartnerMonitoringClient._compare_universes(
523
- self.universe_domain, self.transport._credentials
524
- )
525
- )
526
- return self._is_universe_domain_valid
490
+
491
+ # NOTE (b/349488459): universe validation is disabled until further notice.
492
+ return True
527
493
 
528
494
  @property
529
495
  def api_endpoint(self):
@@ -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.2.1" # {x-release-please-version}
16
+ __version__ = "0.2.2" # {x-release-please-version}
@@ -592,36 +592,6 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
592
592
  raise ValueError("Universe Domain cannot be an empty string.")
593
593
  return universe_domain
594
594
 
595
- @staticmethod
596
- def _compare_universes(
597
- client_universe: str, credentials: ga_credentials.Credentials
598
- ) -> bool:
599
- """Returns True iff the universe domains used by the client and credentials match.
600
-
601
- Args:
602
- client_universe (str): The universe domain configured via the client options.
603
- credentials (ga_credentials.Credentials): The credentials being used in the client.
604
-
605
- Returns:
606
- bool: True iff client_universe matches the universe in credentials.
607
-
608
- Raises:
609
- ValueError: when client_universe does not match the universe in credentials.
610
- """
611
-
612
- default_universe = CloudControlsPartnerCoreClient._DEFAULT_UNIVERSE
613
- credentials_universe = getattr(credentials, "universe_domain", default_universe)
614
-
615
- if client_universe != credentials_universe:
616
- raise ValueError(
617
- "The configured universe domain "
618
- f"({client_universe}) does not match the universe domain "
619
- f"found in the credentials ({credentials_universe}). "
620
- "If you haven't configured the universe domain explicitly, "
621
- f"`{default_universe}` is the default."
622
- )
623
- return True
624
-
625
595
  def _validate_universe_domain(self):
626
596
  """Validates client's and credentials' universe domains are consistent.
627
597
 
@@ -631,13 +601,9 @@ class CloudControlsPartnerCoreClient(metaclass=CloudControlsPartnerCoreClientMet
631
601
  Raises:
632
602
  ValueError: If the configured universe domain is not valid.
633
603
  """
634
- self._is_universe_domain_valid = (
635
- self._is_universe_domain_valid
636
- or CloudControlsPartnerCoreClient._compare_universes(
637
- self.universe_domain, self.transport._credentials
638
- )
639
- )
640
- return self._is_universe_domain_valid
604
+
605
+ # NOTE (b/349488459): universe validation is disabled until further notice.
606
+ return True
641
607
 
642
608
  @property
643
609
  def api_endpoint(self):
@@ -478,36 +478,6 @@ class CloudControlsPartnerMonitoringClient(
478
478
  raise ValueError("Universe Domain cannot be an empty string.")
479
479
  return universe_domain
480
480
 
481
- @staticmethod
482
- def _compare_universes(
483
- client_universe: str, credentials: ga_credentials.Credentials
484
- ) -> bool:
485
- """Returns True iff the universe domains used by the client and credentials match.
486
-
487
- Args:
488
- client_universe (str): The universe domain configured via the client options.
489
- credentials (ga_credentials.Credentials): The credentials being used in the client.
490
-
491
- Returns:
492
- bool: True iff client_universe matches the universe in credentials.
493
-
494
- Raises:
495
- ValueError: when client_universe does not match the universe in credentials.
496
- """
497
-
498
- default_universe = CloudControlsPartnerMonitoringClient._DEFAULT_UNIVERSE
499
- credentials_universe = getattr(credentials, "universe_domain", default_universe)
500
-
501
- if client_universe != credentials_universe:
502
- raise ValueError(
503
- "The configured universe domain "
504
- f"({client_universe}) does not match the universe domain "
505
- f"found in the credentials ({credentials_universe}). "
506
- "If you haven't configured the universe domain explicitly, "
507
- f"`{default_universe}` is the default."
508
- )
509
- return True
510
-
511
481
  def _validate_universe_domain(self):
512
482
  """Validates client's and credentials' universe domains are consistent.
513
483
 
@@ -517,13 +487,9 @@ class CloudControlsPartnerMonitoringClient(
517
487
  Raises:
518
488
  ValueError: If the configured universe domain is not valid.
519
489
  """
520
- self._is_universe_domain_valid = (
521
- self._is_universe_domain_valid
522
- or CloudControlsPartnerMonitoringClient._compare_universes(
523
- self.universe_domain, self.transport._credentials
524
- )
525
- )
526
- return self._is_universe_domain_valid
490
+
491
+ # NOTE (b/349488459): universe validation is disabled until further notice.
492
+ return True
527
493
 
528
494
  @property
529
495
  def api_endpoint(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: google-cloud-cloudcontrolspartner
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Google Cloud Cloudcontrolspartner API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-cloudcontrolspartner
6
6
  Author: Google LLC
@@ -343,94 +343,6 @@ def test__get_universe_domain():
343
343
  assert str(excinfo.value) == "Universe Domain cannot be an empty string."
344
344
 
345
345
 
346
- @pytest.mark.parametrize(
347
- "client_class,transport_class,transport_name",
348
- [
349
- (
350
- CloudControlsPartnerCoreClient,
351
- transports.CloudControlsPartnerCoreGrpcTransport,
352
- "grpc",
353
- ),
354
- (
355
- CloudControlsPartnerCoreClient,
356
- transports.CloudControlsPartnerCoreRestTransport,
357
- "rest",
358
- ),
359
- ],
360
- )
361
- def test__validate_universe_domain(client_class, transport_class, transport_name):
362
- client = client_class(
363
- transport=transport_class(credentials=ga_credentials.AnonymousCredentials())
364
- )
365
- assert client._validate_universe_domain() == True
366
-
367
- # Test the case when universe is already validated.
368
- assert client._validate_universe_domain() == True
369
-
370
- if transport_name == "grpc":
371
- # Test the case where credentials are provided by the
372
- # `local_channel_credentials`. The default universes in both match.
373
- channel = grpc.secure_channel(
374
- "http://localhost/", grpc.local_channel_credentials()
375
- )
376
- client = client_class(transport=transport_class(channel=channel))
377
- assert client._validate_universe_domain() == True
378
-
379
- # Test the case where credentials do not exist: e.g. a transport is provided
380
- # with no credentials. Validation should still succeed because there is no
381
- # mismatch with non-existent credentials.
382
- channel = grpc.secure_channel(
383
- "http://localhost/", grpc.local_channel_credentials()
384
- )
385
- transport = transport_class(channel=channel)
386
- transport._credentials = None
387
- client = client_class(transport=transport)
388
- assert client._validate_universe_domain() == True
389
-
390
- # TODO: This is needed to cater for older versions of google-auth
391
- # Make this test unconditional once the minimum supported version of
392
- # google-auth becomes 2.23.0 or higher.
393
- google_auth_major, google_auth_minor = [
394
- int(part) for part in google.auth.__version__.split(".")[0:2]
395
- ]
396
- if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
397
- credentials = ga_credentials.AnonymousCredentials()
398
- credentials._universe_domain = "foo.com"
399
- # Test the case when there is a universe mismatch from the credentials.
400
- client = client_class(transport=transport_class(credentials=credentials))
401
- with pytest.raises(ValueError) as excinfo:
402
- client._validate_universe_domain()
403
- assert (
404
- str(excinfo.value)
405
- == "The configured universe domain (googleapis.com) does not match the universe domain found in the credentials (foo.com). If you haven't configured the universe domain explicitly, `googleapis.com` is the default."
406
- )
407
-
408
- # Test the case when there is a universe mismatch from the client.
409
- #
410
- # TODO: Make this test unconditional once the minimum supported version of
411
- # google-api-core becomes 2.15.0 or higher.
412
- api_core_major, api_core_minor = [
413
- int(part) for part in api_core_version.__version__.split(".")[0:2]
414
- ]
415
- if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
416
- client = client_class(
417
- client_options={"universe_domain": "bar.com"},
418
- transport=transport_class(
419
- credentials=ga_credentials.AnonymousCredentials(),
420
- ),
421
- )
422
- with pytest.raises(ValueError) as excinfo:
423
- client._validate_universe_domain()
424
- assert (
425
- str(excinfo.value)
426
- == "The configured universe domain (bar.com) does not match the universe domain found in the credentials (googleapis.com). If you haven't configured the universe domain explicitly, `googleapis.com` is the default."
427
- )
428
-
429
- # Test that ValueError is raised if universe_domain is provided via client options and credentials is None
430
- with pytest.raises(ValueError):
431
- client._compare_universes("foo.bar", None)
432
-
433
-
434
346
  @pytest.mark.parametrize(
435
347
  "client_class,transport_name",
436
348
  [
@@ -352,94 +352,6 @@ def test__get_universe_domain():
352
352
  assert str(excinfo.value) == "Universe Domain cannot be an empty string."
353
353
 
354
354
 
355
- @pytest.mark.parametrize(
356
- "client_class,transport_class,transport_name",
357
- [
358
- (
359
- CloudControlsPartnerMonitoringClient,
360
- transports.CloudControlsPartnerMonitoringGrpcTransport,
361
- "grpc",
362
- ),
363
- (
364
- CloudControlsPartnerMonitoringClient,
365
- transports.CloudControlsPartnerMonitoringRestTransport,
366
- "rest",
367
- ),
368
- ],
369
- )
370
- def test__validate_universe_domain(client_class, transport_class, transport_name):
371
- client = client_class(
372
- transport=transport_class(credentials=ga_credentials.AnonymousCredentials())
373
- )
374
- assert client._validate_universe_domain() == True
375
-
376
- # Test the case when universe is already validated.
377
- assert client._validate_universe_domain() == True
378
-
379
- if transport_name == "grpc":
380
- # Test the case where credentials are provided by the
381
- # `local_channel_credentials`. The default universes in both match.
382
- channel = grpc.secure_channel(
383
- "http://localhost/", grpc.local_channel_credentials()
384
- )
385
- client = client_class(transport=transport_class(channel=channel))
386
- assert client._validate_universe_domain() == True
387
-
388
- # Test the case where credentials do not exist: e.g. a transport is provided
389
- # with no credentials. Validation should still succeed because there is no
390
- # mismatch with non-existent credentials.
391
- channel = grpc.secure_channel(
392
- "http://localhost/", grpc.local_channel_credentials()
393
- )
394
- transport = transport_class(channel=channel)
395
- transport._credentials = None
396
- client = client_class(transport=transport)
397
- assert client._validate_universe_domain() == True
398
-
399
- # TODO: This is needed to cater for older versions of google-auth
400
- # Make this test unconditional once the minimum supported version of
401
- # google-auth becomes 2.23.0 or higher.
402
- google_auth_major, google_auth_minor = [
403
- int(part) for part in google.auth.__version__.split(".")[0:2]
404
- ]
405
- if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
406
- credentials = ga_credentials.AnonymousCredentials()
407
- credentials._universe_domain = "foo.com"
408
- # Test the case when there is a universe mismatch from the credentials.
409
- client = client_class(transport=transport_class(credentials=credentials))
410
- with pytest.raises(ValueError) as excinfo:
411
- client._validate_universe_domain()
412
- assert (
413
- str(excinfo.value)
414
- == "The configured universe domain (googleapis.com) does not match the universe domain found in the credentials (foo.com). If you haven't configured the universe domain explicitly, `googleapis.com` is the default."
415
- )
416
-
417
- # Test the case when there is a universe mismatch from the client.
418
- #
419
- # TODO: Make this test unconditional once the minimum supported version of
420
- # google-api-core becomes 2.15.0 or higher.
421
- api_core_major, api_core_minor = [
422
- int(part) for part in api_core_version.__version__.split(".")[0:2]
423
- ]
424
- if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
425
- client = client_class(
426
- client_options={"universe_domain": "bar.com"},
427
- transport=transport_class(
428
- credentials=ga_credentials.AnonymousCredentials(),
429
- ),
430
- )
431
- with pytest.raises(ValueError) as excinfo:
432
- client._validate_universe_domain()
433
- assert (
434
- str(excinfo.value)
435
- == "The configured universe domain (bar.com) does not match the universe domain found in the credentials (googleapis.com). If you haven't configured the universe domain explicitly, `googleapis.com` is the default."
436
- )
437
-
438
- # Test that ValueError is raised if universe_domain is provided via client options and credentials is None
439
- with pytest.raises(ValueError):
440
- client._compare_universes("foo.bar", None)
441
-
442
-
443
355
  @pytest.mark.parametrize(
444
356
  "client_class,transport_name",
445
357
  [
@@ -343,94 +343,6 @@ def test__get_universe_domain():
343
343
  assert str(excinfo.value) == "Universe Domain cannot be an empty string."
344
344
 
345
345
 
346
- @pytest.mark.parametrize(
347
- "client_class,transport_class,transport_name",
348
- [
349
- (
350
- CloudControlsPartnerCoreClient,
351
- transports.CloudControlsPartnerCoreGrpcTransport,
352
- "grpc",
353
- ),
354
- (
355
- CloudControlsPartnerCoreClient,
356
- transports.CloudControlsPartnerCoreRestTransport,
357
- "rest",
358
- ),
359
- ],
360
- )
361
- def test__validate_universe_domain(client_class, transport_class, transport_name):
362
- client = client_class(
363
- transport=transport_class(credentials=ga_credentials.AnonymousCredentials())
364
- )
365
- assert client._validate_universe_domain() == True
366
-
367
- # Test the case when universe is already validated.
368
- assert client._validate_universe_domain() == True
369
-
370
- if transport_name == "grpc":
371
- # Test the case where credentials are provided by the
372
- # `local_channel_credentials`. The default universes in both match.
373
- channel = grpc.secure_channel(
374
- "http://localhost/", grpc.local_channel_credentials()
375
- )
376
- client = client_class(transport=transport_class(channel=channel))
377
- assert client._validate_universe_domain() == True
378
-
379
- # Test the case where credentials do not exist: e.g. a transport is provided
380
- # with no credentials. Validation should still succeed because there is no
381
- # mismatch with non-existent credentials.
382
- channel = grpc.secure_channel(
383
- "http://localhost/", grpc.local_channel_credentials()
384
- )
385
- transport = transport_class(channel=channel)
386
- transport._credentials = None
387
- client = client_class(transport=transport)
388
- assert client._validate_universe_domain() == True
389
-
390
- # TODO: This is needed to cater for older versions of google-auth
391
- # Make this test unconditional once the minimum supported version of
392
- # google-auth becomes 2.23.0 or higher.
393
- google_auth_major, google_auth_minor = [
394
- int(part) for part in google.auth.__version__.split(".")[0:2]
395
- ]
396
- if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
397
- credentials = ga_credentials.AnonymousCredentials()
398
- credentials._universe_domain = "foo.com"
399
- # Test the case when there is a universe mismatch from the credentials.
400
- client = client_class(transport=transport_class(credentials=credentials))
401
- with pytest.raises(ValueError) as excinfo:
402
- client._validate_universe_domain()
403
- assert (
404
- str(excinfo.value)
405
- == "The configured universe domain (googleapis.com) does not match the universe domain found in the credentials (foo.com). If you haven't configured the universe domain explicitly, `googleapis.com` is the default."
406
- )
407
-
408
- # Test the case when there is a universe mismatch from the client.
409
- #
410
- # TODO: Make this test unconditional once the minimum supported version of
411
- # google-api-core becomes 2.15.0 or higher.
412
- api_core_major, api_core_minor = [
413
- int(part) for part in api_core_version.__version__.split(".")[0:2]
414
- ]
415
- if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
416
- client = client_class(
417
- client_options={"universe_domain": "bar.com"},
418
- transport=transport_class(
419
- credentials=ga_credentials.AnonymousCredentials(),
420
- ),
421
- )
422
- with pytest.raises(ValueError) as excinfo:
423
- client._validate_universe_domain()
424
- assert (
425
- str(excinfo.value)
426
- == "The configured universe domain (bar.com) does not match the universe domain found in the credentials (googleapis.com). If you haven't configured the universe domain explicitly, `googleapis.com` is the default."
427
- )
428
-
429
- # Test that ValueError is raised if universe_domain is provided via client options and credentials is None
430
- with pytest.raises(ValueError):
431
- client._compare_universes("foo.bar", None)
432
-
433
-
434
346
  @pytest.mark.parametrize(
435
347
  "client_class,transport_name",
436
348
  [
@@ -352,94 +352,6 @@ def test__get_universe_domain():
352
352
  assert str(excinfo.value) == "Universe Domain cannot be an empty string."
353
353
 
354
354
 
355
- @pytest.mark.parametrize(
356
- "client_class,transport_class,transport_name",
357
- [
358
- (
359
- CloudControlsPartnerMonitoringClient,
360
- transports.CloudControlsPartnerMonitoringGrpcTransport,
361
- "grpc",
362
- ),
363
- (
364
- CloudControlsPartnerMonitoringClient,
365
- transports.CloudControlsPartnerMonitoringRestTransport,
366
- "rest",
367
- ),
368
- ],
369
- )
370
- def test__validate_universe_domain(client_class, transport_class, transport_name):
371
- client = client_class(
372
- transport=transport_class(credentials=ga_credentials.AnonymousCredentials())
373
- )
374
- assert client._validate_universe_domain() == True
375
-
376
- # Test the case when universe is already validated.
377
- assert client._validate_universe_domain() == True
378
-
379
- if transport_name == "grpc":
380
- # Test the case where credentials are provided by the
381
- # `local_channel_credentials`. The default universes in both match.
382
- channel = grpc.secure_channel(
383
- "http://localhost/", grpc.local_channel_credentials()
384
- )
385
- client = client_class(transport=transport_class(channel=channel))
386
- assert client._validate_universe_domain() == True
387
-
388
- # Test the case where credentials do not exist: e.g. a transport is provided
389
- # with no credentials. Validation should still succeed because there is no
390
- # mismatch with non-existent credentials.
391
- channel = grpc.secure_channel(
392
- "http://localhost/", grpc.local_channel_credentials()
393
- )
394
- transport = transport_class(channel=channel)
395
- transport._credentials = None
396
- client = client_class(transport=transport)
397
- assert client._validate_universe_domain() == True
398
-
399
- # TODO: This is needed to cater for older versions of google-auth
400
- # Make this test unconditional once the minimum supported version of
401
- # google-auth becomes 2.23.0 or higher.
402
- google_auth_major, google_auth_minor = [
403
- int(part) for part in google.auth.__version__.split(".")[0:2]
404
- ]
405
- if google_auth_major > 2 or (google_auth_major == 2 and google_auth_minor >= 23):
406
- credentials = ga_credentials.AnonymousCredentials()
407
- credentials._universe_domain = "foo.com"
408
- # Test the case when there is a universe mismatch from the credentials.
409
- client = client_class(transport=transport_class(credentials=credentials))
410
- with pytest.raises(ValueError) as excinfo:
411
- client._validate_universe_domain()
412
- assert (
413
- str(excinfo.value)
414
- == "The configured universe domain (googleapis.com) does not match the universe domain found in the credentials (foo.com). If you haven't configured the universe domain explicitly, `googleapis.com` is the default."
415
- )
416
-
417
- # Test the case when there is a universe mismatch from the client.
418
- #
419
- # TODO: Make this test unconditional once the minimum supported version of
420
- # google-api-core becomes 2.15.0 or higher.
421
- api_core_major, api_core_minor = [
422
- int(part) for part in api_core_version.__version__.split(".")[0:2]
423
- ]
424
- if api_core_major > 2 or (api_core_major == 2 and api_core_minor >= 15):
425
- client = client_class(
426
- client_options={"universe_domain": "bar.com"},
427
- transport=transport_class(
428
- credentials=ga_credentials.AnonymousCredentials(),
429
- ),
430
- )
431
- with pytest.raises(ValueError) as excinfo:
432
- client._validate_universe_domain()
433
- assert (
434
- str(excinfo.value)
435
- == "The configured universe domain (bar.com) does not match the universe domain found in the credentials (googleapis.com). If you haven't configured the universe domain explicitly, `googleapis.com` is the default."
436
- )
437
-
438
- # Test that ValueError is raised if universe_domain is provided via client options and credentials is None
439
- with pytest.raises(ValueError):
440
- client._compare_universes("foo.bar", None)
441
-
442
-
443
355
  @pytest.mark.parametrize(
444
356
  "client_class,transport_name",
445
357
  [