# Google Cloud Dataplex V1 Client - Class ExecutionSpec (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class ExecutionSpec.

Execution related settings, like retry and service_account.

Generated from protobuf message `google.cloud.dataplex.v1.Task.ExecutionSpec`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ Task

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ args` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. The arguments to pass to the task. The args can use placeholders of the format ${placeholder} as part of key/value string. These will be interpolated before passing the args to the driver. Currently supported placeholders: - ${task_id} - ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to <https://cloud.google.com/sdk/gcloud/reference/topic/escaping>. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument. |
| `↳ service_account` | `string` Required. Service account to use to execute a task. If not provided, the default Compute service account for the project is used. |
| `↳ project` | `string` Optional. The project in which jobs are run. By default, the project containing the Lake is used. If a project is provided, the [ExecutionSpec.service_account](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.ExecutionSpec#_Google_Cloud_Dataplex_V1_Task_ExecutionSpec__getServiceAccount__) must belong to this project. |
| `↳ max_job_execution_lifetime` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. The maximum duration after which the job execution is expired. |
| `↳ kms_key` | `string` Optional. The Cloud KMS key to use for encryption, of the form: `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. |

### getArgs

Optional. The arguments to pass to the task.

The args can use placeholders of the format ${placeholder} as
part of key/value string. These will be interpolated before passing the
args to the driver. Currently supported placeholders:

- ${task_id}
- ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to <https://cloud.google.com/sdk/gcloud/reference/topic/escaping>. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setArgs

Optional. The arguments to pass to the task.

The args can use placeholders of the format ${placeholder} as
part of key/value string. These will be interpolated before passing the
args to the driver. Currently supported placeholders:

- ${task_id}
- ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to <https://cloud.google.com/sdk/gcloud/reference/topic/escaping>. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceAccount

Required. Service account to use to execute a task.

If not provided, the default Compute service account for the project is
used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setServiceAccount

Required. Service account to use to execute a task.

If not provided, the default Compute service account for the project is
used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProject

Optional. The project in which jobs are run. By default, the project
containing the Lake is used. If a project is provided, the
[ExecutionSpec.service_account](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.ExecutionSpec#_Google_Cloud_Dataplex_V1_Task_ExecutionSpec__getServiceAccount__)
must belong to this project.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProject

Optional. The project in which jobs are run. By default, the project
containing the Lake is used. If a project is provided, the
[ExecutionSpec.service_account](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Task.ExecutionSpec#_Google_Cloud_Dataplex_V1_Task_ExecutionSpec__getServiceAccount__)
must belong to this project.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMaxJobExecutionLifetime

Optional. The maximum duration after which the job execution is expired.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasMaxJobExecutionLifetime

### clearMaxJobExecutionLifetime

### setMaxJobExecutionLifetime

Optional. The maximum duration after which the job execution is expired.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKmsKey

Optional. The Cloud KMS key to use for encryption, of the form:
`projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKmsKey

Optional. The Cloud KMS key to use for encryption, of the form:
`projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |