user module#

class edgeimpulse_api.models.user.User(
*,
id: StrictInt,
username: StrictStr,
name: StrictStr,
email: StrictStr,
photo: StrictStr | None = None,
created: datetime,
lastSeen: datetime | None = None,
staffInfo: StaffInfo,
pending: StrictBool,
lastTosAcceptanceDate: datetime | None = None,
jobTitle: StrictStr | None = None,
permissions: List[Permission] | None = None,
companyName: StrictStr | None = None,
activated: StrictBool,
mfaConfigured: StrictBool,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
activated: StrictBool#
company_name: StrictStr | None#
created: datetime#
email: StrictStr#
classmethod from_dict(obj: dict) User[source]#

Create an instance of User from a dict

classmethod from_json(json_str: str) User[source]#

Create an instance of User from a JSON string

id: StrictInt#
job_title: StrictStr | None#
last_seen: datetime | None#
last_tos_acceptance_date: datetime | None#
mfa_configured: StrictBool#
name: StrictStr#
pending: StrictBool#
permissions: List[Permission] | None#
photo: StrictStr | None#
staff_info: StaffInfo#
to_dict()[source]#

Returns the dictionary representation of the model using alias

to_json() str[source]#

Returns the JSON representation of the model using alias

to_str() str[source]#

Returns the string representation of the model using alias

username: StrictStr#