diff options
-rw-r--r-- | lcm/v2/serializers.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lcm/v2/serializers.py b/lcm/v2/serializers.py index 83cb645d..7446015d 100644 --- a/lcm/v2/serializers.py +++ b/lcm/v2/serializers.py @@ -741,6 +741,33 @@ class AffectedVirtualLinkSerializer(serializers.Serializer): ) +class AffectedVirtualStorageSerializer(serializers.Serializer): + id = serializers.CharField( + help_text="Identifier of the storage instance.", + required=True + ) + virtualStorageDescId = serializers.CharField( + help_text="Identifier of the related VirtualStorage descriptor in the VNFD.", + required=True + ) + changeType = serializers.ChoiceField( + help_text="Signals the type of change.", + choices=["ADDED", "REMOVED", "MODIFIED", "TEMPORARY"], + required=True + ) + storageResource = ResourceHandleSerializer( + help_text="Reference to the VirtualStorage resource.", + required=False, + allow_null=True + ) + metadata = serializers.DictField( + help_text="Metadata about this resource.", + child=serializers.CharField(help_text="KeyValue Pairs", allow_blank=True), + required=False, + allow_null=True + ) + + class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer): id = serializers.CharField( help_text="Identifier of this notification.", @@ -795,3 +822,8 @@ class VnfLcmOperationOccurrenceNotificationSerializer(serializers.Serializer): many=True, required=False ) + affectedVirtualStorages = AffectedVirtualStorageSerializer( + help_text="Information about virtualised storage instances that were affected during the lifecycle operation.", + many=True, + required=False + ) |