Class: Google::Apis::ClouddeployV1::TimeWindows

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeWindows

Returns a new instance of TimeWindows.



6223
6224
6225
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6223

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

Instance Attribute Details

#one_time_windowsArray<Google::Apis::ClouddeployV1::OneTimeWindow>

Optional. One-time windows within which actions are restricted. Corresponds to the JSON property oneTimeWindows



6210
6211
6212
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6210

def one_time_windows
  @one_time_windows
end

#time_zoneString

Required. The time zone in IANA format IANA Time Zone Database (e.g. America/New_York). Corresponds to the JSON property timeZone

Returns:

  • (String)


6216
6217
6218
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6216

def time_zone
  @time_zone
end

#weekly_windowsArray<Google::Apis::ClouddeployV1::WeeklyWindow>

Optional. Recurring weekly windows within which actions are restricted. Corresponds to the JSON property weeklyWindows



6221
6222
6223
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6221

def weekly_windows
  @weekly_windows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6228
6229
6230
6231
6232
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6228

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