From 63668febe0b2d3a0ffce2cbf7e23a61a499817a3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:51:33 -0400 Subject: [PATCH] feat: added EnterpriseConfig (#11964) BEGIN_COMMIT_OVERRIDE feat: add a new cluster field for the cluster tier of GKE clusters feat: added EnterpriseConfig END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 578552799 Source-Link: https://github.com/googleapis/googleapis/commit/23321ee5c31ad844fde2449e7469bd932e9cd6f8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/88fa3a391a48bce7bc81762aad0ac6de4a8fb8be Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiODhmYTNhMzkxYTQ4YmNlN2JjODE3NjJhYWQwYWM2ZGU0YThmYjhiZSJ9 BEGIN_NESTED_COMMIT feat: added EnterpriseConfig feat: add a new cluster field for the cluster tier of GKE clusters PiperOrigin-RevId: 578552276 Source-Link: https://github.com/googleapis/googleapis/commit/c8ecf346f0e69cc7016889662ee48e24b590336d Source-Link: https://github.com/googleapis/googleapis-gen/commit/dd3274c4eb14d9630fb9cfc393f933d9e4089397 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZGQzMjc0YzRlYjE0ZDk2MzBmYjljZmMzOTNmOTMzZDllNDA4OTM5NyJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot --- .../google/cloud/container/__init__.py | 2 + .../google/cloud/container_v1/__init__.py | 2 + .../cloud/container_v1/types/__init__.py | 2 + .../container_v1/types/cluster_service.py | 40 +++++++++++++++++++ .../cloud/container_v1beta1/__init__.py | 2 + .../cloud/container_v1beta1/types/__init__.py | 2 + .../types/cluster_service.py | 40 +++++++++++++++++++ 7 files changed, 90 insertions(+) diff --git a/packages/google-cloud-container/google/cloud/container/__init__.py b/packages/google-cloud-container/google/cloud/container/__init__.py index 9fa8e1f77e3b..b65c7490c983 100644 --- a/packages/google-cloud-container/google/cloud/container/__init__.py +++ b/packages/google-cloud-container/google/cloud/container/__init__.py @@ -63,6 +63,7 @@ DeleteNodePoolRequest, DnsCacheConfig, DNSConfig, + EnterpriseConfig, EphemeralStorageLocalSsdConfig, FastSocket, Fleet, @@ -230,6 +231,7 @@ "DeleteNodePoolRequest", "DnsCacheConfig", "DNSConfig", + "EnterpriseConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", "Fleet", diff --git a/packages/google-cloud-container/google/cloud/container_v1/__init__.py b/packages/google-cloud-container/google/cloud/container_v1/__init__.py index f2328217b9e3..fa4646278ff2 100644 --- a/packages/google-cloud-container/google/cloud/container_v1/__init__.py +++ b/packages/google-cloud-container/google/cloud/container_v1/__init__.py @@ -58,6 +58,7 @@ DeleteNodePoolRequest, DnsCacheConfig, DNSConfig, + EnterpriseConfig, EphemeralStorageLocalSsdConfig, FastSocket, Fleet, @@ -226,6 +227,7 @@ "DeleteClusterRequest", "DeleteNodePoolRequest", "DnsCacheConfig", + "EnterpriseConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", "Fleet", diff --git a/packages/google-cloud-container/google/cloud/container_v1/types/__init__.py b/packages/google-cloud-container/google/cloud/container_v1/types/__init__.py index f50c7ac61e0d..235ab87c3357 100644 --- a/packages/google-cloud-container/google/cloud/container_v1/types/__init__.py +++ b/packages/google-cloud-container/google/cloud/container_v1/types/__init__.py @@ -52,6 +52,7 @@ DeleteNodePoolRequest, DnsCacheConfig, DNSConfig, + EnterpriseConfig, EphemeralStorageLocalSsdConfig, FastSocket, Fleet, @@ -217,6 +218,7 @@ "DeleteNodePoolRequest", "DnsCacheConfig", "DNSConfig", + "EnterpriseConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", "Fleet", diff --git a/packages/google-cloud-container/google/cloud/container_v1/types/cluster_service.py b/packages/google-cloud-container/google/cloud/container_v1/types/cluster_service.py index fbedf67ea13c..40b83a3b04e8 100644 --- a/packages/google-cloud-container/google/cloud/container_v1/types/cluster_service.py +++ b/packages/google-cloud-container/google/cloud/container_v1/types/cluster_service.py @@ -190,6 +190,7 @@ "LocalNvmeSsdBlockConfig", "EphemeralStorageLocalSsdConfig", "ResourceManagerTags", + "EnterpriseConfig", }, ) @@ -2674,6 +2675,8 @@ class Cluster(proto.Message): for the cluster. enable_k8s_beta_apis (google.cloud.container_v1.types.K8sBetaAPIConfig): Beta APIs Config + enterprise_config (google.cloud.container_v1.types.EnterpriseConfig): + GKE Enterprise Configuration. """ class Status(proto.Enum): @@ -3015,6 +3018,11 @@ class Status(proto.Enum): number=143, message="K8sBetaAPIConfig", ) + enterprise_config: "EnterpriseConfig" = proto.Field( + proto.MESSAGE, + number=149, + message="EnterpriseConfig", + ) class K8sBetaAPIConfig(proto.Message): @@ -9171,4 +9179,36 @@ class ResourceManagerTags(proto.Message): ) +class EnterpriseConfig(proto.Message): + r"""EnterpriseConfig is the cluster enterprise configuration. + + Attributes: + cluster_tier (google.cloud.container_v1.types.EnterpriseConfig.ClusterTier): + Output only. [Output only] cluster_tier specifies the + premium tier of the cluster. + """ + + class ClusterTier(proto.Enum): + r"""Premium tiers for GKE Cluster. + + Values: + CLUSTER_TIER_UNSPECIFIED (0): + CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. + STANDARD (1): + STANDARD indicates a standard GKE cluster. + ENTERPRISE (2): + ENTERPRISE indicates a GKE Enterprise + cluster. + """ + CLUSTER_TIER_UNSPECIFIED = 0 + STANDARD = 1 + ENTERPRISE = 2 + + cluster_tier: ClusterTier = proto.Field( + proto.ENUM, + number=1, + enum=ClusterTier, + ) + + __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py b/packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py index f9f5f544e667..4a658f7a2f98 100644 --- a/packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py +++ b/packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py @@ -59,6 +59,7 @@ DeleteNodePoolRequest, DnsCacheConfig, DNSConfig, + EnterpriseConfig, EphemeralStorageConfig, EphemeralStorageLocalSsdConfig, FastSocket, @@ -243,6 +244,7 @@ "DeleteClusterRequest", "DeleteNodePoolRequest", "DnsCacheConfig", + "EnterpriseConfig", "EphemeralStorageConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", diff --git a/packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py b/packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py index f18e012582f8..2e90c6598f36 100644 --- a/packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py +++ b/packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py @@ -53,6 +53,7 @@ DeleteNodePoolRequest, DnsCacheConfig, DNSConfig, + EnterpriseConfig, EphemeralStorageConfig, EphemeralStorageLocalSsdConfig, FastSocket, @@ -234,6 +235,7 @@ "DeleteNodePoolRequest", "DnsCacheConfig", "DNSConfig", + "EnterpriseConfig", "EphemeralStorageConfig", "EphemeralStorageLocalSsdConfig", "FastSocket", diff --git a/packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py b/packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py index 99f2729375cf..ef13d568e6e3 100644 --- a/packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py +++ b/packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py @@ -207,6 +207,7 @@ "MonitoringComponentConfig", "Fleet", "ResourceManagerTags", + "EnterpriseConfig", }, ) @@ -3196,6 +3197,8 @@ class Cluster(proto.Message): security_posture_config (google.cloud.container_v1beta1.types.SecurityPostureConfig): Enable/Disable Security Posture API features for the cluster. + enterprise_config (google.cloud.container_v1beta1.types.EnterpriseConfig): + GKE Enterprise Configuration. """ class Status(proto.Enum): @@ -3580,6 +3583,11 @@ class Status(proto.Enum): number=145, message="SecurityPostureConfig", ) + enterprise_config: "EnterpriseConfig" = proto.Field( + proto.MESSAGE, + number=149, + message="EnterpriseConfig", + ) class K8sBetaAPIConfig(proto.Message): @@ -10209,4 +10217,36 @@ class ResourceManagerTags(proto.Message): ) +class EnterpriseConfig(proto.Message): + r"""EnterpriseConfig is the cluster enterprise configuration. + + Attributes: + cluster_tier (google.cloud.container_v1beta1.types.EnterpriseConfig.ClusterTier): + Output only. [Output only] cluster_tier specifies the + premium tier of the cluster. + """ + + class ClusterTier(proto.Enum): + r"""Premium tiers for GKE Cluster. + + Values: + CLUSTER_TIER_UNSPECIFIED (0): + CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. + STANDARD (1): + STANDARD indicates a standard GKE cluster. + ENTERPRISE (2): + ENTERPRISE indicates a GKE Enterprise + cluster. + """ + CLUSTER_TIER_UNSPECIFIED = 0 + STANDARD = 1 + ENTERPRISE = 2 + + cluster_tier: ClusterTier = proto.Field( + proto.ENUM, + number=1, + enum=ClusterTier, + ) + + __all__ = tuple(sorted(__protobuf__.manifest))