diff options
author | Moritz Lipp <github@mlq.me> | 2017-11-13 15:12:36 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2018-02-05 15:43:38 +0100 |
commit | 31eb913be34f8dea0c4b1f8396b74bb74b32a6f0 (patch) | |
tree | 2e3a1b67008bf59d41dede73fbf683026278bf18 /gitlab/v3/objects.py | |
parent | 70c779c4243d1807323cc1afc8cbc97918c3b8fc (diff) | |
download | gitlab-31eb913be34f8dea0c4b1f8396b74bb74b32a6f0.tar.gz |
Project pipeline schedules
Diffstat (limited to 'gitlab/v3/objects.py')
-rw-r--r-- | gitlab/v3/objects.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gitlab/v3/objects.py b/gitlab/v3/objects.py index 0db9dfd..9ea597c 100644 --- a/gitlab/v3/objects.py +++ b/gitlab/v3/objects.py @@ -1496,6 +1496,18 @@ class ProjectFileManager(BaseManager): obj_cls = ProjectFile +class ProjectPipelineSchedule(GitlabObject): + _url = '/projects/%(project_id)s/pipeline_schedules' + _create_url = '/projects/%(project_id)s/pipeline_schedules' + + requiredUrlAttrs = ['project_id'] + requiredCreateAttrs = ['description', 'ref', 'cron'] + + +class ProjectPipelineSchedulesManager(BaseManager): + obj_cls = ProjectPipelineSchedule + + class ProjectPipeline(GitlabObject): _url = '/projects/%(project_id)s/pipelines' _create_url = '/projects/%(project_id)s/pipeline' @@ -1803,6 +1815,7 @@ class Project(GitlabObject): ('notificationsettings', 'ProjectNotificationSettingsManager', [('project_id', 'id')]), ('pipelines', 'ProjectPipelineManager', [('project_id', 'id')]), + ('pipeline_schedules', 'ProjectPipelineSchedulesManager', [('project_id', 'id')]), ('runners', 'ProjectRunnerManager', [('project_id', 'id')]), ('services', 'ProjectServiceManager', [('project_id', 'id')]), ('snippets', 'ProjectSnippetManager', [('project_id', 'id')]), |