Base class for VNF delete workflow 72/13672/2
authorPatricia Reinoso <patricia.reinoso@canonical.com>
Thu, 13 Jul 2023 14:02:34 +0000 (14:02 +0000)
committergatici <gulsum.atici@canonical.com>
Mon, 17 Jul 2023 11:58:12 +0000 (14:58 +0300)
Change-Id: Ife0e665abeb71fa820894db5251112f22e60699e
Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
osm_common/temporal/workflows/vnf.py

index cd540a5..03ba4c8 100644 (file)
@@ -104,3 +104,31 @@ class VnfTerminateWorkflow(BaseWorkflow):
     @abstractmethod
     async def run(self, workflow_input: Input) -> None:
         pass
+
+
+class VnfDeleteWorkflow(BaseWorkflow):
+    """Delete a VNF.
+
+    Workflow Identifier:
+        It is recommended that the ID for the VNF is referred as a workflow
+        ID when invoking this workflow.
+    """
+
+    @dataclass
+    class Input:
+        """
+        Input dataclass for workflow that deletes a VNF.
+
+        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