swagger_server.models.role module

class swagger_server.models.role.Role(id: int = None, label: swagger_server.models.role_label.RoleLabel = None, requires_2fa: bool = None, description: str = None, created_at: datetime.datetime = None, updated_at: datetime.datetime = None)[source]

Bases: swagger_server.models.base_model_.Model

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

created_at

Gets the created_at of this Role.

Returns:The created_at of this Role.
Return type:datetime
description

Gets the description of this Role.

Returns:The description of this Role.
Return type:str
classmethod from_dict(dikt) → swagger_server.models.role.Role[source]

Returns the dict as a model

Parameters:dikt – A dict.
Type:dict
Returns:The role of this Role. # noqa: E501
Return type:Role
id

Gets the id of this Role.

Returns:The id of this Role.
Return type:int
label

Gets the label of this Role.

Returns:The label of this Role.
Return type:RoleLabel
requires_2fa

Gets the requires_2fa of this Role.

Returns:The requires_2fa of this Role.
Return type:bool
updated_at

Gets the updated_at of this Role.

Returns:The updated_at of this Role.
Return type:datetime