Skip to content

Commit

Permalink
feat: added EnterpriseConfig (#11964)
Browse files Browse the repository at this point in the history
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:
googleapis/googleapis@23321ee

Source-Link:
googleapis/googleapis-gen@88fa3a3
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:
googleapis/googleapis@c8ecf34

Source-Link:
googleapis/googleapis-gen@dd3274c
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiZGQzMjc0YzRlYjE0ZDk2MzBmYjljZmMzOTNmOTMzZDllNDA4OTM5NyJ9
END_NESTED_COMMIT

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 1, 2023
1 parent 5cc617f commit 63668fe
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
DeleteNodePoolRequest,
DnsCacheConfig,
DNSConfig,
EnterpriseConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Fleet,
Expand Down Expand Up @@ -230,6 +231,7 @@
"DeleteNodePoolRequest",
"DnsCacheConfig",
"DNSConfig",
"EnterpriseConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
"Fleet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
DeleteNodePoolRequest,
DnsCacheConfig,
DNSConfig,
EnterpriseConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Fleet,
Expand Down Expand Up @@ -226,6 +227,7 @@
"DeleteClusterRequest",
"DeleteNodePoolRequest",
"DnsCacheConfig",
"EnterpriseConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
"Fleet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
DeleteNodePoolRequest,
DnsCacheConfig,
DNSConfig,
EnterpriseConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Fleet,
Expand Down Expand Up @@ -217,6 +218,7 @@
"DeleteNodePoolRequest",
"DnsCacheConfig",
"DNSConfig",
"EnterpriseConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
"Fleet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@
"LocalNvmeSsdBlockConfig",
"EphemeralStorageLocalSsdConfig",
"ResourceManagerTags",
"EnterpriseConfig",
},
)

Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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))
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
DeleteNodePoolRequest,
DnsCacheConfig,
DNSConfig,
EnterpriseConfig,
EphemeralStorageConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Expand Down Expand Up @@ -243,6 +244,7 @@
"DeleteClusterRequest",
"DeleteNodePoolRequest",
"DnsCacheConfig",
"EnterpriseConfig",
"EphemeralStorageConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
DeleteNodePoolRequest,
DnsCacheConfig,
DNSConfig,
EnterpriseConfig,
EphemeralStorageConfig,
EphemeralStorageLocalSsdConfig,
FastSocket,
Expand Down Expand Up @@ -234,6 +235,7 @@
"DeleteNodePoolRequest",
"DnsCacheConfig",
"DNSConfig",
"EnterpriseConfig",
"EphemeralStorageConfig",
"EphemeralStorageLocalSsdConfig",
"FastSocket",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
"MonitoringComponentConfig",
"Fleet",
"ResourceManagerTags",
"EnterpriseConfig",
},
)

Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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))

0 comments on commit 63668fe

Please sign in to comment.