# Class Cluster (0.4.1)

0.4.1 (latest) 0.4.0 0.3.0 0.2.0 0.1.12

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

An Apache Kafka cluster deployed in a location.

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `gcp_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-managedkafka/latest/google.cloud.managedkafka_v1.types.GcpConfig` Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform. This field is a member of `oneof`_ `platform_config`. |
| `name` | `str` Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id} |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the cluster was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the cluster was last updated. |
| `labels` | `MutableMapping[str, str]` Optional. Labels as key value pairs. |
| `capacity_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-managedkafka/latest/google.cloud.managedkafka_v1.types.CapacityConfig` Required. Capacity configuration for the Kafka cluster. |
| `rebalance_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-managedkafka/latest/google.cloud.managedkafka_v1.types.RebalanceConfig` Optional. Rebalance configuration for the Kafka cluster. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-managedkafka/latest/google.cloud.managedkafka_v1.types.Cluster.State` Output only. The current state of the cluster. |
| `satisfies_pzi` | `bool` Output only. Reserved for future use. This field is a member of `oneof`_ `_satisfies_pzi`. |
| `satisfies_pzs` | `bool` Output only. Reserved for future use. This field is a member of `oneof`_ `_satisfies_pzs`. |
| `tls_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-managedkafka/latest/google.cloud.managedkafka_v1.types.TlsConfig` Optional. TLS configuration for the Kafka cluster. |

## Classes

### LabelsEntry

    LabelsEntry(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 cluster.