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.
3986 3987 3988 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3986 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
3979 3980 3981 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3979 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
3984 3985 3986 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3984 def week_of_month @week_of_month end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3991 3992 3993 3994 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3991 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 |