2020-03-25 12:51:26 +00:00
|
|
|
import Model from 'ember-data/model';
|
|
|
|
import attr from 'ember-data/attr';
|
2020-05-02 06:38:05 +00:00
|
|
|
import { fragmentArray } from 'ember-data-model-fragments/attributes';
|
2020-03-25 12:51:26 +00:00
|
|
|
|
|
|
|
export default Model.extend({
|
|
|
|
topologies: attr(),
|
|
|
|
provider: attr('string'),
|
|
|
|
version: attr('string'),
|
|
|
|
controllerRequired: attr('boolean'),
|
|
|
|
|
2020-05-02 06:38:05 +00:00
|
|
|
controllers: fragmentArray('storage-controller', { defaultValue: () => [] }),
|
|
|
|
nodes: fragmentArray('storage-node', { defaultValue: () => [] }),
|
2020-03-25 12:51:26 +00:00
|
|
|
});
|