AlloyDB V1ALPHA API - Class Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule (v0.7.0)

Reference documentation and code samples for the AlloyDB V1ALPHA API class Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule.

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#days_of_week

def days_of_week() -> ::Array<::Google::Type::DayOfWeek>
Returns
  • (::Array<::Google::Type::DayOfWeek>) — 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.

#days_of_week=

def days_of_week=(value) -> ::Array<::Google::Type::DayOfWeek>
Parameter
  • value (::Array<::Google::Type::DayOfWeek>) — 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.

Returns
  • (::Array<::Google::Type::DayOfWeek>) — 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.

#start_times

def start_times() -> ::Array<::Google::Type::TimeOfDay>
Returns
  • (::Array<::Google::Type::TimeOfDay>) — 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.

#start_times=

def start_times=(value) -> ::Array<::Google::Type::TimeOfDay>
Parameter
  • value (::Array<::Google::Type::TimeOfDay>) — 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.

Returns
  • (::Array<::Google::Type::TimeOfDay>) — 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.