update storage & events
This commit is contained in:
parent
1af6b86242
commit
e23d0e4c68
|
@ -17,7 +17,7 @@ class StorageBlock(BaseModel):
|
|||
name:str = Field()
|
||||
size:int = Field()
|
||||
vm_hard_disk:Optional[List[VMHardDisk]] = Field(default=[])
|
||||
|
||||
|
||||
class StoragePool(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
@ -32,7 +32,7 @@ class Storage(BaseModel):
|
|||
name:str = Field()
|
||||
pool: Optional[List[StoragePool]] = Field(default=[], alias='storage_pool')
|
||||
|
||||
class DiskDriver(configDom.DevicesDiskDriver):
|
||||
"""class DiskDriver(configDom.DevicesDiskDriver):
|
||||
name:str = Field(default="qemu")
|
||||
type:configDom.DevicesDiskDriver.typeEnum = Field(default=configDom.DevicesDiskDriver.typeEnum.raw)
|
||||
|
||||
|
@ -66,7 +66,7 @@ class DiskCreate(Disk):
|
|||
order:int = Field(default=0, json_schema_extra={"hidden": True})
|
||||
|
||||
class DiskAttached(BaseModel):
|
||||
order:int = Field()
|
||||
order:int = Field()"""
|
||||
|
||||
class BlockCreate(BaseModel):
|
||||
size:int = Field()
|
||||
|
|
|
@ -67,6 +67,7 @@ class LifeCycle(BaseModel):
|
|||
REBOOT = 100
|
||||
|
||||
company_id:UUID4 = Field()
|
||||
datacenter_id:UUID4 = Field()
|
||||
vm_id:UUID = Field()
|
||||
action:EventType = Field()
|
||||
|
||||
|
|
Loading…
Reference in New Issue