From 15125466abcff72b3650e58f46a889788f519bef Mon Sep 17 00:00:00 2001 From: Patricia Reinoso Date: Thu, 13 Jul 2023 14:02:34 +0000 Subject: [PATCH] Base class for VNF delete workflow Change-Id: Ife0e665abeb71fa820894db5251112f22e60699e Signed-off-by: Patricia Reinoso --- osm_common/temporal/workflows/vnf.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/osm_common/temporal/workflows/vnf.py b/osm_common/temporal/workflows/vnf.py index cd540a5..03ba4c8 100644 --- a/osm_common/temporal/workflows/vnf.py +++ b/osm_common/temporal/workflows/vnf.py @@ -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 -- 2.25.1