Example #1
0
    def __init__(self, attrs=None):
        attrs = attrs or {}

        AtlasBase.__init__(self, attrs)

        self.startIndex = non_null(attrs.get('startIndex'), 0)
        self.maxsize = non_null(attrs.get('maxsize'), sys.maxsize)
        self.getCount = non_null(attrs.get('getCount'), True)
Example #2
0
    def __init__(self, attrs={}):
        AtlasBase.__init__(self, attrs)

        self.list = non_null(attrs.get('list'), [])
        self.startIndex = non_null(attrs.get('startIndex'), 0)
        self.pageSize = non_null(attrs.get('pageSize'), 0)
        self.totalCount = non_null(attrs.get('totalCount'), 0)
        self.sortBy = attrs.get('sortBy')
        self.sortType = attrs.get('sortType')
Example #3
0
    def __init__(self, attrs={}):
        AtlasStruct.__init__(self, attrs)

        self.guid = attrs.get('guid')
        self.status = non_null(attrs.get('status'), EntityStatus.ACTIVE.name)
        self.displayText = attrs.get('displayText')
        self.classificationNames = attrs.get('classificationNames')
        self.classifications = attrs.get('classifications')
        self.meaningNames = attrs.get('meaningNames')
        self.meanings = attrs.get('.meanings')
        self.isIncomplete = non_null(attrs.get('isIncomplete'), False)
        self.labels = attrs.get('labels')

        if self.guid is None:
            self.guid = next_id()
Example #4
0
    def __init__(self, attrs=None):
        attrs = attrs or {}

        AtlasBase.__init__(self, attrs)

        self.queryType = non_null(attrs.get('queryType'), QueryType.BASIC.name)
        self.searchParameters = attrs.get('searchParameters')
        self.queryText = attrs.get('queryText')
        self.type = attrs.get('type')
        self.classification = attrs.get('classification')
        self.entities = attrs.get('entities')
        self.attributes = attrs.get('attributes')
        self.fullTextResult = attrs.get('fullTextResult')
        self.referredEntities = attrs.get('referredEntities')
        self.approximateCount = non_null(attrs.get('approximateCount'), -1)
Example #5
0
    def __init__(self, attrs=None):
        attrs = attrs or {}

        AtlasBaseTypeDef.__init__(self, attrs)

        self.category = non_null(attrs.get('category'),
                                 TypeCategory.STRUCT.name)
        self.attributeDefs = attrs.get('attributeDefs')
Example #6
0
    def __init__(self, attrs={}):
        AtlasStruct.__init__(self, attrs)

        self.entityGuid = attrs.get('entityGuid')
        self.entityStatus = non_null(attrs.get('entityStatus'),
                                     EntityStatus.ACTIVE.name)
        self.propagate = attrs.get('propagate')
        self.validityPeriods = attrs.get('validityPeriods')
        self.removePropagationsOnEntityDelete = attrs.get(
            'removePropagationsOnEntityDelete')
Example #7
0
    def __init__(self, attrs=None):
        attrs = attrs or {}

        AtlasBase.__init__(self, attrs)

        self.query = attrs.get('query')
        self.typeName = attrs.get('typeName')
        self.classification = attrs.get('classification')
        self.termName = attrs.get('termName')
        self.sortBy = attrs.get('sortBy')
        self.excludeDeletedEntities = attrs.get('excludeDeletedEntities')
        self.includeClassificationAttributes = attrs.get(
            'includeClassificationAttributes')
        self.includeSubTypes = non_null(attrs.get('includeSubTypes'), True)
        self.includeSubClassifications = non_null(
            attrs.get('includeSubClassifications'), True)
        self.limit = attrs.get('limit')
        self.offset = attrs.get('offset')
        self.entityFilters = attrs.get('entityFilters')
        self.tagFilters = attrs.get('tagFilters')
        self.attributes = attrs.get('attributes')
        self.sortOrder = attrs.get('sortOrder')
Example #8
0
    def __init__(self, attrs={}):
        AtlasBase.__init__(self, attrs)

        self.name = attrs.get('name')
        self.typeName = attrs.get('typeName')
        self.isOptional = attrs.get('isOptional')
        self.cardinality = attrs.get('cardinality')
        self.valuesMinCount = attrs.get('valuesMinCount')
        self.valuesMaxCount = attrs.get('valuesMaxCount')
        self.isUnique = attrs.get('isUnique')
        self.isIndexable = attrs.get('isIndexable')
        self.includeInNotification = attrs.get('includeInNotification')
        self.defaultValue = attrs.get('defaultValue')
        self.description = attrs.get('description')
        self.searchWeight = non_null(attrs.get('searchWeight'), -1)
        self.indexType = attrs.get('indexType')
        self.constraints = attrs.get('constraints')
        self.options = attrs.get('options')
        self.displayName = attrs.get('displayName')