Google Cloud Dms V1 Client - Class PrivateConnection (1.3.0)

Reference documentation and code samples for the Google Cloud Dms V1 Client class PrivateConnection.

The PrivateConnection resource is used to establish private connectivity with the customer's network.

Generated from protobuf message google.cloud.clouddms.v1.PrivateConnection

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the resource.

↳ create_time Google\Protobuf\Timestamp

Output only. The create time of the resource.

↳ update_time Google\Protobuf\Timestamp

Output only. The last update time of the resource.

↳ labels array|Google\Protobuf\Internal\MapField

The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

↳ display_name string

The private connection display name.

↳ state int

Output only. The state of the private connection.

↳ error Google\Rpc\Status

Output only. The error details in case of state FAILED.

↳ vpc_peering_config Google\Cloud\CloudDms\V1\VpcPeeringConfig

VPC peering configuration.

getName

The name of the resource.

Returns
TypeDescription
string

setName

The name of the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The create time of the resource.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The create time of the resource.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The last update time of the resource.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last update time of the resource.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs.

Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getDisplayName

The private connection display name.

Returns
TypeDescription
string

setDisplayName

The private connection display name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. The state of the private connection.

Returns
TypeDescription
int

setState

Output only. The state of the private connection.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getError

Output only. The error details in case of state FAILED.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

clearError

setError

Output only. The error details in case of state FAILED.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getVpcPeeringConfig

VPC peering configuration.

Returns
TypeDescription
Google\Cloud\CloudDms\V1\VpcPeeringConfig|null

hasVpcPeeringConfig

setVpcPeeringConfig

VPC peering configuration.

Parameter
NameDescription
var Google\Cloud\CloudDms\V1\VpcPeeringConfig
Returns
TypeDescription
$this

getConnectivity

Returns
TypeDescription
string