# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::Channel (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::Channel.

A representation of the Channel resource.
A Channel is a resource on which event providers publish their events.
The published events are delivered through the transport associated with the
channel. Note that a channel is associated with exactly one event provider.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #activation_token

    def activation_token() -> ::String

**Returns**

- (::String) --- Output only. The activation token for the channel. The token must be used by the provider to register the channel for publishing.

### #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.

### #crypto_key_name

    def crypto_key_name() -> ::String

**Returns**

- (::String) --- Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.

  It must match the pattern
  `projects/*/locations/*/keyRings/*/cryptoKeys/*`.

### #crypto_key_name=

    def crypto_key_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.


  It must match the pattern
  `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
**Returns**

- (::String) --- Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data.

  It must match the pattern
  `projects/*/locations/*/keyRings/*/cryptoKeys/*`.

### #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 resource name of the channel. Must be unique within the location on the project and must be in `projects/{project}/locations/{location}/channels/{channel_id}` format.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the channel. Must be unique within the location on the project and must be in `projects/{project}/locations/{location}/channels/{channel_id}` format.
**Returns**

- (::String) --- Required. The resource name of the channel. Must be unique within the location on the project and must be in `projects/{project}/locations/{location}/channels/{channel_id}` format.

### #provider

    def provider() -> ::String

**Returns**

- (::String) --- The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel. This provider will be granted permissions to publish events to the channel. Format: `projects/{project}/locations/{location}/providers/{provider_id}`.

### #provider=

    def provider=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel. This provider will be granted permissions to publish events to the channel. Format: `projects/{project}/locations/{location}/providers/{provider_id}`.
**Returns**

- (::String) --- The name of the event provider (e.g. Eventarc SaaS partner) associated with the channel. This provider will be granted permissions to publish events to the channel. Format: `projects/{project}/locations/{location}/providers/{provider_id}`.

### #pubsub_topic

    def pubsub_topic() -> ::String

**Returns**

- (::String) --- Output only. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{project}/topics/{topic_id}`.

### #satisfies_pzs

    def satisfies_pzs() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Whether or not this Channel satisfies the requirements of physical zone separation

### #state

    def state() -> ::Google::Cloud::Eventarc::V1::Channel::State

**Returns**

- ([::Google::Cloud::Eventarc::V1::Channel::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Channel-State)) --- Output only. The state of a Channel.

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is 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.