1 # Copyright (c) 2019, CMCC Technologies Co., Ltd.
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.
16 from rest_framework import serializers
19 class ModifyVnfInfoDataSerializer(serializers.Serializer):
20 vnfInstanceId = serializers.UUIDField(
21 help_text="Identifier of the VNF instance."
23 vnfInstanceName = serializers.CharField(
24 help_text="New value of the 'vnfInstanceName' attribute in 'VnfInstance', or 'null' to remove the attribute.",
29 vnfInstanceDescription = serializers.CharField(
30 help_text="If present, this attribute signals modifications of the 'vnfInstanceDescription' attribute in "
35 vnfPkgId = serializers.UUIDField(
36 help_text="New value of the 'vnfPkgId' attribute in 'VnfInstance' The value 'null' is not permitted.."
38 vnfConfigurableProperties = serializers.DictField(
39 help_text="Modifications to entries in the 'vnfConfigurableProperties' list, as defined below this Table.",
40 child=serializers.CharField(help_text="KeyValue Pairs", allow_blank=True),
43 metaData = serializers.DictField(
44 help_text="If present, this attribute signals modifications of certain 'metadata' attribute in 'vnfInstance'.",
45 child=serializers.CharField(help_text="KeyValue Pairs", allow_blank=True),
48 extensions = serializers.DictField(
49 help_text="If present,this attribute signals modifications of certain 'extensions' attribute in 'vnfInstance'.",
50 child=serializers.CharField(help_text="KeyValue Pairs", allow_blank=True),