From d332bfe4f14ffe79c5bb8ee234a571fef9a81aa4 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Thu, 7 Nov 2024 14:20:12 +0100 Subject: [PATCH] update vm --- deevirt_schema/api/vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)