Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainRetentionSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings

Returns a new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.



2732
2733
2734
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2732

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

Instance Attribute Details

#quantity_based_retentionFixnum

Corresponds to the JSON property quantityBasedRetention

Returns:

  • (Fixnum)


2720
2721
2722
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2720

def quantity_based_retention
  @quantity_based_retention
end

#retention_unitString

The unit that 'retained_backups' represents. Corresponds to the JSON property retentionUnit

Returns:

  • (String)


2725
2726
2727
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2725

def retention_unit
  @retention_unit
end

#time_based_retentionString

Corresponds to the JSON property timeBasedRetention

Returns:

  • (String)


2730
2731
2732
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2730

def time_based_retention
  @time_based_retention
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2737
2738
2739
2740
2741
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 2737

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