Class: Google::Apis::BackupdrV1::WeekDayOfMonth
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::WeekDayOfMonth
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
WeekDayOfMonth
defines the week day of the month on which the backups will
run. The message combines a WeekOfMonth
and DayOfWeek
to produce values
like FIRST
/MONDAY
or LAST
/FRIDAY
.
Instance Attribute Summary collapse
-
#day_of_week ⇒ String
Required.
-
#week_of_month ⇒ String
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.
3933 3934 3935 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3933 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_week ⇒ String
Required. Specifies the day of the week.
Corresponds to the JSON property dayOfWeek
3926 3927 3928 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3926 def day_of_week @day_of_week end |
#week_of_month ⇒ String
Required. Specifies the week of the month.
Corresponds to the JSON property weekOfMonth
3931 3932 3933 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3931 def week_of_month @week_of_month end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3938 3939 3940 3941 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3938 def update!(**args) @day_of_week = args[:day_of_week] if args.key?(:day_of_week) @week_of_month = args[:week_of_month] if args.key?(:week_of_month) end |