Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1beta Client class 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.
Generated from protobuf message google.cloud.alloydb.v1beta.AutomatedBackupPolicy
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ weekly_schedule |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\WeeklySchedule
Weekly schedule for the Backup. |
↳ time_based_retention |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\TimeBasedRetention
Time-based Backup retention policy. |
↳ quantity_based_retention |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\QuantityBasedRetention
Quantity-based Backup retention policy to retain recent backups. |
↳ enabled |
bool
Whether automated automated backups are enabled. If not set, defaults to true. |
↳ backup_window |
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. |
↳ encryption_config |
Google\Cloud\AlloyDb\V1beta\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. |
↳ location |
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. |
↳ labels |
array|Google\Protobuf\Internal\MapField
Labels to apply to backups created using this configuration. |
getWeeklySchedule
Weekly schedule for the Backup.
Returns | |
---|---|
Type | Description |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\WeeklySchedule|null |
hasWeeklySchedule
setWeeklySchedule
Weekly schedule for the Backup.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\WeeklySchedule
|
Returns | |
---|---|
Type | Description |
$this |
getTimeBasedRetention
Time-based Backup retention policy.
Returns | |
---|---|
Type | Description |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\TimeBasedRetention|null |
hasTimeBasedRetention
setTimeBasedRetention
Time-based Backup retention policy.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\TimeBasedRetention
|
Returns | |
---|---|
Type | Description |
$this |
getQuantityBasedRetention
Quantity-based Backup retention policy to retain recent backups.
Returns | |
---|---|
Type | Description |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\QuantityBasedRetention|null |
hasQuantityBasedRetention
setQuantityBasedRetention
Quantity-based Backup retention policy to retain recent backups.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AlloyDb\V1beta\AutomatedBackupPolicy\QuantityBasedRetention
|
Returns | |
---|---|
Type | Description |
$this |
getEnabled
Whether automated automated backups are enabled. If not set, defaults to true.
Returns | |
---|---|
Type | Description |
bool |
hasEnabled
clearEnabled
setEnabled
Whether automated automated backups are enabled. If not set, defaults to true.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getBackupWindow
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.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Duration|null |
hasBackupWindow
clearBackupWindow
setBackupWindow
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.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |
getEncryptionConfig
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.
Returns | |
---|---|
Type | Description |
Google\Cloud\AlloyDb\V1beta\EncryptionConfig|null |
hasEncryptionConfig
clearEncryptionConfig
setEncryptionConfig
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.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\AlloyDb\V1beta\EncryptionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getLocation
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.
Returns | |
---|---|
Type | Description |
string |
setLocation
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getLabels
Labels to apply to backups created using this configuration.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setLabels
Labels to apply to backups created using this configuration.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |
getSchedule
Returns | |
---|---|
Type | Description |
string |
getRetention
Returns | |
---|---|
Type | Description |
string |