3cd5f46613
* nomad: canonicalize alloc shared resources to populate ports * ui: network ports * ui: remove unused task network references and update tests with new shared ports model * ui: lint * ui: revert auto formatting * ui: remove unused page objects * structs: remove unrelated test from bad conflict resolution * ui: formatting
13 lines
443 B
JavaScript
13 lines
443 B
JavaScript
import attr from 'ember-data/attr';
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
|
import { fragmentArray } from 'ember-data-model-fragments/attributes';
|
|
|
|
export default class Resources extends Fragment {
|
|
@attr('number') cpu;
|
|
@attr('number') memory;
|
|
@attr('number') disk;
|
|
@attr('number') iops;
|
|
@fragmentArray('network', { defaultValue: () => [] }) networks;
|
|
@fragmentArray('port', { defaultValue: () => [] }) ports;
|
|
}
|