Class: Google::Apis::BigtableadminV2::AutomatedBackupPolicy
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::BigtableadminV2::AutomatedBackupPolicy
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/bigtableadmin_v2/classes.rb,
lib/google/apis/bigtableadmin_v2/representations.rb,
lib/google/apis/bigtableadmin_v2/representations.rb 
Overview
Defines an automated backup policy for a table
Instance Attribute Summary collapse
- 
  
    
      #frequency  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #retention_period  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AutomatedBackupPolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of AutomatedBackupPolicy.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ AutomatedBackupPolicy
Returns a new instance of AutomatedBackupPolicy.
      233 234 235  | 
    
      # File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 233 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#frequency ⇒ String
Required. How frequently automated backups should occur. The only supported
value at this time is 24 hours.
Corresponds to the JSON property frequency
      225 226 227  | 
    
      # File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 225 def frequency @frequency end  | 
  
#retention_period ⇒ String
Required. How long the automated backups should be retained. The only
supported value at this time is 3 days.
Corresponds to the JSON property retentionPeriod
      231 232 233  | 
    
      # File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 231 def retention_period @retention_period end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      238 239 240 241  | 
    
      # File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 238 def update!(**args) @frequency = args[:frequency] if args.key?(:frequency) @retention_period = args[:retention_period] if args.key?(:retention_period) end  |