class Google::Apis::ComputeV1::ResourcePolicyHourlyCycle

Time window specified for hourly operations.

Attributes

duration[RW]
Output only

Duration of the time window, automatically chosen to be smallest

possible in the given scenario. Corresponds to the JSON property `duration` @return [String]

hours_in_cycle[RW]

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` @return [Fixnum]

start_time[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_v1/classes.rb, line 29081
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_v1/classes.rb, line 29086
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