Class: Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::ResourcePolicyHourlyCycle
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
Time window specified for hourly operations.
Instance Attribute Summary collapse
-
#duration ⇒ String
Output only.
-
#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.
52516 52517 52518 |
# File 'lib/google/apis/compute_beta/classes.rb', line 52516 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ String
Output only. [Output only] Duration of the time window, automatically chosen
to be
smallest possible in the given scenario.
Corresponds to the JSON property duration
52502 52503 52504 |
# File 'lib/google/apis/compute_beta/classes.rb', line 52502 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
52508 52509 52510 |
# File 'lib/google/apis/compute_beta/classes.rb', line 52508 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
52514 52515 52516 |
# File 'lib/google/apis/compute_beta/classes.rb', line 52514 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
52521 52522 52523 52524 52525 |
# File 'lib/google/apis/compute_beta/classes.rb', line 52521 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 |