Fix INF-344 resourceType fields on alarmDictionary
[pti/o2.git] / o2ims / domain / alarm_repo.py
index 72342f4..41205db 100644 (file)
@@ -96,6 +96,10 @@ class AlarmDefinitionRepository(abc.ABC):
     def _get(self, definition_id) -> obj.AlarmDefinition:
         raise NotImplementedError
 
+    @abc.abstractmethod
+    def _list(self, **kwargs) -> List[obj.AlarmDefinition]:
+        raise NotImplementedError
+
     @abc.abstractmethod
     def _update(self, definition: obj.AlarmDefinition):
         raise NotImplementedError
@@ -137,7 +141,7 @@ class AlarmDictionaryRepository(abc.ABC):
         raise NotImplementedError
 
     @abc.abstractmethod
-    def _update(self, dictionary: obj.AlarmDictionary):
+    def _list(self, **kwargs) -> List[obj.AlarmDictionary]:
         raise NotImplementedError
 
     @abc.abstractmethod
@@ -224,6 +228,10 @@ class AlarmProbableCauseRepository(abc.ABC):
     def _get(self, probable_cause_id) -> obj.ProbableCause:
         raise NotImplementedError
 
+    @abc.abstractmethod
+    def _list(self, **kwargs) -> List[obj.ProbableCause]:
+        raise NotImplementedError
+
     @abc.abstractmethod
     def _update(self, probable_cause: obj.ProbableCause):
         raise NotImplementedError