Google Cloud AlloyDB for PostgreSQL V1 Client - Class ContinuousBackupConfig (0.10.3)

Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1 Client class ContinuousBackupConfig.

ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.

Generated from protobuf message google.cloud.alloydb.v1.ContinuousBackupConfig

Namespace

Google \ Cloud \ AlloyDb \ V1

Methods

__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 that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days.

↳ encryption_config Google\Cloud\AlloyDb\V1\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 that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days.

Returns
Type Description
int

setRecoveryWindowDays

The number of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, 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\V1\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\V1\EncryptionConfig
Returns
Type Description
$this