Class: Google::Apis::AlloydbV1beta::WeeklySchedule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/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.



3523
3524
3525
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3523

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>)


3514
3515
3516
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3514

def days_of_week
  @days_of_week
end

#start_timesArray<Google::Apis::AlloydbV1beta::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



3521
3522
3523
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3521

def start_times
  @start_times
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3528
3529
3530
3531
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3528

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