Google Cloud Backup Dr V1beta Client - Class ComputeInstanceTargetEnvironment (0.15.1)

Reference documentation and code samples for the Google Cloud Backup Dr V1beta Client class ComputeInstanceTargetEnvironment.

ComputeInstanceTargetEnvironment represents Compute Engine target environment to be used during restore.

Generated from protobuf message google.cloud.backupdr.v1beta.ComputeInstanceTargetEnvironment

Namespace

Google \ Cloud \ BackupDR \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ project string

Required. Target project for the Compute Engine instance.

↳ zone string

Required. The zone of the Compute Engine instance.

↳ use_project_service_account bool

Optional. Whether to use the project service account for the Compute Engine instance restore.

getProject

Required. Target project for the Compute Engine instance.

Returns
Type Description
string

setProject

Required. Target project for the Compute Engine instance.

Parameter
Name Description
var string
Returns
Type Description
$this

getZone

Required. The zone of the Compute Engine instance.

Returns
Type Description
string

setZone

Required. The zone of the Compute Engine instance.

Parameter
Name Description
var string
Returns
Type Description
$this

getUseProjectServiceAccount

Optional. Whether to use the project service account for the Compute Engine instance restore.

Returns
Type Description
bool

hasUseProjectServiceAccount

clearUseProjectServiceAccount

setUseProjectServiceAccount

Optional. Whether to use the project service account for the Compute Engine instance restore.

Parameter
Name Description
var bool
Returns
Type Description
$this