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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ ResourcePolicyVmMaintenancePolicyMaintenanceWindow

Returns a new instance of ResourcePolicyVmMaintenancePolicyMaintenanceWindow.



37136
37137
37138
# File 'lib/google/apis/compute_alpha/classes.rb', line 37136

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



37134
37135
37136
# File 'lib/google/apis/compute_alpha/classes.rb', line 37134

def daily_maintenance_window
  @daily_maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37141
37142
37143
# File 'lib/google/apis/compute_alpha/classes.rb', line 37141

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