Google Cloud Sql Admin V1 Client - Class RestoreBackupContext (0.12.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class RestoreBackupContext.

Database instance restore from backup context.

Backup context contains source instance id and project id.

Generated from protobuf message google.cloud.sql.v1.RestoreBackupContext

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ kind string

This is always sql#restoreBackupContext.

↳ backup_run_id int|string

The ID of the backup run to restore from.

↳ instance_id string

The ID of the instance that the backup was taken from.

↳ project string

The full project ID of the source instance.

getKind

This is always sql#restoreBackupContext.

Returns
TypeDescription
string

setKind

This is always sql#restoreBackupContext.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBackupRunId

The ID of the backup run to restore from.

Returns
TypeDescription
int|string

setBackupRunId

The ID of the backup run to restore from.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getInstanceId

The ID of the instance that the backup was taken from.

Returns
TypeDescription
string

setInstanceId

The ID of the instance that the backup was taken from.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProject

The full project ID of the source instance.

Returns
TypeDescription
string

setProject

The full project ID of the source instance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this