Class: Google::Apis::AlloydbV1::WeeklySchedule
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1::WeeklySchedule
- 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
-
#days_of_week ⇒ Array<String>
The days of the week to perform a backup.
-
#start_times ⇒ Array<Google::Apis::AlloydbV1::GoogleTypeTimeOfDay>
The times during the day to start a backup.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WeeklySchedule
constructor
A new instance of WeeklySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WeeklySchedule
Returns a new instance of WeeklySchedule.
3681 3682 3683 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3681 def initialize(**args) update!(**args) end |
Instance Attribute Details
#days_of_week ⇒ Array<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
3672 3673 3674 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3672 def days_of_week @days_of_week end |
#start_times ⇒ Array<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
3679 3680 3681 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3679 def start_times @start_times end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3686 3687 3688 3689 |
# File 'lib/google/apis/alloydb_v1/classes.rb', line 3686 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 |