Class: Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainRetentionSettings
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainRetentionSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Instance Attribute Summary collapse
-
#quantity_based_retention ⇒ Fixnum
Corresponds to the JSON property
quantityBasedRetention. -
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
-
#time_based_retention ⇒ String
Corresponds to the JSON property
timeBasedRetention.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings
constructor
A new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings
Returns a new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.
2560 2561 2562 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2560 def initialize(**args) update!(**args) end |
Instance Attribute Details
#quantity_based_retention ⇒ Fixnum
Corresponds to the JSON property quantityBasedRetention
2548 2549 2550 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2548 def quantity_based_retention @quantity_based_retention end |
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
Corresponds to the JSON property retentionUnit
2553 2554 2555 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2553 def retention_unit @retention_unit end |
#time_based_retention ⇒ String
Corresponds to the JSON property timeBasedRetention
2558 2559 2560 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2558 def time_based_retention @time_based_retention end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2565 2566 2567 2568 2569 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 2565 def update!(**args) @quantity_based_retention = args[:quantity_based_retention] if args.key?(:quantity_based_retention) @retention_unit = args[:retention_unit] if args.key?(:retention_unit) @time_based_retention = args[:time_based_retention] if args.key?(:time_based_retention) end |