10000 Update User options for creation and update · python-gitlab/python-gitlab@9d80699 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d80699

Browse files
author
Gauvain Pocentek
committed
Update User options for creation and update
Fixes #246
1 parent f05a24b commit 9d80699

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

gitlab/objects.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -614,16 +614,17 @@ class UserProjectManager(BaseManager):
614614
class User(GitlabObject):
615615
_url = '/users'
616616
shortPrintAttr = 'username'
617-
requiredCreateAttrs = ['email', 'username', 'name', 'password']
618-
optionalCreateAttrs = ['skype', 'linkedin', 'twitter', 'projects_limit',
619-
'extern_uid', 'provider', 'bio', 'admin',
620-
'can_create_group', 'website_url', 'confirm',
621-
'external']
617+
requiredCreateAttrs = ['email', 'username', 'name']
618+
optionalCreateAttrs = ['password', 'reset_password', 'skype', 'linkedin',
619+
'twitter', 'projects_limit', 'extern_uid',
620+
'provider', 'bio', 'admin', 'can_create_group',
621+
'website_url', 'confirm', 'external',
622+
'organization', 'location']
622623
requiredUpdateAttrs = ['email', 'username', 'name']
623624
optionalUpdateAttrs = ['password', 'skype', 'linkedin', 'twitter',
624625
'projects_limit', 'extern_uid', 'provider', 'bio',
625626
'admin', 'can_create_group', 'website_url',
626-
'confirm', 'external']
627+
'confirm', 'external', 'organization', 'location']
627628
managers = (
628629
('emails', UserEmailManager, [('user_id', 'id')]),
629630
('keys', UserKeyManager, [('user_id', 'id')]),

0 commit comments

Comments
 (0)
0