diff options
author | Steve Vermeulen <svermeulen@nianticlabs.com> | 2022-10-24 00:11:38 -0700 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2022-12-11 05:44:44 +0100 |
commit | 865fa417a20163b526596549b9afbce679fc2817 (patch) | |
tree | c92f67ee68455b8c5587a4a0f50229ca8337312f /gitlab/v4/objects/pipelines.py | |
parent | b6c08725042380d20ef5f09979bc29f2f6c1ab6f (diff) | |
download | gitlab-865fa417a20163b526596549b9afbce679fc2817.tar.gz |
feat(api): support listing pipelines triggered by pipeline schedules
Diffstat (limited to 'gitlab/v4/objects/pipelines.py')
-rw-r--r-- | gitlab/v4/objects/pipelines.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gitlab/v4/objects/pipelines.py b/gitlab/v4/objects/pipelines.py index a4312d6..7530611 100644 --- a/gitlab/v4/objects/pipelines.py +++ b/gitlab/v4/objects/pipelines.py @@ -32,6 +32,8 @@ __all__ = [ "ProjectPipelineVariableManager", "ProjectPipelineScheduleVariable", "ProjectPipelineScheduleVariableManager", + "ProjectPipelineSchedulePipeline", + "ProjectPipelineSchedulePipelineManager", "ProjectPipelineSchedule", "ProjectPipelineScheduleManager", "ProjectPipelineTestReport", @@ -184,8 +186,19 @@ class ProjectPipelineScheduleVariableManager( _update_attrs = RequiredOptional(required=("key", "value")) +class ProjectPipelineSchedulePipeline(RESTObject): + pass + + +class ProjectPipelineSchedulePipelineManager(ListMixin, RESTManager): + _path = "/projects/{project_id}/pipeline_schedules/{pipeline_schedule_id}/pipelines" + _obj_cls = ProjectPipelineSchedulePipeline + _from_parent_attrs = {"project_id": "project_id", "pipeline_schedule_id": "id"} + + class ProjectPipelineSchedule(SaveMixin, ObjectDeleteMixin, RESTObject): variables: ProjectPipelineScheduleVariableManager + pipelines: ProjectPipelineSchedulePipelineManager @cli.register_custom_action("ProjectPipelineSchedule") @exc.on_http_error(exc.GitlabOwnershipError) |