pyapacheatlas.core.typedef.EntityTypeDef#
- class pyapacheatlas.core.typedef.EntityTypeDef(name, superTypes=['DataSet'], **kwargs)#
An implementation of AtlasEntityDef
- Parameters
name (str) – The name of the type definition.
superTypes (list(str)) – The list of superTypes for the classification. You most likely want [‘DataSet’] to create a DataSet asset which is the default.
- Kwargs:
- param attributeDefs
The AtlasAttributeDefs that should be available on the Entity.
- type attributeDefs
list(Union(dict,
pyapacheatlas.core.typedef.AtlasAttributeDef
))
- __init__(name, superTypes=['DataSet'], **kwargs)#
Methods
__init__
(name[, superTypes])addAttributeDef
(*args)Add one or many attribute definitions.
addRelationshipAttributeDef
(*args)Add one or many attribute definitions.
to_json
([omit_nulls])Convert the defintion to a JSON dict.
Attributes
attributeDefs
- return
List of attribute definitions.
relationshipAttributeDefs
- return
List of relationship attribute definitions.