Class: Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy
 
 
- Defined in:
 - generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb 
Overview
Policy for retention of automatically created snapshots.
Instance Attribute Summary collapse
- 
  
    
      #max_retention_days  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Maximum age of the snapshot that is allowed to be kept.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ResourcePolicyBackupSchedulePolicyRetentionPolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ResourcePolicyBackupSchedulePolicyRetentionPolicy.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ResourcePolicyBackupSchedulePolicyRetentionPolicy
Returns a new instance of ResourcePolicyBackupSchedulePolicyRetentionPolicy
      18175 18176 18177  | 
    
      # File 'generated/google/apis/compute_beta/classes.rb', line 18175 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#max_retention_days ⇒ Fixnum
Maximum age of the snapshot that is allowed to be kept.
Corresponds to the JSON property maxRetentionDays
      18173 18174 18175  | 
    
      # File 'generated/google/apis/compute_beta/classes.rb', line 18173 def max_retention_days @max_retention_days end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      18180 18181 18182  | 
    
      # File 'generated/google/apis/compute_beta/classes.rb', line 18180 def update!(**args) @max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days) end  |