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.
6267 6268 6269 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6267 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
6254 6255 6256 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6254 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
6260 6261 6262 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6260 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
6265 6266 6267 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6265 def weekly_windows @weekly_windows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6272 6273 6274 6275 6276 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6272 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 |