Class: Google::Apis::ComposerV1::AirflowMetadataRetentionPolicyConfig
- Inherits:
-
Object
- Object
- Google::Apis::ComposerV1::AirflowMetadataRetentionPolicyConfig
- 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
-
#retention_days ⇒ Fixnum
Optional.
-
#retention_mode ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AirflowMetadataRetentionPolicyConfig
constructor
A new instance of AirflowMetadataRetentionPolicyConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_days ⇒ Fixnum
Optional. How many days data should be retained for.
Corresponds to the JSON property retentionDays
32 33 34 |
# File 'lib/google/apis/composer_v1/classes.rb', line 32 def retention_days @retention_days end |
#retention_mode ⇒ String
Optional. Retention can be either enabled or disabled.
Corresponds to the JSON property retentionMode
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 |