2017-12-15 21:39:18 +00:00
|
|
|
import { copy } from '@ember/object/internals';
|
2017-10-13 22:17:51 +00:00
|
|
|
import ApplicationSerializer from './application';
|
|
|
|
|
|
|
|
export default ApplicationSerializer.extend({
|
|
|
|
primaryKey: 'AccessorID',
|
|
|
|
|
|
|
|
attrs: {
|
|
|
|
secret: 'SecretID',
|
|
|
|
},
|
|
|
|
|
|
|
|
normalize(typeHash, hash) {
|
|
|
|
hash.PolicyIDs = hash.Policies;
|
|
|
|
hash.PolicyNames = copy(hash.Policies);
|
|
|
|
return this._super(typeHash, hash);
|
|
|
|
},
|
|
|
|
});
|