open-nomad/ui/mirage/models/csi-volume.js
2023-04-10 15:36:59 +00:00

14 lines
323 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Model, belongsTo, hasMany } from 'ember-cli-mirage';
export default Model.extend({
plugin: belongsTo('csi-plugin'),
writeAllocs: hasMany('allocation'),
readAllocs: hasMany('allocation'),
allocations: hasMany('allocation'),
});