diff --git a/gitlab.py b/gitlab.py index c6dfed2a4..368e9097a 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