open-vault/ui/app/models/identity/group-alias.js
2018-04-03 09:16:57 -05:00

30 lines
642 B
JavaScript

import IdentityModel from './_base';
import DS from 'ember-data';
const { attr, belongsTo } = DS;
export default IdentityModel.extend({
formFields: ['name', 'mountAccessor'],
group: belongsTo('identity/group', { readOnly: true, async: false }),
name: attr('string'),
canonicalId: attr('string'),
mountPath: attr('string', {
readOnly: true,
}),
mountType: attr('string', {
readOnly: true,
}),
mountAccessor: attr('string', {
label: 'Auth Backend',
editType: 'mountAccessor',
}),
creationTime: attr('string', {
readOnly: true,
}),
lastUpdateTime: attr('string', {
readOnly: true,
}),
});