summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index d7bb3d5..e4a5447 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -1883,6 +1883,8 @@ class ProjectFileManager(GetMixin, CreateMixin, UpdateMixin, DeleteMixin,
class ProjectPipeline(RESTObject):
+ _managers = (('jobs', 'ProjectPipelineJobManager'), )
+
@cli.register_custom_action('ProjectPipeline')
@exc.on_http_error(exc.GitlabPipelineCancelError)
def cancel(self, **kwargs):
@@ -1940,6 +1942,16 @@ class ProjectPipelineManager(RetrieveMixin, CreateMixin, RESTManager):
return CreateMixin.create(self, data, path=path, **kwargs)
+class ProjectPipelineJob(ProjectJob):
+ pass
+
+
+class ProjectPipelineJobManager(GetFromListMixin, RESTManager):
+ _path = '/projects/%(project_id)s/pipelines/%(pipeline_id)s/jobs'
+ _obj_cls = ProjectPipelineJob
+ _from_parent_attrs = {'project_id': 'project_id', 'pipeline_id': 'id'}
+
+
class ProjectSnippetNoteAwardEmoji(ObjectDeleteMixin, RESTObject):
pass