2020-03-25 12:51:26 +00:00
|
|
|
import { alias, equal } from '@ember/object/computed';
|
|
|
|
import attr from 'ember-data/attr';
|
|
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
|
|
|
import { fragmentOwner } from 'ember-data-model-fragments/attributes';
|
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
export default class VolumeDefinition extends Fragment {
|
|
|
|
@fragmentOwner() taskGroup;
|
2020-03-25 12:51:26 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@attr('string') name;
|
2020-03-25 12:51:26 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@attr('string') source;
|
|
|
|
@attr('string') type;
|
|
|
|
@attr('boolean') readOnly;
|
2020-03-25 12:51:26 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@equal('type', 'csi') isCSI;
|
|
|
|
@alias('taskGroup.job.namespace') namespace;
|
|
|
|
}
|