Fix: the resource's parameter 'parentId' is resourcepool ID
[pti/o2.git] / o2ims / domain / subscription_obj.py
index dc3145f..596a616 100644 (file)
@@ -45,13 +45,19 @@ class Message2SMO(Serializer):
         self.updatetime = updatetime
 
 
+class RegistrationMessage(Serializer):
+    def __init__(self, is_all: bool = None, id: str = '') -> None:
+        self.all = is_all if is_all is not None else False
+        self.id = id
+
+
 @dataclass
 class EventState():
     Initial = 0
-    NotInstalled = 1
+    NotInstalled = 1
     Installing = 2
     Installed = 3
     Updating = 4
     Uninstalling = 5
     Abnormal = 6
-    Deleted = 7
+    Deleting = 7