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

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

Blue-green deployment metadata for a database instance. In a blue-green deployment, we maintain two environments, one of which is live.

This message contains details about the blue-green deployment.

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

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ deployment_id string

Output only. The resource ID of the blue-green deployment.

↳ source BlueGreenDeploymentInfo\SourceRole

Output only. The source instance for the Blue-Green deployment.

↳ target BlueGreenDeploymentInfo\TargetRole

Output only. The target instance for the Blue-Green deployment.

↳ state int

Output only. The current state of blue-green-deployment for UI tags

getDeploymentId

Output only. The resource ID of the blue-green deployment.

Returns
Type Description
string

hasDeploymentId

clearDeploymentId

setDeploymentId

Output only. The resource ID of the blue-green deployment.

Parameter
Name Description
var string
Returns
Type Description
$this

getSource

Output only. The source instance for the Blue-Green deployment.

Returns
Type Description
BlueGreenDeploymentInfo\SourceRole|null

hasSource

setSource

Output only. The source instance for the Blue-Green deployment.

Parameter
Name Description
var BlueGreenDeploymentInfo\SourceRole
Returns
Type Description
$this

getTarget

Output only. The target instance for the Blue-Green deployment.

Returns
Type Description
BlueGreenDeploymentInfo\TargetRole|null

hasTarget

setTarget

Output only. The target instance for the Blue-Green deployment.

Parameter
Name Description
var BlueGreenDeploymentInfo\TargetRole
Returns
Type Description
$this

getState

Output only. The current state of blue-green-deployment for UI tags

Returns
Type Description
int

hasState

clearState

setState

Output only. The current state of blue-green-deployment for UI tags

Parameter
Name Description
var int
Returns
Type Description
$this

getRoleDetails

Returns
Type Description
string