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
-
#duration_based_retention ⇒ String
Duration based retention period i.e.
-
#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. -
#timestamp_based_retention_time ⇒ String
Timestamp based retention period i.e.
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.
3640 3641 3642 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3640 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration_based_retention ⇒ String
Duration based retention period i.e. 172800 seconds (2 days)
Corresponds to the JSON property durationBasedRetention
3618 3619 3620 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3618 def duration_based_retention @duration_based_retention end |
#quantity_based_retention ⇒ Fixnum
Corresponds to the JSON property quantityBasedRetention
3623 3624 3625 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3623 def quantity_based_retention @quantity_based_retention end |
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
Corresponds to the JSON property retentionUnit
3628 3629 3630 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3628 def retention_unit @retention_unit end |
#time_based_retention ⇒ String
Corresponds to the JSON property timeBasedRetention
3633 3634 3635 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3633 def time_based_retention @time_based_retention end |
#timestamp_based_retention_time ⇒ String
Timestamp based retention period i.e. 2024-05-01T00:00:00Z
Corresponds to the JSON property timestampBasedRetentionTime
3638 3639 3640 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3638 def @timestamp_based_retention_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3645 3646 3647 3648 3649 3650 3651 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3645 def update!(**args) @duration_based_retention = args[:duration_based_retention] if args.key?(:duration_based_retention) @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) @timestamp_based_retention_time = args[:timestamp_based_retention_time] if args.key?(:timestamp_based_retention_time) end |