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.



5960
5961
5962
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5960

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)


5953
5954
5955
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5953

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)


5958
5959
5960
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5958

def week_of_month
  @week_of_month
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5965
5966
5967
5968
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5965

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