🚧 WIP
This commit is contained in:
@@ -117,6 +117,27 @@ class ClientGroupIn(BaseModel):
|
||||
priority: int = 1
|
||||
|
||||
|
||||
class ClientRoleAssign(BaseModel):
|
||||
"""POST /clients/{username}/roles body — add one role incrementally."""
|
||||
|
||||
rolename: str = Field(min_length=1)
|
||||
priority: int = Field(default=-1, ge=-1, le=100000)
|
||||
|
||||
|
||||
class GroupRoleAssign(BaseModel):
|
||||
"""POST /groups/{groupname}/roles body — add one role incrementally."""
|
||||
|
||||
rolename: str = Field(min_length=1)
|
||||
priority: int = Field(default=-1, ge=-1, le=100000)
|
||||
|
||||
|
||||
class GroupMemberAssign(BaseModel):
|
||||
"""POST /groups/{groupname}/clients body — add one client to a group."""
|
||||
|
||||
username: str = Field(min_length=1)
|
||||
priority: int = Field(default=-1, ge=-1, le=100000)
|
||||
|
||||
|
||||
class MqttClientCreate(BaseModel):
|
||||
username: UsernameStr
|
||||
password: str | None = Field(
|
||||
|
||||
Reference in New Issue
Block a user