1818import re # noqa: F401
1919import json
2020
21- from pydantic import BaseModel , ConfigDict , Field
21+ from pydantic import BaseModel , ConfigDict
2222from typing import Any , ClassVar , Dict , List
2323from flightctl .models .device_resource_status_type import DeviceResourceStatusType
2424from typing import Optional , Set
@@ -28,10 +28,10 @@ class DeviceResourceStatus(BaseModel):
2828 """
2929 Current status of the resources of the device.
3030 """ # noqa: E501
31- cpu : DeviceResourceStatusType = Field ( alias = "CPU" )
32- memory : DeviceResourceStatusType = Field ( alias = "Memory" )
33- disk : DeviceResourceStatusType = Field ( alias = "Disk" )
34- __properties : ClassVar [List [str ]] = ["CPU " , "Memory " , "Disk " ]
31+ cpu : DeviceResourceStatusType
32+ memory : DeviceResourceStatusType
33+ disk : DeviceResourceStatusType
34+ __properties : ClassVar [List [str ]] = ["cpu " , "memory " , "disk " ]
3535
3636 model_config = ConfigDict (
3737 populate_by_name = True ,
@@ -84,9 +84,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
8484 return cls .model_validate (obj )
8585
8686 _obj = cls .model_validate ({
87- "CPU " : obj .get ("CPU " ),
88- "Memory " : obj .get ("Memory " ),
89- "Disk " : obj .get ("Disk " )
87+ "cpu " : obj .get ("cpu " ),
88+ "memory " : obj .get ("memory " ),
89+ "disk " : obj .get ("disk " )
9090 })
9191 return _obj
9292
0 commit comments