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.



355
356
357
# File 'lib/google/apis/composer_v1/classes.rb', line 355

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



348
349
350
# File 'lib/google/apis/composer_v1/classes.rb', line 348

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



353
354
355
# File 'lib/google/apis/composer_v1/classes.rb', line 353

def task_logs_retention_config
  @task_logs_retention_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
# File 'lib/google/apis/composer_v1/classes.rb', line 360

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