open-nomad/ui/app/models/job-version.js
2023-04-10 15:36:59 +00:00

20 lines
427 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Model from '@ember-data/model';
import { attr, belongsTo } from '@ember-data/model';
export default class JobVersion extends Model {
@belongsTo('job') job;
@attr('boolean') stable;
@attr('date') submitTime;
@attr('number') number;
@attr() diff;
revertTo() {
return this.store.adapterFor('job-version').revertTo(this);
}
}