X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fnf%2Fserializers%2Fnotification_types.py;h=c87b76dda33eb341f2b23b54208458e0211170d4;hb=46ad7c172411214c5432ed93fda4271288077447;hp=5ee5eb03caf54ef86c5d2a482546a54f62ac6d21;hpb=c78cda3f14d09c2d15ed1985be684a73f34282c1;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/nf/serializers/notification_types.py b/lcm/lcm/nf/serializers/notification_types.py index 5ee5eb03..c87b76dd 100644 --- a/lcm/lcm/nf/serializers/notification_types.py +++ b/lcm/lcm/nf/serializers/notification_types.py @@ -14,27 +14,27 @@ from rest_framework import serializers -from affected_vnfcs import AffectedVnfcsSerializer -from affected_vls import AffectedVLsSerializer -from affected_storages import AffectedStoragesSerializer +from .affected_vnfcs import AffectedVnfcsSerializer +from .affected_vls import AffectedVLsSerializer +from .affected_storages import AffectedStoragesSerializer from lcm.nf.const import LCM_OPERATION_TYPES, LCM_OPERATION_STATE_TYPES -from link import LinkSerializer -from response import ProblemDetailsSerializer -from ext_virtual_link_info import ExtVirtualLinkInfoSerializer -from vnf_info_modifications import VnfInfoModificationsSerializer +from .link import linkSerializer +from .response import ProblemDetailsSerializer +from .ext_virtual_link_info import ExtVirtualLinkInfoSerializer +from .vnf_info_modifications import VnfInfoModificationsSerializer -class LinksSerializer(serializers.Serializer): - vnfInstance = LinkSerializer( +class LccnLinksSerializer(serializers.Serializer): + vnfInstance = linkSerializer( help_text="Link to the resource representing the VNF instance to " "which the notified change applies.", required=True, allow_null=False) - subscription = LinkSerializer( + subscription = linkSerializer( help_text="Link to the related subscription.", required=True, allow_null=False) - vnfLcmOpOcc = LinkSerializer( + vnfLcmOpOcc = linkSerializer( help_text="Link to the VNF lifecycle management operation" "occurrence that this notification is related to. Shall be" "present if there is a related lifecycle operation occurance.", @@ -123,6 +123,6 @@ class VnfLcmOperationOccurrenceNotification(serializers.Serializer): allow_null=True, required=False ) - _links = LinksSerializer( + _links = LccnLinksSerializer( help_text="Links to resources related to this resource.", required=True)