summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorLéo GATELLIER <26511053+lgatellier@users.noreply.github.com>2021-10-17 19:19:40 +0200
committerGitHub <noreply@github.com>2021-10-17 19:19:40 +0200
commit905781bed2afa33634b27842a42a077a160cffb8 (patch)
tree334166c45ffa2878d267f5f40ef8225bd8e11306 /gitlab
parent4170dbe00112378a523b0fdf3208e8fa4bc5ef00 (diff)
downloadgitlab-905781bed2afa33634b27842a42a077a160cffb8.tar.gz
fix(api): delete invalid 'project-runner get' command (#1628)
* fix(api): delete 'group-runner get' and 'group-runner delete' commands Co-authored-by: Léo GATELLIER <git@leogatellier.fr>
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/v4/objects/runners.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gitlab/v4/objects/runners.py b/gitlab/v4/objects/runners.py
index a32dc84..ec8153f 100644
--- a/gitlab/v4/objects/runners.py
+++ b/gitlab/v4/objects/runners.py
@@ -3,9 +3,10 @@ from gitlab import exceptions as exc
from gitlab import types
from gitlab.base import RequiredOptional, RESTManager, RESTObject
from gitlab.mixins import (
+ CreateMixin,
CRUDMixin,
+ DeleteMixin,
ListMixin,
- NoUpdateMixin,
ObjectDeleteMixin,
SaveMixin,
)
@@ -114,11 +115,11 @@ class RunnerManager(CRUDMixin, RESTManager):
self.gitlab.http_post(path, post_data=post_data, **kwargs)
-class GroupRunner(ObjectDeleteMixin, RESTObject):
+class GroupRunner(RESTObject):
pass
-class GroupRunnerManager(NoUpdateMixin, RESTManager):
+class GroupRunnerManager(ListMixin, RESTManager):
_path = "/groups/%(group_id)s/runners"
_obj_cls = GroupRunner
_from_parent_attrs = {"group_id": "id"}
@@ -131,7 +132,7 @@ class ProjectRunner(ObjectDeleteMixin, RESTObject):
pass
-class ProjectRunnerManager(NoUpdateMixin, RESTManager):
+class ProjectRunnerManager(CreateMixin, DeleteMixin, ListMixin, RESTManager):
_path = "/projects/%(project_id)s/runners"
_obj_cls = ProjectRunner
_from_parent_attrs = {"project_id": "id"}