diff options
author | Max Wittig <max.wittig@siemens.com> | 2019-08-10 14:57:22 +0200 |
---|---|---|
committer | Max Wittig <max.wittig@siemens.com> | 2019-08-10 14:57:22 +0200 |
commit | a98e0560d72e9dffbdbd45cb5d0a3cd45932cd00 (patch) | |
tree | 023f1b55a2cc67fba5f961d6c59cc0b014cc0c19 /gitlab/v4/objects.py | |
parent | 2b53b33abeb74599897c0c13f64384d1d528373f (diff) | |
download | gitlab-test/todo-tests.tar.gz |
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r-- | gitlab/v4/objects.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 2642a40..8da455a 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -143,6 +143,16 @@ class UserCustomAttributeManager(RetrieveMixin, SetMixin, DeleteMixin, RESTManag _from_parent_attrs = {"user_id": "id"} +class UserStatus(ObjectDeleteMixin, RESTObject): + _id_attr = "key" + + +class UserStatusManager(RetrieveMixin, SetMixin, DeleteMixin, RESTManager): + _path = "/users/%(user_id)s/status" + _obj_cls = UserStatus + _from_parent_attrs = {"user_id": "id"} + + class UserEmail(ObjectDeleteMixin, RESTObject): _short_print_attr = "email" @@ -266,6 +276,7 @@ class User(SaveMixin, ObjectDeleteMixin, RESTObject): _short_print_attr = "username" _managers = ( ("customattributes", "UserCustomAttributeManager"), + ("status", "UserStatusManager"), ("emails", "UserEmailManager"), ("events", "UserEventManager"), ("gpgkeys", "UserGPGKeyManager"), |