Class: Google::Apis::ClouddeployV1::TimeWindows
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::TimeWindows
- 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
Time windows within which actions are restricted. See the documentation for more information on how to configure dates/times.
Instance Attribute Summary collapse
-
#one_time_windows ⇒ Array<Google::Apis::ClouddeployV1::OneTimeWindow>
Optional.
-
#time_zone ⇒ String
Required.
-
#weekly_windows ⇒ Array<Google::Apis::ClouddeployV1::WeeklyWindow>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeWindows
constructor
A new instance of TimeWindows.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeWindows
Returns a new instance of TimeWindows.
6147 6148 6149 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#one_time_windows ⇒ Array<Google::Apis::ClouddeployV1::OneTimeWindow>
Optional. One-time windows within which actions are restricted.
Corresponds to the JSON property oneTimeWindows
6134 6135 6136 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6134 def one_time_windows @one_time_windows end |
#time_zone ⇒ String
Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York).
Corresponds to the JSON property timeZone
6140 6141 6142 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6140 def time_zone @time_zone end |
#weekly_windows ⇒ Array<Google::Apis::ClouddeployV1::WeeklyWindow>
Optional. Recurring weekly windows within which actions are restricted.
Corresponds to the JSON property weeklyWindows
6145 6146 6147 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6145 def weekly_windows @weekly_windows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6152 6153 6154 6155 6156 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6152 def update!(**args) @one_time_windows = args[:one_time_windows] if args.key?(:one_time_windows) @time_zone = args[:time_zone] if args.key?(:time_zone) @weekly_windows = args[:weekly_windows] if args.key?(:weekly_windows) end |