Energy transfer schema

TCKDB backend app schemas energy transfer (trans) module

class tckdb.backend.app.schemas.trans.Trans(*, model: str, parameters: Dict[str, Union[Tuple[Union[float, int], str], float, int]], reviewer_flags: Dict[str, str] = None, id: int)[source]

Properties to return to client

class tckdb.backend.app.schemas.trans.TransBase(*, model: tckdb.backend.app.schemas.trans.TransModelEnum, parameters: Dict[str, Union[Tuple[float, str], float]], reviewer_flags: Dict[str, str] = None)[source]

A TransBase class (shared properties)

classmethod check_parameters(value, values)[source]

Trans.parameters validator

classmethod check_reviewer_flags(value)[source]

Trans.reviewer_flags validator

class tckdb.backend.app.schemas.trans.TransCreate(*, model: str, parameters: Dict[str, Union[Tuple[Union[float, int], str], float, int]], reviewer_flags: Dict[str, str] = None)[source]

Create a Trans item: Properties to receive on item creation

class tckdb.backend.app.schemas.trans.TransInDB(*, model: str, parameters: Dict[str, Union[Tuple[Union[float, int], str], float, int]], reviewer_flags: Dict[str, str] = None, id: int)[source]

Properties stored in DB

class tckdb.backend.app.schemas.trans.TransInDBBase(*, model: str, parameters: Dict[str, Union[Tuple[Union[float, int], str], float, int]], reviewer_flags: Dict[str, str] = None, id: int)[source]

Properties shared by models stored in DB

class tckdb.backend.app.schemas.trans.TransModelEnum(value)[source]

The supported Trans models

class tckdb.backend.app.schemas.trans.TransUpdate(*, model: str, parameters: Dict[str, Union[Tuple[Union[float, int], str], float, int]], reviewer_flags: Dict[str, str] = None)[source]

Update a Trans item: Properties to receive on item update