diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-08-20 14:50:23 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-08-20 14:50:23 +0800 |
commit | 57aa2d27fb3ea1d84006f634a3fe817bc5467b2b (patch) | |
tree | 98ce7e4ea9b91d993939e374d4223dad7fa008a2 /res | |
parent | 5abda253c75354b1634a97e4c87b48da6d709433 (diff) |
Udpate description of vnfres serializers
Change-Id: Ic5dfaee942684ac883d7e63a427480c389cbffae
Issue-ID: VFC-1009
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'res')
-rw-r--r-- | res/res/resources/serializers.py | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/res/res/resources/serializers.py b/res/res/resources/serializers.py index 7a983f1..0022a50 100644 --- a/res/res/resources/serializers.py +++ b/res/res/resources/serializers.py @@ -312,154 +312,154 @@ class NetworkAddressSerializer(serializers.Serializer): class ExtCpInfoSerializer(serializers.Serializer): cpInstanceId = serializers.CharField( - help_text="cpInstanceId", + help_text="ID of CP instance", required=False, max_length=255, allow_null=True) cpdId = serializers.IntegerField( - help_text="cpdId", + help_text="ID of CPD", required=True, allow_null=True) numDynamicAddresses = serializers.IntegerField( - help_text="numDynamicAddresses", + help_text="Num dynamic addresses", required=False, allow_null=True) addresses = NetworkAddressSerializer( - help_text="addresses", + help_text="Addresses", many=True, allow_null=True) class ScaleInfoSerializer(serializers.Serializer): aspectId = serializers.CharField( - help_text="aspectId", + help_text="ID of aspect", required=True, max_length=255, allow_null=True) scaleLevel = serializers.IntegerField( - help_text="scaleLevel", + help_text="Scale level", required=True, allow_null=True) class InstantiatedVnfInfoSerializer(serializers.Serializer): flavourId = serializers.CharField( - help_text="flavourId", + help_text="ID of flavour", required=True, max_length=255, allow_null=True) vnfState = serializers.ChoiceField( - help_text="vnfState", + help_text="VNF state", choices=['STARTED', 'STOPPED'], required=True, allow_null=True) localizationLanguage = serializers.CharField( - help_text="localizationLanguage", + help_text="Localization language", required=True, max_length=255, allow_null=True) scaleStatus = ScaleInfoSerializer( - help_text="scaleStatus", + help_text="Scale status", many=True) extCpInfo = ExtCpInfoSerializer( - help_text="extCpInfo", + help_text="Ext CP info", many=True) extVirtualLink = ExtVirtualLinkInfoSerializer( - help_text="extVirtualLink", + help_text="Ext virtual link", many=True) monitoringParameters = serializers.DictField( - help_text="monitoringParameters", + help_text="Monitoring parameters", child=serializers.CharField(allow_blank=True), required=False, allow_null=True) vmInfo = VmResponseSerializer( - help_text="vmInfo", + help_text="VM info", many=True, allow_null=True) vimInfo = VimInfoSerializer( - help_text="vimInfo", + help_text="VIM info", many=True, required=False, allow_null=True) vnfcResourceInfo = VnfcResourceInfoSerializer( - help_text="vnfcResourceInfo", + help_text="Vnfc resource info", many=True) virtualLinkResourceInfo = VirtualLinkResourceInfoSerializer( - help_text="virtualLinkResourceInfo", + help_text="Virtual link resource info", many=True) virtualStorageResourceInfo = VirtualStorageResourceInfoSerializer( - help_text="virtualStorageResourceInfo", + help_text="Virtual storage resource info", many=True) class VnfInfoSerializer(serializers.Serializer): vnfInstanceId = serializers.CharField( - help_text="vnfInstanceId", + help_text="ID of VNF instance", required=True, max_length=255, allow_null=True) vnfInstanceName = serializers.CharField( - help_text="vnfInstanceName", + help_text="Name of VNF instance", required=True, max_length=255, allow_null=True) vnfInstanceDescription = serializers.CharField( - help_text="vnfInstanceDescription", + help_text="Description of VNF instance", required=True, max_length=255, allow_null=True) onboardedVnfPkgInfoId = serializers.CharField( - help_text="onboardedVnfPkgInfoId", + help_text="ID of onboarded VNF package info", required=False, max_length=255, allow_null=True) vnfdId = serializers.CharField( - help_text="vnfdId", + help_text="ID of VNFD", required=True, max_length=255, allow_null=True) vnfdVersion = serializers.CharField( - help_text="vnfdVersion", + help_text="VNFD version", required=False, max_length=255, allow_null=True) vnfSoftwareVersion = serializers.CharField( - help_text="vnfSoftwareVersion", + help_text="VNF software version", required=True, max_length=255, allow_null=True) vnfProvider = serializers.CharField( - help_text="vnfProvider", + help_text="VNF provider", required=False, max_length=255, allow_null=True) vnfProductName = serializers.CharField( - help_text="vnfProductName", + help_text="VNF product name", required=False, max_length=255, allow_null=True) vnfConfigurableProperties = serializers.CharField( - help_text="vnfConfigurableProperties", + help_text="VNF configurable properties", required=False, max_length=255, allow_null=True) instantiationState = serializers.CharField( - help_text="instantiationState", + help_text="Instantiation state", required=False, max_length=255, allow_null=True) extensions = serializers.CharField( - help_text="extensions", + help_text="Extensions", required=False, max_length=255, allow_null=True) metadata = serializers.CharField( - help_text="metadata", + help_text="Metadata", required=False, max_length=255, allow_null=True) instantiatedVnfInfo = InstantiatedVnfInfoSerializer( - help_text="instantiatedVnfInfo", + help_text="Instantiated VNF info", required=True) |