From: Patricia Reinoso Date: Thu, 13 Jul 2023 14:02:34 +0000 (+0000) Subject: Base class for VNF delete workflow X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F13672%2F2;p=osm%2Fcommon.git Base class for VNF delete workflow Change-Id: Ife0e665abeb71fa820894db5251112f22e60699e Signed-off-by: Patricia Reinoso --- 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