get_user_response module#

class edgeimpulse_api.models.get_user_response.GetUserResponse(
*,
success: StrictBool,
error: StrictStr | None = None,
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,
organizations: List[UserOrganization],
projects: List[Project],
experiments: List[UserExperiment],
evaluation: StrictBool | None = None,
ambassador: StrictBool | None = None,
tier: UserTierEnum,
whitelabels: List[GetUserResponseAllOfWhitelabels] | None = None,
suspended: StrictBool,
notifications: List[StrictStr],
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
activated: StrictBool#
ambassador: StrictBool | None#
company_name: StrictStr | None#
created: datetime#
email: StrictStr#
error: StrictStr | None#
evaluation: StrictBool | None#
experiments: List[UserExperiment]#
classmethod from_dict(
obj: dict,
) GetUserResponse[source]#

Create an instance of GetUserResponse from a dict

classmethod from_json(
json_str: str,
) GetUserResponse[source]#

Create an instance of GetUserResponse 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#
notifications: List[StrictStr]#
organizations: List[UserOrganization]#
pending: StrictBool#
permissions: List[Permission] | None#
photo: StrictStr | None#
projects: List[Project]#
staff_info: StaffInfo#
success: StrictBool#
suspended: StrictBool#
tier: UserTierEnum#
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#
whitelabels: List[GetUserResponseAllOfWhitelabels] | None#