summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-08-20 15:00:25 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-08-20 15:00:25 +0800
commit4a4ed307875700b4e15d79cad841cadf18aa8e64 (patch)
tree3a6af9428151231b9927b3f12385ff530bcbc178 /res
parent68f46c6bee22db471a1f9796f219662f82e2721a (diff)
Udpate description of vnfres serializers
Change-Id: Ia33f4b6a4e17ce7d61a3478daad92a2b3055e1ad Issue-ID: VFC-1009 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'res')
-rw-r--r--res/res/resources/serializers.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/res/res/resources/serializers.py b/res/res/resources/serializers.py
index 919db99..18de392 100644
--- a/res/res/resources/serializers.py
+++ b/res/res/resources/serializers.py
@@ -620,78 +620,78 @@ class SubnetInfoSerializer(serializers.Serializer):
class CpResponseSerializer(serializers.Serializer):
cpinstanceid = serializers.CharField(
- help_text="cpinstanceid",
+ help_text="ID of CP instance",
required=True,
max_length=255,
allow_null=True)
cpdid = serializers.CharField(
- help_text="cpdid",
+ help_text="ID of CPD",
required=True,
max_length=255,
allow_null=True)
cpinstancename = serializers.CharField(
- help_text="cpinstancename",
+ help_text="Name of CP instance",
required=True,
max_length=255,
allow_null=True)
vlinstanceid = serializers.CharField(
- help_text="vlinstanceid",
+ help_text="ID of VL instance",
required=True,
max_length=255,
allow_null=True)
ownertype = serializers.IntegerField(
- help_text="ownertype",
+ help_text="Owner type",
required=True,
allow_null=True)
ownerid = serializers.CharField(
- help_text="ownerid",
+ help_text="ID of owner",
required=True,
max_length=255,
allow_null=True)
relatedtype = serializers.IntegerField(
- help_text="relatedtype",
+ help_text="Related type",
required=True,
allow_null=True)
class CpsInfoSerializer(serializers.Serializer):
resp_data = CpResponseSerializer(
- help_text="the response data",
+ help_text="CP response data",
many=True)
class VolumeResponseSerializer(serializers.Serializer):
storageid = serializers.CharField(
- help_text="storageid",
+ help_text="ID of storage",
required=True,
max_length=255,
allow_null=True)
vimid = serializers.CharField(
- help_text="vimid",
+ help_text="ID of VIM",
required=True,
max_length=255,
allow_null=True)
resouceid = serializers.CharField(
- help_text="resouceid",
+ help_text="ID of resouce",
required=True,
max_length=255,
allow_null=True)
insttype = serializers.IntegerField(
- help_text="insttype",
+ help_text="Instance type",
required=True,
allow_null=True)
instid = serializers.CharField(
- help_text="instid",
+ help_text="ID of instance",
required=True,
max_length=255,
allow_null=True)
storagetype = serializers.CharField(
- help_text="storagetype",
+ help_text="Storage type",
required=True,
max_length=255,
allow_null=True)
size = serializers.CharField(
- help_text="size",
+ help_text="Size",
required=True,
max_length=255,
allow_null=True)
@@ -699,5 +699,5 @@ class VolumeResponseSerializer(serializers.Serializer):
class VolumeInfoSerializer(serializers.Serializer):
resp_data = VolumeResponseSerializer(
- help_text="the response data",
+ help_text="Volume response data",
many=True)