summaryrefslogtreecommitdiff
path: root/gitlab/v3/objects.py
diff options
context:
space:
mode:
authorMoritz Lipp <github@mlq.me>2017-11-13 15:12:36 +0100
committerMoritz Lipp <github@mlq.me>2017-11-13 15:12:36 +0100
commit34e32a0944b65583a57b97bf0124b8935ab49fa7 (patch)
treea3a220b5610057bf60f0ec47812b839e1bdb7821 /gitlab/v3/objects.py
parent9ede6529884e850532758ae218465c1b7584c2d4 (diff)
downloadgitlab-34e32a0944b65583a57b97bf0124b8935ab49fa7.tar.gz
Project pipeline schedules
Diffstat (limited to 'gitlab/v3/objects.py')
-rw-r--r--gitlab/v3/objects.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/gitlab/v3/objects.py b/gitlab/v3/objects.py
index ab81521..014714e 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')]),