Class: Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ResourcePolicyHourlyCycle
- 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
Time window specified for hourly 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
Defines a schedule with units measured in hours.
-
#start_time ⇒ String
Time within the window to start the operations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourcePolicyHourlyCycle
constructor
A new instance of ResourcePolicyHourlyCycle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourcePolicyHourlyCycle
Returns a new instance of ResourcePolicyHourlyCycle.
38658 38659 38660 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38658 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
38644 38645 38646 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38644 def duration @duration end |
#hours_in_cycle ⇒ Fixnum
Defines a schedule with units measured in hours. The value determines how many
hours pass between the start of each cycle.
Corresponds to the JSON property hoursInCycle
38650 38651 38652 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38650 def hours_in_cycle @hours_in_cycle end |
#start_time ⇒ String
Time within the window to start the operations. It must be in format "HH:MM",
where HH : [00-23] and MM : [00-00] GMT.
Corresponds to the JSON property startTime
38656 38657 38658 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38656 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
38663 38664 38665 38666 38667 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38663 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 |