#[non_exhaustive]pub struct ContainerImageRuntime {
pub image: String,
pub java_jars: Vec<String>,
pub python_packages: Vec<String>,
pub properties: HashMap<String, String>,
/* private fields */
}Expand description
Container Image Runtime Configuration used with Batch execution.
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.image: StringOptional. Container image to use.
java_jars: Vec<String>Optional. A list of Java JARS to add to the classpath. Valid input includes Cloud Storage URIs to Jar binaries. For example, gs://bucket-name/my/path/to/file.jar
python_packages: Vec<String>Optional. A list of python packages to be installed. Valid formats include Cloud Storage URI to a PIP installable library. For example, gs://bucket-name/my/path/to/lib.tar.gz
properties: HashMap<String, String>Optional. Override to common configuration of open source components
installed on the Dataproc cluster. The properties to set on daemon
config files. Property keys are specified in prefix:property format,
for example core:hadoop.tmp.dir. For more information, see Cluster
properties.
Implementations§
Source§impl ContainerImageRuntime
impl ContainerImageRuntime
pub fn new() -> Self
Sourcepub fn set_java_jars<T, V>(self, v: T) -> Self
pub fn set_java_jars<T, V>(self, v: T) -> Self
Sets the value of java_jars.
Sourcepub fn set_python_packages<T, V>(self, v: T) -> Self
pub fn set_python_packages<T, V>(self, v: T) -> Self
Sets the value of python_packages.
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.
Trait Implementations§
Source§impl Clone for ContainerImageRuntime
impl Clone for ContainerImageRuntime
Source§fn clone(&self) -> ContainerImageRuntime
fn clone(&self) -> ContainerImageRuntime
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more