update
This commit is contained in:
parent
f87313eef9
commit
00235f0084
|
@ -630,6 +630,9 @@ class Devices(BaseXmlModel, search_mode='ordered'):
|
|||
tpm:Optional[TPM] = element(default=None)
|
||||
|
||||
class Dom(BaseXmlModel, tag='domain', search_mode='ordered'):
|
||||
class typeEnum(str, Enum):
|
||||
kvm = "kvm"
|
||||
|
||||
class on_poweroffEnum(str, Enum):
|
||||
destroy = "destroy"
|
||||
restart = "restart"
|
||||
|
@ -650,6 +653,8 @@ class Dom(BaseXmlModel, tag='domain', search_mode='ordered'):
|
|||
pause = "pause"
|
||||
ignore = "ignore"
|
||||
|
||||
type:typeEnum = attr(default=typeEnum.kvm)
|
||||
|
||||
# General metadata
|
||||
uuid:Optional[UUID4] = element(default=None)
|
||||
genid:Optional[UUID4] = element(default=None)
|
||||
|
|
Loading…
Reference in New Issue