Fix INF-371 inventoryChange notification of the resourceType, resourcePool, Dms
[pti/o2.git] / o2ims / domain / events.py
index eb0250f..ede48d2 100644 (file)
@@ -31,27 +31,29 @@ class OcloudChanged(Event):
 @dataclass
 class ResourceTypeChanged(Event):
     id: str
+    notificationEventType: NotificationEventEnum
     updatetime: datetime.now()
 
 
 @dataclass
-class ResourcePoolChanged(Event):
+class DmsChanged(Event):
     id: str
     notificationEventType: NotificationEventEnum
     updatetime: datetime.now()
 
 
 @dataclass
-class ResourceChanged(Event):
+class ResourcePoolChanged(Event):
     id: str
-    resourcePoolId: str
     notificationEventType: NotificationEventEnum
     updatetime: datetime.now()
 
 
 @dataclass
-class ConfigurationChanged(Event):
+class ResourceChanged(Event):
     id: str
+    resourcePoolId: str
+    notificationEventType: NotificationEventEnum
     updatetime: datetime.now()