Google Cloud Backup Dr V1 Client - Class BackupConfigInfo (0.4.2)

Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class BackupConfigInfo.

BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault.

Generated from protobuf message google.cloud.backupdr.v1.BackupConfigInfo

Namespace

Google \ Cloud \ BackupDR \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ last_backup_state int

Output only. The status of the last backup to this BackupVault

↳ last_successful_backup_consistency_time Google\Protobuf\Timestamp

Output only. If the last backup were successful, this field has the consistency date.

↳ last_backup_error Google\Rpc\Status

Output only. If the last backup failed, this field has the error message.

↳ gcp_backup_config GcpBackupConfig

Configuration for a Google Cloud resource.

↳ backup_appliance_backup_config BackupApplianceBackupConfig

Configuration for an application backed up by a Backup Appliance.

getLastBackupState

Output only. The status of the last backup to this BackupVault

Returns
Type Description
int

setLastBackupState

Output only. The status of the last backup to this BackupVault

Parameter
Name Description
var int
Returns
Type Description
$this

getLastSuccessfulBackupConsistencyTime

Output only. If the last backup were successful, this field has the consistency date.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastSuccessfulBackupConsistencyTime

clearLastSuccessfulBackupConsistencyTime

setLastSuccessfulBackupConsistencyTime

Output only. If the last backup were successful, this field has the consistency date.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getLastBackupError

Output only. If the last backup failed, this field has the error message.

Returns
Type Description
Google\Rpc\Status|null

hasLastBackupError

clearLastBackupError

setLastBackupError

Output only. If the last backup failed, this field has the error message.

Parameter
Name Description
var Google\Rpc\Status
Returns
Type Description
$this

getGcpBackupConfig

Configuration for a Google Cloud resource.

Returns
Type Description
GcpBackupConfig|null

hasGcpBackupConfig

setGcpBackupConfig

Configuration for a Google Cloud resource.

Parameter
Name Description
var GcpBackupConfig
Returns
Type Description
$this

getBackupApplianceBackupConfig

Configuration for an application backed up by a Backup Appliance.

Returns
Type Description
BackupApplianceBackupConfig|null

hasBackupApplianceBackupConfig

setBackupApplianceBackupConfig

Configuration for an application backed up by a Backup Appliance.

Parameter
Name Description
var BackupApplianceBackupConfig
Returns
Type Description
$this

getBackupConfig

Returns
Type Description
string