Skip to content

Commit b0ce3c8

Browse files
author
Gauvain Pocentek
committed
[docstrings] Explicitly documentation pagination arguments
Fixes #393
1 parent 0c3a6cb commit b0ce3c8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

gitlab/v4/objects.py

+40
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@ def issues(self, **kwargs):
470470
"""List issues related to this milestone.
471471
472472
Args:
473+
all (bool): If True, return all the items, without pagination
474+
per_page (int): Number of items to retrieve per request
475+
page (int): ID of the page to return (starts with page 1)
476+
as_list (bool): If set to False and no pagination option is
477+
defined, return a generator instead of a list
473478
**kwargs: Extra options to send to the server (e.g. sudo)
474479
475480
Raises:
@@ -494,6 +499,11 @@ def merge_requests(self, **kwargs):
494499
"""List the merge requests related to this milestone.
495500
496501
Args:
502+
all (bool): If True, return all the items, without pagination
503+
per_page (int): Number of items to retrieve per request
504+
page (int): ID of the page to return (starts with page 1)
505+
as_list (bool): If set to False and no pagination option is
506+
defined, return a generator instead of a list
497507
**kwargs: Extra options to send to the server (e.g. sudo)
498508
499509
Raises:
@@ -1353,6 +1363,11 @@ def closes_issues(self, **kwargs):
13531363
"""List issues that will close on merge."
13541364
13551365
Args:
1366+
all (bool): If True, return all the items, without pagination
1367+
per_page (int): Number of items to retrieve per request
1368+
page (int): ID of the page to return (starts with page 1)
1369+
as_list (bool): If set to False and no pagination option is
1370+
defined, return a generator instead of a list
13561371
**kwargs: Extra options to send to the server (e.g. sudo)
13571372
13581373
Raises:
@@ -1375,6 +1390,11 @@ def commits(self, **kwargs):
13751390
"""List the merge request commits.
13761391
13771392
Args:
1393+
all (bool): If True, return all the items, without pagination
1394+
per_page (int): Number of items to retrieve per request
1395+
page (int): ID of the page to return (starts with page 1)
1396+
as_list (bool): If set to False and no pagination option is
1397+
defined, return a generator instead of a list
13781398
**kwargs: Extra options to send to the server (e.g. sudo)
13791399
13801400
Raises:
@@ -1477,6 +1497,11 @@ def issues(self, **kwargs):
14771497
"""List issues related to this milestone.
14781498
14791499
Args:
1500+
all (bool): If True, return all the items, without pagination
1501+
per_page (int): Number of items to retrieve per request
1502+
page (int): ID of the page to return (starts with page 1)
1503+
as_list (bool): If set to False and no pagination option is
1504+
defined, return a generator instead of a list
14801505
**kwargs: Extra options to send to the server (e.g. sudo)
14811506
14821507
Raises:
@@ -1501,6 +1526,11 @@ def merge_requests(self, **kwargs):
15011526
"""List the merge requests related to this milestone.
15021527
15031528
Args:
1529+
all (bool): If True, return all the items, without pagination
1530+
per_page (int): Number of items to retrieve per request
1531+
page (int): ID of the page to return (starts with page 1)
1532+
as_list (bool): If set to False and no pagination option is
1533+
defined, return a generator instead of a list
15041534
**kwargs: Extra options to send to the server (e.g. sudo)
15051535
15061536
Raises:
@@ -2135,6 +2165,11 @@ def repository_tree(self, path='', ref='', **kwargs):
21352165
Args:
21362166
path (str): Path of the top folder (/ by default)
21372167
ref (str): Reference to a commit or branch
2168+
all (bool): If True, return all the items, without pagination
2169+
per_page (int): Number of items to retrieve per request
2170+
page (int): ID of the page to return (starts with page 1)
2171+
as_list (bool): If set to False and no pagination option is
2172+
defined, return a generator instead of a list
21382173
**kwargs: Extra options to send to the server (e.g. sudo)
21392174
21402175
Raises:
@@ -2229,6 +2264,11 @@ def repository_contributors(self, **kwargs):
22292264
"""Return a list of contributors for the project.
22302265
22312266
Args:
2267+
all (bool): If True, return all the items, without pagination
2268+
per_page (int): Number of items to retrieve per request
2269+
page (int): ID of the page to return (starts with page 1)
2270+
as_list (bool): If set to False and no pagination option is
2271+
defined, return a generator instead of a list
22322272
**kwargs: Extra options to send to the server (e.g. sudo)
22332273
22342274
Raises:

0 commit comments

Comments
 (0)