diff --git a/google/cloud/container_v1/types/cluster_service.py b/google/cloud/container_v1/types/cluster_service.py index 91acd477..e6335a46 100644 --- a/google/cloud/container_v1/types/cluster_service.py +++ b/google/cloud/container_v1/types/cluster_service.py @@ -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 `__ + 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( @@ -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): @@ -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 @@ -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, diff --git a/google/cloud/container_v1beta1/types/cluster_service.py b/google/cloud/container_v1beta1/types/cluster_service.py index e6e75f80..504edb9d 100644 --- a/google/cloud/container_v1beta1/types/cluster_service.py +++ b/google/cloud/container_v1beta1/types/cluster_service.py @@ -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( @@ -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): diff --git a/samples/generated_samples/snippet_metadata_google.container.v1.json b/samples/generated_samples/snippet_metadata_google.container.v1.json index 66ab46d0..477de1ee 100644 --- a/samples/generated_samples/snippet_metadata_google.container.v1.json +++ b/samples/generated_samples/snippet_metadata_google.container.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-container", - "version": "2.30.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/samples/generated_samples/snippet_metadata_google.container.v1beta1.json b/samples/generated_samples/snippet_metadata_google.container.v1beta1.json index 86367ed7..afdb562b 100644 --- a/samples/generated_samples/snippet_metadata_google.container.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.container.v1beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-container", - "version": "2.30.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/scripts/fixup_container_v1_keywords.py b/scripts/fixup_container_v1_keywords.py index b0d47f9b..b7ec9836 100644 --- a/scripts/fixup_container_v1_keywords.py +++ b/scripts/fixup_container_v1_keywords.py @@ -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: diff --git a/scripts/fixup_container_v1beta1_keywords.py b/scripts/fixup_container_v1beta1_keywords.py index f1e9ae26..cebfcd2b 100644 --- a/scripts/fixup_container_v1beta1_keywords.py +++ b/scripts/fixup_container_v1beta1_keywords.py @@ -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: