27bb03bbc0
* adding copyright header * fix fmt and a test
16 lines
433 B
JavaScript
16 lines
433 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Model, { attr } from '@ember-data/model';
|
|
|
|
//{"node_id":"1249bfbc-b234-96f3-0c66-07078ac3e16e","address":"127.0.0.1:8201","leader":true,"protocol_version":"3","voter":true}
|
|
export default Model.extend({
|
|
address: attr('string'),
|
|
nodeId: attr('string'),
|
|
protocolVersion: attr('string'),
|
|
voter: attr('boolean'),
|
|
leader: attr('boolean'),
|
|
});
|