From 8c9ad299a20dcd23f9da499ad5ed785814c7b32e Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sat, 21 Oct 2017 07:59:26 +0200 Subject: Change ProjectUser and GroupProject base class python-gitlab shouldn't try to provide features that are not existing in the Gitlab API: GroupProject and ProjectUser objects should not provide unsupported API methods (no get, no create, no update). This Closes #346 by making explicit that we don't support these non-existant methods. --- gitlab/v4/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitlab/v4/objects.py') diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index bc96a24..0fe2ea5 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -1601,7 +1601,7 @@ class ProjectTriggerManager(CRUDMixin, RESTManager): _update_attrs = (('description', ), tuple()) -class ProjectUser(User): +class ProjectUser(RESTObject): pass @@ -2244,7 +2244,7 @@ class ProjectManager(CRUDMixin, RESTManager): 'with_issues_enabled', 'with_merge_requests_enabled') -class GroupProject(Project): +class GroupProject(RESTObject): pass -- cgit v1.2.1