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=050ae9a1c829672efdf9af4645205fa6db0ed277;hpb=56e41a595a501017bbaa3cffc7ca52e0d88e8264;p=osm%2Fcommon.git diff --git a/osm_common/dataclasses/temporal_dataclasses.py b/osm_common/dataclasses/temporal_dataclasses.py index 050ae9a..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 ####################################################################################### @@ -383,6 +350,35 @@ class ModelInfo: model_name: str +@dataclass +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 ChangeVnfStateInput: """ @@ -483,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]