Class: Google::Apis::VmwareengineV1::TimeWindow
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::TimeWindow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmwareengine_v1/classes.rb,
lib/google/apis/vmwareengine_v1/representations.rb,
lib/google/apis/vmwareengine_v1/representations.rb
Overview
Represents the time window to perform upgrade activities.
Instance Attribute Summary collapse
-
#day_of_week ⇒ String
Required.
-
#duration ⇒ String
Required.
-
#start_time ⇒ Google::Apis::VmwareengineV1::TimeOfDay
Represents a time of day.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeWindow
constructor
A new instance of TimeWindow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeWindow
Returns a new instance of TimeWindow.
4010 4011 4012 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 4010 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_week ⇒ String
Required. Day of the week for this window.
Corresponds to the JSON property dayOfWeek
3995 3996 3997 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3995 def day_of_week @day_of_week end |
#duration ⇒ String
Required. The duration of the window. The max allowed duration for any window
is 24 hours.
Corresponds to the JSON property duration
4001 4002 4003 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 4001 def duration @duration end |
#start_time ⇒ Google::Apis::VmwareengineV1::TimeOfDay
Represents a time of day. The date and time zone are either not significant or
are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and google.protobuf.Timestamp.
Corresponds to the JSON property startTime
4008 4009 4010 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 4008 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4015 4016 4017 4018 4019 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 4015 def update!(**args) @day_of_week = args[:day_of_week] if args.key?(:day_of_week) @duration = args[:duration] if args.key?(:duration) @start_time = args[:start_time] if args.key?(:start_time) end |