From: Mark Beierl Date: Tue, 11 Apr 2023 21:01:22 +0000 (+0000) Subject: Adding check charm status input X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F13186%2F6;p=osm%2Fcommon.git Adding check charm status input Change-Id: Ie6fc6da97de61bb6fbd78d2c89dc0c441f0a9f9a Signed-off-by: Mark Beierl --- 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.