diff options
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r-- | gitlab/objects.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py index 8b81771..08ca3c1 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -1494,7 +1494,8 @@ class ProjectSnippet(GitlabObject): _constructorTypes = {'author': 'User'} requiredUrlAttrs = ['project_id'] requiredCreateAttrs = ['title', 'file_name', 'code'] - optionalCreateAttrs = ['lifetime'] + optionalCreateAttrs = ['lifetime', 'visibility_level'] + optionalUpdateAttrs = ['title', 'file_name', 'code', 'visibility_level'] shortPrintAttr = 'title' managers = [('notes', ProjectSnippetNoteManager, [('project_id', 'project_id'), ('snippet_id', 'id')])] |