Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class BackupConfiguration.
Database instance backup configuration.
Generated from protobuf message google.cloud.sql.v1.BackupConfiguration
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ start_time
string
Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM
.
↳ enabled
↳ kind
string
This is always sql#backupConfiguration
.
↳ binary_log_enabled
Google\Protobuf\BoolValue
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
↳ replication_log_archiving_enabled
↳ location
string
Location of the backup
↳ point_in_time_recovery_enabled
↳ backup_retention_settings
↳ transaction_log_retention_days
Google\Protobuf\Int32Value
The number of days of transaction logs we retain for point in time restore, from 1-7.
↳ transactional_log_storage_state
int
Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
getStartTime
Start time for the daily backup configuration in UTC timezone in the 24
hour format - HH:MM
.
string
setStartTime
Start time for the daily backup configuration in UTC timezone in the 24
hour format - HH:MM
.
var
string
$this
getEnabled
Whether this configuration is enabled.
hasEnabled
clearEnabled
getEnabledUnwrapped
Returns the unboxed value from getEnabled()
Whether this configuration is enabled.
bool|null
setEnabled
Whether this configuration is enabled.
$this
setEnabledUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether this configuration is enabled.
var
bool|null
$this
getKind
This is always sql#backupConfiguration
.
string
setKind
This is always sql#backupConfiguration
.
var
string
$this
getBinaryLogEnabled
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
hasBinaryLogEnabled
clearBinaryLogEnabled
getBinaryLogEnabledUnwrapped
Returns the unboxed value from getBinaryLogEnabled()
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
bool|null
setBinaryLogEnabled
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
$this
setBinaryLogEnabledUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
var
bool|null
$this
getReplicationLogArchivingEnabled
Reserved for future use.
hasReplicationLogArchivingEnabled
clearReplicationLogArchivingEnabled
getReplicationLogArchivingEnabledUnwrapped
Returns the unboxed value from getReplicationLogArchivingEnabled()
Reserved for future use.
bool|null
setReplicationLogArchivingEnabled
Reserved for future use.
$this
setReplicationLogArchivingEnabledUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Reserved for future use.
var
bool|null
$this
getLocation
Location of the backup
string
setLocation
Location of the backup
var
string
$this
getPointInTimeRecoveryEnabled
Whether point in time recovery is enabled.
hasPointInTimeRecoveryEnabled
clearPointInTimeRecoveryEnabled
getPointInTimeRecoveryEnabledUnwrapped
Returns the unboxed value from getPointInTimeRecoveryEnabled()
Whether point in time recovery is enabled.
bool|null
setPointInTimeRecoveryEnabled
Whether point in time recovery is enabled.
$this
setPointInTimeRecoveryEnabledUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether point in time recovery is enabled.
var
bool|null
$this
getBackupRetentionSettings
Backup retention settings.
hasBackupRetentionSettings
clearBackupRetentionSettings
setBackupRetentionSettings
Backup retention settings.
$this
getTransactionLogRetentionDays
The number of days of transaction logs we retain for point in time restore, from 1-7.
hasTransactionLogRetentionDays
clearTransactionLogRetentionDays
getTransactionLogRetentionDaysUnwrapped
Returns the unboxed value from getTransactionLogRetentionDays()
The number of days of transaction logs we retain for point in time restore, from 1-7.
int|null
setTransactionLogRetentionDays
The number of days of transaction logs we retain for point in time restore, from 1-7.
$this
setTransactionLogRetentionDaysUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
The number of days of transaction logs we retain for point in time restore, from 1-7.
var
int|null
$this
getTransactionalLogStorageState
Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
int
hasTransactionalLogStorageState
clearTransactionalLogStorageState
setTransactionalLogStorageState
Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
var
int
$this