# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::ConnectCluster (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.2 1.0.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.3 Reference documentation and code samples for the Managed Service for Apache Kafka V1 API class Google::Cloud::ManagedKafka::V1::ConnectCluster.

An Apache Kafka Connect cluster deployed in a location.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #capacity_config

    def capacity_config() -> ::Google::Cloud::ManagedKafka::V1::CapacityConfig

**Returns**

- ([::Google::Cloud::ManagedKafka::V1::CapacityConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-CapacityConfig)) --- Required. Capacity configuration for the Kafka Connect cluster.

### #capacity_config=

    def capacity_config=(value) -> ::Google::Cloud::ManagedKafka::V1::CapacityConfig

**Parameter**

- **value** ([::Google::Cloud::ManagedKafka::V1::CapacityConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-CapacityConfig)) --- Required. Capacity configuration for the Kafka Connect cluster.
**Returns**

- ([::Google::Cloud::ManagedKafka::V1::CapacityConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-CapacityConfig)) --- Required. Capacity configuration for the Kafka Connect cluster.

### #config

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

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Configurations for the worker that are overridden from the defaults. The key of the map is a Kafka Connect worker property name, for example: `exactly.once.source.support`.

### #config=

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

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Configurations for the worker that are overridden from the defaults. The key of the map is a Kafka Connect worker property name, for example: `exactly.once.source.support`.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Configurations for the worker that are overridden from the defaults. The key of the map is a Kafka Connect worker property name, for example: `exactly.once.source.support`.

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the cluster was created.

### #gcp_config

    def gcp_config() -> ::Google::Cloud::ManagedKafka::V1::ConnectGcpConfig

**Returns**

- ([::Google::Cloud::ManagedKafka::V1::ConnectGcpConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-ConnectGcpConfig)) --- Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.

### #gcp_config=

    def gcp_config=(value) -> ::Google::Cloud::ManagedKafka::V1::ConnectGcpConfig

**Parameter**

- **value** ([::Google::Cloud::ManagedKafka::V1::ConnectGcpConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-ConnectGcpConfig)) --- Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
**Returns**

- ([::Google::Cloud::ManagedKafka::V1::ConnectGcpConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-ConnectGcpConfig)) --- Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.

### #kafka_cluster

    def kafka_cluster() -> ::String

**Returns**

- (::String) --- Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}

### #kafka_cluster=

    def kafka_cluster=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}
**Returns**

- (::String) --- Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}

### #labels

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

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels as key value pairs.

### #labels=

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

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels as key value pairs.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels as key value pairs.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}
**Returns**

- (::String) --- Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}

### #state

    def state() -> ::Google::Cloud::ManagedKafka::V1::ConnectCluster::State

**Returns**

- ([::Google::Cloud::ManagedKafka::V1::ConnectCluster::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-ConnectCluster-State)) --- Output only. The current state of the cluster.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the cluster was last updated.