# Class CollectionItem (0.5.1)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.10

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

A CollectionItem is an item in a collection.
Each item is a reference to the original resource in a
collection.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `collection` | `str` Required. The collection name that this item belongs to. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}` |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-visionai/latest/google.cloud.visionai_v1.types.CollectionItem.Type` Required. The type of item. |
| `item_resource` | `str` Required. The name of the CollectionItem. Its format depends on the `type` above. For ASSET: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}` |

## Classes

### Type

    Type(value)

CollectionItem types.