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.
Parameters | |
---|---|
Name | Description |
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 - |
↳ enabled |
Google\Protobuf\BoolValue
Whether this configuration is enabled. |
↳ kind |
string
This is always |
↳ 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 |
Google\Protobuf\BoolValue
Reserved for future use. |
↳ location |
string
Location of the backup |
↳ point_in_time_recovery_enabled |
Google\Protobuf\BoolValue
Whether point in time recovery is enabled. |
↳ backup_retention_settings |
BackupRetentionSettings
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
.
Returns | |
---|---|
Type | Description |
string |
setStartTime
Start time for the daily backup configuration in UTC timezone in the 24
hour format - HH:MM
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getEnabled
Whether this configuration is enabled.
Returns | |
---|---|
Type | Description |
Google\Protobuf\BoolValue|null |
hasEnabled
clearEnabled
getEnabledUnwrapped
Returns the unboxed value from getEnabled()
Whether this configuration is enabled.
Returns | |
---|---|
Type | Description |
bool|null |
setEnabled
Whether this configuration is enabled.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\BoolValue
|
Returns | |
---|---|
Type | Description |
$this |
setEnabledUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether this configuration is enabled.
Parameter | |
---|---|
Name | Description |
var |
bool|null
|
Returns | |
---|---|
Type | Description |
$this |
getKind
This is always sql#backupConfiguration
.
Returns | |
---|---|
Type | Description |
string |
setKind
This is always sql#backupConfiguration
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getBinaryLogEnabled
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
Returns | |
---|---|
Type | Description |
Google\Protobuf\BoolValue|null |
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.
Returns | |
---|---|
Type | Description |
bool|null |
setBinaryLogEnabled
(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\BoolValue
|
Returns | |
---|---|
Type | Description |
$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.
Parameter | |
---|---|
Name | Description |
var |
bool|null
|
Returns | |
---|---|
Type | Description |
$this |
getReplicationLogArchivingEnabled
Reserved for future use.
Returns | |
---|---|
Type | Description |
Google\Protobuf\BoolValue|null |
hasReplicationLogArchivingEnabled
clearReplicationLogArchivingEnabled
getReplicationLogArchivingEnabledUnwrapped
Returns the unboxed value from getReplicationLogArchivingEnabled()
Reserved for future use.
Returns | |
---|---|
Type | Description |
bool|null |
setReplicationLogArchivingEnabled
Reserved for future use.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\BoolValue
|
Returns | |
---|---|
Type | Description |
$this |
setReplicationLogArchivingEnabledUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Reserved for future use.
Parameter | |
---|---|
Name | Description |
var |
bool|null
|
Returns | |
---|---|
Type | Description |
$this |
getLocation
Location of the backup
Returns | |
---|---|
Type | Description |
string |
setLocation
Location of the backup
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPointInTimeRecoveryEnabled
Whether point in time recovery is enabled.
Returns | |
---|---|
Type | Description |
Google\Protobuf\BoolValue|null |
hasPointInTimeRecoveryEnabled
clearPointInTimeRecoveryEnabled
getPointInTimeRecoveryEnabledUnwrapped
Returns the unboxed value from getPointInTimeRecoveryEnabled()
Whether point in time recovery is enabled.
Returns | |
---|---|
Type | Description |
bool|null |
setPointInTimeRecoveryEnabled
Whether point in time recovery is enabled.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\BoolValue
|
Returns | |
---|---|
Type | Description |
$this |
setPointInTimeRecoveryEnabledUnwrapped
Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
Whether point in time recovery is enabled.
Parameter | |
---|---|
Name | Description |
var |
bool|null
|
Returns | |
---|---|
Type | Description |
$this |
getBackupRetentionSettings
Backup retention settings.
Returns | |
---|---|
Type | Description |
BackupRetentionSettings|null |
hasBackupRetentionSettings
clearBackupRetentionSettings
setBackupRetentionSettings
Backup retention settings.
Parameter | |
---|---|
Name | Description |
var |
BackupRetentionSettings
|
Returns | |
---|---|
Type | Description |
$this |
getTransactionLogRetentionDays
The number of days of transaction logs we retain for point in time restore, from 1-7.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Int32Value|null |
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.
Returns | |
---|---|
Type | Description |
int|null |
setTransactionLogRetentionDays
The number of days of transaction logs we retain for point in time restore, from 1-7.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Int32Value
|
Returns | |
---|---|
Type | Description |
$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.
Parameter | |
---|---|
Name | Description |
var |
int|null
|
Returns | |
---|---|
Type | Description |
$this |
getTransactionalLogStorageState
Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
Returns | |
---|---|
Type | Description |
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.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |