summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-08-20 14:54:44 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-08-20 14:54:44 +0800
commit68f46c6bee22db471a1f9796f219662f82e2721a (patch)
treea3d49b7b04ba881c747346834c6c20183d8c0163 /res
parent57aa2d27fb3ea1d84006f634a3fe817bc5467b2b (diff)
Udpate description of vnfres serializers
Change-Id: I185754a34d185d8bca9f645f758d582f16935a3e Issue-ID: VFC-1009 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'res')
-rw-r--r--res/res/resources/serializers.py58
1 files changed, 29 insertions, 29 deletions
diff --git a/res/res/resources/serializers.py b/res/res/resources/serializers.py
index 0022a50..919db99 100644
--- a/res/res/resources/serializers.py
+++ b/res/res/resources/serializers.py
@@ -465,100 +465,100 @@ class VnfInfoSerializer(serializers.Serializer):
class VnfsInfoSerializer(serializers.Serializer):
resp_data = VnfInfoSerializer(
- help_text="the response data",
+ help_text="VNF response data",
many=True)
class VmInfoSerializer(serializers.Serializer):
resp_data = VmResponseSerializer(
- help_text="the response data",
+ help_text="VM response data",
many=True)
class FlavorResponseSerializer(serializers.Serializer):
flavourid = serializers.CharField(
- help_text="flavourid",
+ help_text="ID of flavour",
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)
tenant = serializers.CharField(
- help_text="tenant",
+ help_text="Tenant",
required=True,
max_length=255,
allow_null=True)
instid = serializers.CharField(
- help_text="instid",
+ help_text="ID of instance",
required=True,
max_length=255,
allow_null=True)
name = serializers.CharField(
- help_text="name",
+ help_text="Name",
required=True,
max_length=255,
allow_null=True)
extraspecs = serializers.CharField(
- help_text="extraspecs",
+ help_text="Extraspecs",
required=True,
max_length=255,
allow_null=True)
create_time = serializers.CharField(
- help_text="create_time",
+ help_text="Create time",
required=True,
max_length=255,
allow_null=True)
memory = serializers.IntegerField(
- help_text="memory",
+ help_text="Memory",
required=True,
allow_null=True)
vcpu = serializers.IntegerField(
- help_text="vcpu",
+ help_text="VCPU",
required=True,
allow_null=True)
class FlavorInfoSerializer(serializers.Serializer):
resp_data = FlavorResponseSerializer(
- help_text="the response data",
+ help_text="Flavor response data",
many=True)
class NetworkResponseSerializer(serializers.Serializer):
networkid = serializers.CharField(
- help_text="networkid",
+ help_text="ID of network",
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)
name = serializers.CharField(
- help_text="name",
+ help_text="Name",
required=True,
max_length=255,
allow_null=True)
@@ -566,47 +566,47 @@ class NetworkResponseSerializer(serializers.Serializer):
class NetworkInfoSerializer(serializers.Serializer):
resp_data = NetworkResponseSerializer(
- help_text="the response data",
+ help_text="Network response data",
many=True)
class SubnetResponseSerializer(serializers.Serializer):
subnetworkid = serializers.CharField(
- help_text="subnetworkid",
+ help_text="ID of subnetwork",
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)
networkid = serializers.CharField(
- help_text="networkid",
+ help_text="ID of network",
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)
name = serializers.CharField(
- help_text="name",
+ help_text="Name",
required=True,
max_length=255,
allow_null=True)
cidr = serializers.CharField(
- help_text="cidr",
+ help_text="CIDR",
required=True,
max_length=255,
allow_null=True)
@@ -614,7 +614,7 @@ class SubnetResponseSerializer(serializers.Serializer):
class SubnetInfoSerializer(serializers.Serializer):
resp_data = SubnetResponseSerializer(
- help_text="the response data",
+ help_text="Subnet response data",
many=True)