summaryrefslogtreecommitdiffstats
path: root/zte
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-05 08:53:28 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-05 08:53:28 +0800
commit5ac41461fcb0c45d3f04923ff5578b599dc58905 (patch)
tree7d190164429fd01833c6288b58d98a12adf43d2c /zte
parent9a568741d8b862d5f2e0374373b64049d7703452 (diff)
Update serializer ztevnfmdriver
Change-Id: Id47cd6dfc68dd450c38b312140a20098696edd24 Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'zte')
-rw-r--r--zte/vmanager/driver/interfaces/serializers.py33
1 files changed, 24 insertions, 9 deletions
diff --git a/zte/vmanager/driver/interfaces/serializers.py b/zte/vmanager/driver/interfaces/serializers.py
index 1d518df1..069797f4 100644
--- a/zte/vmanager/driver/interfaces/serializers.py
+++ b/zte/vmanager/driver/interfaces/serializers.py
@@ -288,7 +288,10 @@ class NotifyVmlistSerializer(serializers.Serializer):
allow_null=True)
VMIDlist = serializers.ListSerializer(
help_text='VMIDlist',
- child=VMIDlistSerializer(help_text='VMIDlist', required=True, allow_null=True),
+ child=VMIDlistSerializer(
+ help_text='VMIDlist',
+ required=True,
+ allow_null=True),
required=False,
allow_null=True)
@@ -330,16 +333,19 @@ class NotifyReqSerializer(serializers.Serializer):
many=True)
extension = serializers.DictField(
help_text="extension",
- child=serializers.DictField(allow_null=True),
+ child=serializers.DictField(
+ allow_null=True),
required=False,
allow_null=True)
affectedcp = serializers.ListSerializer(
help_text='affectedcp',
- child=serializers.DictField(allow_null=True),
+ child=serializers.DictField(
+ allow_null=True),
required=False)
affectedvirtuallink = serializers.ListSerializer(
help_text='affectedvirtuallink',
- child=serializers.DictField(allow_null=True),
+ child=serializers.DictField(
+ allow_null=True),
required=False)
@@ -361,7 +367,8 @@ class ScaleReqSerializer(serializers.Serializer):
allow_null=True)
additionalParam = serializers.DictField(
help_text="additionalParam",
- child=serializers.DictField(allow_null=True),
+ child=serializers.DictField(
+ allow_null=True),
required=False,
allow_null=True)
@@ -394,7 +401,8 @@ class AffectedvmSerializer(serializers.Serializer):
allow_null=True)
flavour = serializers.DictField(
help_text="flavour",
- child=serializers.CharField(allow_blank=True),
+ child=serializers.CharField(
+ allow_blank=True),
required=False,
allow_null=True)
@@ -417,7 +425,10 @@ class HealReqSerializer(serializers.Serializer):
allow_null=True)
affectedvm = serializers.ListSerializer(
help_text='affectedvm',
- child=AffectedvmSerializer(help_text='affectedvm', required=True, allow_null=True),
+ child=AffectedvmSerializer(
+ help_text='affectedvm',
+ required=True,
+ allow_null=True),
required=True,
allow_null=True)
@@ -524,12 +535,16 @@ class VnfPkgSerializer(serializers.Serializer):
allow_null=True)
imagefiles = serializers.ListSerializer(
help_text='imagefiles',
- child=serializers.CharField(help_text='imagefile', required=True),
+ child=serializers.CharField(
+ help_text='imagefile',
+ required=True),
required=False,
allow_null=True)
swfiles = serializers.ListSerializer(
help_text='swfiles',
- child=serializers.CharField(help_text='swfile', required=True),
+ child=serializers.CharField(
+ help_text='swfile',
+ required=True),
required=False,
allow_null=True)
description = serializers.CharField(
an> Copyright (C) 2019 Nordix Foundation. Copyright (C) 2020 AT&T Intellectual Property. All rights reserved. Modifications Copyright (C) 2020 Bell Canada. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. SPDX-License-Identifier: Apache-2.0 ============LICENSE_END========================================================= --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.onap.policy.models</groupId> <artifactId>policy-models</artifactId> <version>2.8.1</version> </parent> <groupId>org.onap.policy.models.sim</groupId> <artifactId>policy-models-sim</artifactId> <packaging>pom</packaging> <name>${project.artifactId}</name> <properties> <jacoco.dataFile>${project.basedir}/../../target/code-coverage/jacoco-ut.exec</jacoco.dataFile> </properties> <modules> <module>models-sim-dmaap</module> <module>policy-models-sim-pdp</module> <module>policy-models-simulators</module> <module>packages</module> </modules> </project>