#[non_exhaustive]pub struct GkeNodePoolConfig {
pub config: Option<GkeNodeConfig>,
pub locations: Vec<String>,
pub autoscaling: Option<GkeNodePoolAutoscalingConfig>,
/* private fields */
}Expand description
The configuration of a GKE node pool used by a Dataproc-on-GKE cluster.
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.config: Option<GkeNodeConfig>Optional. The node pool configuration.
locations: Vec<String>Optional. The list of Compute Engine zones where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.
Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.
If a location is not specified during node pool creation, Dataproc on GKE will choose the zone.
autoscaling: Option<GkeNodePoolAutoscalingConfig>Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present.
Implementations§
Source§impl GkeNodePoolConfig
impl GkeNodePoolConfig
pub fn new() -> Self
Sourcepub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<GkeNodeConfig>,
pub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<GkeNodeConfig>,
Sets the value of config.
Sourcepub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GkeNodeConfig>,
pub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<GkeNodeConfig>,
Sets or clears the value of config.
Sourcepub fn set_locations<T, V>(self, v: T) -> Self
pub fn set_locations<T, V>(self, v: T) -> Self
Sets the value of locations.
Sourcepub fn set_autoscaling<T>(self, v: T) -> Selfwhere
T: Into<GkeNodePoolAutoscalingConfig>,
pub fn set_autoscaling<T>(self, v: T) -> Selfwhere
T: Into<GkeNodePoolAutoscalingConfig>,
Sets the value of autoscaling.
Sourcepub fn set_or_clear_autoscaling<T>(self, v: Option<T>) -> Selfwhere
T: Into<GkeNodePoolAutoscalingConfig>,
pub fn set_or_clear_autoscaling<T>(self, v: Option<T>) -> Selfwhere
T: Into<GkeNodePoolAutoscalingConfig>,
Sets or clears the value of autoscaling.
Trait Implementations§
Source§impl Clone for GkeNodePoolConfig
impl Clone for GkeNodePoolConfig
Source§fn clone(&self) -> GkeNodePoolConfig
fn clone(&self) -> GkeNodePoolConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more