github.com/hernad/nomad@v1.6.112/ui/mirage/models/csi-volume.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import { Model, belongsTo, hasMany } from 'ember-cli-mirage'; 7 8 export default Model.extend({ 9 plugin: belongsTo('csi-plugin'), 10 writeAllocs: hasMany('allocation'), 11 readAllocs: hasMany('allocation'), 12 allocations: hasMany('allocation'), 13 });