Class: Google::Apis::SqladminV1::BackupRetentionSettings
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SqladminV1::BackupRetentionSettings
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/representations.rb 
Overview
We currently only support backup retention by specifying the number of backups we will retain.
Instance Attribute Summary collapse
- 
  
    
      #retained_backups  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted.
 - 
  
    
      #retention_unit  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The unit that 'retained_backups' represents.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ BackupRetentionSettings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of BackupRetentionSettings.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ BackupRetentionSettings
Returns a new instance of BackupRetentionSettings.
      339 340 341  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 339 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#retained_backups ⇒ Fixnum
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
      332 333 334  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 332 def retained_backups @retained_backups end  | 
  
#retention_unit ⇒ String
The unit that 'retained_backups' represents.
Corresponds to the JSON property retentionUnit
      337 338 339  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 337 def retention_unit @retention_unit end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      344 345 346 347  | 
    
      # File 'lib/google/apis/sqladmin_v1/classes.rb', line 344 def update!(**args) @retained_backups = args[:retained_backups] if args.key?(:retained_backups) @retention_unit = args[:retention_unit] if args.key?(:retention_unit) end  |