From da88431dc408d254f2266d0e94bf4f9da8a6fbc9 Mon Sep 17 00:00:00 2001 From: Dario Faccin Date: Fri, 28 Jul 2023 14:04:23 +0200 Subject: [PATCH] OSMENG-1088: NS Terminate Workflow Add stub for workflow definition Change-Id: I56d1807abc8c40ee7ea7b444b505220c4de3e329 Signed-off-by: Dario Faccin --- osm_common/temporal/workflows/ns.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- 2.25.1