summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-08-06 20:58:27 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-08-06 20:58:27 +0200
commit9bd2cb70b255b5ec8c2112d186a829f78c1bb6be (patch)
treec7cd7d8edf8dfab610140cf5f6ab69a5f8615824 /gitlab/objects.py
parente3ac32f76a54e06c9c465c5acd41398988154fe9 (diff)
downloadgitlab-9bd2cb70b255b5ec8c2112d186a829f78c1bb6be.tar.gz
add support for global deploy key listing
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 42d5b38..76cc219 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -679,6 +679,18 @@ class ApplicationSettingsManager(BaseManager):
obj_cls = ApplicationSettings
+class Key(GitlabObject):
+ _url = '/deploy_keys'
+ canGet = 'from_list'
+ canCreate = False
+ canUpdate = False
+ canDelete = False
+
+
+class KeyManager(BaseManager):
+ obj_cls = Key
+
+
class GroupIssue(GitlabObject):
_url = '/groups/%(group_id)s/issues'
canGet = 'from_list'