pyapacheatlas.core.typedef.AtlasRelationshipAttributeDef#
- class pyapacheatlas.core.typedef.AtlasRelationshipAttributeDef(name, relationshipTypeName, **kwargs)#
An implementation of AtlasRelationshipAttributeDef. Provides a standard way to pass in a relationship definition when defining an Entity rather than creating a separate relationship def.
- Parameters
name (str) – The name of the Relationship Attribute Definition.
relationshipTypeName (str) – The name of the relationship type being defined. Commonly uses ‘endDef1_endDef2’ where endDef’s are the names given based on the relationship being used.
- Kwargs:
- param cardinality
One of Cardinality.SINGLE, .SET, .LIST. Defaults to SINGLE.
- type cardinality
- param str typeName
The type of this attribute. Defaults to string.
- __init__(name, relationshipTypeName, **kwargs)#
Default arguments are chosen assuming you want a single attribute
Methods
__init__
(name, relationshipTypeName, **kwargs)Default arguments are chosen assuming you want a single attribute
to_json
([omit_nulls])Attributes
propertiesEnum