# Google Cloud Dataplex V1 Client - Class OneTime (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 OneTime.

The scan runs once using create API.

Generated from protobuf message `google.cloud.dataplex.v1.Trigger.OneTime`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ Trigger

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ttl_after_scan_completion` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. Time to live for OneTime scans. default value is 24 hours, minimum value is 0 seconds, and maximum value is 365 days. The time is calculated from the data scan job completion time. If value is set as 0 seconds, the scan will be immediately deleted upon job completion, regardless of whether the job succeeded or failed. |

### getTtlAfterScanCompletion

Optional. Time to live for OneTime scans.

default value is 24 hours, minimum value is 0 seconds, and maximum value
is 365 days. The time is calculated from the data scan job completion
time. If value is set as 0 seconds, the scan will be immediately deleted
upon job completion, regardless of whether the job succeeded or failed.

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

### hasTtlAfterScanCompletion

### clearTtlAfterScanCompletion

### setTtlAfterScanCompletion

Optional. Time to live for OneTime scans.

default value is 24 hours, minimum value is 0 seconds, and maximum value
is 365 days. The time is calculated from the data scan job completion
time. If value is set as 0 seconds, the scan will be immediately deleted
upon job completion, regardless of whether the job succeeded or failed.

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

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