update metadata

This commit is contained in:
Mickael BOURNEUF 2024-10-24 16:32:16 +02:00
parent b5e8c4b927
commit 5793d9411d
1 changed files with 6 additions and 3 deletions

View File

@ -20,9 +20,12 @@ class UnitEnum(str, Enum):
GiB = "GiB"
TiB = "TiB"
class Metadata(BaseXmlModel, search_mode='ordered'):
# wrapped("metadata", element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.com/'}))
pass
class MetadataDeevirt(BaseXmlModel):
company_id:UUID4 = element()
datacenter_id:UUID4 = element()
class Metadata(BaseXmlModel):
instance:Optional[MetadataDeevirt] = element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'})
class OSType(BaseXmlModel, search_mode='ordered'):
class archEnum(str, Enum):