Class: Google::Apis::ComposerV1beta1::DataRetentionConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1beta1/classes.rb,
lib/google/apis/composer_v1beta1/representations.rb,
lib/google/apis/composer_v1beta1/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.



330
331
332
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 330

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

Instance Attribute Details

#airflow_database_retention_daysFixnum

Optional. The number of days describing for how long to store event-based records in airflow database. If the retention mechanism is enabled this value must be a positive integer otherwise, value should be set to 0. Corresponds to the JSON property airflowDatabaseRetentionDays

Returns:

  • (Fixnum)


318
319
320
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 318

def airflow_database_retention_days
  @airflow_database_retention_days
end

#airflow_metadata_retention_configGoogle::Apis::ComposerV1beta1::AirflowMetadataRetentionPolicyConfig

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



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

def 
  @airflow_metadata_retention_config
end

#task_logs_retention_configGoogle::Apis::ComposerV1beta1::TaskLogsRetentionConfig

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



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

def task_logs_retention_config
  @task_logs_retention_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



335
336
337
338
339
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 335

def update!(**args)
  @airflow_database_retention_days = args[:airflow_database_retention_days] if args.key?(:airflow_database_retention_days)
  @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