From 7e637e8308b384e30756a3e2ebaef8a4c1117c9d Mon Sep 17 00:00:00 2001 From: aa Date: Thu, 6 Jul 2023 15:17:24 +0300 Subject: [PATCH] OSMENG-1095 VDU Terminate WF Adding stub class of VduTerminateWorkflow Change-Id: I378fff51241be3ff7c0a97604db0b9fcc7a08931 Signed-off-by: aa --- osm_common/temporal/workflows/vdu.py | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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 -- 2.25.1