Class: Google::Apis::BackupdrV1::WeekDayOfMonth

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WeekDayOfMonth

Returns a new instance of WeekDayOfMonth.



6049
6050
6051
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6049

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#day_of_weekString

Required. Specifies the day of the week. Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


6042
6043
6044
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6042

def day_of_week
  @day_of_week
end

#week_of_monthString

Required. Specifies the week of the month. Corresponds to the JSON property weekOfMonth

Returns:

  • (String)


6047
6048
6049
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6047

def week_of_month
  @week_of_month
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6054
6055
6056
6057
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6054

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