update deevirt metadata

This commit is contained in:
Mickael BOURNEUF 2024-10-25 11:06:45 +02:00
parent f6ecaf3f9a
commit 781f265ca4
1 changed files with 5 additions and 2 deletions

View File

@ -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):