Class: Google::Apis::AlloydbV1::WeeklySchedule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb

Overview

A weekly schedule starts a backup at prescribed start times within a day, for the specified days of the week. The weekly schedule message is flexible and can be used to create many types of schedules. For example, to have a daily backup that starts at 22:00, configure the start_times field to have one element "22:00" and the days_of_week field to have all seven days of the week.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WeeklySchedule

Returns a new instance of WeeklySchedule.



2914
2915
2916
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2914

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

Instance Attribute Details

#days_of_weekArray<String>

The days of the week to perform a backup. If this field is left empty, the default of every day of the week is used. Corresponds to the JSON property daysOfWeek

Returns:

  • (Array<String>)


2905
2906
2907
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2905

def days_of_week
  @days_of_week
end

#start_timesArray<Google::Apis::AlloydbV1::GoogleTypeTimeOfDay>

The times during the day to start a backup. The start times are assumed to be in UTC and to be an exact hour (e.g., 04:00:00). If no start times are provided, a single fixed start time is chosen arbitrarily. Corresponds to the JSON property startTimes



2912
2913
2914
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2912

def start_times
  @start_times
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2919
2920
2921
2922
# File 'lib/google/apis/alloydb_v1/classes.rb', line 2919

def update!(**args)
  @days_of_week = args[:days_of_week] if args.key?(:days_of_week)
  @start_times = args[:start_times] if args.key?(:start_times)
end