class Google::Apis::OsconfigV1beta::WeekDayOfMonth

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

Attributes

day_of_week[RW]

Required. A day of the week. Corresponds to the JSON property `dayOfWeek` @return [String]

week_ordinal[RW]

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` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 2152
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1beta/classes.rb, line 2157
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