summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-06-10 10:02:49 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2018-06-10 10:02:49 +0200
commitf4c4e52fd8962638ab79429a49fd4a699048bafc (patch)
treeb78c3c845665560f15257b3a3c9b2d729a297b2d /gitlab/v4/objects.py
parentd6a61afc0c599a85d74947617cb13ab39b4929fc (diff)
downloadgitlab-f4c4e52fd8962638ab79429a49fd4a699048bafc.tar.gz
Add support for board creation/deletion (EE)
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 486c0f3..a034308 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -580,14 +580,15 @@ class GroupBoardListManager(CRUDMixin, RESTManager):
_update_attrs = (('position', ), tuple())
-class GroupBoard(RESTObject):
+class GroupBoard(ObjectDeleteMixin, RESTObject):
_managers = (('lists', 'GroupBoardListManager'), )
-class GroupBoardManager(RetrieveMixin, RESTManager):
+class GroupBoardManager(NoUpdateMixin, RESTManager):
_path = '/groups/%(group_id)s/boards'
_obj_cls = GroupBoard
_from_parent_attrs = {'group_id': 'id'}
+ _create_attrs = (('name', ), tuple())
class GroupCustomAttribute(ObjectDeleteMixin, RESTObject):
@@ -1004,14 +1005,15 @@ class ProjectBoardListManager(CRUDMixin, RESTManager):
_update_attrs = (('position', ), tuple())
-class ProjectBoard(RESTObject):
+class ProjectBoard(ObjectDeleteMixin, RESTObject):
_managers = (('lists', 'ProjectBoardListManager'), )
-class ProjectBoardManager(RetrieveMixin, RESTManager):
+class ProjectBoardManager(NoUpdateMixin, RESTManager):
_path = '/projects/%(project_id)s/boards'
_obj_cls = ProjectBoard
_from_parent_attrs = {'project_id': 'id'}
+ _create_attrs = (('name', ), tuple())
class ProjectBranch(ObjectDeleteMixin, RESTObject):