OSMENG-1048 Implement day1 configuration for VDU
[osm/common.git] / osm_common / dataclasses / temporal_dataclasses.py
index 38dfcfa..de541f2 100644 (file)
@@ -122,6 +122,52 @@ class CharmInfo:
     entity_url: str
 
 
+@dataclass
+class GetVimCloudInput:
+    """
+    Input dataclass for get vim cloud activity.
+
+    Attributes:
+    -----------
+    vnfr_uuid : str
+        The UUID of the VNF which is stored in the OSM vnfrs
+        collection in Mongo.
+
+    """
+
+    vnfr_uuid: str
+
+
+@dataclass
+class GetVimCloudOutput:
+    """
+    Output dataclass for get vim cloud activity.
+
+    Attributes:
+    -----------
+    cloud : str
+        Type of the cloud which is used to Deploy VNF.
+    """
+
+    cloud: str
+
+
+@dataclass
+class VduComputeConstraints:
+    """
+    Input dataclass for VDU constraints
+
+    Attributes:
+    -----------
+    cores : int (Number of virtual CPUs)
+
+    mem: int (GB)
+    """
+
+    cores: int
+    mem: int
+
+
 @dataclass
 class VduInstantiateInput:
     """
@@ -133,11 +179,19 @@ class VduInstantiateInput:
 
     charm_info : CharmInfo
 
+    constraints: VduComputeConstraints
+
+    cloud: VIM cloud type
+
+    config: Config details of application
     """
 
     vim_uuid: str
     model_name: str
     charm_info: CharmInfo
+    constraints: VduComputeConstraints
+    cloud: str
+    config: dict
 
 
 @dataclass
@@ -159,6 +213,37 @@ class VnfInstantiateInput:
     model_name: str
 
 
+@dataclass
+class GetNsRecordInput:
+    """
+    Input dataclass for getting NS record activity.
+
+    Attributes:
+    -----------
+    nsr_uuid :
+        The UUID of the NS record which is stored in the OSM nsrs
+        collection in Mongo.
+
+    """
+
+    nsr_uuid: str
+
+
+@dataclass
+class GetNsRecordOutput:
+    """
+    Output dataclass for getting NS record activity.
+
+    Attributes:
+    -----------
+    nsr : dict
+        NS record retrieved from Database..
+
+    """
+
+    nsr: dict
+
+
 #######################################################################################
 # Activity Dataclasses