1 # Copyright 2018 ZTE Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 from rest_framework import serializers
17 class VnfInstanceSerializer(serializers.Serializer):
18 id = serializers.CharField(
19 help_text="Identifier of the VNF instance",
21 vnfInstanceName = serializers.CharField(
22 help_text="Name of the VNF instance.",
26 vnfInstanceDescription = serializers.CharField(
27 help_text="Human-readable description of the VNF instance.",
31 vnfdId = serializers.CharField(
32 help_text="Identifier of the VNFD on which the VNF instance is based.",
36 vnfProvider = serializers.CharField(
37 help_text="Provider of the VNF and the VNFD. The value is copied from the VNFD.",
41 vnfProductName = serializers.CharField(
42 help_text="Name to identify the VNF Product. The value is copied from the VNFD.",
46 vnfSoftwareVersion = serializers.CharField(
47 help_text="Software version of the VNF. The value is copied from the VNFD.",
51 vnfdVersion = serializers.CharField(
52 help_text="Identifies the version of the VNFD. The value is copied from the VNFD.",
56 vnfPkgId = serializers.CharField(
57 help_text="Identifier of information held by the NFVO about the specific VNF package on which the VNF is based.",
61 vnfConfigurableProperties = serializers.DictField(
62 help_text="Current values of the configurable properties of the VNF instance.",
63 child=serializers.CharField(help_text="Vnf Configurable Properties", allow_blank=True),