+class ScaleInfoSerializer(serializers.Serializer):
+ aspectId = serializers.CharField(
+ help_text="Identifier of the scaling aspect.",
+ required=True,
+ max_length=255,
+ allow_null=True)
+ scaleLevel = serializers.IntegerField(
+ help_text="Indicates the scale level.",
+ required=True)
+
+
+class instantiatedVnfInfoSerializer(serializers.Serializer):
+ flavourId = serializers.CharField(
+ help_text="Identifier of the VNF deployment flavour applied to this VNF instance.",
+ required=True,
+ max_length=255,
+ allow_null=True)
+ vnfState = serializers.ChoiceField(
+ help_text="State of the VNF instance.",
+ choices=["STARTED", "STOPPED"],
+ required=True,
+ allow_null=True)
+ scaleStatus = ScaleInfoSerializer(
+ help_text="Scale status of the VNF, one entry per aspect.",
+ required=False,
+ many=True)
+
+