summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2017-10-21 07:43:29 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2017-10-21 07:43:33 +0200
commitdc504ab815cc9ad74a6a6beaf6faa88a5d99c293 (patch)
tree9a1f5fa0bc3978611dd92fa16f885362d9fbcdc3 /gitlab/v4/objects.py
parent9d0a47987a316f9eb1bbb65c587d6fa75e4c6409 (diff)
downloadgitlab-dc504ab815cc9ad74a6a6beaf6faa88a5d99c293.tar.gz
Snippet notes support all the CRUD methods
Fixes #343
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 941e17d..f70a96c 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -1545,16 +1545,17 @@ class ProjectPipelineManager(RetrieveMixin, CreateMixin, RESTManager):
return CreateMixin.create(self, data, path=path, **kwargs)
-class ProjectSnippetNote(RESTObject):
+class ProjectSnippetNote(SaveMixin, ObjectDeleteMixin, RESTObject):
_constructor_types = {'author': 'User'}
-class ProjectSnippetNoteManager(RetrieveMixin, CreateMixin, RESTManager):
+class ProjectSnippetNoteManager(CRUDMixin, RESTManager):
_path = '/projects/%(project_id)s/snippets/%(snippet_id)s/notes'
_obj_cls = ProjectSnippetNote
_from_parent_attrs = {'project_id': 'project_id',
'snippet_id': 'id'}
_create_attrs = (('body', ), tuple())
+ _update_attrs = (('body', ), tuple())
class ProjectSnippet(SaveMixin, ObjectDeleteMixin, RESTObject):