Add Create a VNF instance api req serializer 15/33115/1
authorfujinhua <fu.jinhua@zte.com.cn>
Tue, 27 Feb 2018 07:55:39 +0000 (15:55 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Tue, 27 Feb 2018 07:55:39 +0000 (15:55 +0800)
Change-Id: I9e4f45e942e2c47d200fa0d7f8fbe4f79297a422
Issue-ID: VFC-779
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/v2/serializers.py
lcm/v2/urls.py
lcm/v2/views.py

index 342c2a8..d4c590c 100644 (file)
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+
+from rest_framework import serializers
+
+
+class CreateVnfRequestSerializer(serializers.Serializer):
+    vnfdId = serializers.CharField(help_text="Identifier that identifies the VNFD which defines the VNF instance to be created", required=True)
+    vnfInstanceName = serializers.CharField(help_text="Human-readable name of the VNF instance to be created", required=False, allow_null=True, allow_blank=True)
+    vnfInstanceDescription = serializers.CharField(help_text="Human-readable description of the VNF instance to be created", required=False, allow_null=True, allow_blank=True)
index b901e88..275ae94 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2016 ZTE Corporation.
+# Copyright 2018 ZTE Corporation.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
index d142176..c077cca 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2016 ZTE Corporation.
+# Copyright 2018 ZTE Corporation.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.