pub struct GoogleCloudDataplexV1TaskSparkTaskConfig {
pub archive_uris: Option<Vec<String>>,
pub file_uris: Option<Vec<String>>,
pub infrastructure_spec: Option<GoogleCloudDataplexV1TaskInfrastructureSpec>,
pub main_class: Option<String>,
pub main_jar_file_uri: Option<String>,
pub python_script_file: Option<String>,
pub sql_script: Option<String>,
pub sql_script_file: Option<String>,
}
Expand description
User-specified config for running a Spark task.
This type is not used in any activity, and only used as part of another schema.
Fields§
§archive_uris: Option<Vec<String>>
Optional. Cloud Storage URIs of archives to be extracted into the working directory of each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
file_uris: Option<Vec<String>>
Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
infrastructure_spec: Option<GoogleCloudDataplexV1TaskInfrastructureSpec>
Optional. Infrastructure specification for the execution.
main_class: Option<String>
The name of the driver’s main class. The jar file that contains the class must be in the default CLASSPATH or specified in jar_file_uris. The execution args are passed in as a sequence of named process arguments (–key=value).
main_jar_file_uri: Option<String>
The Cloud Storage URI of the jar file that contains the main class. The execution args are passed in as a sequence of named process arguments (–key=value).
python_script_file: Option<String>
The Gcloud Storage URI of the main Python file to use as the driver. Must be a .py file. The execution args are passed in as a sequence of named process arguments (–key=value).
sql_script: Option<String>
The query text. The execution args are used to declare a set of script variables (set key=“value”;).
sql_script_file: Option<String>
A reference to a query file. This can be the Cloud Storage URI of the query file or it can the path to a SqlScript Content. The execution args are used to declare a set of script variables (set key=“value”;).
Trait Implementations§
Source§impl Clone for GoogleCloudDataplexV1TaskSparkTaskConfig
impl Clone for GoogleCloudDataplexV1TaskSparkTaskConfig
Source§fn clone(&self) -> GoogleCloudDataplexV1TaskSparkTaskConfig
fn clone(&self) -> GoogleCloudDataplexV1TaskSparkTaskConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDataplexV1TaskSparkTaskConfig
impl Default for GoogleCloudDataplexV1TaskSparkTaskConfig
Source§fn default() -> GoogleCloudDataplexV1TaskSparkTaskConfig
fn default() -> GoogleCloudDataplexV1TaskSparkTaskConfig
Source§impl<'de> Deserialize<'de> for GoogleCloudDataplexV1TaskSparkTaskConfig
impl<'de> Deserialize<'de> for GoogleCloudDataplexV1TaskSparkTaskConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDataplexV1TaskSparkTaskConfig
Auto Trait Implementations§
impl Freeze for GoogleCloudDataplexV1TaskSparkTaskConfig
impl RefUnwindSafe for GoogleCloudDataplexV1TaskSparkTaskConfig
impl Send for GoogleCloudDataplexV1TaskSparkTaskConfig
impl Sync for GoogleCloudDataplexV1TaskSparkTaskConfig
impl Unpin for GoogleCloudDataplexV1TaskSparkTaskConfig
impl UnwindSafe for GoogleCloudDataplexV1TaskSparkTaskConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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