disk.py
1 from pydantic import Field 2 3 from .mainboard import Interface 4 from ..model import Model 5 6 7 class Disk(Model): 8 id: int 9 type: str = Field(alias="diskTyp") 10 capacity: int 11 writing_speed: int = Field(alias="writingSpeed") 12 reading_speed: int = Field(alias="readingSpeed") 13 interface: Interface 14 power: int