Add support for the "user" path (#211)

Make it possible to manage users via the `user` path.

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
This commit is contained in:
hansmi 2023-09-18 06:48:13 +02:00 committed by GitHub
parent f6ed27c588
commit d235437f8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 0 deletions

View file

@ -3282,6 +3282,20 @@ PATHS = {
},
),
),
('user',): APIData(
unversioned=VersionedAPIData(
primary_keys=('name', ),
fully_understood=True,
fields={
'address': KeyInfo(),
'comment': KeyInfo(can_disable=True, remove_value=''),
'disabled': KeyInfo(default=False),
'group': KeyInfo(),
'name': KeyInfo(),
'password': KeyInfo(write_only=True),
},
),
),
('user', 'aaa'): APIData(
unversioned=VersionedAPIData(
single_value=True,