Class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainRetentionSettings

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainRetentionSettings

Returns a new instance of StorageDatabasecenterPartnerapiV1mainRetentionSettings.



3109
3110
3111
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3109

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

Instance Attribute Details

#quantity_based_retentionFixnum

Corresponds to the JSON property quantityBasedRetention

Returns:

  • (Fixnum)


3097
3098
3099
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3097

def quantity_based_retention
  @quantity_based_retention
end

#retention_unitString

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

Returns:

  • (String)


3102
3103
3104
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3102

def retention_unit
  @retention_unit
end

#time_based_retentionString

Corresponds to the JSON property timeBasedRetention

Returns:

  • (String)


3107
3108
3109
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3107

def time_based_retention
  @time_based_retention
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3114
3115
3116
3117
3118
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3114

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