summaryrefslogtreecommitdiff
path: root/docs/gl_objects/snippets.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gl_objects/snippets.py')
-rw-r--r--docs/gl_objects/snippets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/gl_objects/snippets.py b/docs/gl_objects/snippets.py
index e865b0a..091aef6 100644
--- a/docs/gl_objects/snippets.py
+++ b/docs/gl_objects/snippets.py
@@ -9,7 +9,7 @@ public_snippets = gl.snippets.public()
# get
snippet = gl.snippets.get(snippet_id)
# get the content
-content = snippet.content()
+content = snippet.raw()
# end get
# create
@@ -19,7 +19,7 @@ snippet = gl.snippets.create({'title': 'snippet1',
# end create
# update
-snippet.visibility_level = gitlab.VISIBILITY_PUBLIC
+snippet.visibility_level = gitlab.Project.VISIBILITY_PUBLIC
snippet.save()
# end update