Skip to content

Commit 909c10e

Browse files
committed
Add SSH key for user
1 parent 37e6648 commit 909c10e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gitlab.py

+9
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,15 @@ class User(GitlabObject):
549549
'extern_uid', 'provider', 'bio']
550550

551551

552+
class UserKey(GitlabObject):
553+
_url = '/users/%(user_id)s/keys'
554+
canGet = False
555+
canList = False
556+
canUpdate = False
557+
canDelete = False
558+
requiredCreateAttrs = ['user_id', 'title', 'key']
559+
560+
552561
class CurrentUserKey(GitlabObject):
553562
_url = '/user/keys'
554563
canUpdate = False

0 commit comments

Comments
 (0)