diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-24 01:36:48 +0100 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-24 01:36:48 +0100 |
commit | 81a392ca6e9b44444c0f1287139abe788d50119d (patch) | |
tree | 97e0f03be6f8819cb9b8a5dd0d46432ff6dfc5a4 /gitlab/v4/objects/runners.py | |
parent | 7ba5995ed472997e6bf98e8ae58107af307a5615 (diff) | |
download | gitlab-chore/sphinx-annotations.tar.gz |
chore: deduplicate type annotations in docschore/sphinx-annotations
Diffstat (limited to 'gitlab/v4/objects/runners.py')
-rw-r--r-- | gitlab/v4/objects/runners.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gitlab/v4/objects/runners.py b/gitlab/v4/objects/runners.py index 7b59b8a..7c900e9 100644 --- a/gitlab/v4/objects/runners.py +++ b/gitlab/v4/objects/runners.py @@ -76,12 +76,12 @@ class RunnerManager(CRUDMixin, RESTManager): """List all the runners. Args: - scope (str): The scope of runners to show, one of: specific, + scope: The scope of runners to show, one of: specific, shared, active, paused, online - 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 + all: If True, return all the items, without pagination + per_page: Number of items to retrieve per request + page: ID of the page to return (starts with page 1) + as_list: 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) @@ -90,7 +90,7 @@ class RunnerManager(CRUDMixin, RESTManager): GitlabListError: If the server failed to perform the request Returns: - list(Runner): a list of runners matching the scope. + a list of runners matching the scope. """ path = "/runners/all" query_data = {} @@ -105,7 +105,7 @@ class RunnerManager(CRUDMixin, RESTManager): """Validates authentication credentials for a registered Runner. Args: - token (str): The runner's authentication token + token: The runner's authentication token **kwargs: Extra options to send to the server (e.g. sudo) Raises: |