Merge "Add the PATCH method for the monitoring API"
[pti/o2.git] / o2ims / domain / commands.py
index 349188f..9cc51d6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2021 Wind River Systems, Inc.
+# Copyright (C) 2021-2024 Wind River Systems, Inc.
 #
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -37,6 +37,7 @@ class UpdateFaultObject(Command):
 @dataclass
 class PubMessage2SMO(Command):
     data: Message2SMO
+    type: str
 
 
 @dataclass
@@ -136,4 +137,9 @@ class UpdatePserverAcc(UpdateResource):
 
 @dataclass
 class UpdateAlarm(UpdateFaultObject):
-    pass
+    parentid: str
+
+
+@dataclass
+class PurgeAlarmEvent(UpdateFaultObject):
+    data: AlarmEvent2SMO