summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-05-29 06:42:16 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-05-29 06:42:16 +0200
commitfbd2010e09f0412ea52cd16bb26cf988836bc03f (patch)
tree81522c73ff287ba67a68fbbfc0c4b289f2f6e35b /gitlab/v4/objects.py
parent8374bcc341eadafb8c7fbb2920d7f001a5a43b63 (diff)
downloadgitlab-fbd2010e09f0412ea52cd16bb26cf988836bc03f.tar.gz
Add support for group boards
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index e4c503f..65134db 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -523,6 +523,29 @@ class GroupAccessRequestManager(ListMixin, CreateMixin, DeleteMixin,
_from_parent_attrs = {'group_id': 'id'}
+class GroupBoardList(SaveMixin, ObjectDeleteMixin, RESTObject):
+ pass
+
+
+class GroupBoardListManager(CRUDMixin, RESTManager):
+ _path = '/groups/%(group_id)s/boards/%(board_id)s/lists'
+ _obj_cls = GroupBoardList
+ _from_parent_attrs = {'group_id': 'group_id',
+ 'board_id': 'id'}
+ _create_attrs = (('label_id', ), tuple())
+ _update_attrs = (('position', ), tuple())
+
+
+class GroupBoard(RESTObject):
+ _managers = (('lists', 'GroupBoardListManager'), )
+
+
+class GroupBoardManager(RetrieveMixin, RESTManager):
+ _path = '/groups/%(group_id)s/boards'
+ _obj_cls = GroupBoard
+ _from_parent_attrs = {'group_id': 'id'}
+
+
class GroupCustomAttribute(ObjectDeleteMixin, RESTObject):
_id_attr = 'key'
@@ -691,6 +714,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject):
_short_print_attr = 'name'
_managers = (
('accessrequests', 'GroupAccessRequestManager'),
+ ('boards', 'GroupBoardManager'),
('customattributes', 'GroupCustomAttributeManager'),
('issues', 'GroupIssueManager'),
('members', 'GroupMemberManager'),