User

class pyniryo_nate.models.auth.User(id: str, login: str, name: str, role: Role)[source]

Bases: object

Represents a user in the system.

Parameters:
  • id (str) – The unique identifier of the user.

  • login (str) – The login/email of the user.

  • name (str) – The display name of the user.

  • role (Role) – The role assigned to the user.

Attributes

Methods

id: str
login: str
name: str
role: Role
classmethod from_transport_model(model: User) → User[source]
Parameters:

model (User)

Return type:

User

to_transport_model() → User[source]
Return type:

User