From: aa Date: Thu, 6 Jul 2023 12:17:24 +0000 (+0300) Subject: OSMENG-1095 VDU Terminate WF X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=7e637e8308b384e30756a3e2ebaef8a4c1117c9d;p=osm%2Fcommon.git OSMENG-1095 VDU Terminate WF Adding stub class of VduTerminateWorkflow Change-Id: I378fff51241be3ff7c0a97604db0b9fcc7a08931 Signed-off-by: aa --- diff --git a/osm_common/temporal/workflows/vdu.py b/osm_common/temporal/workflows/vdu.py index e7f2f84..181bc75 100644 --- a/osm_common/temporal/workflows/vdu.py +++ b/osm_common/temporal/workflows/vdu.py @@ -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