Struct google_dataproc1::ClusterConfig
source · pub struct ClusterConfig {
pub software_config: Option<SoftwareConfig>,
pub config_bucket: Option<String>,
pub gce_cluster_config: Option<GceClusterConfig>,
pub initialization_actions: Option<Vec<NodeInitializationAction>>,
pub worker_config: Option<InstanceGroupConfig>,
pub secondary_worker_config: Option<InstanceGroupConfig>,
pub master_config: Option<InstanceGroupConfig>,
}Expand description
The cluster config.
This type is not used in any activity, and only used as part of another schema.
Fields§
§software_config: Option<SoftwareConfig>Optional. The config settings for software inside the cluster.
config_bucket: Option<String>Optional. A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage location (US, ASIA, or EU) for your cluster’s staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.
gce_cluster_config: Option<GceClusterConfig>Required. The shared Google Compute Engine config settings for all instances in a cluster.
initialization_actions: Option<Vec<NodeInitializationAction>>Optional. Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node’s role metadata to run an executable on a master or worker node, as shown below using curl (you can also use wget): ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ “${ROLE}” == ‘Master’ ]]; then … master specific actions … else … worker specific actions … fi
worker_config: Option<InstanceGroupConfig>Optional. The Google Compute Engine config settings for worker instances in a cluster.
secondary_worker_config: Option<InstanceGroupConfig>Optional. The Google Compute Engine config settings for additional worker instances in a cluster.
master_config: Option<InstanceGroupConfig>Optional. The Google Compute Engine config settings for the master instance in a cluster.
Trait Implementations§
source§impl Clone for ClusterConfig
impl Clone for ClusterConfig
source§fn clone(&self) -> ClusterConfig
fn clone(&self) -> ClusterConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ClusterConfig
impl Debug for ClusterConfig
source§impl Default for ClusterConfig
impl Default for ClusterConfig
source§fn default() -> ClusterConfig
fn default() -> ClusterConfig
source§impl Deserialize for ClusterConfig
impl Deserialize for ClusterConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
source§impl Serialize for ClusterConfig
impl Serialize for ClusterConfig
impl Part for ClusterConfig
Auto Trait Implementations§
impl Freeze for ClusterConfig
impl RefUnwindSafe for ClusterConfig
impl Send for ClusterConfig
impl Sync for ClusterConfig
impl Unpin for ClusterConfig
impl UnwindSafe for ClusterConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more