2020-09-18 10:14:06 +00:00
|
|
|
import attr from 'ember-data/attr';
|
|
|
|
|
|
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
|
|
|
import { fragment } from 'ember-data-model-fragments/attributes';
|
|
|
|
|
2020-09-30 11:33:01 +00:00
|
|
|
export const schema = {
|
|
|
|
Action: {
|
|
|
|
defaultValue: 'allow',
|
|
|
|
allowedValues: ['allow', 'deny'],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2020-09-18 10:14:06 +00:00
|
|
|
export default Fragment.extend({
|
2020-09-30 11:33:01 +00:00
|
|
|
Action: attr('string', {
|
|
|
|
defaultValue: schema.Action.defaultValue,
|
|
|
|
}),
|
|
|
|
HTTP: fragment('intention-permission-http'),
|
2020-09-18 10:14:06 +00:00
|
|
|
});
|