Class: Google::Apis::ComputeV1::ResourcePolicyWeeklyCycle

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

Overview

Time window specified for weekly operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourcePolicyWeeklyCycle

Returns a new instance of ResourcePolicyWeeklyCycle.



26261
26262
26263
# File 'lib/google/apis/compute_v1/classes.rb', line 26261

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

Instance Attribute Details

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

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



26259
26260
26261
# File 'lib/google/apis/compute_v1/classes.rb', line 26259

def day_of_weeks
  @day_of_weeks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



26266
26267
26268
# File 'lib/google/apis/compute_v1/classes.rb', line 26266

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