#[non_exhaustive]pub struct GkeNodePoolTarget {
pub node_pool: String,
pub roles: Vec<Role>,
pub node_pool_config: Option<GkeNodePoolConfig>,
/* private fields */
}Expand description
GKE node pools that Dataproc workloads run on.
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.node_pool: StringRequired. The target GKE node pool. Format: ‘projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}’
roles: Vec<Role>Required. The roles associated with the GKE node pool.
node_pool_config: Option<GkeNodePoolConfig>Input only. The configuration for the GKE node pool.
If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail.
If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values.
This is an input only field. It will not be returned by the API.
Implementations§
Source§impl GkeNodePoolTarget
impl GkeNodePoolTarget
pub fn new() -> Self
Sourcepub fn set_node_pool<T: Into<String>>(self, v: T) -> Self
pub fn set_node_pool<T: Into<String>>(self, v: T) -> Self
Sets the value of node_pool.
Sourcepub fn set_node_pool_config<T>(self, v: T) -> Selfwhere
T: Into<GkeNodePoolConfig>,
pub fn set_node_pool_config<T>(self, v: T) -> Selfwhere
T: Into<GkeNodePoolConfig>,
Sets the value of node_pool_config.
Sourcepub fn set_or_clear_node_pool_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GkeNodePoolConfig>,
pub fn set_or_clear_node_pool_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GkeNodePoolConfig>,
Sets or clears the value of node_pool_config.
Trait Implementations§
Source§impl Clone for GkeNodePoolTarget
impl Clone for GkeNodePoolTarget
Source§fn clone(&self) -> GkeNodePoolTarget
fn clone(&self) -> GkeNodePoolTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more