Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskSparkTaskConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskSparkTaskConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb
Overview
User-specified config for running a Spark task.
Instance Attribute Summary collapse
-
#archive_uris ⇒ Array<String>
Optional.
-
#file_uris ⇒ Array<String>
Optional.
-
#infrastructure_spec ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskInfrastructureSpec
Configuration for the underlying infrastructure used to run workloads.
-
#main_class ⇒ String
The name of the driver's main class.
-
#main_jar_file_uri ⇒ String
The Cloud Storage URI of the jar file that contains the main class.
-
#python_script_file ⇒ String
The Gcloud Storage URI of the main Python file to use as the driver.
-
#sql_script ⇒ String
The query text.
-
#sql_script_file ⇒ String
A reference to a query file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1TaskSparkTaskConfig
constructor
A new instance of GoogleCloudDataplexV1TaskSparkTaskConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1TaskSparkTaskConfig
Returns a new instance of GoogleCloudDataplexV1TaskSparkTaskConfig.
7193 7194 7195 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7193 def initialize(**args) update!(**args) end |
Instance Attribute Details
#archive_uris ⇒ Array<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.
Corresponds to the JSON property archiveUris
7146 7147 7148 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7146 def archive_uris @archive_uris end |
#file_uris ⇒ Array<String>
Optional. Cloud Storage URIs of files to be placed in the working directory of
each executor.
Corresponds to the JSON property fileUris
7152 7153 7154 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7152 def file_uris @file_uris end |
#infrastructure_spec ⇒ Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskInfrastructureSpec
Configuration for the underlying infrastructure used to run workloads.
Corresponds to the JSON property infrastructureSpec
7157 7158 7159 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7157 def infrastructure_spec @infrastructure_spec end |
#main_class ⇒ 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).
Corresponds to the JSON property mainClass
7164 7165 7166 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7164 def main_class @main_class end |
#main_jar_file_uri ⇒ 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).
Corresponds to the JSON property mainJarFileUri
7171 7172 7173 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7171 def main_jar_file_uri @main_jar_file_uri end |
#python_script_file ⇒ 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).
Corresponds to the JSON property pythonScriptFile
7178 7179 7180 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7178 def python_script_file @python_script_file end |
#sql_script ⇒ String
The query text. The execution args are used to declare a set of script
variables (set key="value";).
Corresponds to the JSON property sqlScript
7184 7185 7186 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7184 def sql_script @sql_script end |
#sql_script_file ⇒ 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";).
Corresponds to the JSON property sqlScriptFile
7191 7192 7193 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7191 def sql_script_file @sql_script_file end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7198 def update!(**args) @archive_uris = args[:archive_uris] if args.key?(:archive_uris) @file_uris = args[:file_uris] if args.key?(:file_uris) @infrastructure_spec = args[:infrastructure_spec] if args.key?(:infrastructure_spec) @main_class = args[:main_class] if args.key?(:main_class) @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri) @python_script_file = args[:python_script_file] if args.key?(:python_script_file) @sql_script = args[:sql_script] if args.key?(:sql_script) @sql_script_file = args[:sql_script_file] if args.key?(:sql_script_file) end |