summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-12-26 07:04:48 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2016-12-26 07:08:02 +0100
commit745389501281d9bcc069e86b1b41e1936132af27 (patch)
tree88813c689ce1b2f5ff817725efd14a30c0f7e2a7 /gitlab/objects.py
parentbd7d2f6d254f55fe422aa21c9e568b8d213995b8 (diff)
downloadgitlab-745389501281d9bcc069e86b1b41e1936132af27.tar.gz
SnippetManager: all() -> public()
Rename the method to make what it does more explicit.
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'