Class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy
 
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
 generated/google/apis/compute_alpha/representations.rb,
 generated/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #maintenance_environment  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A hint about the environment this VM belongs to (production vs develoment) Corresponds to the JSON property maintenanceEnvironment.
- 
  
    
      #maintenance_window  ⇒ Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A maintenance window for VMs. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ResourcePolicyVmMaintenancePolicy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ResourcePolicyVmMaintenancePolicy. 
- 
  
    
      #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) ⇒ ResourcePolicyVmMaintenancePolicy
Returns a new instance of ResourcePolicyVmMaintenancePolicy
| 20260 20261 20262 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20260 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#maintenance_environment ⇒ String
A hint about the environment this VM belongs to (production vs develoment)
Corresponds to the JSON property maintenanceEnvironment
| 20252 20253 20254 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20252 def maintenance_environment @maintenance_environment end | 
#maintenance_window ⇒ Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow
A maintenance window for VMs. When set, we restrict our maintenance operations
to this window.
Corresponds to the JSON property maintenanceWindow
| 20258 20259 20260 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20258 def maintenance_window @maintenance_window end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 20265 20266 20267 20268 | # File 'generated/google/apis/compute_alpha/classes.rb', line 20265 def update!(**args) @maintenance_environment = args[:maintenance_environment] if args.key?(:maintenance_environment) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) end |