Class: Google::Apis::ClouddeployV1::WeeklyWindow
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::WeeklyWindow
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
Weekly windows. For example, blocking actions every Saturday and Sunday. Another example would be blocking actions every weekday from 5pm to midnight.
Instance Attribute Summary collapse
-
#days_of_week ⇒ Array<String>
Optional.
-
#end_time ⇒ Google::Apis::ClouddeployV1::TimeOfDay
Represents a time of day.
-
#start_time ⇒ Google::Apis::ClouddeployV1::TimeOfDay
Represents a time of day.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WeeklyWindow
constructor
A new instance of WeeklyWindow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WeeklyWindow
Returns a new instance of WeeklyWindow.
6318 6319 6320 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6318 def initialize(**args) update!(**args) end |
Instance Attribute Details
#days_of_week ⇒ Array<String>
Optional. Days of week. If left empty, all days of the week will be included.
Corresponds to the JSON property daysOfWeek
6302 6303 6304 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6302 def days_of_week @days_of_week end |
#end_time ⇒ Google::Apis::ClouddeployV1::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 endTime
6309 6310 6311 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6309 def end_time @end_time end |
#start_time ⇒ Google::Apis::ClouddeployV1::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
6316 6317 6318 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6316 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6323 6324 6325 6326 6327 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6323 def update!(**args) @days_of_week = args[:days_of_week] if args.key?(:days_of_week) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |