# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::ChannelConnection (v2.8.0)

2.8.0 (latest) 2.7.1 2.6.0 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #activation_token

    def activation_token() -> ::String

**Returns**

- (::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.

### #activation_token=

    def activation_token=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #channel

    def channel() -> ::String

**Returns**

- (::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.

### #channel=

    def channel=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The creation time.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Resource labels.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Resource labels.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Resource labels.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The name of the connection.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the connection.
**Returns**

- (::String) --- Required. The name of the connection.

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The last-modified time.