diff --git a/deevirt_schema/api/vm.py b/deevirt_schema/api/vm.py index 90e1735..6515bae 100644 --- a/deevirt_schema/api/vm.py +++ b/deevirt_schema/api/vm.py @@ -65,10 +65,11 @@ class DevicesDisk(BaseModel): model_config = ConfigDict(from_attributes=True) pool_id:Optional[UUID4] = Field(default=None) - id:UUID4 = Field(default_factory=uuid4) + id:Optional[UUID4] = Field(default_factory=uuid4) size:int = Field() unit:configDom.UnitEnum = Field(default=configDom.UnitEnum.GiB) bus:configDom.DevicesDiskTarget.busEnum = Field(default=configDom.DevicesDiskTarget.busEnum.scsi) + order:Optional[int] = Field(default=0) class DevicesCDROMSource(BaseModel): protocol:configDom.DevicesDiskSource.protocolEnum = Field(default=configDom.DevicesDiskSource.protocolEnum.https)