diff options
-rw-r--r-- | zte/vmanager/driver/interfaces/serializers.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zte/vmanager/driver/interfaces/serializers.py b/zte/vmanager/driver/interfaces/serializers.py index 9a961ead..bb6a9141 100644 --- a/zte/vmanager/driver/interfaces/serializers.py +++ b/zte/vmanager/driver/interfaces/serializers.py @@ -15,6 +15,18 @@ from rest_framework import serializers +class TerminateVnfRequestSerializer(serializers.Serializer): + terminationType = serializers.CharField( + help_text="terminationType", + required=True, + max_length=255, + allow_null=True) + gracefulTerminationTimeout = serializers.IntegerField( + help_text="gracefulTerminationTimeout", + default=120, + required=False) + + class JobHistorySerializer(serializers.Serializer): status = serializers.CharField( help_text="Status of job", |