Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions google/cloud/container_v1/types/cluster_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4286,6 +4286,24 @@ class UpdateNodePoolRequest(proto.Message):
windows_node_config (google.cloud.container_v1.types.WindowsNodeConfig):
Parameters that can be configured on Windows
nodes.
machine_type (str):
Optional. The desired `Google Compute Engine machine
type <https://cloud.google.com/compute/docs/machine-types>`__
for nodes in the node pool. Initiates an upgrade operation
that migrates the nodes in the node pool to the specified
machine type.
disk_type (str):
Optional. The desired disk type (e.g.
'pd-standard', 'pd-ssd' or 'pd-balanced') for
nodes in the node pool. Initiates an upgrade
operation that migrates the nodes in the node
pool to the specified disk type.
disk_size_gb (int):
Optional. The desired disk size for nodes in
the node pool specified in GB. The smallest
allowed disk size is 10GB. Initiates an upgrade
operation that migrates the nodes in the node
pool to the specified disk size.
"""

project_id: str = proto.Field(
Expand Down Expand Up @@ -4399,6 +4417,18 @@ class UpdateNodePoolRequest(proto.Message):
number=34,
message="WindowsNodeConfig",
)
machine_type: str = proto.Field(
proto.STRING,
number=36,
)
disk_type: str = proto.Field(
proto.STRING,
number=37,
)
disk_size_gb: int = proto.Field(
proto.INT64,
number=38,
)


class SetNodePoolAutoscalingRequest(proto.Message):
Expand Down Expand Up @@ -5787,6 +5817,9 @@ class PlacementPolicy(proto.Message):
Attributes:
type_ (google.cloud.container_v1.types.NodePool.PlacementPolicy.Type):
The type of placement.
tpu_topology (str):
Optional. TPU placement topology for pod slice node pool.
https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies
policy_name (str):
If set, refers to the name of a custom
resource policy supplied by the user. The
Expand Down Expand Up @@ -5815,6 +5848,10 @@ class Type(proto.Enum):
number=1,
enum="NodePool.PlacementPolicy.Type",
)
tpu_topology: str = proto.Field(
proto.STRING,
number=2,
)
policy_name: str = proto.Field(
proto.STRING,
number=3,
Expand Down
27 changes: 27 additions & 0 deletions google/cloud/container_v1beta1/types/cluster_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4904,6 +4904,21 @@ class UpdateNodePoolRequest(proto.Message):
windows_node_config (google.cloud.container_v1beta1.types.WindowsNodeConfig):
Parameters that can be configured on Windows
nodes.
machine_type (str):
Optional. The desired machine type for nodes
in the node pool. Initiates an upgrade operation
that migrates the nodes in the node pool to the
specified machine type.
disk_type (str):
Optional. The desired disk type for nodes in
the node pool. Initiates an upgrade operation
that migrates the nodes in the node pool to the
specified disk type.
disk_size_gb (int):
Optional. The desired disk size for nodes in
the node pool. Initiates an upgrade operation
that migrates the nodes in the node pool to the
specified disk size.
"""

project_id: str = proto.Field(
Expand Down Expand Up @@ -5017,6 +5032,18 @@ class UpdateNodePoolRequest(proto.Message):
number=34,
message="WindowsNodeConfig",
)
machine_type: str = proto.Field(
proto.STRING,
number=36,
)
disk_type: str = proto.Field(
proto.STRING,
number=37,
)
disk_size_gb: int = proto.Field(
proto.INT64,
number=38,
)


class SetNodePoolAutoscalingRequest(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-container",
"version": "2.30.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-container",
"version": "2.30.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
2 changes: 1 addition & 1 deletion scripts/fixup_container_v1_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class containerCallTransformer(cst.CSTTransformer):
'start_ip_rotation': ('project_id', 'zone', 'cluster_id', 'name', 'rotate_credentials', ),
'update_cluster': ('update', 'project_id', 'zone', 'cluster_id', 'name', ),
'update_master': ('master_version', 'project_id', 'zone', 'cluster_id', 'name', ),
'update_node_pool': ('node_version', 'image_type', 'project_id', 'zone', 'cluster_id', 'node_pool_id', 'name', 'locations', 'workload_metadata_config', 'upgrade_settings', 'tags', 'taints', 'labels', 'linux_node_config', 'kubelet_config', 'node_network_config', 'gcfs_config', 'confidential_nodes', 'gvnic', 'etag', 'fast_socket', 'logging_config', 'resource_labels', 'windows_node_config', ),
'update_node_pool': ('node_version', 'image_type', 'project_id', 'zone', 'cluster_id', 'node_pool_id', 'name', 'locations', 'workload_metadata_config', 'upgrade_settings', 'tags', 'taints', 'labels', 'linux_node_config', 'kubelet_config', 'node_network_config', 'gcfs_config', 'confidential_nodes', 'gvnic', 'etag', 'fast_socket', 'logging_config', 'resource_labels', 'windows_node_config', 'machine_type', 'disk_type', 'disk_size_gb', ),
}

def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
Expand Down
2 changes: 1 addition & 1 deletion scripts/fixup_container_v1beta1_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class containerCallTransformer(cst.CSTTransformer):
'start_ip_rotation': ('project_id', 'zone', 'cluster_id', 'name', 'rotate_credentials', ),
'update_cluster': ('project_id', 'zone', 'cluster_id', 'update', 'name', ),
'update_master': ('project_id', 'zone', 'cluster_id', 'master_version', 'name', ),
'update_node_pool': ('project_id', 'zone', 'cluster_id', 'node_pool_id', 'node_version', 'image_type', 'locations', 'workload_metadata_config', 'name', 'upgrade_settings', 'tags', 'taints', 'labels', 'linux_node_config', 'kubelet_config', 'node_network_config', 'gcfs_config', 'confidential_nodes', 'gvnic', 'etag', 'fast_socket', 'logging_config', 'resource_labels', 'windows_node_config', ),
'update_node_pool': ('project_id', 'zone', 'cluster_id', 'node_pool_id', 'node_version', 'image_type', 'locations', 'workload_metadata_config', 'name', 'upgrade_settings', 'tags', 'taints', 'labels', 'linux_node_config', 'kubelet_config', 'node_network_config', 'gcfs_config', 'confidential_nodes', 'gvnic', 'etag', 'fast_socket', 'logging_config', 'resource_labels', 'windows_node_config', 'machine_type', 'disk_type', 'disk_size_gb', ),
}

def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
Expand Down