Add Resources defination of Grant Req 05/34005/1
authorfujinhua <fu.jinhua@zte.com.cn>
Mon, 5 Mar 2018 08:38:08 +0000 (16:38 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Mon, 5 Mar 2018 08:38:08 +0000 (16:38 +0800)
Change-Id: I4ed216134f539c0efb35b668f990c861647201d7
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/v2/serializers.py

index 417282e..a2eae1b 100644 (file)
@@ -107,6 +107,22 @@ class GrantRequestSerializer(serializers.Serializer):
         allow_null=True,
         allow_blank=True
     )
+    addResources = ResourceDefinitionSerializer(
+        help_text="List of resource definitions in the VNFD for resources to be added by the LCM operation.",
+        many=True
+    )
+    tempResources = ResourceDefinitionSerializer(
+        help_text="List of resource definitions in the VNFD for resources to be temporarily instantiated during the runtime of the LCM operation.",
+        many=True
+    )
+    removeResources = ResourceDefinitionSerializer(
+        help_text="Provides the definitions of resources to be removed by the LCM operation.",
+        many=True
+    )
+    updateResources = ResourceDefinitionSerializer(
+        help_text="Provides the definitions of resources to be modified by the LCM operation.",
+        many=True
+    )
 
 
 class VimConnectionInfoSerializer(serializers.Serializer):