We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 967595f commit 3ad612dCopy full SHA for 3ad612d
gitlab/objects.py
@@ -1494,7 +1494,8 @@ class ProjectSnippet(GitlabObject):
1494
_constructorTypes = {'author': 'User'}
1495
requiredUrlAttrs = ['project_id']
1496
requiredCreateAttrs = ['title', 'file_name', 'code']
1497
- optionalCreateAttrs = ['lifetime']
+ optionalCreateAttrs = ['lifetime', 'visibility_level']
1498
+ optionalUpdateAttrs = ['title', 'file_name', 'code', 'visibility_level']
1499
shortPrintAttr = 'title'
1500
managers = [('notes', ProjectSnippetNoteManager,
1501
[('project_id', 'project_id'), ('snippet_id', 'id')])]
0 commit comments