Class: Google::Apis::ComputeV1::ResourcePolicyHourlyCycle

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/representations.rb

Overview

Time window specified for hourly operations.

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) ⇒ ResourcePolicyHourlyCycle

Returns a new instance of ResourcePolicyHourlyCycle



19000
19001
19002
# File 'generated/google/apis/compute_v1/classes.rb', line 19000

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

Instance Attribute Details

#durationString

[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. Corresponds to the JSON property duration

Returns:

  • (String)


18987
18988
18989
# File 'generated/google/apis/compute_v1/classes.rb', line 18987

def duration
  @duration
end

#hours_in_cycleFixnum

Allows to define schedule that runs every nth hour. Corresponds to the JSON property hoursInCycle

Returns:

  • (Fixnum)


18992
18993
18994
# File 'generated/google/apis/compute_v1/classes.rb', line 18992

def hours_in_cycle
  @hours_in_cycle
end

#start_timeString

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

Returns:

  • (String)


18998
18999
19000
# File 'generated/google/apis/compute_v1/classes.rb', line 18998

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19005
19006
19007
19008
19009
# File 'generated/google/apis/compute_v1/classes.rb', line 19005

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