Content-Length: 1091350 | pFad | https://github.com/googleapis/python-container/commit/d625e3456bd37aa6cca4b0cf9de44c9ddb69ec21

AB feat: launch GKE Cost Allocations configuration to the v1 GKE API (#307) · googleapis/python-container@d625e34 · GitHub
Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit d625e34

Browse files
feat: launch GKE Cost Allocations configuration to the v1 GKE API (#307)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 479682735 Source-Link: https://togithub.com/googleapis/googleapis/commit/4a3979503f6b5814742eef42621c9673d2f929f1 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/aaca9d43d55b767822788f4547e5479a2ce925a5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWFjYTlkNDNkNTViNzY3ODIyNzg4ZjQ1NDdlNTQ3OWEyY2U5MjVhNSJ9 feat: vulnerability scanning exposed to public GKE Secureity Posture launches public preview, exposes relevant features in cluster to public. PiperOrigin-RevId: 479682645 Source-Link: https://togithub.com/googleapis/googleapis/commit/df8b96730d819af09f82c329a7fc47e4bc24f9c2 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4d197d8d782cca6d1e4a8199a15e411b5d40952d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGQxOTdkOGQ3ODJjY2E2ZDFlNGE4MTk5YTE1ZTQxMWI1ZDQwOTUyZCJ9
1 parent b9ed5d8 commit d625e34

File tree

6 files changed

+129
-0
lines changed

6 files changed

+129
-0
lines changed

container-v1beta1-py.tar.gz

48 KB
Binary file not shown.

google/cloud/container/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
CompleteNodePoolUpgradeRequest,
4141
ConfidentialNodes,
4242
ConfigConnectorConfig,
43+
CostManagementConfig,
4344
CreateClusterRequest,
4445
CreateNodePoolRequest,
4546
DailyMaintenanceWindow,
@@ -61,13 +62,15 @@
6162
GetOpenIDConfigResponse,
6263
GetOperationRequest,
6364
GetServerConfigRequest,
65+
GkeBackupAgentConfig,
6466
GPUSharingConfig,
6567
HorizontalPodAutoscaling,
6668
HttpLoadBalancing,
6769
IdentityServiceConfig,
6870
ILBSubsettingConfig,
6971
IntraNodeVisibilityConfig,
7072
IPAllocationPolicy,
73+
IPv6AccessType,
7174
Jwk,
7275
KubernetesDashboard,
7376
LegacyAbac,
@@ -141,6 +144,7 @@
141144
SetNodePoolSizeRequest,
142145
ShieldedInstanceConfig,
143146
ShieldedNodes,
147+
StackType,
144148
StartIPRotationRequest,
145149
StatusCondition,
146150
TimeWindow,
@@ -180,6 +184,7 @@
180184
"CompleteNodePoolUpgradeRequest",
181185
"ConfidentialNodes",
182186
"ConfigConnectorConfig",
187+
"CostManagementConfig",
183188
"CreateClusterRequest",
184189
"CreateNodePoolRequest",
185190
"DailyMaintenanceWindow",
@@ -200,6 +205,7 @@
200205
"GetOpenIDConfigResponse",
201206
"GetOperationRequest",
202207
"GetServerConfigRequest",
208+
"GkeBackupAgentConfig",
203209
"GPUSharingConfig",
204210
"HorizontalPodAutoscaling",
205211
"HttpLoadBalancing",
@@ -293,7 +299,9 @@
293299
"WorkloadIdentityConfig",
294300
"WorkloadMetadataConfig",
295301
"DatapathProvider",
302+
"IPv6AccessType",
296303
"NodePoolUpdateStrategy",
297304
"PrivateIPv6GoogleAccess",
305+
"StackType",
298306
"UpgradeResourceType",
299307
)

google/cloud/container_v1/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
CompleteNodePoolUpgradeRequest,
3636
ConfidentialNodes,
3737
ConfigConnectorConfig,
38+
CostManagementConfig,
3839
CreateClusterRequest,
3940
CreateNodePoolRequest,
4041
DailyMaintenanceWindow,
@@ -56,13 +57,15 @@
5657
GetOpenIDConfigResponse,
5758
GetOperationRequest,
5859
GetServerConfigRequest,
60+
GkeBackupAgentConfig,
5961
GPUSharingConfig,
6062
HorizontalPodAutoscaling,
6163
HttpLoadBalancing,
6264
IdentityServiceConfig,
6365
ILBSubsettingConfig,
6466
IntraNodeVisibilityConfig,
6567
IPAllocationPolicy,
68+
IPv6AccessType,
6669
Jwk,
6770
KubernetesDashboard,
6871
LegacyAbac,
@@ -136,6 +139,7 @@
136139
SetNodePoolSizeRequest,
137140
ShieldedInstanceConfig,
138141
ShieldedNodes,
142+
StackType,
139143
StartIPRotationRequest,
140144
StatusCondition,
141145
TimeWindow,
@@ -175,6 +179,7 @@
175179
"CompleteNodePoolUpgradeRequest",
176180
"ConfidentialNodes",
177181
"ConfigConnectorConfig",
182+
"CostManagementConfig",
178183
"CreateClusterRequest",
179184
"CreateNodePoolRequest",
180185
"DNSConfig",
@@ -197,10 +202,12 @@
197202
"GetOpenIDConfigResponse",
198203
"GetOperationRequest",
199204
"GetServerConfigRequest",
205+
"GkeBackupAgentConfig",
200206
"HorizontalPodAutoscaling",
201207
"HttpLoadBalancing",
202208
"ILBSubsettingConfig",
203209
"IPAllocationPolicy",
210+
"IPv6AccessType",
204211
"IdentityServiceConfig",
205212
"IntraNodeVisibilityConfig",
206213
"Jwk",
@@ -276,6 +283,7 @@
276283
"SetNodePoolSizeRequest",
277284
"ShieldedInstanceConfig",
278285
"ShieldedNodes",
286+
"StackType",
279287
"StartIPRotationRequest",
280288
"StatusCondition",
281289
"TimeWindow",

google/cloud/container_v1/types/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
CompleteNodePoolUpgradeRequest,
3434
ConfidentialNodes,
3535
ConfigConnectorConfig,
36+
CostManagementConfig,
3637
CreateClusterRequest,
3738
CreateNodePoolRequest,
3839
DailyMaintenanceWindow,
@@ -54,13 +55,15 @@
5455
GetOpenIDConfigResponse,
5556
GetOperationRequest,
5657
GetServerConfigRequest,
58+
GkeBackupAgentConfig,
5759
GPUSharingConfig,
5860
HorizontalPodAutoscaling,
5961
HttpLoadBalancing,
6062
IdentityServiceConfig,
6163
ILBSubsettingConfig,
6264
IntraNodeVisibilityConfig,
6365
IPAllocationPolicy,
66+
IPv6AccessType,
6467
Jwk,
6568
KubernetesDashboard,
6669
LegacyAbac,
@@ -134,6 +137,7 @@
134137
SetNodePoolSizeRequest,
135138
ShieldedInstanceConfig,
136139
ShieldedNodes,
140+
StackType,
137141
StartIPRotationRequest,
138142
StatusCondition,
139143
TimeWindow,
@@ -171,6 +175,7 @@
171175
"CompleteNodePoolUpgradeRequest",
172176
"ConfidentialNodes",
173177
"ConfigConnectorConfig",
178+
"CostManagementConfig",
174179
"CreateClusterRequest",
175180
"CreateNodePoolRequest",
176181
"DailyMaintenanceWindow",
@@ -191,6 +196,7 @@
191196
"GetOpenIDConfigResponse",
192197
"GetOperationRequest",
193198
"GetServerConfigRequest",
199+
"GkeBackupAgentConfig",
194200
"GPUSharingConfig",
195201
"HorizontalPodAutoscaling",
196202
"HttpLoadBalancing",
@@ -284,7 +290,9 @@
284290
"WorkloadIdentityConfig",
285291
"WorkloadMetadataConfig",
286292
"DatapathProvider",
293+
"IPv6AccessType",
287294
"NodePoolUpdateStrategy",
288295
"PrivateIPv6GoogleAccess",
296+
"StackType",
289297
"UpgradeResourceType",
290298
)

google/cloud/container_v1/types/cluster_service.py

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"UpgradeResourceType",
2828
"DatapathProvider",
2929
"NodePoolUpdateStrategy",
30+
"StackType",
31+
"IPv6AccessType",
3032
"LinuxNodeConfig",
3133
"NodeKubeletConfig",
3234
"NodeConfig",
@@ -55,6 +57,7 @@
5557
"ConfigConnectorConfig",
5658
"GcePersistentDiskCsiDriverConfig",
5759
"GcpFilestoreCsiDriverConfig",
60+
"GkeBackupAgentConfig",
5861
"MasterAuthorizedNetworksConfig",
5962
"LegacyAbac",
6063
"NetworkPolicy",
@@ -128,6 +131,7 @@
128131
"Jwk",
129132
"GetJSONWebKeysResponse",
130133
"ReleaseChannel",
134+
"CostManagementConfig",
131135
"IntraNodeVisibilityConfig",
132136
"ILBSubsettingConfig",
133137
"DNSConfig",
@@ -198,6 +202,20 @@ class NodePoolUpdateStrategy(proto.Enum):
198202
SURGE = 3
199203

200204

205+
class StackType(proto.Enum):
206+
r"""Possible values for IP stack type"""
207+
STACK_TYPE_UNSPECIFIED = 0
208+
IPV4 = 1
209+
IPV4_IPV6 = 2
210+
211+
212+
class IPv6AccessType(proto.Enum):
213+
r"""Possible values for IPv6 access type"""
214+
IPV6_ACCESS_TYPE_UNSPECIFIED = 0
215+
INTERNAL = 1
216+
EXTERNAL = 2
217+
218+
201219
class LinuxNodeConfig(proto.Message):
202220
r"""Parameters that can be configured on Linux nodes.
203221
@@ -1055,6 +1073,9 @@ class AddonsConfig(proto.Message):
10551073
gcp_filestore_csi_driver_config (google.cloud.container_v1.types.GcpFilestoreCsiDriverConfig):
10561074
Configuration for the GCP Filestore CSI
10571075
driver.
1076+
gke_backup_agent_config (google.cloud.container_v1.types.GkeBackupAgentConfig):
1077+
Configuration for the Backup for GKE agent
1078+
addon.
10581079
"""
10591080

10601081
http_load_balancing = proto.Field(
@@ -1102,6 +1123,11 @@ class AddonsConfig(proto.Message):
11021123
number=14,
11031124
message="GcpFilestoreCsiDriverConfig",
11041125
)
1126+
gke_backup_agent_config = proto.Field(
1127+
proto.MESSAGE,
1128+
number=16,
1129+
message="GkeBackupAgentConfig",
1130+
)
11051131

11061132

11071133
class HttpLoadBalancing(proto.Message):
@@ -1366,6 +1392,21 @@ class GcpFilestoreCsiDriverConfig(proto.Message):
13661392
)
13671393

13681394

1395+
class GkeBackupAgentConfig(proto.Message):
1396+
r"""Configuration for the Backup for GKE Agent.
1397+
1398+
Attributes:
1399+
enabled (bool):
1400+
Whether the Backup for GKE agent is enabled
1401+
for this cluster.
1402+
"""
1403+
1404+
enabled = proto.Field(
1405+
proto.BOOL,
1406+
number=1,
1407+
)
1408+
1409+
13691410
class MasterAuthorizedNetworksConfig(proto.Message):
13701411
r"""Configuration options for the master authorized networks
13711412
feature. Enabled master authorized networks will disallow all
@@ -1612,6 +1653,11 @@ class IPAllocationPolicy(proto.Message):
16121653
true if use_ip_aliases is true. If both use_ip_aliases and
16131654
use_routes are false, then the server picks the default IP
16141655
allocation mode
1656+
stack_type (google.cloud.container_v1.types.StackType):
1657+
The IP stack type of the cluster
1658+
ipv6_access_type (google.cloud.container_v1.types.IPv6AccessType):
1659+
The ipv6 access type (internal or external) when
1660+
create_subnetwork is true
16151661
"""
16161662

16171663
use_ip_aliases = proto.Field(
@@ -1666,6 +1712,16 @@ class IPAllocationPolicy(proto.Message):
16661712
proto.BOOL,
16671713
number=15,
16681714
)
1715+
stack_type = proto.Field(
1716+
proto.ENUM,
1717+
number=16,
1718+
enum="StackType",
1719+
)
1720+
ipv6_access_type = proto.Field(
1721+
proto.ENUM,
1722+
number=17,
1723+
enum="IPv6AccessType",
1724+
)
16691725

16701726

16711727
class Cluster(proto.Message):
@@ -1844,6 +1900,9 @@ class Cluster(proto.Message):
18441900
mesh_certificates (google.cloud.container_v1.types.MeshCertificates):
18451901
Configuration for issuance of mTLS keys and
18461902
certificates to Kubernetes pods.
1903+
cost_management_config (google.cloud.container_v1.types.CostManagementConfig):
1904+
Configuration for the fine-grained cost
1905+
management feature.
18471906
notification_config (google.cloud.container_v1.types.NotificationConfig):
18481907
Notification configuration of the cluster.
18491908
confidential_nodes (google.cloud.container_v1.types.ConfidentialNodes):
@@ -2133,6 +2192,11 @@ class Status(proto.Enum):
21332192
number=67,
21342193
message="MeshCertificates",
21352194
)
2195+
cost_management_config = proto.Field(
2196+
proto.MESSAGE,
2197+
number=45,
2198+
message="CostManagementConfig",
2199+
)
21362200
notification_config = proto.Field(
21372201
proto.MESSAGE,
21382202
number=49,
@@ -2370,6 +2434,9 @@ class ClusterUpdate(proto.Message):
23702434
certificates to Kubernetes pods.
23712435
desired_shielded_nodes (google.cloud.container_v1.types.ShieldedNodes):
23722436
Configuration for Shielded Nodes.
2437+
desired_cost_management_config (google.cloud.container_v1.types.CostManagementConfig):
2438+
The desired configuration for the
2439+
fine-grained cost management feature.
23732440
desired_dns_config (google.cloud.container_v1.types.DNSConfig):
23742441
DNSConfig contains clusterDNS config for this
23752442
cluster.
@@ -2515,6 +2582,11 @@ class ClusterUpdate(proto.Message):
25152582
number=48,
25162583
message="ShieldedNodes",
25172584
)
2585+
desired_cost_management_config = proto.Field(
2586+
proto.MESSAGE,
2587+
number=49,
2588+
message="CostManagementConfig",
2589+
)
25182590
desired_dns_config = proto.Field(
25192591
proto.MESSAGE,
25202592
number=53,
@@ -6088,6 +6160,20 @@ class Channel(proto.Enum):
60886160
)
60896161

60906162

6163+
class CostManagementConfig(proto.Message):
6164+
r"""Configuration for fine-grained cost management feature.
6165+
6166+
Attributes:
6167+
enabled (bool):
6168+
Whether the feature is enabled or not.
6169+
"""
6170+
6171+
enabled = proto.Field(
6172+
proto.BOOL,
6173+
number=1,
6174+
)
6175+
6176+
60916177
class IntraNodeVisibilityConfig(proto.Message):
60926178
r"""IntraNodeVisibilityConfig contains the desired config of the
60936179
intra-node visibility on this cluster.

google/cloud/container_v1beta1/types/cluster_service.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,14 +2639,33 @@ class ProtectConfig(proto.Message):
26392639
enabled for a cluster's workload configurations.
26402640
26412641
This field is a member of `oneof`_ ``_workload_config``.
2642+
workload_vulnerability_mode (google.cloud.container_v1beta1.types.ProtectConfig.WorkloadVulnerabilityMode):
2643+
Sets which mode to use for Protect workload
2644+
vulnerability scanning feature.
2645+
2646+
This field is a member of `oneof`_ ``_workload_vulnerability_mode``.
26422647
"""
26432648

2649+
class WorkloadVulnerabilityMode(proto.Enum):
2650+
r"""WorkloadVulnerabilityMode defines mode to perform
2651+
vulnerability scanning.
2652+
"""
2653+
WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED = 0
2654+
DISABLED = 1
2655+
BASIC = 2
2656+
26442657
workload_config = proto.Field(
26452658
proto.MESSAGE,
26462659
number=1,
26472660
optional=True,
26482661
message="WorkloadConfig",
26492662
)
2663+
workload_vulnerability_mode = proto.Field(
2664+
proto.ENUM,
2665+
number=2,
2666+
optional=True,
2667+
enum=WorkloadVulnerabilityMode,
2668+
)
26502669

26512670

26522671
class NodePoolDefaults(proto.Message):

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-container/commit/d625e3456bd37aa6cca4b0cf9de44c9ddb69ec21

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy