Google Cloud Datastream V1 Client - Class PrivateConnection (1.2.1)

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

The PrivateConnection resource is used to establish private connectivity between Datastream and a customer's network.

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

Namespace

Google \ Cloud \ Datastream \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource's name.

↳ create_time Google\Protobuf\Timestamp

Output only. The create time of the resource.

↳ update_time Google\Protobuf\Timestamp

Output only. The update time of the resource.

↳ labels array|Google\Protobuf\Internal\MapField

Labels.

↳ display_name string

Required. Display name.

↳ state int

Output only. The state of the Private Connection.

↳ error Google\Cloud\Datastream\V1\Error

Output only. In case of error, the details of the error in a user-friendly format.

↳ vpc_peering_config Google\Cloud\Datastream\V1\VpcPeeringConfig

VPC Peering Config.

getName

Output only. The resource's name.

Returns
TypeDescription
string

setName

Output only. The resource's name.

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 update time of the resource.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The update time of the resource.

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

getLabels

Labels.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Labels.

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

getDisplayName

Required. Display name.

Returns
TypeDescription
string

setDisplayName

Required. 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. In case of error, the details of the error in a user-friendly format.

Returns
TypeDescription
Google\Cloud\Datastream\V1\Error|null

hasError

clearError

setError

Output only. In case of error, the details of the error in a user-friendly format.

Parameter
NameDescription
var Google\Cloud\Datastream\V1\Error
Returns
TypeDescription
$this

getVpcPeeringConfig

VPC Peering Config.

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

hasVpcPeeringConfig

clearVpcPeeringConfig

setVpcPeeringConfig

VPC Peering Config.

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