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

0.22.0 (latest) 0.21.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.2 0.4.0 0.3.0 0.2.0 0.1.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.


<br />

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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/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.