summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
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