#[non_exhaustive]pub struct NodePoolAutoConfig {
pub network_tags: Option<NetworkTags>,
pub resource_manager_tags: Option<ResourceManagerTags>,
pub node_kubelet_config: Option<NodeKubeletConfig>,
pub linux_node_config: Option<LinuxNodeConfig>,
/* private fields */
}Expand description
Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.
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.The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster creation. Each tag within the list must comply with RFC1035.
Resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies.
node_kubelet_config: Option<NodeKubeletConfig>NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
Currently only insecure_kubelet_readonly_port_enabled can be set here.
linux_node_config: Option<LinuxNodeConfig>Output only. Configuration options for Linux nodes.
Implementations§
Source§impl NodePoolAutoConfig
impl NodePoolAutoConfig
pub fn new() -> Self
Sets the value of network_tags.
§Example
use google_cloud_container_v1::model::NetworkTags;
let x = NodePoolAutoConfig::new().set_network_tags(NetworkTags::default()/* use setters */);Sets or clears the value of network_tags.
§Example
use google_cloud_container_v1::model::NetworkTags;
let x = NodePoolAutoConfig::new().set_or_clear_network_tags(Some(NetworkTags::default()/* use setters */));
let x = NodePoolAutoConfig::new().set_or_clear_network_tags(None::<NetworkTags>);Sets the value of resource_manager_tags.
§Example
use google_cloud_container_v1::model::ResourceManagerTags;
let x = NodePoolAutoConfig::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 = NodePoolAutoConfig::new().set_or_clear_resource_manager_tags(Some(ResourceManagerTags::default()/* use setters */));
let x = NodePoolAutoConfig::new().set_or_clear_resource_manager_tags(None::<ResourceManagerTags>);Sourcepub fn set_node_kubelet_config<T>(self, v: T) -> Selfwhere
T: Into<NodeKubeletConfig>,
pub fn set_node_kubelet_config<T>(self, v: T) -> Selfwhere
T: Into<NodeKubeletConfig>,
Sets the value of node_kubelet_config.
§Example
use google_cloud_container_v1::model::NodeKubeletConfig;
let x = NodePoolAutoConfig::new().set_node_kubelet_config(NodeKubeletConfig::default()/* use setters */);Sourcepub fn set_or_clear_node_kubelet_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeKubeletConfig>,
pub fn set_or_clear_node_kubelet_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NodeKubeletConfig>,
Sets or clears the value of node_kubelet_config.
§Example
use google_cloud_container_v1::model::NodeKubeletConfig;
let x = NodePoolAutoConfig::new().set_or_clear_node_kubelet_config(Some(NodeKubeletConfig::default()/* use setters */));
let x = NodePoolAutoConfig::new().set_or_clear_node_kubelet_config(None::<NodeKubeletConfig>);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 = NodePoolAutoConfig::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 = NodePoolAutoConfig::new().set_or_clear_linux_node_config(Some(LinuxNodeConfig::default()/* use setters */));
let x = NodePoolAutoConfig::new().set_or_clear_linux_node_config(None::<LinuxNodeConfig>);Trait Implementations§
Source§impl Clone for NodePoolAutoConfig
impl Clone for NodePoolAutoConfig
Source§fn clone(&self) -> NodePoolAutoConfig
fn clone(&self) -> NodePoolAutoConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more