Class: Google::Apis::ComputeAlpha::VmMaintenancePolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::VmMaintenancePolicy
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when.
Instance Attribute Summary collapse
-
#maintenance_window ⇒ Google::Apis::ComputeAlpha::MaintenanceWindow
A maintenance window for VMs and disks.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmMaintenancePolicy
constructor
A new instance of VmMaintenancePolicy.
-
#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) ⇒ VmMaintenancePolicy
Returns a new instance of VmMaintenancePolicy
25092 25093 25094 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 25092 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maintenance_window ⇒ Google::Apis::ComputeAlpha::MaintenanceWindow
A maintenance window for VMs and disks. When set, we restrict our maintenance
operations to this window.
Corresponds to the JSON property maintenanceWindow
25090 25091 25092 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 25090 def maintenance_window @maintenance_window end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25097 25098 25099 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 25097 def update!(**args) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) end |