示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    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)
示例#4
0
    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)
示例#5
0
    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)
示例#6
0
    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)
示例#7
0
    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)
示例#8
0
    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)
示例#9
0
    def type_coerce_attrs(self):
        super(AtlasEnumDef, self).type_coerce_attrs()

        self.elementDefs = type_coerce_list(self.elementDefs,
                                            AtlasEnumElementDef)
示例#10
0
    def type_coerce_attrs(self):
        super(AtlasAttributeDef, self).type_coerce_attrs()

        self.constraints = type_coerce_list(self.constraints,
                                            AtlasConstraintDef)
示例#11
0
    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)
示例#12
0
    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)
示例#13
0
    def type_coerce_attrs(self):
        super(AtlasEntitiesWithExtInfo, self).type_coerce_attrs()

        self.entities = type_coerce_list(self.entity, AtlasEntity)
示例#14
0
    def type_coerce_attrs(self):
        super(AtlasClassification, self).type_coerce_attrs()

        self.validityPeriods = type_coerce_list(self.validityPeriods,
                                                TimeBoundary)
示例#15
0
    def type_coerce_attrs(self):
        super(AtlasStructDef, self).type_coerce_attrs()

        self.attributeDefs = type_coerce_list(self.attributeDefs,
                                              AtlasAttributeDef)
示例#16
0
    def type_coerce_attrs(self):
        super(EntityMutations, self).type_coerce_attrs()

        self.entity_mutations = type_coerce_list(self.entity_mutations,
                                                 EntityMutation)
示例#17
0
    def type_coerce_attrs(self):
        super(AtlasClassifications, self).type_coerce_attrs()

        Plist.list = type_coerce_list(Plist.list, AtlasClassification)
示例#18
0
    def type_coerce_attrs(self):
        super(AtlasGlossaryBaseObject, self).type_coerce_attrs()

        self.classifications = type_coerce_list(self.classifications, instance.AtlasClassification)
示例#19
0
    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)