summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorgouglhupf <dr.gouglhupf@gmail.com>2019-03-21 06:59:19 +0100
committerGauvain Pocentek <gauvainpocentek@gmail.com>2019-03-21 06:59:19 +0100
commit768ce19c5e5bb197cddd4e3871c175e935c68312 (patch)
tree3c89d9d57bb15824ea78733406b388f68862d514 /gitlab/v4/objects.py
parent6bd19027f2cd1cc20d59182d8856f5955e0702e5 (diff)
downloadgitlab-768ce19c5e5bb197cddd4e3871c175e935c68312.tar.gz
feat(GitLab Update): delete ProjectPipeline (#736)
* feat(GitLab Update): delete ProjectPipeline As of Gitlab 11.6 it is now possible to delete a pipeline - https://docs.gitlab.com/ee/api/pipelines.html#delete-a-pipeline
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index b9769ba..2175e0c 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -2714,7 +2714,7 @@ class ProjectPipelineJobManager(ListMixin, RESTManager):
_list_filters = ('scope',)
-class ProjectPipeline(RESTObject, RefreshMixin):
+class ProjectPipeline(RESTObject, RefreshMixin, ObjectDeleteMixin):
_managers = (('jobs', 'ProjectPipelineJobManager'), )
@cli.register_custom_action('ProjectPipeline')
@@ -2748,7 +2748,8 @@ class ProjectPipeline(RESTObject, RefreshMixin):
self.manager.gitlab.http_post(path)
-class ProjectPipelineManager(RetrieveMixin, CreateMixin, RESTManager):
+class ProjectPipelineManager(RetrieveMixin, CreateMixin, DeleteMixin,
+ RESTManager):
_path = '/projects/%(project_id)s/pipelines'
_obj_cls = ProjectPipeline
_from_parent_attrs = {'project_id': 'id'}