Class: Google::Apis::GkebackupV1::DayOfWeekList

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb

Overview

Holds repeated DaysOfWeek values as a container.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DayOfWeekList

Returns a new instance of DayOfWeekList.



769
770
771
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 769

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

Instance Attribute Details

#days_of_weekArray<String>

Optional. A list of days of week. Corresponds to the JSON property daysOfWeek

Returns:

  • (Array<String>)


767
768
769
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 767

def days_of_week
  @days_of_week
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



774
775
776
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 774

def update!(**args)
  @days_of_week = args[:days_of_week] if args.key?(:days_of_week)
end