X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_common%2Fdataclasses%2Ftemporal_dataclasses.py;h=38dfcfabc4d80bddfefa26790cbf1dd3309a8d66;hb=refs%2Fchanges%2F42%2F13242%2F5;hp=a78024357accb77a1c9b92f1f0d0c4837066498c;hpb=eebe8f521c19c73762e3678857a001ad0267e1e2;p=osm%2Fcommon.git diff --git a/osm_common/dataclasses/temporal_dataclasses.py b/osm_common/dataclasses/temporal_dataclasses.py index a780243..38dfcfa 100644 --- a/osm_common/dataclasses/temporal_dataclasses.py +++ b/osm_common/dataclasses/temporal_dataclasses.py @@ -17,6 +17,7 @@ from dataclasses import dataclass from enum import auto, IntEnum +from typing import List ####################################################################################### @@ -102,27 +103,6 @@ class NsLcmOperationInput: nslcmop: dict -@dataclass -class NsInstantiateInput: - """ - Input dataclass for workflow that instantiate NS. - - Attributes: - ----------- - ns_uuid : str - The UUID of the NS as stored in the OSM nsr - collection in Mongo - - op_id: str - The operation (task) id for this workflow. This is used - by the workflow at the end to update the status of the - operation in Mongo vim collection. - """ - - ns_uuid: str - op_id: str - - @dataclass class CharmInfo: """ @@ -171,25 +151,12 @@ class VnfInstantiateInput: The UUID of the VNF which is stored in the OSM vnfrs collection in Mongo. - """ - - vnfr_uuid: str - - -@dataclass -class PrepareVnfInput: - """ - Input dataclass for workflow that prepares a VNF. - - Attributes: - ----------- - vnfr_uuid : str - The UUID of the VNF which is stored in the OSM vnfrs - collection in Mongo. + model_name: str """ vnfr_uuid: str + model_name: str ####################################################################################### @@ -413,7 +380,7 @@ class CheckCharmStatusInput: @dataclass -class ChangeNFStateInput: +class ChangeVnfStateInput: """ Input dataclass for changing VNF State. @@ -512,3 +479,27 @@ class GetVnfDetailsOutput: vnfr: dict vnfd: dict + + +@dataclass +class GetVnfRecordIdsInput: + """ + Attributes: + ----------- + ns_uuid : str + The UUID of the NS from which to retrieve the VNF records. + """ + + ns_uuid: str + + +@dataclass +class GetVnfRecordIdsOutput: + """ + Attributes: + ----------- + vnfr_ids : list[str] + List of the VNF record IDs associated with the NS. + """ + + vnfr_ids: List[str]