From eebe8f521c19c73762e3678857a001ad0267e1e2 Mon Sep 17 00:00:00 2001 From: Mark Beierl Date: Tue, 11 Apr 2023 21:01:22 +0000 Subject: [PATCH] Adding check charm status input Change-Id: Ie6fc6da97de61bb6fbd78d2c89dc0c441f0a9f9a Signed-off-by: Mark Beierl --- .../dataclasses/temporal_dataclasses.py | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/osm_common/dataclasses/temporal_dataclasses.py b/osm_common/dataclasses/temporal_dataclasses.py index 050ae9a..a780243 100644 --- a/osm_common/dataclasses/temporal_dataclasses.py +++ b/osm_common/dataclasses/temporal_dataclasses.py @@ -384,7 +384,36 @@ class ModelInfo: @dataclass -class ChangeVnfStateInput: +class CheckCharmStatusInput: + """ + Input dataclass for checking on a specific charm's deployment + status + + Attributes: + ----------- + 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 to create in Juju. + + application_name : str + Name of the application that the state is going to be + awaited. + + poll_interval : int (optional) + Time, in seconds, to wait between status checks. + """ + + vim_uuid: str + model_name: str + application_name: str + poll_interval: int = 1 + + +@dataclass +class ChangeNFStateInput: """ Input dataclass for changing VNF State. -- 2.25.1