summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
authorKoen Smets <koen.smets@gmail.com>2013-11-27 12:03:48 +0100
committerKoen Smets <koen.smets@gmail.com>2013-11-27 12:03:48 +0100
commit909c10e0d155b0fcfcd63129e2f5921a11d9c017 (patch)
tree66fbf0032d8f1df3bb20544025e9db112bab63ce /gitlab.py
parent37e6648fe4127a51601a9456a03bbaf8ff674c10 (diff)
downloadgitlab-909c10e0d155b0fcfcd63129e2f5921a11d9c017.tar.gz
Add SSH key for user
Diffstat (limited to 'gitlab.py')
-rw-r--r--gitlab.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gitlab.py b/gitlab.py
index c6dfed2..368e909 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -549,6 +549,15 @@ class User(GitlabObject):
'extern_uid', 'provider', 'bio']
+class UserKey(GitlabObject):
+ _url = '/users/%(user_id)s/keys'
+ canGet = False
+ canList = False
+ canUpdate = False
+ canDelete = False
+ requiredCreateAttrs = ['user_id', 'title', 'key']
+
+
class CurrentUserKey(GitlabObject):
_url = '/user/keys'
canUpdate = False