Google Cloud Sql Admin V1 Client - Class BackupConfiguration (0.4.1)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Protobuf\BoolValue

Whether this configuration is 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 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 Google\Cloud\Sql\V1\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.

getStartTime

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.

Returns
TypeDescription
string

setStartTime

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEnabled

Whether this configuration is enabled.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasEnabled

clearEnabled

getEnabledValue

Returns the unboxed value from getEnabled()

Whether this configuration is enabled.

Returns
TypeDescription
bool|null

setEnabled

Whether this configuration is enabled.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$this

setEnabledValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Whether this configuration is enabled.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this

getKind

This is always sql#backupConfiguration.

Returns
TypeDescription
string

setKind

This is always sql#backupConfiguration.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBinaryLogEnabled

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasBinaryLogEnabled

clearBinaryLogEnabled

getBinaryLogEnabledValue

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
TypeDescription
bool|null

setBinaryLogEnabled

(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$this

setBinaryLogEnabledValue

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
NameDescription
var bool|null
Returns
TypeDescription
$this

getReplicationLogArchivingEnabled

Reserved for future use.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasReplicationLogArchivingEnabled

clearReplicationLogArchivingEnabled

getReplicationLogArchivingEnabledValue

Returns the unboxed value from getReplicationLogArchivingEnabled()

Reserved for future use.

Returns
TypeDescription
bool|null

setReplicationLogArchivingEnabled

Reserved for future use.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$this

setReplicationLogArchivingEnabledValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Reserved for future use.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this

getLocation

Location of the backup

Returns
TypeDescription
string

setLocation

Location of the backup

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPointInTimeRecoveryEnabled

Whether point in time recovery is enabled.

Returns
TypeDescription
Google\Protobuf\BoolValue|null

hasPointInTimeRecoveryEnabled

clearPointInTimeRecoveryEnabled

getPointInTimeRecoveryEnabledValue

Returns the unboxed value from getPointInTimeRecoveryEnabled()

Whether point in time recovery is enabled.

Returns
TypeDescription
bool|null

setPointInTimeRecoveryEnabled

Whether point in time recovery is enabled.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$this

setPointInTimeRecoveryEnabledValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Whether point in time recovery is enabled.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this

getBackupRetentionSettings

Backup retention settings.

Returns
TypeDescription
Google\Cloud\Sql\V1\BackupRetentionSettings|null

hasBackupRetentionSettings

clearBackupRetentionSettings

setBackupRetentionSettings

Backup retention settings.

Parameter
NameDescription
var Google\Cloud\Sql\V1\BackupRetentionSettings
Returns
TypeDescription
$this

getTransactionLogRetentionDays

The number of days of transaction logs we retain for point in time restore, from 1-7.

Returns
TypeDescription
Google\Protobuf\Int32Value|null

hasTransactionLogRetentionDays

clearTransactionLogRetentionDays

getTransactionLogRetentionDaysValue

Returns the unboxed value from getTransactionLogRetentionDays()

The number of days of transaction logs we retain for point in time restore, from 1-7.

Returns
TypeDescription
int|null

setTransactionLogRetentionDays

The number of days of transaction logs we retain for point in time restore, from 1-7.

Parameter
NameDescription
var Google\Protobuf\Int32Value
Returns
TypeDescription
$this

setTransactionLogRetentionDaysValue

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
NameDescription
var int|null
Returns
TypeDescription
$this