19 lines
556 B
JavaScript
19 lines
556 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { attr } from '@ember-data/model';
|
|
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') memoryMax;
|
|
@attr('number') disk;
|
|
@attr('number') iops;
|
|
@fragmentArray('network', { defaultValue: () => [] }) networks;
|
|
@fragmentArray('port', { defaultValue: () => [] }) ports;
|
|
}
|