From 2c63b984358cee239966846457acd4f1d8831b70 Mon Sep 17 00:00:00 2001 From: Michal Jagiello Date: Tue, 14 Mar 2023 14:13:21 +0000 Subject: Version 10.4.2 Archive SDC Vendor Issue-ID: INT-2193 Signed-off-by: Michal Jagiello Change-Id: I520ca35a973eb52f3d5625cc282c88bdd06effff --- src/onapsdk/sdc/vendor.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/onapsdk/sdc/vendor.py') diff --git a/src/onapsdk/sdc/vendor.py b/src/onapsdk/sdc/vendor.py index a82e3b9..0618a4f 100644 --- a/src/onapsdk/sdc/vendor.py +++ b/src/onapsdk/sdc/vendor.py @@ -46,6 +46,17 @@ class Vendor(SdcElement): super().__init__() self.name: str = name or "Generic-Vendor" + @classmethod + def _get_all_url(cls) -> str: + """ + Get URL for all elements in SDC. + + Returns: + str: the url + + """ + return f"{cls._base_url()}/items?itemType=vlm" + def onboard(self) -> None: """Onboard the vendor in SDC.""" if not self.status: @@ -106,3 +117,8 @@ class Vendor(SdcElement): def _sdc_path(cls) -> None: """Give back the end of SDC path.""" return cls.VENDOR_PATH + + def archive(self) -> None: + """Archive Vendor.""" + self._action_to_sdc(const.ARCHIVE, action_type=const.ARCHIVE) + self._status = const.ARCHIVED -- cgit 1.2.3-korg