Class: Google::Apis::OsconfigV1beta::MonthlySchedule
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::MonthlySchedule
- 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 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".
Instance Attribute Summary collapse
-
#month_day ⇒ Fixnum
Required.
-
#week_day_of_month ⇒ Google::Apis::OsconfigV1beta::WeekDayOfMonth
Represents one week day in a month.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MonthlySchedule
constructor
A new instance of MonthlySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MonthlySchedule
Returns a new instance of MonthlySchedule.
835 836 837 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 835 def initialize(**args) update!(**args) end |
Instance Attribute Details
#month_day ⇒ Fixnum
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
828 829 830 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 828 def month_day @month_day end |
#week_day_of_month ⇒ Google::Apis::OsconfigV1beta::WeekDayOfMonth
Represents one week day in a month. An example is "the 4th Sunday".
Corresponds to the JSON property weekDayOfMonth
833 834 835 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 833 def week_day_of_month @week_day_of_month end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
840 841 842 843 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 840 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 |