update deevirt metadata
This commit is contained in:
parent
f6ecaf3f9a
commit
781f265ca4
|
@ -20,12 +20,15 @@ class UnitEnum(str, Enum):
|
|||
GiB = "GiB"
|
||||
TiB = "TiB"
|
||||
|
||||
class MetadataDeevirt(BaseXmlModel, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}):
|
||||
class MetadataDeevirt(BaseXmlModel, tag="instance"):
|
||||
company_id:UUID4 = element()
|
||||
datacenter_id:UUID4 = element()
|
||||
|
||||
class MetadataDeevirtNS(MetadataDeevirt, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}):
|
||||
pass
|
||||
|
||||
class Metadata(BaseXmlModel):
|
||||
instance:Optional[MetadataDeevirt] = element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'})
|
||||
instance:Optional[MetadataDeevirtNS] = element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'})
|
||||
|
||||
class OSType(BaseXmlModel, search_mode='ordered'):
|
||||
class archEnum(str, Enum):
|
||||
|
|
Loading…
Reference in New Issue