Class: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle

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

Overview

Time window specified for weekly 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) ⇒ ResourcePolicyWeeklyCycle

Returns a new instance of ResourcePolicyWeeklyCycle



21688
21689
21690
# File 'generated/google/apis/compute_alpha/classes.rb', line 21688

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

Instance Attribute Details

#day_of_weeksArray<Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycleDayOfWeek>

Up to 7 intervals/windows, one for each day of the week. Corresponds to the JSON property dayOfWeeks



21686
21687
21688
# File 'generated/google/apis/compute_alpha/classes.rb', line 21686

def day_of_weeks
  @day_of_weeks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21693
21694
21695
# File 'generated/google/apis/compute_alpha/classes.rb', line 21693

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