forked from uncloud/uncloud
Rename / prepare for merge with uncloud repo
This commit is contained in:
parent
23203ff418
commit
7a6c8739f6
118 changed files with 1499 additions and 0 deletions
10
uncloud_django_based/uncloud/opennebula/serializers.py
Normal file
10
uncloud_django_based/uncloud/opennebula/serializers.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from rest_framework import serializers
|
||||
from opennebula.models import VM
|
||||
|
||||
|
||||
class OpenNebulaVMSerializer(serializers.HyperlinkedModelSerializer):
|
||||
class Meta:
|
||||
model = VM
|
||||
fields = [ 'vmid', 'owner', 'data',
|
||||
'uncloud_name', 'cores', 'ram_in_gb',
|
||||
'disks', 'nics', 'ips' ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue