Class: Google::Apis::OsconfigV1::WeekDayOfMonth
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1::WeekDayOfMonth
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1/classes.rb,
lib/google/apis/osconfig_v1/representations.rb,
lib/google/apis/osconfig_v1/representations.rb
Overview
Represents one week day in a month. An example is "the 4th Sunday".
Instance Attribute Summary collapse
-
#day_of_week ⇒ String
Required.
-
#day_offset ⇒ Fixnum
Optional.
-
#week_ordinal ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WeekDayOfMonth
constructor
A new instance of WeekDayOfMonth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WeekDayOfMonth
Returns a new instance of WeekDayOfMonth.
3731 3732 3733 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3731 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_week ⇒ String
Required. A day of the week.
Corresponds to the JSON property dayOfWeek
3712 3713 3714 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3712 def day_of_week @day_of_week end |
#day_offset ⇒ Fixnum
Optional. Represents the number of days before or after the given week day of
month that the patch deployment is scheduled for. For example if week_ordinal
and day_of_week
values point to the second Tuesday of the month and the
day_offset
value is set to 3
, patch deployment takes place three days after
the second Tuesday of the month. If this value is negative, for example -5,
patches are deployed five days before the second Tuesday of the month. Allowed
values are in range [-30, 30].
Corresponds to the JSON property dayOffset
3723 3724 3725 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3723 def day_offset @day_offset end |
#week_ordinal ⇒ Fixnum
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
3729 3730 3731 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3729 def week_ordinal @week_ordinal end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3736 3737 3738 3739 3740 |
# File 'lib/google/apis/osconfig_v1/classes.rb', line 3736 def update!(**args) @day_of_week = args[:day_of_week] if args.key?(:day_of_week) @day_offset = args[:day_offset] if args.key?(:day_offset) @week_ordinal = args[:week_ordinal] if args.key?(:week_ordinal) end |