Class: Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycle
- 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 weekly operations.
Instance Attribute Summary collapse
-
#day_of_weeks ⇒ Array<Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycleDayOfWeek>
Up to 7 intervals/windows, one for each day of the week.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourcePolicyWeeklyCycle
constructor
A new instance of ResourcePolicyWeeklyCycle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourcePolicyWeeklyCycle
Returns a new instance of ResourcePolicyWeeklyCycle.
34057 34058 34059 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34057 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_weeks ⇒ Array<Google::Apis::ComputeAlpha::ResourcePolicyWeeklyCycleDayOfWeek>
Up to 7 intervals/windows, one for each day of the week.
Corresponds to the JSON property dayOfWeeks
34055 34056 34057 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34055 def day_of_weeks @day_of_weeks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
34062 34063 34064 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 34062 def update!(**args) @day_of_weeks = args[:day_of_weeks] if args.key?(:day_of_weeks) end |