#[non_exhaustive]pub struct GkeClusterConfig {
pub gke_cluster_target: String,
pub node_pool_target: Vec<GkeNodePoolTarget>,
/* private fields */
}Expand description
The cluster’s GKE config.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.gke_cluster_target: StringOptional. A target GKE cluster to deploy to. It must be in the same project and region as the Dataproc cluster (the GKE cluster can be zonal or regional). Format: ‘projects/{project}/locations/{location}/clusters/{cluster_id}’
node_pool_target: Vec<GkeNodePoolTarget>Optional. GKE node pools where workloads will be scheduled. At least one
node pool must be assigned the DEFAULT
GkeNodePoolTarget.Role.
If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT
GkeNodePoolTarget. Each role can be given to only one
GkeNodePoolTarget. All node pools must have the same location settings.
Implementations§
Source§impl GkeClusterConfig
impl GkeClusterConfig
pub fn new() -> Self
Sourcepub fn set_gke_cluster_target<T: Into<String>>(self, v: T) -> Self
pub fn set_gke_cluster_target<T: Into<String>>(self, v: T) -> Self
Sets the value of gke_cluster_target.
Sourcepub fn set_node_pool_target<T, V>(self, v: T) -> Self
pub fn set_node_pool_target<T, V>(self, v: T) -> Self
Sets the value of node_pool_target.
Trait Implementations§
Source§impl Clone for GkeClusterConfig
impl Clone for GkeClusterConfig
Source§fn clone(&self) -> GkeClusterConfig
fn clone(&self) -> GkeClusterConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GkeClusterConfig
impl Debug for GkeClusterConfig
Source§impl Default for GkeClusterConfig
impl Default for GkeClusterConfig
Source§fn default() -> GkeClusterConfig
fn default() -> GkeClusterConfig
Returns the “default value” for a type. Read more
Source§impl Message for GkeClusterConfig
impl Message for GkeClusterConfig
Source§impl PartialEq for GkeClusterConfig
impl PartialEq for GkeClusterConfig
impl StructuralPartialEq for GkeClusterConfig
Auto Trait Implementations§
impl Freeze for GkeClusterConfig
impl RefUnwindSafe for GkeClusterConfig
impl Send for GkeClusterConfig
impl Sync for GkeClusterConfig
impl Unpin for GkeClusterConfig
impl UnwindSafe for GkeClusterConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more