Cloud Spanner V1 Client - Class RestoreInfo (1.60.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class RestoreInfo.

Information about the database restore.

Generated from protobuf message google.spanner.admin.database.v1.RestoreInfo

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ source_type int

The type of the restore source.

↳ backup_info Google\Cloud\Spanner\Admin\Database\V1\BackupInfo

Information about the backup used to restore the database. The backup may no longer exist.

getSourceType

The type of the restore source.

Returns
TypeDescription
int

setSourceType

The type of the restore source.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBackupInfo

Information about the backup used to restore the database. The backup may no longer exist.

Returns
TypeDescription
Google\Cloud\Spanner\Admin\Database\V1\BackupInfo|null

hasBackupInfo

setBackupInfo

Information about the backup used to restore the database. The backup may no longer exist.

Parameter
NameDescription
var Google\Cloud\Spanner\Admin\Database\V1\BackupInfo
Returns
TypeDescription
$this

getSourceInfo

Returns
TypeDescription
string