Google Cloud Sql Admin V1 Client - Class TargetRole (1.13.0)

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

The target instance for the Blue-Green deployment.

Generated from protobuf message google.cloud.sql.v1.BlueGreenDeploymentInfo.TargetRole

Namespace

Google \ Cloud \ Sql \ V1 \ BlueGreenDeploymentInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source_id Google\Cloud\Sql\V1\InstanceReference

Output only. The source instance paired with this target instance in a blue-green deployment.

getSourceId

Output only. The source instance paired with this target instance in a blue-green deployment.

Returns
Type Description
Google\Cloud\Sql\V1\InstanceReference|null

hasSourceId

clearSourceId

setSourceId

Output only. The source instance paired with this target instance in a blue-green deployment.

Parameter
Name Description
var Google\Cloud\Sql\V1\InstanceReference
Returns
Type Description
$this