summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index dcf5d5c..97a2165 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1054,8 +1054,8 @@ class Snippet(GitlabObject):
class SnippetManager(BaseManager):
obj_cls = Snippet
- def all(self, **kwargs):
- """List all the snippets
+ def public(self, **kwargs):
+ """List all the public snippets.
Args:
all (bool): If True, return all the items, without pagination
@@ -1066,18 +1066,6 @@ class SnippetManager(BaseManager):
"""
return self.gitlab._raw_list("/snippets/public", Snippet, **kwargs)
- def owned(self, **kwargs):
- """List owned snippets.
-
- Args:
- all (bool): If True, return all the items, without pagination
- **kwargs: Additional arguments to send to GitLab.
-
- Returns:
- list(gitlab.Gitlab.Snippet): The list of owned snippets.
- """
- return self.gitlab._raw_list("/snippets", Snippet, **kwargs)
-
class Namespace(GitlabObject):
_url = '/namespaces'