# Google Cloud Orchestration Airflow V1 Client - Class TaskLogsRetentionConfig (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 TaskLogsRetentionConfig.

The configuration setting for Task Logs.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ storage_mode` | `int` Optional. The mode of storage for Airflow workers task logs. |

### getStorageMode

Optional. The mode of storage for Airflow workers task logs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TaskLogsStorageMode](https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.TaskLogsRetentionConfig.TaskLogsStorageMode). |

### setStorageMode

Optional. The mode of storage for Airflow workers task logs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TaskLogsStorageMode](https://docs.cloud.google.com/php/docs/reference/cloud-orchestration-airflow/latest/V1.TaskLogsRetentionConfig.TaskLogsStorageMode). |

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