summaryrefslogtreecommitdiff
path: root/gitlab/base.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-08-17 22:12:39 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-08-17 22:12:39 +0200
commit9783207f4577bd572f09c25707981ed5aa83b116 (patch)
tree524284cf231c03d22213f228a4e603b1de86fc59 /gitlab/base.py
parenta4f0c520f4250ceb228087f31f7b351f74989020 (diff)
downloadgitlab-9783207f4577bd572f09c25707981ed5aa83b116.tar.gz
[v4] CLI support is back
Diffstat (limited to 'gitlab/base.py')
-rw-r--r--gitlab/base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/base.py b/gitlab/base.py
index df25a36..a9521eb 100644
--- a/gitlab/base.py
+++ b/gitlab/base.py
@@ -607,6 +607,13 @@ class RESTObject(object):
return None
return getattr(self, self._id_attr)
+ @property
+ def attributes(self):
+ d = self.__dict__['_updated_attrs'].copy()
+ d.update(self.__dict__['_attrs'])
+ d.update(self.__dict__['_parent_attrs'])
+ return d
+
class RESTObjectList(object):
"""Generator object representing a list of RESTObject's.