Skip to content

Commit f6d9858

Browse files
Merge pull request #1007 from python-gitlab/chore/user-update
chore(user): update user attributes
2 parents 7843ace + 8287a0d commit f6d9858

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gitlab/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from gitlab import utils # noqa
3131

3232
__title__ = "python-gitlab"
33-
__version__ = "2.0.0"
33+
__version__ = "2.0.1"
3434
__author__ = "Gauvain Pocentek"
3535
__email__ = "gauvainpocentek@gmail.com"
3636
__license__ = "LGPL3"

gitlab/v4/objects.py

+5
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ class UserManager(CRUDMixin, RESTManager):
414414
"search",
415415
"custom_attributes",
416416
"status",
417+
"two_factor",
417418
)
418419
_create_attrs = (
419420
tuple(),
@@ -438,6 +439,8 @@ class UserManager(CRUDMixin, RESTManager):
438439
"organization",
439440
"location",
440441
"avatar",
442+
"public_email",
443+
"private_profile",
441444
),
442445
)
443446
_update_attrs = (
@@ -459,6 +462,8 @@ class UserManager(CRUDMixin, RESTManager):
459462
"organization",
460463
"location",
461464
"avatar",
465+
"public_email",
466+
"private_profile",
462467
),
463468
)
464469
_types = {"confirm": types.LowercaseStringAttribute, "avatar": types.ImageAttribute}

0 commit comments

Comments
 (0)