From 9783207f4577bd572f09c25707981ed5aa83b116 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Thu, 17 Aug 2017 22:12:39 +0200 Subject: [v4] CLI support is back --- gitlab/base.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gitlab/base.py') 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. -- cgit v1.2.1