# Managed Service for Apache Kafka V1 API - Class Google::Cloud::ManagedKafka::V1::Connector (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::Connector.

A Kafka Connect connector in a given ConnectCluster.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #configs

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

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.

### #configs=

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

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
**Returns**

- (::String) --- Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}

### #state

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

**Returns**

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

### #task_restart_policy

    def task_restart_policy() -> ::Google::Cloud::ManagedKafka::V1::TaskRetryPolicy

**Returns**

- ([::Google::Cloud::ManagedKafka::V1::TaskRetryPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)) --- Optional. Restarts the individual tasks of a Connector.

### #task_restart_policy=

    def task_restart_policy=(value) -> ::Google::Cloud::ManagedKafka::V1::TaskRetryPolicy

**Parameter**

- **value** ([::Google::Cloud::ManagedKafka::V1::TaskRetryPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)) --- Optional. Restarts the individual tasks of a Connector.
**Returns**

- ([::Google::Cloud::ManagedKafka::V1::TaskRetryPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-managed_kafka-v1/latest/Google-Cloud-ManagedKafka-V1-TaskRetryPolicy)) --- Optional. Restarts the individual tasks of a Connector.