Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1alpha Client class ContinuousBackupConfig.
ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.
Generated from protobuf message google.cloud.alloydb.v1alpha.ContinuousBackupConfig
Namespace
Google \ Cloud \ AlloyDb \ V1alphaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ enabled |
bool
Whether ContinuousBackup is enabled. |
↳ recovery_window_days |
int
The number of days backups and logs will be retained, which determines the window of time that data is recoverable for. If not set, it defaults to 14 days. |
↳ encryption_config |
Google\Cloud\AlloyDb\V1alpha\EncryptionConfig
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. |
getEnabled
Whether ContinuousBackup is enabled.
Returns | |
---|---|
Type | Description |
bool |
hasEnabled
clearEnabled
setEnabled
Whether ContinuousBackup is enabled.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getRecoveryWindowDays
The number of days backups and logs will be retained, which determines the window of time that data is recoverable for. If not set, it defaults to 14 days.
Returns | |
---|---|
Type | Description |
int |
setRecoveryWindowDays
The number of days backups and logs will be retained, which determines the window of time that data is recoverable for. If not set, it defaults to 14 days.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getEncryptionConfig
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\V1alpha\EncryptionConfig|null |
hasEncryptionConfig
clearEncryptionConfig
setEncryptionConfig
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\V1alpha\EncryptionConfig
|
Returns | |
---|---|
Type | Description |
$this |