update to 0.1.34
This commit is contained in:
parent
fe00221ff8
commit
2e804ee9ca
|
@ -40,6 +40,9 @@ class StorageBlockAttached(BaseModel):
|
||||||
id:UUID4 = Field()
|
id:UUID4 = Field()
|
||||||
order:int = Field()
|
order:int = Field()
|
||||||
|
|
||||||
|
class StorageBlockDeattached(BaseModel):
|
||||||
|
id:UUID4 = Field()
|
||||||
|
|
||||||
"""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)
|
||||||
|
|
|
@ -162,20 +162,7 @@ class VM(BaseModel):
|
||||||
# Devices
|
# Devices
|
||||||
devices:Devices = Field(default=Devices(), description="Matériel virtuel: Périphériques")
|
devices:Devices = Field(default=Devices(), description="Matériel virtuel: Périphériques")
|
||||||
|
|
||||||
"""VM LIST GET"""
|
|
||||||
class VMs(BaseModel):
|
|
||||||
model_config = ConfigDict(from_attributes=True)
|
|
||||||
|
|
||||||
class Datacenter(BaseModel):
|
|
||||||
model_config = ConfigDict(from_attributes=True)
|
|
||||||
|
|
||||||
id:UUID4
|
|
||||||
name:str
|
|
||||||
|
|
||||||
id:UUID4
|
|
||||||
name:str
|
|
||||||
state:int
|
|
||||||
datacenter:Optional[Datacenter] = Field(default=[])
|
|
||||||
|
|
||||||
"""VM GET"""
|
"""VM GET"""
|
||||||
class VMGetVCPU(VCPU):
|
class VMGetVCPU(VCPU):
|
||||||
|
@ -212,6 +199,21 @@ class VMGet(VM):
|
||||||
os:VMGetOS = Field(default=VMGetOS(), description="Options VM: Options de démarrage.")
|
os:VMGetOS = Field(default=VMGetOS(), description="Options VM: Options de démarrage.")
|
||||||
devices:VMGetDevices = Field(default=VMGetDevices(), description="Matériel virtuel: Périphériques")
|
devices:VMGetDevices = Field(default=VMGetDevices(), description="Matériel virtuel: Périphériques")
|
||||||
|
|
||||||
|
"""VM LIST GET"""
|
||||||
|
class VMs(BaseModel):
|
||||||
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
|
class Datacenter(BaseModel):
|
||||||
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
|
id:UUID4
|
||||||
|
name:str
|
||||||
|
|
||||||
|
id:UUID4
|
||||||
|
name:str
|
||||||
|
state:VMGet.StateEnum = Field(default=None)
|
||||||
|
datacenter:Optional[Datacenter] = Field(default=[])
|
||||||
|
|
||||||
"""VM POST"""
|
"""VM POST"""
|
||||||
class VMPost(VM):
|
class VMPost(VM):
|
||||||
id:UUID4 = Field(default_factory=uuid4)
|
id:UUID4 = Field(default_factory=uuid4)
|
||||||
|
@ -219,8 +221,7 @@ class VMPost(VM):
|
||||||
|
|
||||||
"""VM DELETE"""
|
"""VM DELETE"""
|
||||||
class VMDelete(BaseModel):
|
class VMDelete(BaseModel):
|
||||||
id:UUID4 = Field()
|
all_delete:Optional[bool] = Field(default=False)
|
||||||
inventory_only:Optional[bool] = Field(default=True)
|
|
||||||
|
|
||||||
"""VM STOP"""
|
"""VM STOP"""
|
||||||
class VMStop(BaseModel):
|
class VMStop(BaseModel):
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='deevirt_schema',
|
name='deevirt_schema',
|
||||||
version='0.1.33',
|
version='0.1.34',
|
||||||
description='Deevirt Schema',
|
description='Deevirt Schema',
|
||||||
url='https://git.celeonet.fr/Deevirt/deevirt_schema.git',
|
url='https://git.celeonet.fr/Deevirt/deevirt_schema.git',
|
||||||
author='Celeonet',
|
author='Celeonet',
|
||||||
|
|
Loading…
Reference in New Issue