Class: Google::Apis::OsconfigV1beta::WeekDayOfMonth

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

Overview

Represents one week day in a month. An example is "the 4th Sunday".

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WeekDayOfMonth

Returns a new instance of WeekDayOfMonth.



2108
2109
2110
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2108

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

Instance Attribute Details

#day_of_weekString

Required. A day of the week. Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


2099
2100
2101
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2099

def day_of_week
  @day_of_week
end

#week_ordinalFixnum

Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month. Corresponds to the JSON property weekOrdinal

Returns:

  • (Fixnum)


2106
2107
2108
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2106

def week_ordinal
  @week_ordinal
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2113
2114
2115
2116
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2113

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