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

Commit3ad612d

Browse files
author
Gauvain Pocentek
committed
Update ProjectSnippet attributes
'visibility_level' has been added as an optional attribute to keepcompatibility with older releases of gitlab.Fixes#129
1 parent967595f commit3ad612d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎gitlab/objects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,8 @@ class ProjectSnippet(GitlabObject):
14941494
_constructorTypes= {'author':'User'}
14951495
requiredUrlAttrs= ['project_id']
14961496
requiredCreateAttrs= ['title','file_name','code']
1497-
optionalCreateAttrs= ['lifetime']
1497+
optionalCreateAttrs= ['lifetime','visibility_level']
1498+
optionalUpdateAttrs= ['title','file_name','code','visibility_level']
14981499
shortPrintAttr='title'
14991500
managers= [('notes',ProjectSnippetNoteManager,
15001501
[('project_id','project_id'), ('snippet_id','id')])]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp