2020-03-05 13:08:19 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-08-24 17:10:17 -04:00
|
|
|
module Enums
|
|
|
|
module InternalId
|
|
|
|
def self.usage_resources
|
|
|
|
# when adding new resource, make sure it doesn't conflict with EE usage_resources
|
|
|
|
{
|
2020-04-27 05:09:51 -04:00
|
|
|
issues: 0,
|
|
|
|
merge_requests: 1,
|
|
|
|
deployments: 2,
|
|
|
|
milestones: 3,
|
|
|
|
epics: 4,
|
|
|
|
ci_pipelines: 5,
|
|
|
|
operations_feature_flags: 6,
|
|
|
|
operations_user_lists: 7,
|
|
|
|
alert_management_alerts: 8,
|
2020-11-10 19:08:58 -05:00
|
|
|
sprints: 9, # iterations
|
2020-11-23 10:09:37 -05:00
|
|
|
design_management_designs: 10,
|
|
|
|
incident_management_oncall_schedules: 11
|
2020-08-24 17:10:17 -04:00
|
|
|
}
|
|
|
|
end
|
2020-03-05 13:08:19 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2021-05-11 17:10:21 -04:00
|
|
|
Enums::InternalId.prepend_mod_with('Enums::InternalId')
|