# Class Enrollment (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.3 1.14.0 1.13.2 1.12.0 1.11.5 1.10.0 1.9.2 1.8.1 1.7.0 1.6.3 1.5.1 1.4.2 1.3.0 1.2.1 1.1.0 1.0.2 0.2.4 0.1.0

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

An enrollment represents a subscription for messages on a
particular message bus. It defines a matching criteria for
messages on the bus and the subscriber endpoint where matched
messages should be delivered.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. Resource name of the form projects/{project}/locations/{location}/enrollments/{enrollment} |
| `uid` | `str` 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. |
| `etag` | `str` Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The creation time. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The last-modified time. |
| `labels` | `MutableMapping[str, str]` Optional. Resource labels. |
| `annotations` | `MutableMapping[str, str]` Optional. Resource annotations. |
| `display_name` | `str` Optional. Resource display name. |
| `cel_match` | `str` Required. A CEL expression identifying which messages this enrollment applies to. |
| `message_bus` | `str` Required. Immutable. Resource name of the message bus identifying the source of the messages. It matches the form projects/{project}/locations/{location}/messageBuses/{messageBus}. |
| `destination` | `str` Required. Destination is the Pipeline that the Enrollment is delivering to. It must point to the full resource name of a Pipeline. Format: "projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)". |

## Classes

### AnnotationsEntry

    AnnotationsEntry(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. |

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