Skip to content

Commit f88a75d

Browse files
feat: [google-cloud-container] add optional secondary_boot_disk_update_strategy field to NodePool API (googleapis#12481)
- [ ] Regenerate this pull request now. --- feat: allow existing clusters to enable multi-networking --- chore: update go_package and Go importpath --- chore: update go_package and Go importpath PiperOrigin-RevId: 617956116 Source-Link: googleapis/googleapis@5b48bcb Source-Link: https://github.com/googleapis/googleapis-gen/commit/3fa2f813fd490bcb210acd425a3dcfc12d2753c4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiM2ZhMmY4MTNmZDQ5MGJjYjIxMGFjZDQyNWEzZGNmYzEyZDI3NTNjNCJ9 BEGIN_NESTED_COMMIT feat: [google-cloud-container] add optional secondary_boot_disk_update_strategy field to NodePool API --- feat: allow existing clusters to enable multi-networking PiperOrigin-RevId: 617928924 Source-Link: googleapis/googleapis@4491331 Source-Link: https://github.com/googleapis/googleapis-gen/commit/123a23f03b06e120f4671b77ca5600c74907174f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiMTIzYTIzZjAzYjA2ZTEyMGY0NjcxYjc3Y2E1NjAwYzc0OTA3MTc0ZiJ9 END_NESTED_COMMIT BEGIN_COMMIT_OVERRIDE feat: [google-cloud-container] add optional secondary_boot_disk_update_strategy field to NodePool API feat: allow existing clusters to enable multi-networking END_COMMIT_OVERRIDE --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ecd1ec7 commit f88a75d

12 files changed

Lines changed: 77 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
RollbackNodePoolUpgradeRequest,
155155
SandboxConfig,
156156
SecondaryBootDisk,
157+
SecondaryBootDiskUpdateStrategy,
157158
SecurityBulletinEvent,
158159
SecurityPostureConfig,
159160
ServerConfig,
@@ -321,6 +322,7 @@
321322
"RollbackNodePoolUpgradeRequest",
322323
"SandboxConfig",
323324
"SecondaryBootDisk",
325+
"SecondaryBootDiskUpdateStrategy",
324326
"SecurityBulletinEvent",
325327
"SecurityPostureConfig",
326328
"ServerConfig",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.43.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
RollbackNodePoolUpgradeRequest,
150150
SandboxConfig,
151151
SecondaryBootDisk,
152+
SecondaryBootDiskUpdateStrategy,
152153
SecurityBulletinEvent,
153154
SecurityPostureConfig,
154155
ServerConfig,
@@ -321,6 +322,7 @@
321322
"RollbackNodePoolUpgradeRequest",
322323
"SandboxConfig",
323324
"SecondaryBootDisk",
325+
"SecondaryBootDiskUpdateStrategy",
324326
"SecurityBulletinEvent",
325327
"SecurityPostureConfig",
326328
"ServerConfig",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.43.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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
@@ -143,6 +143,7 @@
143143
RollbackNodePoolUpgradeRequest,
144144
SandboxConfig,
145145
SecondaryBootDisk,
146+
SecondaryBootDiskUpdateStrategy,
146147
SecurityBulletinEvent,
147148
SecurityPostureConfig,
148149
ServerConfig,
@@ -308,6 +309,7 @@
308309
"RollbackNodePoolUpgradeRequest",
309310
"SandboxConfig",
310311
"SecondaryBootDisk",
312+
"SecondaryBootDiskUpdateStrategy",
311313
"SecurityBulletinEvent",
312314
"SecurityPostureConfig",
313315
"ServerConfig",

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
"ResourceManagerTags",
195195
"EnterpriseConfig",
196196
"SecondaryBootDisk",
197+
"SecondaryBootDiskUpdateStrategy",
197198
},
198199
)
199200

@@ -721,6 +722,10 @@ class NodeConfig(proto.Message):
721722
secondary_boot_disks (MutableSequence[google.cloud.container_v1.types.SecondaryBootDisk]):
722723
List of secondary boot disks attached to the
723724
nodes.
725+
secondary_boot_disk_update_strategy (google.cloud.container_v1.types.SecondaryBootDiskUpdateStrategy):
726+
Secondary boot disk update strategy.
727+
728+
This field is a member of `oneof`_ ``_secondary_boot_disk_update_strategy``.
724729
"""
725730

726731
machine_type: str = proto.Field(
@@ -895,6 +900,14 @@ class NodeConfig(proto.Message):
895900
number=48,
896901
message="SecondaryBootDisk",
897902
)
903+
secondary_boot_disk_update_strategy: "SecondaryBootDiskUpdateStrategy" = (
904+
proto.Field(
905+
proto.MESSAGE,
906+
number=50,
907+
optional=True,
908+
message="SecondaryBootDiskUpdateStrategy",
909+
)
910+
)
898911

899912

900913
class AdvancedMachineFeatures(proto.Message):
@@ -3460,6 +3473,11 @@ class ClusterUpdate(proto.Message):
34603473
the autopilot cluster.
34613474
desired_k8s_beta_apis (google.cloud.container_v1.types.K8sBetaAPIConfig):
34623475
Desired Beta APIs to be enabled for cluster.
3476+
desired_enable_multi_networking (bool):
3477+
Enable/Disable Multi-Networking for the
3478+
cluster
3479+
3480+
This field is a member of `oneof`_ ``_desired_enable_multi_networking``.
34633481
desired_node_pool_auto_config_resource_manager_tags (google.cloud.container_v1.types.ResourceManagerTags):
34643482
The desired resource manager tags that apply
34653483
to all auto-provisioned node pools in autopilot
@@ -3715,6 +3733,11 @@ class ClusterUpdate(proto.Message):
37153733
number=131,
37163734
message="K8sBetaAPIConfig",
37173735
)
3736+
desired_enable_multi_networking: bool = proto.Field(
3737+
proto.BOOL,
3738+
number=135,
3739+
optional=True,
3740+
)
37183741
desired_node_pool_auto_config_resource_manager_tags: "ResourceManagerTags" = (
37193742
proto.Field(
37203743
proto.MESSAGE,
@@ -9395,4 +9418,12 @@ class Mode(proto.Enum):
93959418
)
93969419

93979420

9421+
class SecondaryBootDiskUpdateStrategy(proto.Message):
9422+
r"""SecondaryBootDiskUpdateStrategy is a placeholder which will
9423+
be extended in the future to define different options for
9424+
updating secondary boot disks.
9425+
9426+
"""
9427+
9428+
93989429
__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
@@ -160,6 +160,7 @@
160160
RollbackNodePoolUpgradeRequest,
161161
SandboxConfig,
162162
SecondaryBootDisk,
163+
SecondaryBootDiskUpdateStrategy,
163164
SecretManagerConfig,
164165
SecurityBulletinEvent,
165166
SecurityPostureConfig,
@@ -349,6 +350,7 @@
349350
"RollbackNodePoolUpgradeRequest",
350351
"SandboxConfig",
351352
"SecondaryBootDisk",
353+
"SecondaryBootDiskUpdateStrategy",
352354
"SecretManagerConfig",
353355
"SecurityBulletinEvent",
354356
"SecurityPostureConfig",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.43.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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
@@ -154,6 +154,7 @@
154154
RollbackNodePoolUpgradeRequest,
155155
SandboxConfig,
156156
SecondaryBootDisk,
157+
SecondaryBootDiskUpdateStrategy,
157158
SecretManagerConfig,
158159
SecurityBulletinEvent,
159160
SecurityPostureConfig,
@@ -337,6 +338,7 @@
337338
"RollbackNodePoolUpgradeRequest",
338339
"SandboxConfig",
339340
"SecondaryBootDisk",
341+
"SecondaryBootDiskUpdateStrategy",
340342
"SecretManagerConfig",
341343
"SecurityBulletinEvent",
342344
"SecurityPostureConfig",

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@
212212
"EnterpriseConfig",
213213
"SecretManagerConfig",
214214
"SecondaryBootDisk",
215+
"SecondaryBootDiskUpdateStrategy",
215216
},
216217
)
217218

@@ -729,6 +730,10 @@ class NodeConfig(proto.Message):
729730
secondary_boot_disks (MutableSequence[google.cloud.container_v1beta1.types.SecondaryBootDisk]):
730731
List of secondary boot disks attached to the
731732
nodes.
733+
secondary_boot_disk_update_strategy (google.cloud.container_v1beta1.types.SecondaryBootDiskUpdateStrategy):
734+
Secondary boot disk update strategy.
735+
736+
This field is a member of `oneof`_ ``_secondary_boot_disk_update_strategy``.
732737
"""
733738

734739
machine_type: str = proto.Field(
@@ -913,6 +918,14 @@ class NodeConfig(proto.Message):
913918
number=48,
914919
message="SecondaryBootDisk",
915920
)
921+
secondary_boot_disk_update_strategy: "SecondaryBootDiskUpdateStrategy" = (
922+
proto.Field(
923+
proto.MESSAGE,
924+
number=50,
925+
optional=True,
926+
message="SecondaryBootDiskUpdateStrategy",
927+
)
928+
)
916929

917930

918931
class AdvancedMachineFeatures(proto.Message):
@@ -4149,6 +4162,11 @@ class ClusterUpdate(proto.Message):
41494162
HostMaintenancePolicy contains the desired
41504163
maintenance policy for the Google Compute Engine
41514164
hosts.
4165+
desired_enable_multi_networking (bool):
4166+
Enable/Disable Multi-Networking for the
4167+
cluster
4168+
4169+
This field is a member of `oneof`_ ``_desired_enable_multi_networking``.
41524170
desired_node_pool_auto_config_resource_manager_tags (google.cloud.container_v1beta1.types.ResourceManagerTags):
41534171
The desired resource manager tags that apply
41544172
to all auto-provisioned node pools in autopilot
@@ -4449,6 +4467,11 @@ class ClusterUpdate(proto.Message):
44494467
number=132,
44504468
message="HostMaintenancePolicy",
44514469
)
4470+
desired_enable_multi_networking: bool = proto.Field(
4471+
proto.BOOL,
4472+
number=135,
4473+
optional=True,
4474+
)
44524475
desired_node_pool_auto_config_resource_manager_tags: "ResourceManagerTags" = (
44534476
proto.Field(
44544477
proto.MESSAGE,
@@ -10481,4 +10504,12 @@ class Mode(proto.Enum):
1048110504
)
1048210505

1048310506

10507+
class SecondaryBootDiskUpdateStrategy(proto.Message):
10508+
r"""SecondaryBootDiskUpdateStrategy is a placeholder which will
10509+
be extended in the future to define different options for
10510+
updating secondary boot disks.
10511+
10512+
"""
10513+
10514+
1048410515
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)