From 6d3450c4fe4a2e592b9000be309819278f519e11 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 23 Oct 2016 21:05:40 +0200 Subject: Add support for broadcast messages API --- gitlab/objects.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gitlab/objects.py') diff --git a/gitlab/objects.py b/gitlab/objects.py index ad57d2f..0897c68 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -728,6 +728,18 @@ class ApplicationSettingsManager(BaseManager): obj_cls = ApplicationSettings +class BroadcastMessage(GitlabObject): + _url = '/broadcast_messages' + requiredCreateAttrs = ['message'] + optionalCreateAttrs = ['starts_at', 'ends_at', 'color', 'font'] + requiredUpdateAttrs = [] + optionalUpdateAttrs = ['message', 'starts_at', 'ends_at', 'color', 'font'] + + +class BroadcastMessageManager(BaseManager): + obj_cls = BroadcastMessage + + class Key(GitlabObject): _url = '/deploy_keys' canGet = 'from_list' -- cgit v1.2.1