Skip to content

Commit 63668fe

Browse files
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: 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>
1 parent 5cc617f commit 63668fe

File tree

7 files changed

+90
-0
lines changed

7 files changed

+90
-0
lines changed

packages/google-cloud-container/google/cloud/container/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
DeleteNodePoolRequest,
6464
DnsCacheConfig,
6565
DNSConfig,
66+
EnterpriseConfig,
6667
EphemeralStorageLocalSsdConfig,
6768
FastSocket,
6869
Fleet,
@@ -230,6 +231,7 @@
230231
"DeleteNodePoolRequest",
231232
"DnsCacheConfig",
232233
"DNSConfig",
234+
"EnterpriseConfig",
233235
"EphemeralStorageLocalSsdConfig",
234236
"FastSocket",
235237
"Fleet",

packages/google-cloud-container/google/cloud/container_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
DeleteNodePoolRequest,
5959
DnsCacheConfig,
6060
DNSConfig,
61+
EnterpriseConfig,
6162
EphemeralStorageLocalSsdConfig,
6263
FastSocket,
6364
Fleet,
@@ -226,6 +227,7 @@
226227
"DeleteClusterRequest",
227228
"DeleteNodePoolRequest",
228229
"DnsCacheConfig",
230+
"EnterpriseConfig",
229231
"EphemeralStorageLocalSsdConfig",
230232
"FastSocket",
231233
"Fleet",

packages/google-cloud-container/google/cloud/container_v1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
DeleteNodePoolRequest,
5353
DnsCacheConfig,
5454
DNSConfig,
55+
EnterpriseConfig,
5556
EphemeralStorageLocalSsdConfig,
5657
FastSocket,
5758
Fleet,
@@ -217,6 +218,7 @@
217218
"DeleteNodePoolRequest",
218219
"DnsCacheConfig",
219220
"DNSConfig",
221+
"EnterpriseConfig",
220222
"EphemeralStorageLocalSsdConfig",
221223
"FastSocket",
222224
"Fleet",

packages/google-cloud-container/google/cloud/container_v1/types/cluster_service.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@
190190
"LocalNvmeSsdBlockConfig",
191191
"EphemeralStorageLocalSsdConfig",
192192
"ResourceManagerTags",
193+
"EnterpriseConfig",
193194
},
194195
)
195196

@@ -2674,6 +2675,8 @@ class Cluster(proto.Message):
26742675
for the cluster.
26752676
enable_k8s_beta_apis (google.cloud.container_v1.types.K8sBetaAPIConfig):
26762677
Beta APIs Config
2678+
enterprise_config (google.cloud.container_v1.types.EnterpriseConfig):
2679+
GKE Enterprise Configuration.
26772680
"""
26782681

26792682
class Status(proto.Enum):
@@ -3015,6 +3018,11 @@ class Status(proto.Enum):
30153018
number=143,
30163019
message="K8sBetaAPIConfig",
30173020
)
3021+
enterprise_config: "EnterpriseConfig" = proto.Field(
3022+
proto.MESSAGE,
3023+
number=149,
3024+
message="EnterpriseConfig",
3025+
)
30183026

30193027

30203028
class K8sBetaAPIConfig(proto.Message):
@@ -9171,4 +9179,36 @@ class ResourceManagerTags(proto.Message):
91719179
)
91729180

91739181

9182+
class EnterpriseConfig(proto.Message):
9183+
r"""EnterpriseConfig is the cluster enterprise configuration.
9184+
9185+
Attributes:
9186+
cluster_tier (google.cloud.container_v1.types.EnterpriseConfig.ClusterTier):
9187+
Output only. [Output only] cluster_tier specifies the
9188+
premium tier of the cluster.
9189+
"""
9190+
9191+
class ClusterTier(proto.Enum):
9192+
r"""Premium tiers for GKE Cluster.
9193+
9194+
Values:
9195+
CLUSTER_TIER_UNSPECIFIED (0):
9196+
CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
9197+
STANDARD (1):
9198+
STANDARD indicates a standard GKE cluster.
9199+
ENTERPRISE (2):
9200+
ENTERPRISE indicates a GKE Enterprise
9201+
cluster.
9202+
"""
9203+
CLUSTER_TIER_UNSPECIFIED = 0
9204+
STANDARD = 1
9205+
ENTERPRISE = 2
9206+
9207+
cluster_tier: ClusterTier = proto.Field(
9208+
proto.ENUM,
9209+
number=1,
9210+
enum=ClusterTier,
9211+
)
9212+
9213+
91749214
__all__ = tuple(sorted(__protobuf__.manifest))

packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
DeleteNodePoolRequest,
6060
DnsCacheConfig,
6161
DNSConfig,
62+
EnterpriseConfig,
6263
EphemeralStorageConfig,
6364
EphemeralStorageLocalSsdConfig,
6465
FastSocket,
@@ -243,6 +244,7 @@
243244
"DeleteClusterRequest",
244245
"DeleteNodePoolRequest",
245246
"DnsCacheConfig",
247+
"EnterpriseConfig",
246248
"EphemeralStorageConfig",
247249
"EphemeralStorageLocalSsdConfig",
248250
"FastSocket",

packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
DeleteNodePoolRequest,
5454
DnsCacheConfig,
5555
DNSConfig,
56+
EnterpriseConfig,
5657
EphemeralStorageConfig,
5758
EphemeralStorageLocalSsdConfig,
5859
FastSocket,
@@ -234,6 +235,7 @@
234235
"DeleteNodePoolRequest",
235236
"DnsCacheConfig",
236237
"DNSConfig",
238+
"EnterpriseConfig",
237239
"EphemeralStorageConfig",
238240
"EphemeralStorageLocalSsdConfig",
239241
"FastSocket",

packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
"MonitoringComponentConfig",
208208
"Fleet",
209209
"ResourceManagerTags",
210+
"EnterpriseConfig",
210211
},
211212
)
212213

@@ -3196,6 +3197,8 @@ class Cluster(proto.Message):
31963197
security_posture_config (google.cloud.container_v1beta1.types.SecurityPostureConfig):
31973198
Enable/Disable Security Posture API features
31983199
for the cluster.
3200+
enterprise_config (google.cloud.container_v1beta1.types.EnterpriseConfig):
3201+
GKE Enterprise Configuration.
31993202
"""
32003203

32013204
class Status(proto.Enum):
@@ -3580,6 +3583,11 @@ class Status(proto.Enum):
35803583
number=145,
35813584
message="SecurityPostureConfig",
35823585
)
3586+
enterprise_config: "EnterpriseConfig" = proto.Field(
3587+
proto.MESSAGE,
3588+
number=149,
3589+
message="EnterpriseConfig",
3590+
)
35833591

35843592

35853593
class K8sBetaAPIConfig(proto.Message):
@@ -10209,4 +10217,36 @@ class ResourceManagerTags(proto.Message):
1020910217
)
1021010218

1021110219

10220+
class EnterpriseConfig(proto.Message):
10221+
r"""EnterpriseConfig is the cluster enterprise configuration.
10222+
10223+
Attributes:
10224+
cluster_tier (google.cloud.container_v1beta1.types.EnterpriseConfig.ClusterTier):
10225+
Output only. [Output only] cluster_tier specifies the
10226+
premium tier of the cluster.
10227+
"""
10228+
10229+
class ClusterTier(proto.Enum):
10230+
r"""Premium tiers for GKE Cluster.
10231+
10232+
Values:
10233+
CLUSTER_TIER_UNSPECIFIED (0):
10234+
CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
10235+
STANDARD (1):
10236+
STANDARD indicates a standard GKE cluster.
10237+
ENTERPRISE (2):
10238+
ENTERPRISE indicates a GKE Enterprise
10239+
cluster.
10240+
"""
10241+
CLUSTER_TIER_UNSPECIFIED = 0
10242+
STANDARD = 1
10243+
ENTERPRISE = 2
10244+
10245+
cluster_tier: ClusterTier = proto.Field(
10246+
proto.ENUM,
10247+
number=1,
10248+
enum=ClusterTier,
10249+
)
10250+
10251+
1021210252
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)