# Google Cloud Orchestration Airflow V1 Client - Class DataRetentionConfig (2.2.3)

2.2.3 (latest) 2.2.2 2.1.8 2.0.1 1.6.4 1.5.0 1.4.2 1.3.0 1.2.0 1.1.0 1.0.4 Reference documentation and code samples for the Google Cloud Orchestration Airflow V1 Client class DataRetentionConfig.

The configuration setting for Airflow database data retention mechanism.

Generated from protobuf message `google.cloud.orchestration.airflow.service.v1.DataRetentionConfig`

## Namespace

Google \\ Cloud \\ Orchestration \\ Airflow \\ Service \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ airflow_metadata_retention_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.AirflowMetadataRetentionPolicyConfig` Optional. The retention policy for airflow metadata database. |
| `↳ task_logs_retention_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.TaskLogsRetentionConfig` Optional. The configuration settings for task logs retention |

### getAirflowMetadataRetentionConfig

Optional. The retention policy for airflow metadata database.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.AirflowMetadataRetentionPolicyConfig|null` |   |

### hasAirflowMetadataRetentionConfig

### clearAirflowMetadataRetentionConfig

### setAirflowMetadataRetentionConfig

Optional. The retention policy for airflow metadata database.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.AirflowMetadataRetentionPolicyConfig` |

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

### getTaskLogsRetentionConfig

Optional. The configuration settings for task logs retention

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.TaskLogsRetentionConfig|null` |   |

### hasTaskLogsRetentionConfig

### clearTaskLogsRetentionConfig

### setTaskLogsRetentionConfig

Optional. The configuration settings for task logs retention

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.TaskLogsRetentionConfig` |

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