diff options
-rw-r--r-- | zte/vmanager/driver/interfaces/serializers.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zte/vmanager/driver/interfaces/serializers.py b/zte/vmanager/driver/interfaces/serializers.py index a19613ca..c9206579 100644 --- a/zte/vmanager/driver/interfaces/serializers.py +++ b/zte/vmanager/driver/interfaces/serializers.py @@ -97,6 +97,20 @@ class TerminateVnfRequestSerializer(serializers.Serializer): required=False) +class VnfInfoSerializer(serializers.Serializer): + vnfStatus = serializers.CharField( + help_text="vnfStatus", + required=True, + max_length=255, + allow_null=True) + + +class QueryVnfResponseSerializer(serializers.Serializer): + vnfInfo = VnfInfoSerializer( + help_text="vnfInfo", + required=True) + + class JobHistorySerializer(serializers.Serializer): status = serializers.CharField( help_text="Status of job", |