X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2Fdataclasses%2Ftemporal_dataclasses.py;h=de541f2e9592af45d0c6f9766e9a9e5d754d732b;hb=4407a0e03c999f5729874d48fe6dd6013e4e5812;hp=f1971868d730e09a1919ccb2efb55b48e185a94b;hpb=0d5d9aa9a7292f30e64d7da20fc430c7fe6e7e38;p=osm%2Fcommon.git diff --git a/osm_common/dataclasses/temporal_dataclasses.py b/osm_common/dataclasses/temporal_dataclasses.py index f197186..de541f2 100644 --- a/osm_common/dataclasses/temporal_dataclasses.py +++ b/osm_common/dataclasses/temporal_dataclasses.py @@ -162,13 +162,10 @@ class VduComputeConstraints: cores : int (Number of virtual CPUs) mem: int (GB) - - cloud: str (VIM cloud type) """ cores: int mem: int - cloud: str @dataclass @@ -183,12 +180,18 @@ 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 @@ -210,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