# Class EntityMapping (1.16.0)

1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.4 1.11.0 1.10.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.3 1.3.2 1.2.1 1.1.0 1.0.2 0.2.4 0.1.0

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

Details of the mappings of a database entity.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `source_entity` | `str` Source entity full name. The source entity can also be a column, index or constraint using the same naming notation schema.table.column. |
| `draft_entity` | `str` Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column. |
| `source_type` | `https://docs.cloud.google.com/python/docs/reference/datamigration/latest/google.cloud.clouddms_v1.types.DatabaseEntityType` Type of source entity. |
| `draft_type` | `https://docs.cloud.google.com/python/docs/reference/datamigration/latest/google.cloud.clouddms_v1.types.DatabaseEntityType` Type of draft entity. |
| `mapping_log` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/datamigration/latest/google.cloud.clouddms_v1.types.EntityMappingLogEntry]` Entity mapping log entries. Multiple rules can be effective and contribute changes to a converted entity, such as a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along with the reason preventing them to do so. |