Class: Google::Apis::ComputeAlpha::HourlyMaintenanceWindow
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::HourlyMaintenanceWindow
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
Time window specified for hourly maintenance operations.
Instance Attribute Summary collapse
-
#duration ⇒ String
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
-
#hours_in_cycle ⇒ Fixnum
Allows to define schedule that runs every nth hour.
-
#start_time ⇒ String
Time within the maintenance window to start the maintenance operations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HourlyMaintenanceWindow
constructor
A new instance of HourlyMaintenanceWindow.
-
#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) ⇒ HourlyMaintenanceWindow
Returns a new instance of HourlyMaintenanceWindow
7812 7813 7814 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 7812 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ String
[Output only] Duration of the time window, automatically chosen to be smallest
possible in the given scenario.
Corresponds to the JSON property duration
7799 7800 7801 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 7799 def duration @duration end |
#hours_in_cycle ⇒ Fixnum
Allows to define schedule that runs every nth hour.
Corresponds to the JSON property hoursInCycle
7804 7805 7806 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 7804 def hours_in_cycle @hours_in_cycle end |
#start_time ⇒ String
Time within the maintenance window to start the maintenance operations. It
must be in format "HH:MM?, where HH : [00-23] and MM : [00-59] GMT.
Corresponds to the JSON property startTime
7810 7811 7812 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 7810 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7817 7818 7819 7820 7821 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 7817 def update!(**args) @duration = args[:duration] if args.key?(:duration) @hours_in_cycle = args[:hours_in_cycle] if args.key?(:hours_in_cycle) @start_time = args[:start_time] if args.key?(:start_time) end |