const idx = {
	'Unknown': 0,
	'Accepted': 1,
	'Canceled': 2,
	'Created': 3,
	'Creating': 4,
	'Deleted': 5,
	'Deleting': 6,
	'Failed': 7,
	'NotSpecified': 8,
	'Registering': 9,
	'Running': 10,
	'Succeeded': 11,
	'TimedOut': 12,
	'Unrecognized': 13,
	'Updating': 14
};

return typeof idx[value] === 'undefined' ? 0 : idx[value];