Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc504ab

Browse files
author
Gauvain Pocentek
committed
Snippet notes support all the CRUD methods
Fixes#343
1 parent9d0a479 commitdc504ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎gitlab/v4/objects.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,16 +1545,17 @@ def create(self, data, **kwargs):
15451545
returnCreateMixin.create(self,data,path=path,**kwargs)
15461546

15471547

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

15511551

1552-
classProjectSnippetNoteManager(RetrieveMixin,CreateMixin,RESTManager):
1552+
classProjectSnippetNoteManager(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
classProjectSnippet(SaveMixin,ObjectDeleteMixin,RESTObject):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp