add occurrence api in lcm
[vfc/nfvo/lcm.git] / lcm / ns / biz / modify_vnf_info_data.py
1 # Copyright (c) 2019, CMCC Technologies Co., Ltd.
2
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
6
7 # http://www.apache.org/licenses/LICENSE-2.0
8
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
15
16 from rest_framework import serializers
17
18
19 class ModifyVnfInfoDataSerializer(serializers.Serializer):
20     vnfInstanceId = serializers.UUIDField(
21         help_text="Identifier of the VNF instance."
22     )
23     vnfInstanceName = serializers.CharField(
24         help_text="New value of the 'vnfInstanceName' attribute in 'VnfInstance', or 'null' to remove the attribute.",
25         max_length=255,
26         required=False,
27         allow_null=True,
28         allow_blank=True)
29     vnfInstanceDescription = serializers.CharField(
30         help_text="If present, this attribute signals modifications of the 'vnfInstanceDescription' attribute in "
31                   "'VnfInstance'",
32         required=False,
33         allow_null=True,
34         allow_blank=True)
35     vnfPkgId = serializers.UUIDField(
36         help_text="New value of the 'vnfPkgId' attribute in 'VnfInstance' The value 'null' is not permitted.."
37     )
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),
41         required=False,
42         allow_null=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),
46         required=False,
47         allow_null=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),
51         required=False,
52         allow_null=True)