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.



6282
6283
6284
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6282

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



6269
6270
6271
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6269

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)


6275
6276
6277
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6275

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



6280
6281
6282
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6280

def weekly_windows
  @weekly_windows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6287
6288
6289
6290
6291
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6287

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