Google Cloud Eventarc V1 Client - Class ChannelConnection (1.1.1)

Reference documentation and code samples for the Google Cloud Eventarc V1 Client class ChannelConnection.

A representation of the ChannelConnection resource.

A ChannelConnection is a resource which event providers create during the activation process to establish a connection between the provider and the subscriber channel.

Generated from protobuf message google.cloud.eventarc.v1.ChannelConnection

Namespace

Google \ Cloud \ Eventarc \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the connection.

↳ uid string

Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.

↳ channel string

Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in projects/{project}/location/{location}/channels/{channel_id} format.

↳ create_time Google\Protobuf\Timestamp

Output only. The creation time.

↳ update_time Google\Protobuf\Timestamp

Output only. The last-modified time.

↳ activation_token string

Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.

getName

Required. The name of the connection.

Returns
TypeDescription
string

setName

Required. The name of the connection.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUid

Output only. Server assigned ID of the resource.

The server guarantees uniqueness and immutability until deleted.

Returns
TypeDescription
string

setUid

Output only. Server assigned ID of the resource.

The server guarantees uniqueness and immutability until deleted.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getChannel

Required. The name of the connected subscriber Channel.

This is a weak reference to avoid cross project and cross accounts references. This must be in projects/{project}/location/{location}/channels/{channel_id} format.

Returns
TypeDescription
string

setChannel

Required. The name of the connected subscriber Channel.

This is a weak reference to avoid cross project and cross accounts references. This must be in projects/{project}/location/{location}/channels/{channel_id} format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The creation time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation time.

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

getUpdateTime

Output only. The last-modified time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The last-modified time.

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

getActivationToken

Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.

Returns
TypeDescription
string

setActivationToken

Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this