pyapacheatlas.core.typedef.RelationshipTypeDef#

class pyapacheatlas.core.typedef.RelationshipTypeDef(name, endDef1, endDef2, relationshipCategory, **kwargs)#

An implementation of AtlasRelationshipDef.

Parameters
  • name (str) – The name of the relationship type def.

  • endDef1 (Union(AtlasRelationshipEndDef, dict)) – Either a valid AtlasRelationshipEndDef dict or class object.

  • endDef2 (Union(AtlasRelationshipEndDef, dict)) – Either a valid AtlasRelationshipEndDef dict or class object.

  • relationshipCategory (str) – One of COMPOSITION, AGGREGATION, ASSOCIATION. You’re most likely looking at COMPOSITION to create a parent/child relationship.

__init__(name, endDef1, endDef2, relationshipCategory, **kwargs)#

Methods

__init__(name, endDef1, endDef2, …)

to_json([omit_nulls])

Convert the defintion to a JSON dict.

Attributes

endDef1

return

The first end definition.

endDef2

return

The second end definition.