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.
(::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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# AlloyDB V1ALPHA API - Class Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule (v0.14.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.1 (latest)](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/latest/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.14.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.14.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.13.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.13.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.12.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.12.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.11.1](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.11.1/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.10.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.10.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.9.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.9.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.8.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.8.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.7.2](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.7.2/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.6.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.6.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.5.2](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.5.2/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.4.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.4.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.3.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.3.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.2.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.2.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule)\n- [0.1.0](/ruby/docs/reference/google-cloud-alloy_db-v1alpha/0.1.0/Google-Cloud-AlloyDB-V1alpha-AutomatedBackupPolicy-WeeklySchedule) \nReference documentation and code samples for the AlloyDB V1ALPHA API class Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule.\n\nA weekly schedule starts a backup at prescribed start times within a\nday, for the specified days of the week.\n\n\n\u003cbr /\u003e\n\nThe weekly schedule message is flexible and can be used to create many\ntypes of schedules. For example, to have a daily backup that starts at\n22:00, configure the `start_times` field to have one element \"22:00\" and\nthe `days_of_week` field to have all seven days of the week. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #days_of_week\n\n def days_of_week() -\u003e ::Array\u003c::Google::Type::DayOfWeek\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Type::DayOfWeek](./Google-Type-DayOfWeek)\\\u003e) --- The days of the week to perform a backup.\n\n\n If this field is left empty, the default of every day of the week is\n used.\n\n### #days_of_week=\n\n def days_of_week=(value) -\u003e ::Array\u003c::Google::Type::DayOfWeek\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Type::DayOfWeek](./Google-Type-DayOfWeek)\\\u003e) --- The days of the week to perform a backup.\n\n\n If this field is left empty, the default of every day of the week is\nused. \n**Returns**\n\n- (::Array\\\u003c[::Google::Type::DayOfWeek](./Google-Type-DayOfWeek)\\\u003e) --- The days of the week to perform a backup.\n\n\n If this field is left empty, the default of every day of the week is\n used.\n\n### #start_times\n\n def start_times() -\u003e ::Array\u003c::Google::Type::TimeOfDay\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Type::TimeOfDay](./Google-Type-TimeOfDay)\\\u003e) --- 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).\n\n\n If no start times are provided, a single fixed start time is chosen\n arbitrarily.\n\n### #start_times=\n\n def start_times=(value) -\u003e ::Array\u003c::Google::Type::TimeOfDay\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Type::TimeOfDay](./Google-Type-TimeOfDay)\\\u003e) --- 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).\n\n\n If no start times are provided, a single fixed start time is chosen\narbitrarily. \n**Returns**\n\n- (::Array\\\u003c[::Google::Type::TimeOfDay](./Google-Type-TimeOfDay)\\\u003e) --- 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).\n\n\n If no start times are provided, a single fixed start time is chosen\n arbitrarily."]]