# Dataplex V1 API - Class Google::Cloud::Dataplex::V1::Task::SparkTaskConfig (v2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.1 2.3.1 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.23.0 0.22.0 0.21.1 0.20.0 0.19.0 0.18.2 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.1 0.9.0 0.8.0 0.7.0 0.6.1 0.5.1 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Dataplex V1 API class Google::Cloud::Dataplex::V1::Task::SparkTaskConfig.

User-specified config for running a Spark task.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #archive_uris

    def archive_uris() -> ::Array<::String>

**Returns**

- (::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.

### #archive_uris=

    def archive_uris=(value) -> ::Array<::String>

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #file_uris

    def file_uris() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.

### #file_uris=

    def file_uris=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.
**Returns**

- (::Array\<::String\>) --- Optional. Cloud Storage URIs of files to be placed in the working directory of each executor.

### #infrastructure_spec

    def infrastructure_spec() -> ::Google::Cloud::Dataplex::V1::Task::InfrastructureSpec

**Returns**

- ([::Google::Cloud::Dataplex::V1::Task::InfrastructureSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Task-InfrastructureSpec)) --- Optional. Infrastructure specification for the execution.

### #infrastructure_spec=

    def infrastructure_spec=(value) -> ::Google::Cloud::Dataplex::V1::Task::InfrastructureSpec

**Parameter**

- **value** ([::Google::Cloud::Dataplex::V1::Task::InfrastructureSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Task-InfrastructureSpec)) --- Optional. Infrastructure specification for the execution.
**Returns**

- ([::Google::Cloud::Dataplex::V1::Task::InfrastructureSpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dataplex-v1/latest/Google-Cloud-Dataplex-V1-Task-InfrastructureSpec)) --- Optional. Infrastructure specification for the execution.

### #main_class

    def main_class() -> ::String

**Returns**

- (::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`).


  Note: The following fields are mutually exclusive: `main_class`, `main_jar_file_uri`, `python_script_file`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #main_class=

    def main_class=(value) -> ::String

**Parameter**

- **value** (::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`).


  Note: The following fields are mutually exclusive: `main_class`, `main_jar_file_uri`, `python_script_file`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::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`).


  Note: The following fields are mutually exclusive: `main_class`, `main_jar_file_uri`, `python_script_file`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #main_jar_file_uri

    def main_jar_file_uri() -> ::String

**Returns**

- (::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`).


  Note: The following fields are mutually exclusive: `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #main_jar_file_uri=

    def main_jar_file_uri=(value) -> ::String

**Parameter**

- **value** (::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`).


  Note: The following fields are mutually exclusive: `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::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`).


  Note: The following fields are mutually exclusive: `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #python_script_file

    def python_script_file() -> ::String

**Returns**

- (::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`).


  Note: The following fields are mutually exclusive: `python_script_file`, `main_jar_file_uri`, `main_class`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #python_script_file=

    def python_script_file=(value) -> ::String

**Parameter**

- **value** (::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`).


  Note: The following fields are mutually exclusive: `python_script_file`, `main_jar_file_uri`, `main_class`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::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`).


  Note: The following fields are mutually exclusive: `python_script_file`, `main_jar_file_uri`, `main_class`, `sql_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #sql_script

    def sql_script() -> ::String

**Returns**

- (::String) --- The query text. The execution args are used to declare a set of script variables (`set key="value";`).


  Note: The following fields are mutually exclusive: `sql_script`, `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script_file`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #sql_script=

    def sql_script=(value) -> ::String

**Parameter**

- **value** (::String) --- The query text. The execution args are used to declare a set of script variables (`set key="value";`).


  Note: The following fields are mutually exclusive: `sql_script`, `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script_file`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- The query text. The execution args are used to declare a set of script variables (`set key="value";`).


  Note: The following fields are mutually exclusive: `sql_script`, `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script_file`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #sql_script_file

    def sql_script_file() -> ::String

**Returns**

- (::String) --- A reference to a query file. This should be the Cloud Storage URI of the query file. The execution args are used to declare a set of script variables (`set key="value";`).


  Note: The following fields are mutually exclusive: `sql_script_file`, `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #sql_script_file=

    def sql_script_file=(value) -> ::String

**Parameter**

- **value** (::String) --- A reference to a query file. This should be the Cloud Storage URI of the query file. The execution args are used to declare a set of script variables (`set key="value";`).


  Note: The following fields are mutually exclusive: `sql_script_file`, `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- A reference to a query file. This should be the Cloud Storage URI of the query file. The execution args are used to declare a set of script variables (`set key="value";`).


  Note: The following fields are mutually exclusive: `sql_script_file`, `main_jar_file_uri`, `main_class`, `python_script_file`, `sql_script`. If a field in that set is populated, all other fields in the set will automatically be cleared.