From 5abda253c75354b1634a97e4c87b48da6d709433 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Mon, 20 Aug 2018 14:41:21 +0800 Subject: Udpate description of vnfres serializers Change-Id: I57427b165c838b87bd27d6fb970c75f08f1ff943 Issue-ID: VFC-1009 Signed-off-by: fujinhua --- res/res/resources/serializers.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/res/res/resources/serializers.py b/res/res/resources/serializers.py index 90c7fde..7a983f1 100644 --- a/res/res/resources/serializers.py +++ b/res/res/resources/serializers.py @@ -213,38 +213,38 @@ class VmResponseSerializer(serializers.Serializer): class VimInfoSerializer(serializers.Serializer): vimInfoId = serializers.CharField( - help_text="vimInfoId", + help_text="ID of VIM info", required=False, max_length=255, allow_null=True) vimId = serializers.CharField( - help_text="vimId", + help_text="ID of VIM", required=False, max_length=255, allow_null=True) interfaceEndpoint = serializers.CharField( - help_text="interfaceEndpoint", + help_text="Interface endpoint", required=False, max_length=255, allow_null=True) interfaceInfo = InterfaceInfoSerializer( - help_text="vimInfoId", + help_text="ID of VIM info", required=False, allow_null=True) accessInfo = AccessInfoSerializer( - help_text="accessInfo", + help_text="Access info", required=False, allow_null=True) class LinkPortsSerializer(serializers.Serializer): resourceId = serializers.CharField( - help_text="resourceId", + help_text="ID of resource", required=True, max_length=255, allow_null=True) vimId = serializers.CharField( - help_text="vimId", + help_text="ID of VIM", required=False, max_length=255, allow_null=True) @@ -252,17 +252,17 @@ class LinkPortsSerializer(serializers.Serializer): class ResourceHandleSerializer(serializers.Serializer): resourceId = serializers.CharField( - help_text="resourceId", + help_text="ID of resource", required=True, max_length=255, allow_null=True) vimId = serializers.CharField( - help_text="vimId", + help_text="ID of VIM", required=False, max_length=255, allow_null=True) resourceProviderId = serializers.CharField( - help_text="resourceProviderId", + help_text="ID of resource provider", required=False, max_length=255, allow_null=True) @@ -270,26 +270,26 @@ class ResourceHandleSerializer(serializers.Serializer): class ExtVirtualLinkInfoSerializer(serializers.Serializer): extVirtualLinkId = serializers.CharField( - help_text="extVirtualLinkId", + help_text="ID of ext virtual link", required=True, max_length=255, allow_null=True) resourceHandle = ResourceHandleSerializer( - help_text="iPAddress", + help_text="Resource handle", required=True) linkPorts = LinkPortsSerializer( - help_text="iPAddress", + help_text="Link ports", many=True, allow_null=True) class L3AddressDataSerializer(serializers.Serializer): iPAddressType = serializers.ChoiceField( - help_text="iPAddressType", + help_text="IP address type", choices=['IPv4', 'IPv6'], required=True) iPAddress = serializers.CharField( - help_text="iPAddress", + help_text="IP address", required=True, max_length=255, allow_null=True) @@ -297,16 +297,16 @@ class L3AddressDataSerializer(serializers.Serializer): class NetworkAddressSerializer(serializers.Serializer): addressType = serializers.ChoiceField( - help_text="addressType", + help_text="Address type", choices=['MAC', 'IP'], required=True) l2AddressData = serializers.CharField( - help_text="l2AddressData", + help_text="l2 address data", required=False, max_length=255, allow_null=True) l3AddressData = L3AddressDataSerializer( - help_text="addresses", + help_text="l3 address data", required=False) -- cgit 1.2.3-korg