summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2017-12-16 08:04:32 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2017-12-16 08:04:32 +0100
commitb0ce3c80757f19a93733509360e5440c52920f48 (patch)
tree58f7aecf32292464c26130210e3eed2fa4ad4d75 /gitlab/v4/objects.py
parent0c3a6cb889473545efd0e8a17e175cb5ff652c34 (diff)
downloadgitlab-b0ce3c80757f19a93733509360e5440c52920f48.tar.gz
[docstrings] Explicitly documentation pagination arguments
Fixes #393
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py40
1 files changed, 40 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 0f947b4..6cb2115 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -470,6 +470,11 @@ class GroupMilestone(SaveMixin, ObjectDeleteMixin, RESTObject):
"""List issues related to this milestone.
Args:
+ all (bool): If True, return all the items, without pagination
+ per_page (int): Number of items to retrieve per request
+ page (int): ID of the page to return (starts with page 1)
+ as_list (bool): If set to False and no pagination option is
+ defined, return a generator instead of a list
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
@@ -494,6 +499,11 @@ class GroupMilestone(SaveMixin, ObjectDeleteMixin, RESTObject):
"""List the merge requests related to this milestone.
Args:
+ all (bool): If True, return all the items, without pagination
+ per_page (int): Number of items to retrieve per request
+ page (int): ID of the page to return (starts with page 1)
+ as_list (bool): If set to False and no pagination option is
+ defined, return a generator instead of a list
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
@@ -1353,6 +1363,11 @@ class ProjectMergeRequest(SubscribableMixin, TodoMixin, TimeTrackingMixin,
"""List issues that will close on merge."
Args:
+ all (bool): If True, return all the items, without pagination
+ per_page (int): Number of items to retrieve per request
+ page (int): ID of the page to return (starts with page 1)
+ as_list (bool): If set to False and no pagination option is
+ defined, return a generator instead of a list
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
@@ -1375,6 +1390,11 @@ class ProjectMergeRequest(SubscribableMixin, TodoMixin, TimeTrackingMixin,
"""List the merge request commits.
Args:
+ all (bool): If True, return all the items, without pagination
+ per_page (int): Number of items to retrieve per request
+ page (int): ID of the page to return (starts with page 1)
+ as_list (bool): If set to False and no pagination option is
+ defined, return a generator instead of a list
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
@@ -1477,6 +1497,11 @@ class ProjectMilestone(SaveMixin, ObjectDeleteMixin, RESTObject):
"""List issues related to this milestone.
Args:
+ all (bool): If True, return all the items, without pagination
+ per_page (int): Number of items to retrieve per request
+ page (int): ID of the page to return (starts with page 1)
+ as_list (bool): If set to False and no pagination option is
+ defined, return a generator instead of a list
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
@@ -1501,6 +1526,11 @@ class ProjectMilestone(SaveMixin, ObjectDeleteMixin, RESTObject):
"""List the merge requests related to this milestone.
Args:
+ all (bool): If True, return all the items, without pagination
+ per_page (int): Number of items to retrieve per request
+ page (int): ID of the page to return (starts with page 1)
+ as_list (bool): If set to False and no pagination option is
+ defined, return a generator instead of a list
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
@@ -2135,6 +2165,11 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
Args:
path (str): Path of the top folder (/ by default)
ref (str): Reference to a commit or branch
+ all (bool): If True, return all the items, without pagination
+ per_page (int): Number of items to retrieve per request
+ page (int): ID of the page to return (starts with page 1)
+ as_list (bool): If set to False and no pagination option is
+ defined, return a generator instead of a list
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
@@ -2229,6 +2264,11 @@ class Project(SaveMixin, ObjectDeleteMixin, RESTObject):
"""Return a list of contributors for the project.
Args:
+ all (bool): If True, return all the items, without pagination
+ per_page (int): Number of items to retrieve per request
+ page (int): ID of the page to return (starts with page 1)
+ as_list (bool): If set to False and no pagination option is
+ defined, return a generator instead of a list
**kwargs: Extra options to send to the server (e.g. sudo)
Raises: