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, belongsTo } from '@ember-data/model';
|
2017-09-19 14:47:10 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class JobVersion extends Model {
|
|
|
|
@belongsTo('job') job;
|
|
|
|
@attr('boolean') stable;
|
|
|
|
@attr('date') submitTime;
|
|
|
|
@attr('number') number;
|
|
|
|
@attr() diff;
|
2021-04-20 13:33:16 +00:00
|
|
|
|
|
|
|
revertTo() {
|
|
|
|
return this.store.adapterFor('job-version').revertTo(this);
|
|
|
|
}
|
2020-06-10 13:49:16 +00:00
|
|
|
}
|