Class: Google::Apis::ComputeAlpha::MaintenanceWindow

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 and disks. 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) ⇒ MaintenanceWindow

Returns a new instance of MaintenanceWindow



14519
14520
14521
# File 'generated/google/apis/compute_alpha/classes.rb', line 14519

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

Instance Attribute Details

#daily_maintenance_windowGoogle::Apis::ComputeAlpha::DailyMaintenanceWindow

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



14512
14513
14514
# File 'generated/google/apis/compute_alpha/classes.rb', line 14512

def daily_maintenance_window
  @daily_maintenance_window
end

#hourly_maintenance_windowGoogle::Apis::ComputeAlpha::HourlyMaintenanceWindow

Time window specified for hourly maintenance operations. Corresponds to the JSON property hourlyMaintenanceWindow



14517
14518
14519
# File 'generated/google/apis/compute_alpha/classes.rb', line 14517

def hourly_maintenance_window
  @hourly_maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14524
14525
14526
14527
# File 'generated/google/apis/compute_alpha/classes.rb', line 14524

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