#[non_exhaustive]pub struct UpdateNodePoolRequest {Show 35 fields
pub project_id: String,
pub zone: String,
pub cluster_id: String,
pub node_pool_id: String,
pub node_version: String,
pub image_type: String,
pub name: String,
pub locations: Vec<String>,
pub workload_metadata_config: Option<WorkloadMetadataConfig>,
pub upgrade_settings: Option<UpgradeSettings>,
pub tags: Option<NetworkTags>,
pub taints: Option<NodeTaints>,
pub labels: Option<NodeLabels>,
pub linux_node_config: Option<LinuxNodeConfig>,
pub kubelet_config: Option<NodeKubeletConfig>,
pub node_network_config: Option<NodeNetworkConfig>,
pub gcfs_config: Option<GcfsConfig>,
pub confidential_nodes: Option<ConfidentialNodes>,
pub gvnic: Option<VirtualNIC>,
pub etag: String,
pub fast_socket: Option<FastSocket>,
pub logging_config: Option<NodePoolLoggingConfig>,
pub resource_labels: Option<ResourceLabels>,
pub windows_node_config: Option<WindowsNodeConfig>,
pub accelerators: Vec<AcceleratorConfig>,
pub machine_type: String,
pub disk_type: String,
pub disk_size_gb: i64,
pub resource_manager_tags: Option<ResourceManagerTags>,
pub containerd_config: Option<ContainerdConfig>,
pub queued_provisioning: Option<QueuedProvisioning>,
pub storage_pools: Vec<String>,
pub max_run_duration: Option<Duration>,
pub flex_start: Option<bool>,
pub boot_disk: Option<BootDisk>,
/* private fields */
}Expand description
UpdateNodePoolRequests update a node pool’s image and/or version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_id: StringDeprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
zone: StringDeprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
cluster_id: StringDeprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
node_pool_id: StringDeprecated. The name of the node pool to upgrade. This field has been deprecated and replaced by the name field.
node_version: StringRequired. The Kubernetes version to change the nodes to (typically an upgrade).
Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:
- “latest”: picks the highest valid Kubernetes version
- “1.X”: picks the highest valid patch+gke.N patch in the 1.X version
- “1.X.Y”: picks the highest valid gke.N patch in the 1.X.Y version
- “1.X.Y-gke.N”: picks an explicit Kubernetes version
- “-”: picks the Kubernetes master version
image_type: StringRequired. The desired image type for the node pool. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.
name: StringThe name (project, location, cluster, node pool) of the node pool to
update. Specified in the format
projects/*/locations/*/clusters/*/nodePools/*.
locations: Vec<String>The desired list of Google Compute Engine zones in which the node pool’s nodes should be located. Changing the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed.
Warning: It is recommended to update node pool locations in a standalone
API call. Do not combine a location update with changes to other fields
(such as tags, labels, taints, etc.) in the same request.
Otherwise, the API performs a structural modification where changes to
other fields will only apply to newly created nodes and will not be
applied to existing nodes in the node pool. To ensure all nodes are updated
consistently, use a separate API call for location changes.
workload_metadata_config: Option<WorkloadMetadataConfig>The desired workload metadata config for the node pool.
upgrade_settings: Option<UpgradeSettings>Upgrade settings control disruption and speed of the upgrade.
The desired network tags to be applied to all nodes in the node pool. If this field is not present, the tags will not be changed. Otherwise, the existing network tags will be replaced with the provided tags.
taints: Option<NodeTaints>The desired node taints to be applied to all nodes in the node pool. If this field is not present, the taints will not be changed. Otherwise, the existing node taints will be replaced with the provided taints.
labels: Option<NodeLabels>The desired node labels to be applied to all nodes in the node pool. If this field is not present, the labels will not be changed. Otherwise, the existing node labels will be replaced with the provided labels.
linux_node_config: Option<LinuxNodeConfig>Parameters that can be configured on Linux nodes.
kubelet_config: Option<NodeKubeletConfig>Node kubelet configs.
node_network_config: Option<NodeNetworkConfig>Node network config.
gcfs_config: Option<GcfsConfig>GCFS config.
confidential_nodes: Option<ConfidentialNodes>Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.
gvnic: Option<VirtualNIC>Enable or disable gvnic on the node pool.
etag: StringThe current etag of the node pool. If an etag is provided and does not match the current etag of the node pool, update will be blocked and an ABORTED error will be returned.
fast_socket: Option<FastSocket>Enable or disable NCCL fast socket for the node pool.
logging_config: Option<NodePoolLoggingConfig>Logging configuration.
resource_labels: Option<ResourceLabels>The resource labels for the node pool to use to annotate any related Google Compute Engine resources.
windows_node_config: Option<WindowsNodeConfig>Parameters that can be configured on Windows nodes.
accelerators: Vec<AcceleratorConfig>A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.
machine_type: StringOptional. 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: StringOptional. 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: i64Optional. 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.
Desired resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies. Existing tags will be replaced with new values.
containerd_config: Option<ContainerdConfig>The desired containerd config for nodes in the node pool. Initiates an upgrade operation that recreates the nodes with the new config.
queued_provisioning: Option<QueuedProvisioning>Specifies the configuration of queued provisioning.
storage_pools: Vec<String>List of Storage Pools where boot disks are provisioned. Existing Storage Pools will be replaced with storage-pools.
max_run_duration: Option<Duration>The maximum duration for the nodes to exist. If unspecified, the nodes can exist indefinitely.
flex_start: Option<bool>Flex Start flag for enabling Flex Start VM.
boot_disk: Option<BootDisk>The desired boot disk config for nodes in the node pool. Initiates an upgrade operation that migrates the nodes in the node pool to the specified boot disk config.
Implementations§
Source§impl UpdateNodePoolRequest
impl UpdateNodePoolRequest
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
§Example
let x = UpdateNodePoolRequest::new().set_project_id("example");Sourcepub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_id.
§Example
let x = UpdateNodePoolRequest::new().set_cluster_id("example");Sourcepub fn set_node_pool_id<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_node_pool_id<T: Into<String>>(self, v: T) -> Self
Sets the value of node_pool_id.
§Example
let x = UpdateNodePoolRequest::new().set_node_pool_id("example");Sourcepub fn set_node_version<T: Into<String>>(self, v: T) -> Self
pub fn set_node_version<T: Into<String>>(self, v: T) -> Self
Sets the value of node_version.
§Example
let x = UpdateNodePoolRequest::new().set_node_version("example");Sourcepub fn set_image_type<T: Into<String>>(self, v: T) -> Self
pub fn set_image_type<T: Into<String>>(self, v: T) -> Self
Sets the value of image_type.
§Example
let x = UpdateNodePoolRequest::new().set_image_type("example");Sourcepub fn set_locations<T, V>(self, v: T) -> Self
pub fn set_locations<T, V>(self, v: T) -> Self
Sourcepub fn set_workload_metadata_config<T>(self, v: T) -> Selfwhere
T: Into<WorkloadMetadataConfig>,
pub fn set_workload_metadata_config<T>(self, v: T) -> Selfwhere
T: Into<WorkloadMetadataConfig>,
Sets the value of workload_metadata_config.
§Example
use google_cloud_container_v1::model::WorkloadMetadataConfig;
let x = UpdateNodePoolRequest::new().set_workload_metadata_config(WorkloadMetadataConfig::default()/* use setters */);Sourcepub fn set_or_clear_workload_metadata_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkloadMetadataConfig>,
pub fn set_or_clear_workload_metadata_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkloadMetadataConfig>,
Sets or clears the value of workload_metadata_config.
§Example
use google_cloud_container_v1::model::WorkloadMetadataConfig;
let x = UpdateNodePoolRequest::new().set_or_clear_workload_metadata_config(Some(WorkloadMetadataConfig::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_workload_metadata_config(None::<WorkloadMetadataConfig>);Sourcepub fn set_upgrade_settings<T>(self, v: T) -> Selfwhere
T: Into<UpgradeSettings>,
pub fn set_upgrade_settings<T>(self, v: T) -> Selfwhere
T: Into<UpgradeSettings>,
Sets the value of upgrade_settings.
§Example
use google_cloud_container_v1::model::node_pool::UpgradeSettings;
let x = UpdateNodePoolRequest::new().set_upgrade_settings(UpgradeSettings::default()/* use setters */);Sourcepub fn set_or_clear_upgrade_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpgradeSettings>,
pub fn set_or_clear_upgrade_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<UpgradeSettings>,
Sets or clears the value of upgrade_settings.
§Example
use google_cloud_container_v1::model::node_pool::UpgradeSettings;
let x = UpdateNodePoolRequest::new().set_or_clear_upgrade_settings(Some(UpgradeSettings::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_upgrade_settings(None::<UpgradeSettings>);Sourcepub fn set_taints<T>(self, v: T) -> Selfwhere
T: Into<NodeTaints>,
pub fn set_taints<T>(self, v: T) -> Selfwhere
T: Into<NodeTaints>,
Sourcepub fn set_or_clear_taints<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeTaints>,
pub fn set_or_clear_taints<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeTaints>,
Sourcepub fn set_labels<T>(self, v: T) -> Selfwhere
T: Into<NodeLabels>,
pub fn set_labels<T>(self, v: T) -> Selfwhere
T: Into<NodeLabels>,
Sourcepub fn set_or_clear_labels<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeLabels>,
pub fn set_or_clear_labels<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeLabels>,
Sourcepub fn set_linux_node_config<T>(self, v: T) -> Selfwhere
T: Into<LinuxNodeConfig>,
pub fn set_linux_node_config<T>(self, v: T) -> Selfwhere
T: Into<LinuxNodeConfig>,
Sets the value of linux_node_config.
§Example
use google_cloud_container_v1::model::LinuxNodeConfig;
let x = UpdateNodePoolRequest::new().set_linux_node_config(LinuxNodeConfig::default()/* use setters */);Sourcepub fn set_or_clear_linux_node_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<LinuxNodeConfig>,
pub fn set_or_clear_linux_node_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<LinuxNodeConfig>,
Sets or clears the value of linux_node_config.
§Example
use google_cloud_container_v1::model::LinuxNodeConfig;
let x = UpdateNodePoolRequest::new().set_or_clear_linux_node_config(Some(LinuxNodeConfig::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_linux_node_config(None::<LinuxNodeConfig>);Sourcepub fn set_kubelet_config<T>(self, v: T) -> Selfwhere
T: Into<NodeKubeletConfig>,
pub fn set_kubelet_config<T>(self, v: T) -> Selfwhere
T: Into<NodeKubeletConfig>,
Sets the value of kubelet_config.
§Example
use google_cloud_container_v1::model::NodeKubeletConfig;
let x = UpdateNodePoolRequest::new().set_kubelet_config(NodeKubeletConfig::default()/* use setters */);Sourcepub fn set_or_clear_kubelet_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeKubeletConfig>,
pub fn set_or_clear_kubelet_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeKubeletConfig>,
Sets or clears the value of kubelet_config.
§Example
use google_cloud_container_v1::model::NodeKubeletConfig;
let x = UpdateNodePoolRequest::new().set_or_clear_kubelet_config(Some(NodeKubeletConfig::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_kubelet_config(None::<NodeKubeletConfig>);Sourcepub fn set_node_network_config<T>(self, v: T) -> Selfwhere
T: Into<NodeNetworkConfig>,
pub fn set_node_network_config<T>(self, v: T) -> Selfwhere
T: Into<NodeNetworkConfig>,
Sets the value of node_network_config.
§Example
use google_cloud_container_v1::model::NodeNetworkConfig;
let x = UpdateNodePoolRequest::new().set_node_network_config(NodeNetworkConfig::default()/* use setters */);Sourcepub fn set_or_clear_node_network_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeNetworkConfig>,
pub fn set_or_clear_node_network_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeNetworkConfig>,
Sets or clears the value of node_network_config.
§Example
use google_cloud_container_v1::model::NodeNetworkConfig;
let x = UpdateNodePoolRequest::new().set_or_clear_node_network_config(Some(NodeNetworkConfig::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_node_network_config(None::<NodeNetworkConfig>);Sourcepub fn set_gcfs_config<T>(self, v: T) -> Selfwhere
T: Into<GcfsConfig>,
pub fn set_gcfs_config<T>(self, v: T) -> Selfwhere
T: Into<GcfsConfig>,
Sets the value of gcfs_config.
§Example
use google_cloud_container_v1::model::GcfsConfig;
let x = UpdateNodePoolRequest::new().set_gcfs_config(GcfsConfig::default()/* use setters */);Sourcepub fn set_or_clear_gcfs_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GcfsConfig>,
pub fn set_or_clear_gcfs_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GcfsConfig>,
Sets or clears the value of gcfs_config.
§Example
use google_cloud_container_v1::model::GcfsConfig;
let x = UpdateNodePoolRequest::new().set_or_clear_gcfs_config(Some(GcfsConfig::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_gcfs_config(None::<GcfsConfig>);Sourcepub fn set_confidential_nodes<T>(self, v: T) -> Selfwhere
T: Into<ConfidentialNodes>,
pub fn set_confidential_nodes<T>(self, v: T) -> Selfwhere
T: Into<ConfidentialNodes>,
Sets the value of confidential_nodes.
§Example
use google_cloud_container_v1::model::ConfidentialNodes;
let x = UpdateNodePoolRequest::new().set_confidential_nodes(ConfidentialNodes::default()/* use setters */);Sourcepub fn set_or_clear_confidential_nodes<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConfidentialNodes>,
pub fn set_or_clear_confidential_nodes<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConfidentialNodes>,
Sets or clears the value of confidential_nodes.
§Example
use google_cloud_container_v1::model::ConfidentialNodes;
let x = UpdateNodePoolRequest::new().set_or_clear_confidential_nodes(Some(ConfidentialNodes::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_confidential_nodes(None::<ConfidentialNodes>);Sourcepub fn set_gvnic<T>(self, v: T) -> Selfwhere
T: Into<VirtualNIC>,
pub fn set_gvnic<T>(self, v: T) -> Selfwhere
T: Into<VirtualNIC>,
Sourcepub fn set_or_clear_gvnic<T>(self, v: Option<T>) -> Selfwhere
T: Into<VirtualNIC>,
pub fn set_or_clear_gvnic<T>(self, v: Option<T>) -> Selfwhere
T: Into<VirtualNIC>,
Sourcepub fn set_fast_socket<T>(self, v: T) -> Selfwhere
T: Into<FastSocket>,
pub fn set_fast_socket<T>(self, v: T) -> Selfwhere
T: Into<FastSocket>,
Sets the value of fast_socket.
§Example
use google_cloud_container_v1::model::FastSocket;
let x = UpdateNodePoolRequest::new().set_fast_socket(FastSocket::default()/* use setters */);Sourcepub fn set_or_clear_fast_socket<T>(self, v: Option<T>) -> Selfwhere
T: Into<FastSocket>,
pub fn set_or_clear_fast_socket<T>(self, v: Option<T>) -> Selfwhere
T: Into<FastSocket>,
Sets or clears the value of fast_socket.
§Example
use google_cloud_container_v1::model::FastSocket;
let x = UpdateNodePoolRequest::new().set_or_clear_fast_socket(Some(FastSocket::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_fast_socket(None::<FastSocket>);Sourcepub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<NodePoolLoggingConfig>,
pub fn set_logging_config<T>(self, v: T) -> Selfwhere
T: Into<NodePoolLoggingConfig>,
Sets the value of logging_config.
§Example
use google_cloud_container_v1::model::NodePoolLoggingConfig;
let x = UpdateNodePoolRequest::new().set_logging_config(NodePoolLoggingConfig::default()/* use setters */);Sourcepub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodePoolLoggingConfig>,
pub fn set_or_clear_logging_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodePoolLoggingConfig>,
Sets or clears the value of logging_config.
§Example
use google_cloud_container_v1::model::NodePoolLoggingConfig;
let x = UpdateNodePoolRequest::new().set_or_clear_logging_config(Some(NodePoolLoggingConfig::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_logging_config(None::<NodePoolLoggingConfig>);Sourcepub fn set_resource_labels<T>(self, v: T) -> Selfwhere
T: Into<ResourceLabels>,
pub fn set_resource_labels<T>(self, v: T) -> Selfwhere
T: Into<ResourceLabels>,
Sets the value of resource_labels.
§Example
use google_cloud_container_v1::model::ResourceLabels;
let x = UpdateNodePoolRequest::new().set_resource_labels(ResourceLabels::default()/* use setters */);Sourcepub fn set_or_clear_resource_labels<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceLabels>,
pub fn set_or_clear_resource_labels<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceLabels>,
Sets or clears the value of resource_labels.
§Example
use google_cloud_container_v1::model::ResourceLabels;
let x = UpdateNodePoolRequest::new().set_or_clear_resource_labels(Some(ResourceLabels::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_resource_labels(None::<ResourceLabels>);Sourcepub fn set_windows_node_config<T>(self, v: T) -> Selfwhere
T: Into<WindowsNodeConfig>,
pub fn set_windows_node_config<T>(self, v: T) -> Selfwhere
T: Into<WindowsNodeConfig>,
Sets the value of windows_node_config.
§Example
use google_cloud_container_v1::model::WindowsNodeConfig;
let x = UpdateNodePoolRequest::new().set_windows_node_config(WindowsNodeConfig::default()/* use setters */);Sourcepub fn set_or_clear_windows_node_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<WindowsNodeConfig>,
pub fn set_or_clear_windows_node_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<WindowsNodeConfig>,
Sets or clears the value of windows_node_config.
§Example
use google_cloud_container_v1::model::WindowsNodeConfig;
let x = UpdateNodePoolRequest::new().set_or_clear_windows_node_config(Some(WindowsNodeConfig::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_windows_node_config(None::<WindowsNodeConfig>);Sourcepub fn set_accelerators<T, V>(self, v: T) -> Self
pub fn set_accelerators<T, V>(self, v: T) -> Self
Sets the value of accelerators.
§Example
use google_cloud_container_v1::model::AcceleratorConfig;
let x = UpdateNodePoolRequest::new()
.set_accelerators([
AcceleratorConfig::default()/* use setters */,
AcceleratorConfig::default()/* use (different) setters */,
]);Sourcepub fn set_machine_type<T: Into<String>>(self, v: T) -> Self
pub fn set_machine_type<T: Into<String>>(self, v: T) -> Self
Sets the value of machine_type.
§Example
let x = UpdateNodePoolRequest::new().set_machine_type("example");Sourcepub fn set_disk_type<T: Into<String>>(self, v: T) -> Self
pub fn set_disk_type<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_disk_size_gb<T: Into<i64>>(self, v: T) -> Self
pub fn set_disk_size_gb<T: Into<i64>>(self, v: T) -> Self
Sets the value of disk_size_gb.
§Example
let x = UpdateNodePoolRequest::new().set_disk_size_gb(42);Sets the value of resource_manager_tags.
§Example
use google_cloud_container_v1::model::ResourceManagerTags;
let x = UpdateNodePoolRequest::new().set_resource_manager_tags(ResourceManagerTags::default()/* use setters */);Sets or clears the value of resource_manager_tags.
§Example
use google_cloud_container_v1::model::ResourceManagerTags;
let x = UpdateNodePoolRequest::new().set_or_clear_resource_manager_tags(Some(ResourceManagerTags::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_resource_manager_tags(None::<ResourceManagerTags>);Sourcepub fn set_containerd_config<T>(self, v: T) -> Selfwhere
T: Into<ContainerdConfig>,
pub fn set_containerd_config<T>(self, v: T) -> Selfwhere
T: Into<ContainerdConfig>,
Sets the value of containerd_config.
§Example
use google_cloud_container_v1::model::ContainerdConfig;
let x = UpdateNodePoolRequest::new().set_containerd_config(ContainerdConfig::default()/* use setters */);Sourcepub fn set_or_clear_containerd_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContainerdConfig>,
pub fn set_or_clear_containerd_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContainerdConfig>,
Sets or clears the value of containerd_config.
§Example
use google_cloud_container_v1::model::ContainerdConfig;
let x = UpdateNodePoolRequest::new().set_or_clear_containerd_config(Some(ContainerdConfig::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_containerd_config(None::<ContainerdConfig>);Sourcepub fn set_queued_provisioning<T>(self, v: T) -> Selfwhere
T: Into<QueuedProvisioning>,
pub fn set_queued_provisioning<T>(self, v: T) -> Selfwhere
T: Into<QueuedProvisioning>,
Sets the value of queued_provisioning.
§Example
use google_cloud_container_v1::model::node_pool::QueuedProvisioning;
let x = UpdateNodePoolRequest::new().set_queued_provisioning(QueuedProvisioning::default()/* use setters */);Sourcepub fn set_or_clear_queued_provisioning<T>(self, v: Option<T>) -> Selfwhere
T: Into<QueuedProvisioning>,
pub fn set_or_clear_queued_provisioning<T>(self, v: Option<T>) -> Selfwhere
T: Into<QueuedProvisioning>,
Sets or clears the value of queued_provisioning.
§Example
use google_cloud_container_v1::model::node_pool::QueuedProvisioning;
let x = UpdateNodePoolRequest::new().set_or_clear_queued_provisioning(Some(QueuedProvisioning::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_queued_provisioning(None::<QueuedProvisioning>);Sourcepub fn set_storage_pools<T, V>(self, v: T) -> Self
pub fn set_storage_pools<T, V>(self, v: T) -> Self
Sets the value of storage_pools.
§Example
let x = UpdateNodePoolRequest::new().set_storage_pools(["a", "b", "c"]);Sourcepub fn set_max_run_duration<T>(self, v: T) -> Self
pub fn set_max_run_duration<T>(self, v: T) -> Self
Sets the value of max_run_duration.
§Example
use wkt::Duration;
let x = UpdateNodePoolRequest::new().set_max_run_duration(Duration::default()/* use setters */);Sourcepub fn set_or_clear_max_run_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_max_run_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of max_run_duration.
§Example
use wkt::Duration;
let x = UpdateNodePoolRequest::new().set_or_clear_max_run_duration(Some(Duration::default()/* use setters */));
let x = UpdateNodePoolRequest::new().set_or_clear_max_run_duration(None::<Duration>);Sourcepub fn set_flex_start<T>(self, v: T) -> Self
pub fn set_flex_start<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_flex_start<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_flex_start<T>(self, v: Option<T>) -> Self
Sets or clears the value of flex_start.
§Example
let x = UpdateNodePoolRequest::new().set_or_clear_flex_start(Some(false));
let x = UpdateNodePoolRequest::new().set_or_clear_flex_start(None::<bool>);Sourcepub fn set_boot_disk<T>(self, v: T) -> Self
pub fn set_boot_disk<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_boot_disk<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_boot_disk<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for UpdateNodePoolRequest
impl Clone for UpdateNodePoolRequest
Source§fn clone(&self) -> UpdateNodePoolRequest
fn clone(&self) -> UpdateNodePoolRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more