2023-04-10 15:36:59 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2021-02-17 21:01:44 +00:00
|
|
|
import { attr } from '@ember-data/model';
|
2017-09-19 14:47:10 +00:00
|
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
|
|
|
import { fragmentArray } from 'ember-data-model-fragments/attributes';
|
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class Resources extends Fragment {
|
|
|
|
@attr('number') cpu;
|
|
|
|
@attr('number') memory;
|
2021-04-28 20:38:14 +00:00
|
|
|
@attr('number') memoryMax;
|
2020-06-10 13:49:16 +00:00
|
|
|
@attr('number') disk;
|
|
|
|
@attr('number') iops;
|
|
|
|
@fragmentArray('network', { defaultValue: () => [] }) networks;
|
2020-08-20 15:07:13 +00:00
|
|
|
@fragmentArray('port', { defaultValue: () => [] }) ports;
|
2020-06-10 13:49:16 +00:00
|
|
|
}
|