diff options
author | Léo GATELLIER <26511053+lgatellier@users.noreply.github.com> | 2021-10-17 19:19:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 19:19:40 +0200 |
commit | 905781bed2afa33634b27842a42a077a160cffb8 (patch) | |
tree | 334166c45ffa2878d267f5f40ef8225bd8e11306 /gitlab | |
parent | 4170dbe00112378a523b0fdf3208e8fa4bc5ef00 (diff) | |
download | gitlab-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.py | 9 |
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"} |