X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2Fdataclasses%2Ftemporal_dataclasses.py;h=de541f2e9592af45d0c6f9766e9a9e5d754d732b;hb=4407a0e03c999f5729874d48fe6dd6013e4e5812;hp=38dfcfabc4d80bddfefa26790cbf1dd3309a8d66;hpb=58076cae2f6b550af6c00ab301e1e026c5833423;p=osm%2Fcommon.git diff --git a/osm_common/dataclasses/temporal_dataclasses.py b/osm_common/dataclasses/temporal_dataclasses.py index 38dfcfa..de541f2 100644 --- a/osm_common/dataclasses/temporal_dataclasses.py +++ b/osm_common/dataclasses/temporal_dataclasses.py @@ -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