uncloud/opennebula/serializers.py

11 lines
324 B
Python
Raw Normal View History

from rest_framework import serializers
from opennebula.models import VM
2020-02-23 14:33:26 +00:00
class OpenNebulaVMSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = VM
fields = [ 'vmid', 'owner', 'data',
'uncloud_name', 'cores', 'ram_in_gb',
'disks', 'nics', 'ips' ]