From: Dario Faccin Date: Fri, 28 Jul 2023 12:04:23 +0000 (+0200) Subject: OSMENG-1088: NS Terminate Workflow X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fpaas;p=osm%2Fcommon.git OSMENG-1088: NS Terminate Workflow Add stub for workflow definition Change-Id: I56d1807abc8c40ee7ea7b444b505220c4de3e329 Signed-off-by: Dario Faccin --- diff --git a/osm_common/temporal/workflows/ns.py b/osm_common/temporal/workflows/ns.py index 70e1e3d..ad21f01 100644 --- a/osm_common/temporal/workflows/ns.py +++ b/osm_common/temporal/workflows/ns.py @@ -75,3 +75,26 @@ class NsDeleteRecordsWorkflow(BaseWorkflow): @abstractmethod async def run(self, workflow_input: Input) -> None: pass + + +class NsTerminateWorkflow(BaseWorkflow): + @dataclass + class Input: + """ + + Attributes: + ----------- + ns_uuid : str + The UUID of the NS which is stored in the OSM nsrs + collection in Mongo. + vim_uuid : str + The UUID of the VIM account as stored in the OSM vim + collection in Mongo + """ + + ns_uuid: str + vim_uuid: str + + @abstractmethod + async def run(self, workflow_input: Input) -> None: + pass