Class: Google::Apis::ComputeAlpha::ResourcePolicyVmMaintenancePolicyMaintenanceWindow

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

Overview

A maintenance window for VMs. When set, we restrict our maintenance operations to this window.

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) ⇒ ResourcePolicyVmMaintenancePolicyMaintenanceWindow

Returns a new instance of ResourcePolicyVmMaintenancePolicyMaintenanceWindow.



28024
28025
28026
# File 'generated/google/apis/compute_alpha/classes.rb', line 28024

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

Instance Attribute Details

#daily_maintenance_windowGoogle::Apis::ComputeAlpha::ResourcePolicyDailyCycle

Time window specified for daily operations. Corresponds to the JSON property dailyMaintenanceWindow



28022
28023
28024
# File 'generated/google/apis/compute_alpha/classes.rb', line 28022

def daily_maintenance_window
  @daily_maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28029
28030
28031
# File 'generated/google/apis/compute_alpha/classes.rb', line 28029

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