class Google::Apis::SqladminV1::BackupRetentionSettings
We currently only support backup retention by specifying the number of backups we will retain.
Attributes
retained_backups[RW]
Depending on the value of retention_unit
, this is used to determine if a backup needs to be deleted. If retention_unit
is 'COUNT', we will retain this many backups. Corresponds to the JSON property `retainedBackups` @return [Fixnum]
retention_unit[RW]
The unit that 'retained_backups' represents. Corresponds to the JSON property `retentionUnit` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/sqladmin_v1/classes.rb, line 211 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/sqladmin_v1/classes.rb, line 216 def update!(**args) @retained_backups = args[:retained_backups] if args.key?(:retained_backups) @retention_unit = args[:retention_unit] if args.key?(:retention_unit) end