summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryunlong ying <ying.yunlong@zte.com.cn>2018-03-13 09:18:27 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-13 09:18:27 +0000
commit3281e5b754835c3cdb94057405723f11e7dfd28a (patch)
tree3938ac5c6774ea820c56e58f90845660e1101680
parent07021dc67b65578465ef1a576e6461aeaf50d652 (diff)
parent62861d38f24fb6766a0b2f7534b1c74513ac548d (diff)
Merge "Add LccnLinksSerializer of notify req"
-rw-r--r--lcm/v2/serializers.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py
index 512b58c6..557c603c 100644
--- a/lcm/v2/serializers.py
+++ b/lcm/v2/serializers.py
@@ -904,6 +904,22 @@ class ProblemDetailsSerializer(serializers.Serializer):
)
+class LccnLinksSerializer(serializers.Serializer):
+ vnfInstance = LinkSerializer(
+ help_text="Link to the resource representing the VNF instance to which the notified change applies.",
+ required=True
+ )
+ subscription = LinkSerializer(
+ help_text="Link to the related subscription.",
+ required=True
+ )
+ vnfLcmOpOcc = LinkSerializer(
+ help_text="Link to the VNF lifecycle management operation occurrence that this notification is related to.",
+ required=False,
+ allow_null=True
+ )
+
+
class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer):
id = serializers.CharField(
help_text="Identifier of this notification.",
@@ -978,3 +994,8 @@ class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer):
required=False,
allow_null=True
)
+ _links = LccnLinksSerializer(
+ help_text="Links to resources related to this notification.",
+ required=False,
+ allow_null=True
+ )