From: Daniel Arndt Date: Thu, 13 Jul 2023 09:59:12 +0000 (-0300) Subject: VNF Terminate workflow base class X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=201d962060b06355c86067e3ce4cc85ff7e4af1c;p=osm%2Fcommon.git VNF Terminate workflow base class Change-Id: Icce417ed10e2f3c307e8940ee5c528a0ec5cedc2 Signed-off-by: Daniel Arndt --- diff --git a/osm_common/temporal/workflows/vnf.py b/osm_common/temporal/workflows/vnf.py index 365f953..cd540a5 100644 --- a/osm_common/temporal/workflows/vnf.py +++ b/osm_common/temporal/workflows/vnf.py @@ -85,3 +85,22 @@ class VnfPrepareWorkflow(BaseWorkflow): @abstractmethod async def run(self, workflow_input: Input) -> None: pass + + +class VnfTerminateWorkflow(BaseWorkflow): + @dataclass + class Input: + """ + + Attributes: + ----------- + vnfr_uuid : str + The UUID of the VNF which is stored in the OSM vnfrs + collection in Mongo. + """ + + vnfr_uuid: str + + @abstractmethod + async def run(self, workflow_input: Input) -> None: + pass