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