Class: Google::Apis::ComputeAlpha::ResourcePolicyDailyCycle

Inherits:
Object
  • Object
show all
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 daily operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourcePolicyDailyCycle

Returns a new instance of ResourcePolicyDailyCycle.



37216
37217
37218
# File 'lib/google/apis/compute_alpha/classes.rb', line 37216

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

Instance Attribute Details

#days_in_cycleFixnum

Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Corresponds to the JSON property daysInCycle

Returns:

  • (Fixnum)


37201
37202
37203
# File 'lib/google/apis/compute_alpha/classes.rb', line 37201

def days_in_cycle
  @days_in_cycle
end

#durationString

[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. Corresponds to the JSON property duration

Returns:

  • (String)


37207
37208
37209
# File 'lib/google/apis/compute_alpha/classes.rb', line 37207

def duration
  @duration
end

#start_timeString

Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08: 00 are valid. Corresponds to the JSON property startTime

Returns:

  • (String)


37214
37215
37216
# File 'lib/google/apis/compute_alpha/classes.rb', line 37214

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37221
37222
37223
37224
37225
# File 'lib/google/apis/compute_alpha/classes.rb', line 37221

def update!(**args)
  @days_in_cycle = args[:days_in_cycle] if args.key?(:days_in_cycle)
  @duration = args[:duration] if args.key?(:duration)
  @start_time = args[:start_time] if args.key?(:start_time)
end