summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/serializers
diff options
context:
space:
mode:
authorFu Jinhua <fu.jinhua@zte.com.cn>2018-08-10 02:00:16 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-10 02:00:16 +0000
commit433be1ff21f0a914cde6a45bb7ae431a1670e85f (patch)
treed742534e097c0ef231cee52f1be4168029a47fbe /lcm/lcm/nf/serializers
parenta489d17eed5ffb2d8c2f60d959f868934b377977 (diff)
parent6dba09acb334b868eec0ccf84bd2267bec191532 (diff)
Merge "Modify job serializer"
Diffstat (limited to 'lcm/lcm/nf/serializers')
-rw-r--r--lcm/lcm/nf/serializers/job_identifier.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/lcm/lcm/nf/serializers/job_identifier.py b/lcm/lcm/nf/serializers/job_identifier.py
new file mode 100644
index 00000000..cfd06a63
--- /dev/null
+++ b/lcm/lcm/nf/serializers/job_identifier.py
@@ -0,0 +1,23 @@
+# Copyright 2018 ZTE Corporation.
+#
+# 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.
+
+from rest_framework import serializers
+
+
+class JobIdentifierSerializer(serializers.Serializer):
+ jobId = serializers.CharField(
+ help_text="jobId",
+ required=True,
+ max_length=255,
+ allow_null=True)