#[non_exhaustive]pub struct KubernetesClusterConfig {
pub kubernetes_namespace: String,
pub kubernetes_software_config: Option<KubernetesSoftwareConfig>,
pub config: Option<Config>,
/* private fields */
}Expand description
The configuration for running the Dataproc cluster on Kubernetes.
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.kubernetes_namespace: StringOptional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.
kubernetes_software_config: Option<KubernetesSoftwareConfig>Optional. The software configuration for this Dataproc cluster running on Kubernetes.
config: Option<Config>Implementations§
Source§impl KubernetesClusterConfig
impl KubernetesClusterConfig
pub fn new() -> Self
Sourcepub fn set_kubernetes_namespace<T: Into<String>>(self, v: T) -> Self
pub fn set_kubernetes_namespace<T: Into<String>>(self, v: T) -> Self
Sets the value of kubernetes_namespace.
Sourcepub fn set_kubernetes_software_config<T>(self, v: T) -> Selfwhere
T: Into<KubernetesSoftwareConfig>,
pub fn set_kubernetes_software_config<T>(self, v: T) -> Selfwhere
T: Into<KubernetesSoftwareConfig>,
Sets the value of kubernetes_software_config.
Sourcepub fn set_or_clear_kubernetes_software_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<KubernetesSoftwareConfig>,
pub fn set_or_clear_kubernetes_software_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<KubernetesSoftwareConfig>,
Sets or clears the value of kubernetes_software_config.
Sourcepub fn set_config<T: Into<Option<Config>>>(self, v: T) -> Self
pub fn set_config<T: Into<Option<Config>>>(self, v: T) -> Self
Sets the value of config.
Note that all the setters affecting config are mutually
exclusive.
Sourcepub fn gke_cluster_config(&self) -> Option<&Box<GkeClusterConfig>>
pub fn gke_cluster_config(&self) -> Option<&Box<GkeClusterConfig>>
The value of config
if it holds a GkeClusterConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_gke_cluster_config<T: Into<Box<GkeClusterConfig>>>(
self,
v: T,
) -> Self
pub fn set_gke_cluster_config<T: Into<Box<GkeClusterConfig>>>( self, v: T, ) -> Self
Sets the value of config
to hold a GkeClusterConfig.
Note that all the setters affecting config are
mutually exclusive.
Trait Implementations§
Source§impl Clone for KubernetesClusterConfig
impl Clone for KubernetesClusterConfig
Source§fn clone(&self) -> KubernetesClusterConfig
fn clone(&self) -> KubernetesClusterConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more