This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new f16692f ATLAS-4086: python client fixes - missing properties in
AtlasEntity
f16692f is described below
commit f16692f8008523279ac3bc05626bab0fbd9a86cf
Author: Verdan Mahmood <[email protected]>
AuthorDate: Mon Mar 15 09:36:04 2021 -0700
ATLAS-4086: python client fixes - missing properties in AtlasEntity
(cherry picked from commit c8b3f778c15c1780b809445389ad562104bb1404)
---
intg/src/main/python/README.md | 2 +-
intg/src/main/python/apache_atlas/model/instance.py | 15 +++++++++++++--
intg/src/main/python/setup.py | 2 +-
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/intg/src/main/python/README.md b/intg/src/main/python/README.md
index 5c1c4d0..1982ca8 100644
--- a/intg/src/main/python/README.md
+++ b/intg/src/main/python/README.md
@@ -16,7 +16,7 @@ Verify if apache-atlas client is installed:
Package Version
------------ ---------
-apache-atlas 0.0.5
+apache-atlas 0.0.6
```
## Usage
diff --git a/intg/src/main/python/apache_atlas/model/instance.py
b/intg/src/main/python/apache_atlas/model/instance.py
index 3b2edc4..d2a51ef 100644
--- a/intg/src/main/python/apache_atlas/model/instance.py
+++ b/intg/src/main/python/apache_atlas/model/instance.py
@@ -43,16 +43,27 @@ class AtlasStruct(AtlasBase):
class AtlasEntity(AtlasStruct):
- def __init__(self, attrs={}):
+ def __init__(self, attrs=None):
AtlasStruct.__init__(self, attrs)
-
+ if attrs is None:
+ attrs = {}
self.guid = attrs.get('guid')
+ self.homeId = attrs.get('homeId')
self.relationshipAttributes = attrs.get('relationshipAttributes')
self.classifications = attrs.get('classifications')
self.meanings = attrs.get('meanings')
self.customAttributes = attrs.get('customAttributes')
self.businessAttributes = attrs.get('businessAttributes')
self.labels = attrs.get('labels')
+ self.status = attrs.get('status')
+ self.isIncomplete = attrs.get('isIncomplete')
+ self.provenanceType = attrs.get('provenanceType')
+ self.proxy = attrs.get('proxy')
+ self.version = attrs.get('version')
+ self.createdBy = attrs.get('createdBy')
+ self.updatedBy = attrs.get('updatedBy')
+ self.createTime = attrs.get('createTime')
+ self.updateTime = attrs.get('updateTime')
if self.guid is None:
self.guid = next_id()
diff --git a/intg/src/main/python/setup.py b/intg/src/main/python/setup.py
index 0a4c2c2..fbb2ede 100644
--- a/intg/src/main/python/setup.py
+++ b/intg/src/main/python/setup.py
@@ -28,7 +28,7 @@ with open("README.md", "r") as fh:
setup(
name='apache-atlas',
- version='0.0.5',
+ version='0.0.6',
author="Apache Atlas",
author_email='[email protected]',
description="Apache Atlas Python Client",