Files
ubicloud/views/vm/index.erb
Burak Yucesoy 1dbaef3f72 Merge web and api serializers for vms
Polymorphic authorization checks and options based serializers made serializers
strong enough to format slightly different outputs based on the needs of web
and api endpoints. This commit merges the two vm serializers into one.

There were few notable differences in the two serializers though:
- Web serializer had  storage_encryption field, which was only used to put a
text in the Vm view. Since all user created vms have storage encryption, I
removed this field.
- Web serializer used private_ip4 and private_ip6 fields as opposed to what we
use in the api serializer; private_ipv4 and private_ipv6. I changed the field
names to follow the format in the api serializer.
2024-05-28 21:42:31 +03:00

3.4 KiB