Class: Google::Apis::ComputeV1::ResourcePolicyWeeklyCycle
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::ResourcePolicyWeeklyCycle
- 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 weekly operations.
Instance Attribute Summary collapse
-
#day_of_weeks ⇒ Array<Google::Apis::ComputeV1::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.
25184 25185 25186 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25184 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_weeks ⇒ Array<Google::Apis::ComputeV1::ResourcePolicyWeeklyCycleDayOfWeek>
Up to 7 intervals/windows, one for each day of the week.
Corresponds to the JSON property dayOfWeeks
25182 25183 25184 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25182 def day_of_weeks @day_of_weeks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25189 25190 25191 |
# File 'generated/google/apis/compute_v1/classes.rb', line 25189 def update!(**args) @day_of_weeks = args[:day_of_weeks] if args.key?(:day_of_weeks) end |