Skip to content

Commit

Permalink
Add SSH key for user
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmets committed Nov 27, 2013
1 parent 37e6648 commit 909c10e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gitlab.py
Expand Up @@ -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
Expand Down

0 comments on commit 909c10e

Please sign in to comment.