Skip to content

Commit dc504ab

Browse files
author
Gauvain Pocentek
committed
Snippet notes support all the CRUD methods
Fixes #343
1 parent 9d0a479 commit dc504ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gitlab/v4/objects.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1545,16 +1545,17 @@ def create(self, data, **kwargs):
15451545
return CreateMixin.create(self, data, path=path, **kwargs)
15461546

15471547

1548-
class ProjectSnippetNote(RESTObject):
1548+
class ProjectSnippetNote(SaveMixin, ObjectDeleteMixin, RESTObject):
15491549
_constructor_types = {'author': 'User'}
15501550

15511551

1552-
class ProjectSnippetNoteManager(RetrieveMixin, CreateMixin, RESTManager):
1552+
class ProjectSnippetNoteManager(CRUDMixin, RESTManager):
15531553
_path = '/projects/%(project_id)s/snippets/%(snippet_id)s/notes'
15541554
_obj_cls = ProjectSnippetNote
15551555
_from_parent_attrs = {'project_id': 'project_id',
15561556
'snippet_id': 'id'}
15571557
_create_attrs = (('body', ), tuple())
1558+
_update_attrs = (('body', ), tuple())
15581559

15591560

15601561
class ProjectSnippet(SaveMixin, ObjectDeleteMixin, RESTObject):

0 commit comments

Comments
 (0)