Adding check charm status input 86/13186/6
authorMark Beierl <mark.beierl@canonical.com>
Tue, 11 Apr 2023 21:01:22 +0000 (21:01 +0000)
committerMark Beierl <mark.beierl@canonical.com>
Mon, 17 Apr 2023 20:27:18 +0000 (20:27 +0000)
Change-Id: Ie6fc6da97de61bb6fbd78d2c89dc0c441f0a9f9a
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
osm_common/dataclasses/temporal_dataclasses.py

index 050ae9a..a780243 100644 (file)
@@ -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.