X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fdomain%2Focloud_repo.py;h=cf2d97999cc9b169c8f9496515a2f026ec745f32;hb=73242ddf79513c5b48f8336a049e05e141ea8ba7;hp=4c4a07574dea02be4f4b795a267aadaf7f7b5f0c;hpb=39e022d709689d2fc02d892707971ae852fc55ea;p=pti%2Fo2.git diff --git a/o2ims/domain/ocloud_repo.py b/o2ims/domain/ocloud_repo.py index 4c4a075..cf2d979 100644 --- a/o2ims/domain/ocloud_repo.py +++ b/o2ims/domain/ocloud_repo.py @@ -31,8 +31,8 @@ class OcloudRepository(abc.ABC): self.seen.add(ocloud) return ocloud - def list(self) -> List[ocloud.Ocloud]: - return self._list() + def list(self, *args) -> List[ocloud.Ocloud]: + return self._list(*args) def update(self, ocloud: ocloud.Ocloud): self._update(ocloud) @@ -49,6 +49,10 @@ class OcloudRepository(abc.ABC): def _get(self, ocloud_id) -> ocloud.Ocloud: raise NotImplementedError + @abc.abstractmethod + def _list(self, *args) -> List[ocloud.Ocloud]: + raise NotImplementedError + @abc.abstractmethod def _update(self, ocloud: ocloud.Ocloud): raise NotImplementedError