# Cloud Composer V1 API - Class Google::Cloud::Orchestration::Airflow::Service::V1::DataRetentionConfig (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.4 1.2.0 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Cloud Composer V1 API class Google::Cloud::Orchestration::Airflow::Service::V1::DataRetentionConfig.

The configuration setting for Airflow database data retention mechanism.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #airflow_metadata_retention_config

    def airflow_metadata_retention_config() -> ::Google::Cloud::Orchestration::Airflow::Service::V1::AirflowMetadataRetentionPolicyConfig

**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::AirflowMetadataRetentionPolicyConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-AirflowMetadataRetentionPolicyConfig)) --- Optional. The retention policy for airflow metadata database.

### #airflow_metadata_retention_config=

    def airflow_metadata_retention_config=(value) -> ::Google::Cloud::Orchestration::Airflow::Service::V1::AirflowMetadataRetentionPolicyConfig

**Parameter**

- **value** ([::Google::Cloud::Orchestration::Airflow::Service::V1::AirflowMetadataRetentionPolicyConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-AirflowMetadataRetentionPolicyConfig)) --- Optional. The retention policy for airflow metadata database.
**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::AirflowMetadataRetentionPolicyConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-AirflowMetadataRetentionPolicyConfig)) --- Optional. The retention policy for airflow metadata database.

### #task_logs_retention_config

    def task_logs_retention_config() -> ::Google::Cloud::Orchestration::Airflow::Service::V1::TaskLogsRetentionConfig

**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::TaskLogsRetentionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-TaskLogsRetentionConfig)) --- Optional. The configuration settings for task logs retention

### #task_logs_retention_config=

    def task_logs_retention_config=(value) -> ::Google::Cloud::Orchestration::Airflow::Service::V1::TaskLogsRetentionConfig

**Parameter**

- **value** ([::Google::Cloud::Orchestration::Airflow::Service::V1::TaskLogsRetentionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-TaskLogsRetentionConfig)) --- Optional. The configuration settings for task logs retention
**Returns**

- ([::Google::Cloud::Orchestration::Airflow::Service::V1::TaskLogsRetentionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-orchestration-airflow-service-v1/latest/Google-Cloud-Orchestration-Airflow-Service-V1-TaskLogsRetentionConfig)) --- Optional. The configuration settings for task logs retention