# Class Connector (0.4.1)

0.4.1 (latest) 0.4.0 0.3.0 0.2.0 0.1.12

    Connector(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A Kafka Connect connector in a given ConnectCluster.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `task_restart_policy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-managedkafka/latest/google.cloud.managedkafka_v1.types.TaskRetryPolicy` Optional. Restarts the individual tasks of a Connector. This field is a member of `oneof`_ `restart_policy`. |
| `name` | `str` Identifier. The name of the connector. Structured like: projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector} |
| `configs` | `MutableMapping[str, str]` Optional. Connector config as keys/values. The keys of the map are connector property names, for example: `connector.class`, `tasks.max`, `key.converter`. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-managedkafka/latest/google.cloud.managedkafka_v1.types.Connector.State` Output only. The current state of the connector. |

## Classes

### ConfigsEntry

    ConfigsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### State

    State(value)

The state of the connector.