chore: 🤖 Add role model to api addon

This commit is contained in:
Susmitha Girumala committed 2020-06-22 14:18:51 -04:00
1 parent 2e804d7283
commit b07bb766ce
4 files changed
+85

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
import BaseModel from '../../models/base';
import { attr } from '@ember-data/model';
/**
* Contains a Role resource
*/
export default class GeneratedRoleModel extends BaseModel {
// = attributes
@attr('string', {
description: 'Optional name for identification purposes',
})
name;
@attr('string', {
description: 'Optional user-set description for identification purposes',
})
description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
readOnly: true,
})
created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
readOnly: true,
})
updated_time;
@attr('boolean', {
description: 'Whether the resource is disabled',
})
disabled;
}