From: fujinhua Date: Thu, 1 Mar 2018 00:59:51 +0000 (+0800) Subject: Add Links Serializer X-Git-Tag: v1.1.0~117 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6e42f52bdc7872856b5ffa03499ecafba142cbd1;p=vfc%2Fnfvo%2Flcm.git Add Links Serializer Change-Id: Ib335d3a114770e34b03795f895c3414738523b22 Issue-ID: VFC-779 Signed-off-by: fujinhua --- diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py index e64c63dc..50432b25 100644 --- a/lcm/v2/serializers.py +++ b/lcm/v2/serializers.py @@ -383,6 +383,21 @@ class ExtManagedVirtualLinkDataSerializer(serializers.Serializer): ) +class LinksSerializer(serializers.Serializer): + self = serializers.CharField( + help_text="URI of this resource.", + required=True + ) + vnfLcmOpOcc = serializers.CharField( + help_text="Related VNF lifecycle management operation occurrence.", + required=True + ) + vnfInstance = serializers.CharField( + help_text="Related VNF instance.", + required=True + ) + + class GrantSerializer(serializers.Serializer): id = serializers.CharField( help_text="Identifier of the grant.", @@ -456,3 +471,7 @@ class GrantSerializer(serializers.Serializer): help_text="Information about internal VLs that are managed by other entities than the VNFM.", many=True ) + links = LinksSerializer( + help_text="Links to resources related to this resource.", + required=True + )