summaryrefslogtreecommitdiffstats
path: root/mgr
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-02-02 15:23:53 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-02-02 15:23:53 +0800
commit1a6127cb99f577781ebb8b78fc3706b3c9ccb2e4 (patch)
tree35133b3b5035ff7a1c5d248c57d6ba7a4f26a476 /mgr
parent1314f71842a2b2588084fc4d3f9399b3f9cb638f (diff)
Update vfc-vnfmgr serializer schema
Change-Id: Ib002870a30d20ec5de35ea7b0e030d6653cfbea4 Issue-ID: VFC-670 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'mgr')
-rw-r--r--mgr/mgr/vnfreg/serializers.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mgr/mgr/vnfreg/serializers.py b/mgr/mgr/vnfreg/serializers.py
index 84b1250..d2b446c 100644
--- a/mgr/mgr/vnfreg/serializers.py
+++ b/mgr/mgr/vnfreg/serializers.py
@@ -53,41 +53,41 @@ class ResponseSerializer(serializers.Serializer):
class CpSerializer(serializers.Serializer):
cpId = serializers.CharField(
- help_text="the cps id of vnf",
+ help_text="cpId",
required=True,
max_length=200,
allow_null=True)
cpdId = serializers.CharField(
- help_text="the cpds id of vnf",
+ help_text="cpdId",
required=True, max_length=200, allow_null=True)
class SpecificDataSerializer(serializers.Serializer):
autoScalable = serializers.CharField(
- help_text="the autoScalable of vnf",
+ help_text="autoScalable",
required=True,
max_length=200,
allow_null=True)
autoHealable = serializers.CharField(
- help_text="the autoHealable of vnf",
+ help_text="autoHealable",
required=True,
max_length=200,
allow_null=True)
class ConfigDataSerializer(serializers.Serializer):
- cp = CpSerializer(help_text="the cps of vnf", many=True, allow_null=True)
+ cp = CpSerializer(help_text="cps", many=True, allow_null=True)
vnfSpecificData = SpecificDataSerializer(
- help_text="the vnfSpecificData of vnf", required=True, allow_null=True)
+ help_text="vnfSpecificData", required=True, allow_null=True)
class VnfConfigSerializer(serializers.Serializer):
vnfInstanceId = serializers.CharField(
- help_text="the instance id of vnf",
+ help_text="vnfInstanceId",
required=True,
max_length=200,
allow_null=True)
vnfConfigurationData = ConfigDataSerializer(
- help_text="the ConfigDataSerializer of vnf",
+ help_text="vnfConfigurationData",
required=True,
allow_null=True)