OSMENG-1095 VDU Terminate WF 45/13645/5
authoraa <gulsum.atici@canonical.com>
Thu, 6 Jul 2023 12:17:24 +0000 (15:17 +0300)
committerbeierlm <mark.beierl@canonical.com>
Thu, 13 Jul 2023 12:35:28 +0000 (14:35 +0200)
Adding stub class of VduTerminateWorkflow

Change-Id: I378fff51241be3ff7c0a97604db0b9fcc7a08931
Signed-off-by: aa <gulsum.atici@canonical.com>
osm_common/temporal/workflows/vdu.py

index e7f2f84..181bc75 100644 (file)
@@ -53,3 +53,32 @@ class VduInstantiateWorkflow(BaseWorkflow):
     @abstractmethod
     async def run(self, workflow_input: Input) -> None:
         pass
+
+
+class VduTerminateWorkflow(BaseWorkflow):
+    """Terminate a VDU"""
+
+    @dataclass
+    class Input:
+        """
+        Input dataclass for workflow that terminates a VDU.
+
+        vim_uuid: str
+            The UUID of the VIM as stored in the OSM vim_accounts
+            collection in Mongo.
+
+        model_name: str
+            Name of the model in Juju where the charm to be removed.
+
+        application_name: str
+            Name of the application whose removal is going to be
+            awaited.
+        """
+
+        vim_uuid: str
+        model_name: str
+        application_name: str
+
+    @abstractmethod
+    async def run(self, workflow_input: Input) -> None:
+        pass