Class: Google::Apis::ComposerV1::AirflowMetadataRetentionPolicyConfig

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 policy for airflow metadata database retention.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AirflowMetadataRetentionPolicyConfig

Returns a new instance of AirflowMetadataRetentionPolicyConfig.



39
40
41
# File 'lib/google/apis/composer_v1/classes.rb', line 39

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

Instance Attribute Details

#retention_daysFixnum

Optional. How many days data should be retained for. Corresponds to the JSON property retentionDays

Returns:

  • (Fixnum)


32
33
34
# File 'lib/google/apis/composer_v1/classes.rb', line 32

def retention_days
  @retention_days
end

#retention_modeString

Optional. Retention can be either enabled or disabled. Corresponds to the JSON property retentionMode

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/composer_v1/classes.rb', line 37

def retention_mode
  @retention_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44
45
46
47
# File 'lib/google/apis/composer_v1/classes.rb', line 44

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