X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2Ftemporal%2Fworkflows%2Fvnf.py;h=03ba4c8d0865e9816f0243162f8e5d3fb61b0cf8;hb=e56853bb52d463573442303231094c1d109027f5;hp=cd540a59a75eb925e4dc231e4534527cdddf4823;hpb=201d962060b06355c86067e3ce4cc85ff7e4af1c;p=osm%2Fcommon.git 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