2020-07-24 04:39:50 +00:00
|
|
|
import ApplicationSerializer from './application';
|
|
|
|
|
|
|
|
export default class JobScale extends ApplicationSerializer {
|
2020-08-20 17:14:49 +00:00
|
|
|
mapToArray = [{ beforeName: 'TaskGroups', afterName: 'TaskGroupScales' }];
|
|
|
|
|
2020-07-24 04:39:50 +00:00
|
|
|
normalize(modelClass, hash) {
|
|
|
|
hash.PlainJobId = hash.JobID;
|
|
|
|
hash.ID = JSON.stringify([hash.JobID, hash.Namespace || 'default']);
|
|
|
|
hash.JobID = hash.ID;
|
|
|
|
|
|
|
|
return super.normalize(modelClass, hash);
|
|
|
|
}
|
|
|
|
}
|