constants.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. import i18n from '@/locales'
  2. const requireComponent = require.context('@scope', true, /policyConfig\.(js)$/)
  3. const keys = requireComponent.keys().filter(item => {
  4. const arr = item.split('/')
  5. return arr[1] === 'constants' && /\.(js)$/.test(arr[2])
  6. })
  7. let extraServices = {}
  8. let extraResources = {}
  9. keys.forEach(fileName => {
  10. // 获取组件配置
  11. const componentConfig = requireComponent(fileName)
  12. const { SERVICES_MAP = {}, RESOURCES_MAP = {} } = componentConfig
  13. extraServices = { ...extraServices, ...SERVICES_MAP }
  14. extraResources = { ...extraResources, ...RESOURCES_MAP }
  15. })
  16. // 定义服务的映射
  17. export const SERVICES_MAP = {
  18. compute: {
  19. i18n: 'service.compute',
  20. },
  21. image: {
  22. i18n: 'service.image',
  23. },
  24. k8s: {
  25. i18n: 'service.k8s',
  26. },
  27. meter: {
  28. i18n: 'service.meter',
  29. },
  30. identity: {
  31. i18n: 'service.identity',
  32. },
  33. notify: {
  34. i18n: 'service.notify',
  35. },
  36. log: {
  37. i18n: 'service.log',
  38. },
  39. yunionagent: {
  40. i18n: 'service.yunionagent',
  41. },
  42. itsm: {
  43. i18n: 'service.itsm',
  44. },
  45. cloudid: {
  46. i18n: 'service.cloudid',
  47. },
  48. monitor: {
  49. i18n: 'service.monitor',
  50. },
  51. yunionconf: {
  52. i18n: 'service.yunionconf',
  53. },
  54. cloudevent: {
  55. i18n: 'service.cloudevent',
  56. },
  57. suggestion: {
  58. i18n: 'service.suggestion',
  59. },
  60. report: {
  61. i18n: 'service.report',
  62. },
  63. extdb: {
  64. i18n: 'service.extdb',
  65. },
  66. devtool: {
  67. i18n: 'service.devtool',
  68. },
  69. bastionhost: {
  70. i18n: 'service.bastionhost',
  71. },
  72. scheduledtask: {
  73. i18n: 'service.scheduledtask',
  74. },
  75. autoupdate: {
  76. i18n: 'service.autoupdate',
  77. },
  78. ...extraServices,
  79. }
  80. // 定义资源的映射
  81. export const RESOURCES_MAP = {
  82. servers: {
  83. i18n: 'dictionary.server',
  84. extras: [
  85. { action: 'get', label: 'VNC', value: 'vnc' },
  86. { action: 'perform', label: i18n.t('cloudenv.text_354'), value: 'syncstatus' },
  87. { action: 'perform', label: i18n.t('compute.vnc_panic_screenshot'), value: 'screen-dump' },
  88. { action: 'perform', label: i18n.t('cloudenv.text_511'), value: 'start' },
  89. { action: 'perform', label: i18n.t('cloudenv.text_512'), value: 'stop' },
  90. { action: 'perform', label: i18n.t('cloudenv.text_513'), value: 'restart' },
  91. { action: 'perform', label: i18n.t('cloudenv.text_514'), value: 'reset' },
  92. { action: 'perform', label: i18n.t('cloudenv.text_515'), value: 'suspend' },
  93. { action: 'perform', label: i18n.t('cloudenv.text_516'), value: 'resume' },
  94. { action: 'perform', label: i18n.t('compute.start_rescue'), value: 'start-rescue' },
  95. { action: 'perform', label: i18n.t('compute.stop_rescue'), value: 'stop-rescue' },
  96. { action: 'perform', label: i18n.t('compute.sync_config'), value: 'sync' },
  97. { action: 'update', label: i18n.t('cloudenv.text_406'), value: '*' }, // 修改属性 同 update
  98. { action: 'perform', label: i18n.t('cloudenv.text_517'), value: 'rebuild-root' },
  99. { action: 'perform', label: i18n.t('cloudenv.text_518'), value: 'change-config' },
  100. { action: 'perform', label: i18n.t('cloudenv.text_519'), value: 'change-owner' },
  101. // { action: 'perform', label: i18n.t('cloudenv.text_520'), value: 'create-snapshot' },
  102. { action: 'perform', label: i18n.t('compute.create_snapshot_backup'), value: 'instance-backup' },
  103. { action: 'create', label: i18n.t('cloudenv.text_521'), value: '*' }, // 创建相同配置 同 create
  104. { action: 'perform', label: i18n.t('compute.set_usb_gpu'), value: 'set-isolated-device' },
  105. { action: 'perform', label: i18n.t('cloudenv.text_523'), value: 'io-throttle' },
  106. // { action: 'get', label: i18n.t('compute.bind_physical_cpu'), value: 'cpuset-cores' },
  107. { action: 'perform', label: i18n.t('compute.bind_physical_cpu'), value: 'cpuset' },
  108. { action: 'perform', label: i18n.t('cloudenv.text_524'), value: 'cancel-expire' },
  109. { action: 'perform', label: i18n.t('cloudenv.text_525'), value: 'snapshot-and-clone' },
  110. { action: 'perform', label: i18n.t('cloudenv.text_526'), value: 'bind-groups' },
  111. { action: 'perform', label: i18n.t('cloudenv.text_527'), value: 'renew' },
  112. { action: 'perform', label: i18n.t('cloudenv.text_528'), value: 'set-auto-renew' },
  113. { action: 'perform', label: i18n.t('compute.text_360'), value: 'deploy' },
  114. { action: 'perform', label: i18n.t('compute.text_276'), value: 'set-password' },
  115. { action: 'perform', label: i18n.t('compute.vminstance.actions.setup_ssh_authentication'), value: 'make-sshable' },
  116. { action: 'get', label: i18n.t('compute.vminstance.actions.detect_ssh_authentication'), value: 'sshable' },
  117. { action: 'perform', label: i18n.t('cloudenv.text_532'), value: 'save-image' },
  118. { action: 'perform', label: i18n.t('cloudenv.text_533'), value: 'insertiso' },
  119. { action: 'perform', label: i18n.t('cloudenv.text_534'), value: 'ejectiso' },
  120. { action: 'perform', label: i18n.t('cloudenv.text_535'), value: 'add-secgroup' },
  121. { action: 'perform', label: i18n.t('compute.revoke_secgroup'), value: 'revoke-secgroup' },
  122. { action: 'perform', label: i18n.t('compute.set_secgroup'), value: 'set-secgroup' },
  123. { action: 'perform', label: i18n.t('cloudenv.text_536'), value: 'create-eip' },
  124. { action: 'perform', label: i18n.t('cloudenv.text_537'), value: 'dissociate-eip' },
  125. { action: 'perform', label: i18n.t('cloudenv.text_538'), value: 'publicip-to-eip' },
  126. { action: 'perform', label: i18n.t('cloudenv.text_539'), value: 'modify-src-check' },
  127. { action: 'perform', label: i18n.t('cloudenv.text_540'), value: 'create-backup' },
  128. { action: 'perform', label: i18n.t('cloudenv.text_541'), value: 'delete-backup' },
  129. { action: 'perform', label: i18n.t('cloudenv.text_542'), value: 'migrate' },
  130. { action: 'perform', label: i18n.t('compute.change_boot_index'), value: 'set-boot-index' },
  131. { action: 'perform', label: i18n.t('compute.vminstance.change_disk_storage'), value: 'change-storage' },
  132. { action: 'perform', label: i18n.t('compute.change_billing_type'), value: 'change-billing-type' },
  133. { action: 'perform', label: i18n.t('common_105'), value: 'set-user-metadata' },
  134. { action: 'perform', label: i18n.t('compute.text_674'), value: '*' },
  135. ],
  136. },
  137. images: {
  138. i18n: 'dictionary.image',
  139. },
  140. disks: {
  141. i18n: 'system.text_352',
  142. },
  143. snapshots: {
  144. i18n: 'system.text_93',
  145. },
  146. secgroups: {
  147. i18n: 'system.text_97',
  148. },
  149. eips: {
  150. i18n: 'system.text_92',
  151. },
  152. keypairs: {
  153. i18n: 'system.text_353',
  154. },
  155. recyclebins: {
  156. i18n: 'system.text_354',
  157. },
  158. loadbalancercertificates: {
  159. i18n: 'system.text_355',
  160. },
  161. loadbalancerlisteners: {
  162. i18n: 'system.text_356',
  163. },
  164. loadbalancerbackendgroups: {
  165. i18n: 'dictionary.loadbalancerbackendgroup',
  166. },
  167. loadbalanceracls: {
  168. i18n: 'system.text_1',
  169. },
  170. cloudregions: {
  171. i18n: 'system.text_52',
  172. },
  173. zones: {
  174. i18n: 'system.text_56',
  175. },
  176. hosts: {
  177. i18n: 'system.text_358',
  178. extras: [
  179. { action: 'perform', label: i18n.t('compute.text_567'), value: 'login-info' },
  180. { action: 'perform', label: i18n.t('compute.text_674'), value: '*' },
  181. ],
  182. },
  183. schedtags: {
  184. i18n: 'system.text_359',
  185. },
  186. isolated_devices: {
  187. i18n: 'system.text_360',
  188. },
  189. vpcs: {
  190. label: 'VPC',
  191. },
  192. route_tables: {
  193. i18n: 'system.text_361',
  194. },
  195. natgateways: {
  196. i18n: 'system.text_362',
  197. },
  198. wires: {
  199. i18n: 'system.text_363',
  200. },
  201. networks: {
  202. i18n: 'system.text_364',
  203. },
  204. reservedips: {
  205. i18n: 'system.text_365',
  206. },
  207. dnsrecords: {
  208. i18n: 'system.text_366',
  209. },
  210. storages: {
  211. i18n: 'system.text_87',
  212. },
  213. serverskus: {
  214. i18n: 'system.text_367',
  215. },
  216. cloudaccounts: {
  217. i18n: 'system.text_50',
  218. },
  219. loadbalancers: {
  220. i18n: 'system.text_368',
  221. },
  222. loadbalancerbackends: {
  223. i18n: 'system.text_369',
  224. },
  225. loadbalancerclusters: {
  226. i18n: 'system.text_370',
  227. },
  228. loadbalanceragents: {
  229. i18n: 'system.text_371',
  230. },
  231. dynamicschedtags: {
  232. i18n: 'system.text_372',
  233. },
  234. schedpolicies: {
  235. i18n: 'system.text_373',
  236. },
  237. pods: {
  238. i18n: 'system.text_374',
  239. },
  240. kubeclusters: {
  241. i18n: 'system.text_375',
  242. },
  243. k8s_nodes: {
  244. i18n: 'system.text_376',
  245. },
  246. namespaces: {
  247. i18n: 'system.text_377',
  248. },
  249. deployments: {
  250. i18n: 'system.text_378',
  251. },
  252. daemonsets: {
  253. i18n: 'system.text_379',
  254. },
  255. statefulsets: {
  256. i18n: 'system.text_380',
  257. },
  258. jobs: {
  259. i18n: 'system.text_381',
  260. },
  261. cronjobs: {
  262. i18n: 'system.text_382',
  263. },
  264. k8s_services: {
  265. i18n: 'system.text_383',
  266. },
  267. ingresses: {
  268. i18n: 'system.text_384',
  269. },
  270. configmaps: {
  271. i18n: 'system.text_385',
  272. },
  273. secrets: {
  274. i18n: 'system.text_386',
  275. },
  276. charts: {
  277. i18n: 'system.text_387',
  278. },
  279. rbacroles: {
  280. i18n: 'system.text_10',
  281. },
  282. rbacrolebindings: {
  283. i18n: 'system.text_388',
  284. },
  285. serviceaccounts: {
  286. i18n: 'system.text_389',
  287. },
  288. releases: {
  289. i18n: 'system.text_390',
  290. },
  291. bill_details: {
  292. i18n: 'system.text_391',
  293. },
  294. // bill_conditions: {
  295. // label: '平台统计'
  296. // },
  297. // bill_analysises: {
  298. // i18n: 'system.text_392',
  299. // },
  300. bill_balances: {
  301. i18n: 'system.text_50',
  302. },
  303. bill_resources: {
  304. i18n: 'system.text_393',
  305. },
  306. budgets: {
  307. i18n: 'system.bill_budgets',
  308. },
  309. associated_bills: {
  310. i18n: 'system.text_394',
  311. },
  312. domains: {
  313. i18n: 'dictionary.domain',
  314. },
  315. groups: {
  316. i18n: 'dictionary.group',
  317. },
  318. users: {
  319. i18n: 'dictionary.user',
  320. },
  321. policies: {
  322. i18n: 'dictionary.policy',
  323. },
  324. projects: {
  325. i18n: 'dictionary.project',
  326. },
  327. roles: {
  328. i18n: 'dictionary.role',
  329. },
  330. receivers: {
  331. i18n: 'dictionary.contact',
  332. },
  333. emailqueues: {
  334. i18n: 'system.text_395',
  335. },
  336. log: {
  337. i18n: 'common_706',
  338. },
  339. infos: {
  340. i18n: 'system.text_18',
  341. },
  342. notices: {
  343. i18n: 'system.text_20',
  344. },
  345. rates: {
  346. i18n: 'system.text_396',
  347. },
  348. kubemachines: {
  349. i18n: 'system.text_397',
  350. },
  351. persistentvolumeclaims: {
  352. i18n: 'system.text_398',
  353. },
  354. secgrouprules: {
  355. i18n: 'system.text_399',
  356. },
  357. loadbalancerlistenerrules: {
  358. i18n: 'system.text_400',
  359. },
  360. cloudproviders: {
  361. i18n: 'system.text_584',
  362. },
  363. externalprojects: {
  364. i18n: 'system.text_402',
  365. },
  366. 'process-definitions': {
  367. i18n: 'system.text_403',
  368. },
  369. notifications: {
  370. i18n: 'dictionary.notification',
  371. },
  372. 'isolated-devices': {
  373. i18n: 'system.text_404',
  374. },
  375. identity_providers: {
  376. i18n: 'dictionary.identity_provider',
  377. },
  378. snapshotpolicies: {
  379. i18n: 'system.text_405',
  380. },
  381. buckets: {
  382. i18n: 'system.text_406',
  383. },
  384. endpoints: {
  385. i18n: 'system.text_21',
  386. },
  387. networkinterfaces: {
  388. i18n: 'system.text_407',
  389. },
  390. guestimages: {
  391. i18n: 'system.text_408',
  392. },
  393. instance_snapshots: {
  394. i18n: 'system.text_409',
  395. },
  396. instancegroups: {
  397. i18n: 'dictionary.instancegroup',
  398. },
  399. dbinstances: {
  400. i18n: 'system.text_98',
  401. },
  402. dbinstanceaccounts: {
  403. i18n: 'common_574',
  404. },
  405. dbinstancedatabases: {
  406. i18n: 'common_575',
  407. },
  408. dbinstancebackups: {
  409. i18n: 'system.text_411',
  410. },
  411. elasticcaches: {
  412. i18n: 'dictionary.elasticcaches',
  413. },
  414. elasticcacheaccounts: {
  415. i18n: 'common_576',
  416. },
  417. elasticcacheacls: {
  418. i18n: 'common_577',
  419. },
  420. devtool_templates: {
  421. i18n: 'system.text_412',
  422. },
  423. ansibleplaybooks: {
  424. i18n: 'system.text_413',
  425. },
  426. servertemplates: {
  427. i18n: 'system.text_414',
  428. },
  429. globalvpcs: {
  430. i18n: 'system.text_415',
  431. },
  432. project_quotas: {
  433. i18n: 'system.text_416',
  434. },
  435. image_quotas: {
  436. i18n: 'system.text_44',
  437. },
  438. region_quotas: {
  439. i18n: 'system.text_417',
  440. },
  441. zone_quotas: {
  442. i18n: 'system.text_418',
  443. },
  444. quotas: {
  445. i18n: 'system.text_419',
  446. },
  447. domain_quotas: {
  448. i18n: 'system.text_45',
  449. },
  450. identity_quotas: {
  451. i18n: 'system.text_46',
  452. },
  453. infras_quotas: {
  454. i18n: 'system.text_47',
  455. },
  456. scalinggroups: {
  457. i18n: 'system.text_420',
  458. },
  459. scalingpolicies: {
  460. i18n: 'system.text_421',
  461. },
  462. policydefinitions: {
  463. i18n: 'system.text_422',
  464. },
  465. suggestsysalerts: {
  466. i18n: 'system.suggestsysalerts',
  467. },
  468. suggestsysrules: {
  469. i18n: 'system.suggestsysrules',
  470. },
  471. suggestsysruleconfigs: {
  472. i18n: 'system.suggestsysruleconfigs',
  473. },
  474. proxysettings: {
  475. i18n: 'system.text_425',
  476. },
  477. repos: {
  478. i18n: 'system.text_426',
  479. },
  480. storageclasses: {
  481. i18n: 'system.text_427',
  482. },
  483. nodes: {
  484. i18n: 'system.text_397',
  485. },
  486. kubecomponent: {
  487. i18n: 'system.text_428',
  488. },
  489. cloudevents: {
  490. i18n: 'common_707',
  491. },
  492. associate_bills: {
  493. i18n: 'system.text_394',
  494. },
  495. bill_conditions: {
  496. i18n: 'system.text_429',
  497. },
  498. scheduledtasks: {
  499. i18n: 'service.scheduledtask',
  500. },
  501. cloudgroups: {
  502. i18n: 'dictionary.cloudgroup',
  503. },
  504. cloudusers: {
  505. i18n: 'dictionary.clouduser',
  506. },
  507. cloudpolicies: {
  508. i18n: 'dictionary.cloudpolicy',
  509. },
  510. commonalerts: {
  511. i18n: 'dictionary.commonalert',
  512. },
  513. costalerts: {
  514. i18n: 'dictionary.costalerts',
  515. },
  516. dns_zones: {
  517. i18n: 'dictionary.dns_zone',
  518. },
  519. dns_recordsets: {
  520. i18n: 'dictionary.dns_recordsets',
  521. },
  522. rbacclusterroles: {
  523. i18n: 'dictionary.rbacclusterroles',
  524. },
  525. rbacclusterrolebindings: {
  526. i18n: 'dictionary.rbacclusterrolebindings',
  527. },
  528. federatednamespaces: {
  529. i18n: 'dictionary.federatednamespaces',
  530. },
  531. federatedroles: {
  532. i18n: 'dictionary.federatedroles',
  533. },
  534. federatedclusterroles: {
  535. i18n: 'dictionary.federatedclusterroles',
  536. },
  537. federatedrolebindings: {
  538. i18n: 'dictionary.federatedrolebindings',
  539. },
  540. federatedclusterrolebinds: {
  541. i18n: 'dictionary.federatedclusterrolebinds',
  542. },
  543. federatedclusterrolebindings: {
  544. i18n: 'dictionary.federatedclusterrolebindings',
  545. },
  546. alertresources: {
  547. i18n: 'dictionary.alertresource',
  548. },
  549. scopedpolicybindings: {
  550. i18n: 'res.scopedpolicybinding',
  551. },
  552. scopedpolicies: {
  553. i18n: 'res.scopedpolicy',
  554. },
  555. rds: {
  556. i18n: 'dictionary.dbinstances',
  557. },
  558. redis: {
  559. i18n: 'dictionary.elasticcache',
  560. },
  561. bucket: {
  562. i18n: 'dictionary.bucket',
  563. },
  564. unifiedmonitors: {
  565. i18n: 'dictionary.explorer',
  566. },
  567. guestdisks: {
  568. i18n: 'dictionary.guestdisk',
  569. },
  570. guestnetworks: {
  571. i18n: 'dictionary.guestnetwork',
  572. },
  573. guestsecgroups: {
  574. i18n: 'dictionary.guestsecgroup',
  575. },
  576. scalinggroupguests: {
  577. i18n: 'dictionary.scalinggroupguest',
  578. },
  579. baremetalnetworks: {
  580. i18n: 'dictionary.baremetalnetwork',
  581. },
  582. hoststorages: {
  583. i18n: 'dictionary.hoststorage',
  584. },
  585. hostwires: {
  586. i18n: 'dictionary.hostwire',
  587. },
  588. usages: {
  589. i18n: 'dictionary.usage',
  590. },
  591. alertrecords: {
  592. i18n: 'dictionary.alertrecord',
  593. },
  594. cloudevent: {
  595. i18n: 'dictionary.cloudevents',
  596. },
  597. access_groups: {
  598. i18n: 'dictionary.access_group',
  599. },
  600. access_group_rules: {
  601. i18n: 'dictionary.access_group_rule',
  602. },
  603. file_systems: {
  604. i18n: 'dictionary.filesystem',
  605. },
  606. mount_targets: {
  607. i18n: 'dictionary.mount_target',
  608. },
  609. projectmappings: {
  610. i18n: 'cloudenv.text_580',
  611. },
  612. exchange_rates: {
  613. i18n: 'dictionary.billing_exchange_rates',
  614. },
  615. webapps: {
  616. i18n: 'dictionary.webapp',
  617. },
  618. cachedloadbalancercertificates: {
  619. i18n: 'dictionary.cachedloadbalancercertificates',
  620. },
  621. proxy_endpoints: {
  622. i18n: 'network.ssh-proxy.endpoints',
  623. },
  624. proxy_matches: {
  625. i18n: 'network.ssh-proxy.endpoints',
  626. },
  627. proxy_agents: {
  628. i18n: 'network.ssh-proxy.proxyservice',
  629. },
  630. inter_vpc_networks: {
  631. i18n: 'dictionary.vpc_network',
  632. },
  633. inter_vpc_network_route_sets: {
  634. i18n: 'dictionary.inter_vpc_network_route_sets',
  635. },
  636. vpc_peering_connections: {
  637. i18n: 'dictionary.vpc_peer_connect',
  638. },
  639. diskbackups: {
  640. i18n: 'compute.disk_backup',
  641. },
  642. nodealerts: {
  643. i18n: 'dictionary.nodealerts',
  644. },
  645. cors: {
  646. i18n: 'storage.text_211',
  647. },
  648. policy: {
  649. i18n: 'compute.text_694',
  650. },
  651. samlusers: {
  652. i18n: 'user.sidepage.tab.samluser',
  653. },
  654. instancebackups: {
  655. i18n: 'compute.instance_backup',
  656. },
  657. elasticcachebackups: {
  658. i18n: 'dictionary.redis_backup',
  659. },
  660. mongodbs: {
  661. i18n: 'dictionary.mongodb',
  662. },
  663. elastic_searchs: {
  664. i18n: 'middleware.elasticsearch',
  665. },
  666. kafkas: {
  667. i18n: 'middleware.kafka',
  668. },
  669. storagecachedimages: {
  670. i18n: 'dictionary.storagecachedimages',
  671. },
  672. rolepolicies: {
  673. i18n: 'dictionary.rolepolicies',
  674. },
  675. 'extra-users': {
  676. i18n: 'dictionary.extra_users',
  677. },
  678. topics: {
  679. i18n: 'dictionary.notify-topic',
  680. },
  681. notifyconfigs: {
  682. i18n: 'dictionary.mail_config',
  683. },
  684. robots: {
  685. i18n: 'dictionary.robot_manage',
  686. },
  687. subscribers: {
  688. i18n: 'dictionary.subscribers',
  689. },
  690. actions: {
  691. i18n: 'dictionary.actions',
  692. },
  693. alertrecordshields: {
  694. i18n: 'dictionary.alertrecordshields',
  695. },
  696. monitorresourcealerts: {
  697. i18n: 'dictionary.monitorresourcealerts',
  698. },
  699. monitorresources: {
  700. i18n: 'monitor.monitorresources',
  701. },
  702. bill_tags: {
  703. i18n: 'dictionary.bill_tags',
  704. },
  705. billsdimensions: {
  706. i18n: 'dictionary.billsdimensions',
  707. },
  708. cost_conversions: {
  709. i18n: 'dictionary.cost_conversions',
  710. },
  711. billing_exchange_rates: {
  712. i18n: 'dictionary.billing_exchange_rates',
  713. },
  714. price_infos: {
  715. i18n: 'dictionary.price_infos',
  716. },
  717. parameters: {
  718. i18n: 'dictionary.parameters',
  719. },
  720. services: {
  721. i18n: 'dictionary.services',
  722. },
  723. cdn_domains: {
  724. i18n: 'dictionary.cdn_domain',
  725. },
  726. cachedimages: {
  727. i18n: 'dictionary.storagecachedimages',
  728. },
  729. waf_instances: {
  730. i18n: 'dictionary.waf_instance',
  731. },
  732. shield_bills: {
  733. i18n: 'dictionary.shield_bills',
  734. },
  735. report_elements: {
  736. i18n: 'dictionary.report_elements',
  737. },
  738. report_settings: {
  739. i18n: 'dictionary.report_settings',
  740. },
  741. project_sharings: {
  742. i18n: 'dictionary.project_sharings',
  743. },
  744. billtasks: {
  745. i18n: 'dictionary.billtask',
  746. },
  747. backupstorages: {
  748. i18n: 'dictionary.backupstorage',
  749. },
  750. ipv6_gateways: {
  751. i18n: 'dictionary.ipv6_gateway',
  752. },
  753. tap_services: {
  754. i18n: 'dictionary.tap_service',
  755. },
  756. tap_flows: {
  757. i18n: 'dictionary.tap_flow',
  758. },
  759. tablestores: {
  760. i18n: 'dictionary.tablestore',
  761. },
  762. commandlogs: {
  763. i18n: 'dictionary.command_log',
  764. },
  765. isolated_device_models: {
  766. i18n: 'system.text_360',
  767. },
  768. predictions: {
  769. i18n: 'dictionary.predictions',
  770. },
  771. ext_resources: {
  772. i18n: 'dictionary.custom_data',
  773. },
  774. ext_resource_types: {
  775. i18n: 'dictionary.ext_resource_type',
  776. },
  777. month_reports: {
  778. i18n: 'dictionary.month_report',
  779. },
  780. daily_reports: {
  781. i18n: 'dictionary.daily_report',
  782. },
  783. scirptapplys: {
  784. i18n: 'system.scirptapplys',
  785. },
  786. scriptapplyrecords: {
  787. i18n: 'system.scriptapplyrecords',
  788. },
  789. meter_instances: {
  790. i18n: 'dictionary.meter_instance',
  791. },
  792. modelarts_pools: {
  793. i18n: 'ModelArts',
  794. },
  795. container_registries: {
  796. i18n: 'dictionary.container_registry',
  797. },
  798. organizations: {
  799. i18n: 'dictionary.organization',
  800. },
  801. ratesets: {
  802. i18n: 'dictionary.rateset',
  803. },
  804. block_accounts: {
  805. i18n: 'dictionary.block_account',
  806. },
  807. prices: {
  808. i18n: 'dictionary.price',
  809. },
  810. bill_alert_settings: {
  811. i18n: 'dictionary.bill_alert_setting',
  812. },
  813. bill_alerts: {
  814. i18n: 'dictionary.bill_alert',
  815. },
  816. reports: {
  817. i18n: 'dictionary.report',
  818. },
  819. bastion_hosts: {
  820. i18n: 'dictionary.bastion_host',
  821. },
  822. bastion_servers: {
  823. i18n: 'dictionary.bastion_server',
  824. },
  825. checks: {
  826. i18n: 'dictionary.check',
  827. },
  828. offline_exports: {
  829. i18n: 'common.offline_export',
  830. },
  831. ...extraResources,
  832. }
  833. export const DEFAULT_ACTIONS_KEY = ['list', 'get', 'update', 'create', 'delete', 'perform']