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

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

The source instance for the Blue-Green deployment.

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

Namespace

Google \ Cloud \ Sql \ V1 \ BlueGreenDeploymentInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ target_id Google\Cloud\Sql\V1\InstanceReference

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

getTargetId

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

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

hasTargetId

clearTargetId

setTargetId

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

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