open-vault/ui/app/models/server.js

12 lines
359 B
JavaScript

import DS from 'ember-data';
const { attr } = DS;
//{"node_id":"1249bfbc-b234-96f3-0c66-07078ac3e16e","address":"127.0.0.1:8201","leader":true,"protocol_version":"3","voter":true}
export default DS.Model.extend({
address: attr('string'),
nodeId: attr('string'),
protocolVersion: attr('string'),
voter: attr('boolean'),
leader: attr('boolean'),
});