pyapacheatlas.core.typedef.AtlasRelationshipEndDef#
- class pyapacheatlas.core.typedef.AtlasRelationshipEndDef(name, typeName, cardinality=Cardinality.SINGLE, isContainer=False, **kwargs)#
An implementation of AtlasRelationshipEndDef.
- Parameters
name (str) – The name that will appear on the entity’s relationship attribute.
typeName (str) – The type that is required for this end of the relationship.
cardinality – The cardinality of the end definition.
isContainer (bool) – This should be False when the cardinality is SINGLE. It should be True when cardinality is SET or LIST. endDef1 should
- Kwargs:
- param str description
The description of this end of the relationship.
- param bool isLegacyAttribute
Defaults to False.
- __init__(name, typeName, cardinality=Cardinality.SINGLE, isContainer=False, **kwargs)#
Methods
__init__
(name, typeName[, cardinality, …])to_json
([omit_nulls])Converts the typedef object to a dict / json.