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 Model from '@ember-data/model';
|
|
|
|
import { attr } from '@ember-data/model';
|
2018-08-17 18:22:26 +00:00
|
|
|
import { fragmentArray } from 'ember-data-model-fragments/attributes';
|
2021-02-17 21:01:44 +00:00
|
|
|
import { hasMany } from '@ember-data/model';
|
2018-08-17 18:22:26 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class JobPlan extends Model {
|
|
|
|
@attr() diff;
|
2021-12-28 16:08:12 +00:00
|
|
|
@fragmentArray('placement-failure', { defaultValue: () => [] })
|
|
|
|
failedTGAllocs;
|
2020-06-10 13:49:16 +00:00
|
|
|
@hasMany('allocation') preemptions;
|
|
|
|
}
|