#[non_exhaustive]pub struct SoftwareConfig {
pub image_version: String,
pub properties: HashMap<String, String>,
pub optional_components: Vec<Component>,
/* private fields */
}Expand description
Specifies the selection and config of software inside the cluster.
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.image_version: StringOptional. The version of software inside the cluster. It must be one of the supported Dataproc Versions, such as “1.2” (including a subminor version, such as “1.2.29”), or the “preview” version. If unspecified, it defaults to the latest Debian version.
properties: HashMap<String, String>Optional. The properties to set on daemon config files.
Property keys are specified in prefix:property format, for example
core:hadoop.tmp.dir. The following are supported prefixes
and their mappings:
- capacity-scheduler:
capacity-scheduler.xml - core:
core-site.xml - distcp:
distcp-default.xml - hdfs:
hdfs-site.xml - hive:
hive-site.xml - mapred:
mapred-site.xml - pig:
pig.properties - spark:
spark-defaults.conf - yarn:
yarn-site.xml
For more information, see Cluster properties.
optional_components: Vec<Component>Optional. The set of components to activate on the cluster.
Implementations§
Source§impl SoftwareConfig
impl SoftwareConfig
pub fn new() -> Self
Sourcepub fn set_image_version<T: Into<String>>(self, v: T) -> Self
pub fn set_image_version<T: Into<String>>(self, v: T) -> Self
Sets the value of image_version.
Sourcepub fn set_properties<T, K, V>(self, v: T) -> Self
pub fn set_properties<T, K, V>(self, v: T) -> Self
Sets the value of properties.
Sourcepub fn set_optional_components<T, V>(self, v: T) -> Self
pub fn set_optional_components<T, V>(self, v: T) -> Self
Sets the value of optional_components.
Trait Implementations§
Source§impl Clone for SoftwareConfig
impl Clone for SoftwareConfig
Source§fn clone(&self) -> SoftwareConfig
fn clone(&self) -> SoftwareConfig
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 SoftwareConfig
impl Debug for SoftwareConfig
Source§impl Default for SoftwareConfig
impl Default for SoftwareConfig
Source§fn default() -> SoftwareConfig
fn default() -> SoftwareConfig
Returns the “default value” for a type. Read more
Source§impl Message for SoftwareConfig
impl Message for SoftwareConfig
Source§impl PartialEq for SoftwareConfig
impl PartialEq for SoftwareConfig
impl StructuralPartialEq for SoftwareConfig
Auto Trait Implementations§
impl Freeze for SoftwareConfig
impl RefUnwindSafe for SoftwareConfig
impl Send for SoftwareConfig
impl Sync for SoftwareConfig
impl Unpin for SoftwareConfig
impl UnwindSafe for SoftwareConfig
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