Class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResourcePolicyVmMaintenancePolicy

Returns a new instance of ResourcePolicyVmMaintenancePolicy



21649
21650
21651
# File 'generated/google/apis/compute_alpha/classes.rb', line 21649

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#maintenance_windowGoogle::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow

A maintenance window for VMs. When set, we restrict our maintenance operations to this window. Corresponds to the JSON property maintenanceWindow



21647
21648
21649
# File 'generated/google/apis/compute_alpha/classes.rb', line 21647

def maintenance_window
  @maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21654
21655
21656
# File 'generated/google/apis/compute_alpha/classes.rb', line 21654

def update!(**args)
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
end