X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=catalog%2Fpackages%2Fserializers%2Fvnf_pkg_notifications.py;h=a0fd4953e30ff7e48c3c7a2470f2cb4a9cbf0679;hb=2479a0739895b15a13a07aa8260598483249c621;hp=2a73aa3ab03ca554c2660401619959a0f91ceb51;hpb=47aa1d9d81d42c23f128b5bc7fec52b3f404cc8b;p=modeling%2Fetsicatalog.git diff --git a/catalog/packages/serializers/vnf_pkg_notifications.py b/catalog/packages/serializers/vnf_pkg_notifications.py index 2a73aa3..a0fd495 100644 --- a/catalog/packages/serializers/vnf_pkg_notifications.py +++ b/catalog/packages/serializers/vnf_pkg_notifications.py @@ -149,12 +149,18 @@ class PkgChangeNotificationSerializer(serializers.Serializer): required=True, allow_null=False ) - notificationTypes = serializers.ChoiceField( + notificationType = serializers.ChoiceField( help_text="Discriminator for the different notification types.", choices=["VnfPackageChangeNotification"], required=True, allow_null=False ) + timeStamp = serializers.DateTimeField( + help_text="Date-time of the generation of the notification.", + format="%Y-%m-%d %H:%M:%S", + required=True, + allow_null=False + ) subscriptionId = serializers.CharField( help_text="Identifier of the subscription that this notification relates to.", required=True, @@ -202,7 +208,7 @@ class PkgOnboardingNotificationSerializer(serializers.Serializer): required=True, allow_null=False ) - notificationTypes = serializers.ChoiceField( + notificationType = serializers.ChoiceField( help_text="Discriminator for the different notification types.", choices=["VnfPackageOnboardingNotification"], required=True, @@ -213,6 +219,12 @@ class PkgOnboardingNotificationSerializer(serializers.Serializer): required=True, allow_null=False ) + timeStamp = serializers.DateTimeField( + help_text="Date-time of the generation of the notification.", + format="%Y-%m-%d %H:%M:%S", + required=True, + allow_null=False + ) vnfPkgId = serializers.UUIDField( help_text="Identifier of the VNF package.", required=True,