From 5793d9411def9fb7e605f7e7d8ecd58b2f81c056 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Thu, 24 Oct 2024 16:32:16 +0200 Subject: [PATCH] update metadata --- deevirt_schema/libvirt/dom/config.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deevirt_schema/libvirt/dom/config.py b/deevirt_schema/libvirt/dom/config.py index 92ff556..4017ee9 100644 --- a/deevirt_schema/libvirt/dom/config.py +++ b/deevirt_schema/libvirt/dom/config.py @@ -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):