Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SourceTargetPairedNode.
Represents a pairing of a source instance node and a target instance node.
Generated from protobuf message google.cloud.sql.v1.BlueGreenDeployment.SourceTargetPairedNode
Namespace
Google \ Cloud \ Sql \ V1 \ BlueGreenDeploymentMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ source |
SourceTargetPairedNode\NodeInfo
Output only. Specifies the resource name of the source instance in this pair. |
↳ target |
SourceTargetPairedNode\NodeInfo
Output only. Specifies details of the corresponding target instance in this pair. |
↳ state |
int
Output only. Specifies the current state of this specific source-target pair. |
↳ diffs |
array<SourceTargetPairedNode\ConfigDiff>
Output only. Describes the list of differences for the |
getSource
Output only. Specifies the resource name of the source instance in this pair.
| Returns | |
|---|---|
| Type | Description |
SourceTargetPairedNode\NodeInfo|null |
|
hasSource
clearSource
setSource
Output only. Specifies the resource name of the source instance in this pair.
| Parameter | |
|---|---|
| Name | Description |
var |
SourceTargetPairedNode\NodeInfo
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTarget
Output only. Specifies details of the corresponding target instance in this pair.
| Returns | |
|---|---|
| Type | Description |
SourceTargetPairedNode\NodeInfo|null |
|
hasTarget
clearTarget
setTarget
Output only. Specifies details of the corresponding target instance in this pair.
| Parameter | |
|---|---|
| Name | Description |
var |
SourceTargetPairedNode\NodeInfo
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Output only. Specifies the current state of this specific source-target pair.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. Specifies the current state of this specific source-target pair.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDiffs
Output only. Describes the list of differences for the
SourceTargetPairedNode.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<SourceTargetPairedNode\ConfigDiff> |
|
setDiffs
Output only. Describes the list of differences for the
SourceTargetPairedNode.
| Parameter | |
|---|---|
| Name | Description |
var |
array<SourceTargetPairedNode\ConfigDiff>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|