update vm

This commit is contained in:
Mickael BOURNEUF 2024-11-07 14:20:12 +01:00
parent 49be491f25
commit d332bfe4f1
1 changed files with 2 additions and 1 deletions

View File

@ -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)