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.



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

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>)


764
765
766
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 764

def days_of_week
  @days_of_week
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



771
772
773
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 771

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