feat: 🎸 Add worker model (#1213)

✅ Closes: ICU-5239
This commit is contained in:
Zhihe Li authored and GitHub committed 2022-07-28 14:33:23 -04:00
1 parent dcf24478bd
commit a84e8c693e
7 files changed
+129

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
import GeneratedWorkerModel from '../generated/models/worker';
import { fragment } from 'ember-data-model-fragments/attributes';
export default class WorkerModel extends GeneratedWorkerModel {
// =attributes
/**
* @type {[FragmentTagModel]}
*/
@fragment('fragment-tag', {
description:
'The deduplicated union of the tags reported by the worker ' +
'from its configuration and any tags added through other means.\nOutput only.',
readOnly: true,
})
canonical_tags;
/**
* @type {[FragmentTagModel]}
*/
@fragment('fragment-tag', {
description:
"The tags set in the worker's configuration file.\nOutput only.",
readOnly: true,
})
config_tags;
}