Reference documentation and code samples for the AlloyDB V1ALPHA API class Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy.
Message describing the user-specified automated backup policy.
All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#backup_window
def backup_window() -> ::Google::Protobuf::Duration
-
(::Google::Protobuf::Duration) — The length of the time window during which a backup can be
taken. If a backup does not succeed within this time window, it will be
canceled and considered failed.
The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
#backup_window=
def backup_window=(value) -> ::Google::Protobuf::Duration
-
value (::Google::Protobuf::Duration) — The length of the time window during which a backup can be
taken. If a backup does not succeed within this time window, it will be
canceled and considered failed.
The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
-
(::Google::Protobuf::Duration) — The length of the time window during which a backup can be
taken. If a backup does not succeed within this time window, it will be
canceled and considered failed.
The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
#enabled
def enabled() -> ::Boolean
- (::Boolean) — Whether automated automated backups are enabled. If not set, defaults to true.
#enabled=
def enabled=(value) -> ::Boolean
- value (::Boolean) — Whether automated automated backups are enabled. If not set, defaults to true.
- (::Boolean) — Whether automated automated backups are enabled. If not set, defaults to true.
#encryption_config
def encryption_config() -> ::Google::Cloud::AlloyDB::V1alpha::EncryptionConfig
- (::Google::Cloud::AlloyDB::V1alpha::EncryptionConfig) — Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
#encryption_config=
def encryption_config=(value) -> ::Google::Cloud::AlloyDB::V1alpha::EncryptionConfig
- value (::Google::Cloud::AlloyDB::V1alpha::EncryptionConfig) — Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
- (::Google::Cloud::AlloyDB::V1alpha::EncryptionConfig) — Optional. The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Labels to apply to backups created using this configuration.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Labels to apply to backups created using this configuration.
- (::Google::Protobuf::Map{::String => ::String}) — Labels to apply to backups created using this configuration.
#location
def location() -> ::String
-
(::String) — The location where the backup will be stored. Currently, the only supported
option is to store the backup in the same region as the cluster.
If empty, defaults to the region of the cluster.
#location=
def location=(value) -> ::String
-
value (::String) — The location where the backup will be stored. Currently, the only supported
option is to store the backup in the same region as the cluster.
If empty, defaults to the region of the cluster.
-
(::String) — The location where the backup will be stored. Currently, the only supported
option is to store the backup in the same region as the cluster.
If empty, defaults to the region of the cluster.
#quantity_based_retention
def quantity_based_retention() -> ::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::QuantityBasedRetention
- (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::QuantityBasedRetention) — Quantity-based Backup retention policy to retain recent backups.
#quantity_based_retention=
def quantity_based_retention=(value) -> ::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::QuantityBasedRetention
- value (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::QuantityBasedRetention) — Quantity-based Backup retention policy to retain recent backups.
- (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::QuantityBasedRetention) — Quantity-based Backup retention policy to retain recent backups.
#time_based_retention
def time_based_retention() -> ::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::TimeBasedRetention
- (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::TimeBasedRetention) — Time-based Backup retention policy.
#time_based_retention=
def time_based_retention=(value) -> ::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::TimeBasedRetention
- value (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::TimeBasedRetention) — Time-based Backup retention policy.
- (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::TimeBasedRetention) — Time-based Backup retention policy.
#weekly_schedule
def weekly_schedule() -> ::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule
- (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule) — Weekly schedule for the Backup.
#weekly_schedule=
def weekly_schedule=(value) -> ::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule
- value (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule) — Weekly schedule for the Backup.
- (::Google::Cloud::AlloyDB::V1alpha::AutomatedBackupPolicy::WeeklySchedule) — Weekly schedule for the Backup.