open-vault/ui/app/models/identity/entity-alias.js

32 lines
743 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import IdentityModel from './_base';
import DS from 'ember-data';
const { attr, belongsTo } = DS;
export default IdentityModel.extend({
formFields: ['name', 'mountAccessor', 'metadata'],
entity: belongsTo('identity/entity', { readOnly: true, async: false }),
name: attr('string'),
canonicalId: attr('string'),
mountAccessor: attr('string', {
label: 'Auth Backend',
editType: 'mountAccessor',
}),
metadata: attr('object', {
editType: 'kv',
}),
mountPath: attr('string', {
readOnly: true,
}),
mountType: attr('string', {
readOnly: true,
}),
creationTime: attr('string', {
readOnly: true,
}),
lastUpdateTime: attr('string', {
readOnly: true,
}),
mergedFromCanonicalIds: attr(),
});