OSMENG-1088: NS Terminate Workflow 88/13788/5 paas
authorDario Faccin <dario.faccin@canonical.com>
Fri, 28 Jul 2023 12:04:23 +0000 (14:04 +0200)
committerDario Faccin <dario.faccin@canonical.com>
Fri, 28 Jul 2023 15:30:50 +0000 (17:30 +0200)
Add stub for workflow definition

Change-Id: I56d1807abc8c40ee7ea7b444b505220c4de3e329
Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
osm_common/temporal/workflows/ns.py

index 70e1e3d..ad21f01 100644 (file)
@@ -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