Reference documentation and code samples for the Google Cloud Sql Admin V1beta4 Client class BackupRetentionSettings.
We currently only support backup retention by specifying the number of backups we will retain.
Generated from protobuf message google.cloud.sql.v1beta4.BackupRetentionSettings
Namespace
Google \ Cloud \ Sql \ V1beta4Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ retention_unit
int
The unit that 'retained_backups' represents.
↳ retained_backups
Google\Protobuf\Int32Value
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.
getRetentionUnit
The unit that 'retained_backups' represents.
int
setRetentionUnit
The unit that 'retained_backups' represents.
var
int
$this
getRetainedBackups
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.
hasRetainedBackups
clearRetainedBackups
getRetainedBackupsValue
Returns the unboxed value from getRetainedBackups()
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.
int|null
setRetainedBackups
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.
$this
setRetainedBackupsValue
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.
var
int|null
$this