return alarm_event_record
def list(self, **kwargs) -> List[obj.AlarmEventRecord]:
- return self._list(**kwargs)[1]
+ return self._list(*[], **kwargs)[1]
- def list_with_count(self, **kwargs) -> \
+ def list_with_count(self, *args, **kwargs) -> \
Tuple[int, List[obj.AlarmEventRecord]]:
- return self._list(**kwargs)
+ return self._list(*args, **kwargs)
def update(self, alarm_event_record: obj.AlarmEventRecord):
self._update(alarm_event_record)
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
raise NotImplementedError
@abc.abstractmethod
- def _update(self, dictionary: obj.AlarmDictionary):
+ def _list(self, **kwargs) -> List[obj.AlarmDictionary]:
raise NotImplementedError
@abc.abstractmethod
return subscription
def list(self, **kwargs) -> List[obj.AlarmSubscription]:
- return self._list(**kwargs)[1]
+ return self._list(*[], **kwargs)[1]
- def list_with_count(self, **kwargs) -> \
+ def list_with_count(self, *args, **kwargs) -> \
Tuple[int, List[obj.AlarmSubscription]]:
- return self._list(**kwargs)
+ return self._list(*args, **kwargs)
def update(self, subscription: obj.AlarmSubscription):
self._update(subscription)
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