2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2020-09-18 10:14:06 +00:00
|
|
|
import Fragment from 'ember-data-model-fragments/fragment';
|
|
|
|
import { fragment } from 'ember-data-model-fragments/attributes';
|
2020-11-09 17:29:12 +00:00
|
|
|
import { attr } from '@ember-data/model';
|
2020-09-18 10:14:06 +00:00
|
|
|
|
2020-09-30 11:33:01 +00:00
|
|
|
export const schema = {
|
|
|
|
Action: {
|
|
|
|
defaultValue: 'allow',
|
|
|
|
allowedValues: ['allow', 'deny'],
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2020-11-09 17:29:12 +00:00
|
|
|
export default class IntentionPermission extends Fragment {
|
|
|
|
@attr('string', { defaultValue: () => schema.Action.defaultValue }) Action;
|
|
|
|
@fragment('intention-permission-http') HTTP;
|
|
|
|
}
|