open-nomad/ui/app/models/task.js
2020-02-13 17:11:32 -08:00

19 lines
540 B
JavaScript

import attr from 'ember-data/attr';
import Fragment from 'ember-data-model-fragments/fragment';
import { fragmentArray, fragmentOwner } from 'ember-data-model-fragments/attributes';
export default Fragment.extend({
taskGroup: fragmentOwner(),
name: attr('string'),
driver: attr('string'),
kind: attr('string'),
reservedMemory: attr('number'),
reservedCPU: attr('number'),
reservedDisk: attr('number'),
reservedEphemeralDisk: attr('number'),
volumeMounts: fragmentArray('volume-mount', { defaultValue: () => [] }),
});