Class: Google::Apis::ComposerV1::DataRetentionConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1/classes.rb,
lib/google/apis/composer_v1/representations.rb,
lib/google/apis/composer_v1/representations.rb

Overview

The configuration setting for Airflow database data retention mechanism.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataRetentionConfig

Returns a new instance of DataRetentionConfig.



323
324
325
# File 'lib/google/apis/composer_v1/classes.rb', line 323

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#airflow_metadata_retention_configGoogle::Apis::ComposerV1::AirflowMetadataRetentionPolicyConfig

The policy for airflow metadata database retention. Corresponds to the JSON property airflowMetadataRetentionConfig



316
317
318
# File 'lib/google/apis/composer_v1/classes.rb', line 316

def 
  @airflow_metadata_retention_config
end

#task_logs_retention_configGoogle::Apis::ComposerV1::TaskLogsRetentionConfig

The configuration setting for Task Logs. Corresponds to the JSON property taskLogsRetentionConfig



321
322
323
# File 'lib/google/apis/composer_v1/classes.rb', line 321

def task_logs_retention_config
  @task_logs_retention_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



328
329
330
331
# File 'lib/google/apis/composer_v1/classes.rb', line 328

def update!(**args)
  @airflow_metadata_retention_config = args[:airflow_metadata_retention_config] if args.key?(:airflow_metadata_retention_config)
  @task_logs_retention_config = args[:task_logs_retention_config] if args.key?(:task_logs_retention_config)
end