summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-03-13 15:57:45 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-03-13 15:57:45 +0800
commite850796b9e38a16bb638ef0e36393241579f5120 (patch)
tree518512153f65ad9298ee75dcc3bba6d696841388
parentdea392bee6e12e263d0035e1be9a773e776ed774 (diff)
Add ProblemDetailsSerializer of notify req
Change-Id: I9e5de440773d93f83ee59f57c7fb8a2874a8e6bb Issue-ID: VFC-779 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/v2/serializers.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py
index fa677d77..512b58c6 100644
--- a/lcm/v2/serializers.py
+++ b/lcm/v2/serializers.py
@@ -875,6 +875,35 @@ class ExtVirtualLinkInfoSerializer(serializers.Serializer):
)
+class ProblemDetailsSerializer(serializers.Serializer):
+ type = serializers.CharField(
+ help_text="A URI reference according to IETF RFC 3986 [5] that identifies the problem type.",
+ required=False,
+ allow_null=True,
+ allow_blank=True
+ )
+ title = serializers.CharField(
+ help_text="A short, human-readable summary of the problem type.",
+ required=False,
+ allow_null=True,
+ allow_blank=True
+ )
+ status = serializers.IntegerField(
+ help_text="The HTTP status code for this occurrence of the problem.",
+ required=True
+ )
+ detail = serializers.CharField(
+ help_text="A human-readable explanation specific to this occurrence of the problem.",
+ required=True
+ )
+ instance = serializers.CharField(
+ help_text="A URI reference that identifies the specific occurrence of the problem.",
+ required=False,
+ allow_null=True,
+ allow_blank=True
+ )
+
+
class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer):
id = serializers.CharField(
help_text="Identifier of this notification.",
@@ -944,3 +973,8 @@ class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer):
many=True,
required=False
)
+ error = ProblemDetailsSerializer(
+ help_text="Details of the latest error, if one has occurred during executing the LCM operation",
+ required=False,
+ allow_null=True
+ )