class Google::Apis::OsconfigV1beta::MonthlySchedule

Represents a monthly schedule. An example of a valid monthly schedule is “on the third Tuesday of the month” or “on the 15th of the month”.

Attributes

month_day[RW]

Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month. Months without the target day will be skipped. For example, a schedule to run “every month on the 31st” will not run in February, April, June, etc. Corresponds to the JSON property `monthDay` @return [Fixnum]

week_day_of_month[RW]

Represents one week day in a month. An example is “the 4th Sunday”. Corresponds to the JSON property `weekDayOfMonth` @return [Google::Apis::OsconfigV1beta::WeekDayOfMonth]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 834
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 839
def update!(**args)
  @month_day = args[:month_day] if args.key?(:month_day)
  @week_day_of_month = args[:week_day_of_month] if args.key?(:week_day_of_month)
end