def type_coerce_attrs(self): super(AtlasGlossary, self).type_coerce_attrs() self.terms = type_coerce_list(self.classifications, AtlasRelatedTermHeader) self.categories = type_coerce_list(self.categories, AtlasRelatedCategoryHeader)
def type_coerce_attrs(self): super(AtlasGlossaryCategory, self).type_coerce_attrs() self.anchor = type_coerce(self.anchor, AtlasGlossaryHeader) self.parentCategory = type_coerce(self.parentCategory, AtlasRelatedCategoryHeader) self.childrenCategories = type_coerce_list(self.childrenCategories, AtlasRelatedCategoryHeader) self.terms = type_coerce_list(self.terms, AtlasRelatedTermHeader)
def type_coerce_attrs(self): super(AtlasEntity, self).type_coerce_attrs() self.classifications = type_coerce_list(self.classifications, AtlasClassification) self.meanings = type_coerce_list(self.meanings, AtlasTermAssignmentHeader)
def type_coerce_attrs(self): super(AtlasRelationship, self).type_coerce_attrs() self.end1 = type_coerce(self.end1, AtlasObjectId) self.end2 = type_coerce(self.end2, AtlasObjectId) self.propagatedClassifications = type_coerce_list( self.propagatedClassifications, AtlasClassification) self.blockedPropagatedClassifications = type_coerce_list( self.blockedPropagatedClassifications, AtlasClassification)
def type_coerce_attrs(self): super(AtlasSearchResult, self).type_coerce_attrs() self.entities = type_coerce_list(self.entities, AtlasEntityHeader) self.attributes = type_coerce(self.attributes, AttributeSearchResult) self.referredEntities = type_coerce_dict(self.referredEntities, AtlasEntityHeader)
def type_coerce_attrs(self): super(AtlasEntityDef, self).type_coerce_attrs() self.relationshipAttributeDefs = type_coerce_list( self.relationshipAttributeDefs, AtlasRelationshipAttributeDef) self.businessAttributeDefs = type_coerce_dict_list( self.businessAttributeDefs, AtlasAttributeDef)
def type_coerce_attrs(self): # This is to avoid the circular dependencies that instance.py and glossary.py has. import apache_atlas.model.instance as instance super(AtlasGlossaryBaseObject, self).type_coerce_attrs() self.classifications = type_coerce_list(self.classifications, instance.AtlasClassification)
def type_coerce_attrs(self): super(AtlasTypesDef, self).type_coerce_attrs() self.enumDefs = type_coerce_list(self.enumDefs, AtlasEnumDef) self.structDefs = type_coerce_list(self.structDefs, AtlasStructDef) self.classificationDefs = type_coerce_list(self.classificationDefs, AtlasClassificationDef) self.entityDefs = type_coerce_list(self.entityDefs, AtlasEntityDef) self.relationshipDefs = type_coerce_list(self.relationshipDefs, AtlasRelationshipDef) self.businessMetadataDefs = type_coerce_list(self.businessMetadataDefs, AtlasBusinessMetadataDef)
def type_coerce_attrs(self): super(AtlasEnumDef, self).type_coerce_attrs() self.elementDefs = type_coerce_list(self.elementDefs, AtlasEnumElementDef)
def type_coerce_attrs(self): super(AtlasAttributeDef, self).type_coerce_attrs() self.constraints = type_coerce_list(self.constraints, AtlasConstraintDef)
def type_coerce_attrs(self): super(AtlasLineageInfo, self).type_coerce_attrs() self.guidEntityMap = type_coerce_dict(self.guidEntityMap, AtlasEntityHeader) self.relations = type_coerce_list(self.relations, LineageRelation)
def type_coerce_attrs(self): super(AtlasGlossaryTerm, self).type_coerce_attrs() self.anchor = type_coerce(self.anchor, AtlasGlossaryHeader) self.assignedEntities = type_coerce_list(self.assignedEntities, instance.AtlasRelatedObjectId) self.categories = type_coerce_list(self.categories, AtlasTermCategorizationHeader) self.seeAlso = type_coerce_list(self.seeAlso, AtlasRelatedTermHeader) self.synonyms = type_coerce_list(self.synonyms, AtlasRelatedTermHeader) self.antonyms = type_coerce_list(self.antonyms, AtlasRelatedTermHeader) self.preferredTerms = type_coerce_list(self.preferredTerms, AtlasRelatedTermHeader) self.preferredToTerms = type_coerce_list(self.preferredToTerms, AtlasRelatedTermHeader) self.replacementTerms = type_coerce_list(self.replacementTerms, AtlasRelatedTermHeader) self.replacedBy = type_coerce_list(self.replacedBy, AtlasRelatedTermHeader) self.translationTerms = type_coerce_list(self.translationTerms, AtlasRelatedTermHeader) self.isA = type_coerce_list(self.isA, AtlasRelatedTermHeader) self.classifies = type_coerce_list(self.classifies, AtlasRelatedTermHeader) self.validValues = type_coerce_list(self.validValues, AtlasRelatedTermHeader) self.validValuesFor = type_coerce_list(self.validValuesFor, AtlasRelatedTermHeader)
def type_coerce_attrs(self): super(AtlasEntitiesWithExtInfo, self).type_coerce_attrs() self.entities = type_coerce_list(self.entity, AtlasEntity)
def type_coerce_attrs(self): super(AtlasClassification, self).type_coerce_attrs() self.validityPeriods = type_coerce_list(self.validityPeriods, TimeBoundary)
def type_coerce_attrs(self): super(AtlasStructDef, self).type_coerce_attrs() self.attributeDefs = type_coerce_list(self.attributeDefs, AtlasAttributeDef)
def type_coerce_attrs(self): super(EntityMutations, self).type_coerce_attrs() self.entity_mutations = type_coerce_list(self.entity_mutations, EntityMutation)
def type_coerce_attrs(self): super(AtlasClassifications, self).type_coerce_attrs() Plist.list = type_coerce_list(Plist.list, AtlasClassification)
def type_coerce_attrs(self): super(AtlasGlossaryBaseObject, self).type_coerce_attrs() self.classifications = type_coerce_list(self.classifications, instance.AtlasClassification)
def type_coerce_attrs(self): super(AtlasGlossaryTerm, self).type_coerce_attrs() # This is to avoid the circular dependencies that instance.py and glossary.py has. import apache_atlas.model.instance as instance self.anchor = type_coerce(self.anchor, AtlasGlossaryHeader) self.assignedEntities = type_coerce_list(self.assignedEntities, instance.AtlasRelatedObjectId) self.categories = type_coerce_list(self.categories, AtlasTermCategorizationHeader) self.seeAlso = type_coerce_list(self.seeAlso, AtlasRelatedTermHeader) self.synonyms = type_coerce_list(self.synonyms, AtlasRelatedTermHeader) self.antonyms = type_coerce_list(self.antonyms, AtlasRelatedTermHeader) self.preferredTerms = type_coerce_list(self.preferredTerms, AtlasRelatedTermHeader) self.preferredToTerms = type_coerce_list(self.preferredToTerms, AtlasRelatedTermHeader) self.replacementTerms = type_coerce_list(self.replacementTerms, AtlasRelatedTermHeader) self.replacedBy = type_coerce_list(self.replacedBy, AtlasRelatedTermHeader) self.translationTerms = type_coerce_list(self.translationTerms, AtlasRelatedTermHeader) self.isA = type_coerce_list(self.isA, AtlasRelatedTermHeader) self.classifies = type_coerce_list(self.classifies, AtlasRelatedTermHeader) self.validValues = type_coerce_list(self.validValues, AtlasRelatedTermHeader) self.validValuesFor = type_coerce_list(self.validValuesFor, AtlasRelatedTermHeader)