@elastic/elasticsearch 9.3.1 → 9.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/esm/api/api/async_search.d.ts.map +1 -1
  2. package/esm/api/api/async_search.js +20 -93
  3. package/esm/api/api/async_search.js.map +1 -1
  4. package/esm/api/api/autoscaling.d.ts.map +1 -1
  5. package/esm/api/api/autoscaling.js +20 -18
  6. package/esm/api/api/autoscaling.js.map +1 -1
  7. package/esm/api/api/bulk.js +5 -16
  8. package/esm/api/api/bulk.js.map +1 -1
  9. package/esm/api/api/capabilities.js +5 -8
  10. package/esm/api/api/capabilities.js.map +1 -1
  11. package/esm/api/api/cat.d.ts.map +1 -1
  12. package/esm/api/api/cat.js +135 -185
  13. package/esm/api/api/cat.js.map +1 -1
  14. package/esm/api/api/ccr.d.ts.map +1 -1
  15. package/esm/api/api/ccr.js +65 -96
  16. package/esm/api/api/ccr.js.map +1 -1
  17. package/esm/api/api/clear_scroll.js +5 -4
  18. package/esm/api/api/clear_scroll.js.map +1 -1
  19. package/esm/api/api/close_point_in_time.js +5 -3
  20. package/esm/api/api/close_point_in_time.js.map +1 -1
  21. package/esm/api/api/cluster.d.ts.map +1 -1
  22. package/esm/api/api/cluster.js +80 -112
  23. package/esm/api/api/cluster.js.map +1 -1
  24. package/esm/api/api/connector.d.ts.map +1 -1
  25. package/esm/api/api/connector.js +170 -168
  26. package/esm/api/api/connector.js.map +1 -1
  27. package/esm/api/api/count.js +5 -19
  28. package/esm/api/api/count.js.map +1 -1
  29. package/esm/api/api/create.js +5 -15
  30. package/esm/api/api/create.js.map +1 -1
  31. package/esm/api/api/dangling_indices.d.ts.map +1 -1
  32. package/esm/api/api/dangling_indices.js +15 -13
  33. package/esm/api/api/dangling_indices.js.map +1 -1
  34. package/esm/api/api/delete.js +5 -12
  35. package/esm/api/api/delete.js.map +1 -1
  36. package/esm/api/api/delete_by_query.js +5 -36
  37. package/esm/api/api/delete_by_query.js.map +1 -1
  38. package/esm/api/api/delete_by_query_rethrottle.js +5 -4
  39. package/esm/api/api/delete_by_query_rethrottle.js.map +1 -1
  40. package/esm/api/api/delete_script.js +5 -5
  41. package/esm/api/api/delete_script.js.map +1 -1
  42. package/esm/api/api/enrich.d.ts.map +1 -1
  43. package/esm/api/api/enrich.js +25 -23
  44. package/esm/api/api/enrich.js.map +1 -1
  45. package/esm/api/api/eql.d.ts.map +1 -1
  46. package/esm/api/api/eql.js +20 -41
  47. package/esm/api/api/eql.js.map +1 -1
  48. package/esm/api/api/esql.d.ts.map +1 -1
  49. package/esm/api/api/esql.js +54 -63
  50. package/esm/api/api/esql.js.map +1 -1
  51. package/esm/api/api/exists.js +5 -14
  52. package/esm/api/api/exists.js.map +1 -1
  53. package/esm/api/api/exists_source.js +5 -13
  54. package/esm/api/api/exists_source.js.map +1 -1
  55. package/esm/api/api/explain.js +5 -17
  56. package/esm/api/api/explain.js.map +1 -1
  57. package/esm/api/api/features.d.ts.map +1 -1
  58. package/esm/api/api/features.js +10 -6
  59. package/esm/api/api/features.js.map +1 -1
  60. package/esm/api/api/field_caps.js +5 -15
  61. package/esm/api/api/field_caps.js.map +1 -1
  62. package/esm/api/api/fleet.d.ts.map +1 -1
  63. package/esm/api/api/fleet.js +30 -111
  64. package/esm/api/api/fleet.js.map +1 -1
  65. package/esm/api/api/get.js +5 -16
  66. package/esm/api/api/get.js.map +1 -1
  67. package/esm/api/api/get_script.js +5 -4
  68. package/esm/api/api/get_script.js.map +1 -1
  69. package/esm/api/api/get_script_context.js +5 -1
  70. package/esm/api/api/get_script_context.js.map +1 -1
  71. package/esm/api/api/get_script_languages.js +5 -1
  72. package/esm/api/api/get_script_languages.js.map +1 -1
  73. package/esm/api/api/get_source.js +5 -13
  74. package/esm/api/api/get_source.js.map +1 -1
  75. package/esm/api/api/graph.d.ts.map +1 -1
  76. package/esm/api/api/graph.js +5 -9
  77. package/esm/api/api/graph.js.map +1 -1
  78. package/esm/api/api/health_report.js +5 -6
  79. package/esm/api/api/health_report.js.map +1 -1
  80. package/esm/api/api/ilm.d.ts.map +1 -1
  81. package/esm/api/api/ilm.js +55 -48
  82. package/esm/api/api/ilm.js.map +1 -1
  83. package/esm/api/api/index.js +5 -18
  84. package/esm/api/api/index.js.map +1 -1
  85. package/esm/api/api/indices.d.ts +1 -1
  86. package/esm/api/api/indices.d.ts.map +1 -1
  87. package/esm/api/api/indices.js +385 -583
  88. package/esm/api/api/indices.js.map +1 -1
  89. package/esm/api/api/inference.d.ts +1 -1
  90. package/esm/api/api/inference.d.ts.map +1 -1
  91. package/esm/api/api/inference.js +184 -280
  92. package/esm/api/api/inference.js.map +1 -1
  93. package/esm/api/api/info.js +5 -1
  94. package/esm/api/api/info.js.map +1 -1
  95. package/esm/api/api/ingest.d.ts.map +1 -1
  96. package/esm/api/api/ingest.js +60 -60
  97. package/esm/api/api/ingest.js.map +1 -1
  98. package/esm/api/api/knn_search.js +5 -10
  99. package/esm/api/api/knn_search.js.map +1 -1
  100. package/esm/api/api/license.d.ts.map +1 -1
  101. package/esm/api/api/license.js +35 -27
  102. package/esm/api/api/license.js.map +1 -1
  103. package/esm/api/api/logstash.d.ts.map +1 -1
  104. package/esm/api/api/logstash.js +15 -10
  105. package/esm/api/api/logstash.js.map +1 -1
  106. package/esm/api/api/mget.js +5 -14
  107. package/esm/api/api/mget.js.map +1 -1
  108. package/esm/api/api/migration.d.ts +1 -1
  109. package/esm/api/api/migration.d.ts.map +1 -1
  110. package/esm/api/api/migration.js +15 -5
  111. package/esm/api/api/migration.js.map +1 -1
  112. package/esm/api/api/ml.d.ts.map +1 -1
  113. package/esm/api/api/ml.js +365 -574
  114. package/esm/api/api/ml.js.map +1 -1
  115. package/esm/api/api/monitoring.d.ts.map +1 -1
  116. package/esm/api/api/monitoring.js +5 -6
  117. package/esm/api/api/monitoring.js.map +1 -1
  118. package/esm/api/api/msearch.js +5 -19
  119. package/esm/api/api/msearch.js.map +1 -1
  120. package/esm/api/api/msearch_template.js +5 -10
  121. package/esm/api/api/msearch_template.js.map +1 -1
  122. package/esm/api/api/mtermvectors.js +5 -17
  123. package/esm/api/api/mtermvectors.js.map +1 -1
  124. package/esm/api/api/nodes.d.ts.map +1 -1
  125. package/esm/api/api/nodes.js +35 -47
  126. package/esm/api/api/nodes.js.map +1 -1
  127. package/esm/api/api/open_point_in_time.js +5 -12
  128. package/esm/api/api/open_point_in_time.js.map +1 -1
  129. package/esm/api/api/ping.js +5 -1
  130. package/esm/api/api/ping.js.map +1 -1
  131. package/esm/api/api/profiling.d.ts.map +1 -1
  132. package/esm/api/api/profiling.js +20 -14
  133. package/esm/api/api/profiling.js.map +1 -1
  134. package/esm/api/api/project.d.ts.map +1 -1
  135. package/esm/api/api/project.js +5 -3
  136. package/esm/api/api/project.js.map +1 -1
  137. package/esm/api/api/put_script.js +5 -8
  138. package/esm/api/api/put_script.js.map +1 -1
  139. package/esm/api/api/query_rules.d.ts.map +1 -1
  140. package/esm/api/api/query_rules.js +40 -34
  141. package/esm/api/api/query_rules.js.map +1 -1
  142. package/esm/api/api/rank_eval.js +5 -9
  143. package/esm/api/api/rank_eval.js.map +1 -1
  144. package/esm/api/api/reindex.js +5 -16
  145. package/esm/api/api/reindex.js.map +1 -1
  146. package/esm/api/api/reindex_rethrottle.js +5 -4
  147. package/esm/api/api/reindex_rethrottle.js.map +1 -1
  148. package/esm/api/api/render_search_template.js +5 -7
  149. package/esm/api/api/render_search_template.js.map +1 -1
  150. package/esm/api/api/rollup.d.ts.map +1 -1
  151. package/esm/api/api/rollup.js +40 -40
  152. package/esm/api/api/rollup.js.map +1 -1
  153. package/esm/api/api/scripts_painless_execute.js +5 -5
  154. package/esm/api/api/scripts_painless_execute.js.map +1 -1
  155. package/esm/api/api/scroll.js +5 -8
  156. package/esm/api/api/scroll.js.map +1 -1
  157. package/esm/api/api/search.js +5 -84
  158. package/esm/api/api/search.js.map +1 -1
  159. package/esm/api/api/search_application.d.ts.map +1 -1
  160. package/esm/api/api/search_application.js +50 -40
  161. package/esm/api/api/search_application.js.map +1 -1
  162. package/esm/api/api/search_mvt.js +5 -30
  163. package/esm/api/api/search_mvt.js.map +1 -1
  164. package/esm/api/api/search_shards.js +5 -10
  165. package/esm/api/api/search_shards.js.map +1 -1
  166. package/esm/api/api/search_template.js +5 -22
  167. package/esm/api/api/search_template.js.map +1 -1
  168. package/esm/api/api/searchable_snapshots.d.ts.map +1 -1
  169. package/esm/api/api/searchable_snapshots.js +20 -25
  170. package/esm/api/api/searchable_snapshots.js.map +1 -1
  171. package/esm/api/api/security.d.ts.map +1 -1
  172. package/esm/api/api/security.js +325 -339
  173. package/esm/api/api/security.js.map +1 -1
  174. package/esm/api/api/shutdown.d.ts.map +1 -1
  175. package/esm/api/api/shutdown.js +15 -18
  176. package/esm/api/api/shutdown.js.map +1 -1
  177. package/esm/api/api/simulate.d.ts.map +1 -1
  178. package/esm/api/api/simulate.js +5 -10
  179. package/esm/api/api/simulate.js.map +1 -1
  180. package/esm/api/api/slm.d.ts.map +1 -1
  181. package/esm/api/api/slm.js +45 -45
  182. package/esm/api/api/slm.js.map +1 -1
  183. package/esm/api/api/snapshot.d.ts.map +1 -1
  184. package/esm/api/api/snapshot.js +65 -119
  185. package/esm/api/api/snapshot.js.map +1 -1
  186. package/esm/api/api/sql.d.ts.map +1 -1
  187. package/esm/api/api/sql.js +30 -43
  188. package/esm/api/api/sql.js.map +1 -1
  189. package/esm/api/api/ssl.d.ts.map +1 -1
  190. package/esm/api/api/ssl.js +5 -1
  191. package/esm/api/api/ssl.js.map +1 -1
  192. package/esm/api/api/streams.d.ts.map +1 -1
  193. package/esm/api/api/streams.js +15 -11
  194. package/esm/api/api/streams.js.map +1 -1
  195. package/esm/api/api/synonyms.d.ts.map +1 -1
  196. package/esm/api/api/synonyms.js +35 -32
  197. package/esm/api/api/synonyms.js.map +1 -1
  198. package/esm/api/api/tasks.d.ts.map +1 -1
  199. package/esm/api/api/tasks.js +15 -21
  200. package/esm/api/api/tasks.js.map +1 -1
  201. package/esm/api/api/terms_enum.js +5 -10
  202. package/esm/api/api/terms_enum.js.map +1 -1
  203. package/esm/api/api/termvectors.js +5 -27
  204. package/esm/api/api/termvectors.js.map +1 -1
  205. package/esm/api/api/text_structure.d.ts.map +1 -1
  206. package/esm/api/api/text_structure.js +20 -53
  207. package/esm/api/api/text_structure.js.map +1 -1
  208. package/esm/api/api/transform.d.ts.map +1 -1
  209. package/esm/api/api/transform.js +65 -92
  210. package/esm/api/api/transform.js.map +1 -1
  211. package/esm/api/api/update.js +5 -24
  212. package/esm/api/api/update.js.map +1 -1
  213. package/esm/api/api/update_by_query.js +5 -39
  214. package/esm/api/api/update_by_query.js.map +1 -1
  215. package/esm/api/api/update_by_query_rethrottle.js +5 -4
  216. package/esm/api/api/update_by_query_rethrottle.js.map +1 -1
  217. package/esm/api/api/watcher.d.ts.map +1 -1
  218. package/esm/api/api/watcher.js +65 -69
  219. package/esm/api/api/watcher.js.map +1 -1
  220. package/esm/api/api/xpack.d.ts.map +1 -1
  221. package/esm/api/api/xpack.js +10 -8
  222. package/esm/api/api/xpack.js.map +1 -1
  223. package/esm/api/types.d.ts +84 -26
  224. package/esm/api/types.d.ts.map +1 -1
  225. package/esm/version.generated.js +2 -2
  226. package/lib/api/api/async_search.js +20 -93
  227. package/lib/api/api/async_search.js.map +1 -1
  228. package/lib/api/api/autoscaling.js +20 -18
  229. package/lib/api/api/autoscaling.js.map +1 -1
  230. package/lib/api/api/bulk.js +5 -16
  231. package/lib/api/api/bulk.js.map +1 -1
  232. package/lib/api/api/capabilities.js +5 -8
  233. package/lib/api/api/capabilities.js.map +1 -1
  234. package/lib/api/api/cat.js +135 -185
  235. package/lib/api/api/cat.js.map +1 -1
  236. package/lib/api/api/ccr.js +65 -96
  237. package/lib/api/api/ccr.js.map +1 -1
  238. package/lib/api/api/clear_scroll.js +5 -4
  239. package/lib/api/api/clear_scroll.js.map +1 -1
  240. package/lib/api/api/close_point_in_time.js +5 -3
  241. package/lib/api/api/close_point_in_time.js.map +1 -1
  242. package/lib/api/api/cluster.js +80 -112
  243. package/lib/api/api/cluster.js.map +1 -1
  244. package/lib/api/api/connector.js +170 -168
  245. package/lib/api/api/connector.js.map +1 -1
  246. package/lib/api/api/count.js +5 -19
  247. package/lib/api/api/count.js.map +1 -1
  248. package/lib/api/api/create.js +5 -15
  249. package/lib/api/api/create.js.map +1 -1
  250. package/lib/api/api/dangling_indices.js +15 -13
  251. package/lib/api/api/dangling_indices.js.map +1 -1
  252. package/lib/api/api/delete.js +5 -12
  253. package/lib/api/api/delete.js.map +1 -1
  254. package/lib/api/api/delete_by_query.js +5 -36
  255. package/lib/api/api/delete_by_query.js.map +1 -1
  256. package/lib/api/api/delete_by_query_rethrottle.js +5 -4
  257. package/lib/api/api/delete_by_query_rethrottle.js.map +1 -1
  258. package/lib/api/api/delete_script.js +5 -5
  259. package/lib/api/api/delete_script.js.map +1 -1
  260. package/lib/api/api/enrich.js +25 -23
  261. package/lib/api/api/enrich.js.map +1 -1
  262. package/lib/api/api/eql.js +20 -41
  263. package/lib/api/api/eql.js.map +1 -1
  264. package/lib/api/api/esql.js +54 -63
  265. package/lib/api/api/esql.js.map +1 -1
  266. package/lib/api/api/exists.js +5 -14
  267. package/lib/api/api/exists.js.map +1 -1
  268. package/lib/api/api/exists_source.js +5 -13
  269. package/lib/api/api/exists_source.js.map +1 -1
  270. package/lib/api/api/explain.js +5 -17
  271. package/lib/api/api/explain.js.map +1 -1
  272. package/lib/api/api/features.js +10 -6
  273. package/lib/api/api/features.js.map +1 -1
  274. package/lib/api/api/field_caps.js +5 -15
  275. package/lib/api/api/field_caps.js.map +1 -1
  276. package/lib/api/api/fleet.js +30 -111
  277. package/lib/api/api/fleet.js.map +1 -1
  278. package/lib/api/api/get.js +5 -16
  279. package/lib/api/api/get.js.map +1 -1
  280. package/lib/api/api/get_script.js +5 -4
  281. package/lib/api/api/get_script.js.map +1 -1
  282. package/lib/api/api/get_script_context.js +5 -1
  283. package/lib/api/api/get_script_context.js.map +1 -1
  284. package/lib/api/api/get_script_languages.js +5 -1
  285. package/lib/api/api/get_script_languages.js.map +1 -1
  286. package/lib/api/api/get_source.js +5 -13
  287. package/lib/api/api/get_source.js.map +1 -1
  288. package/lib/api/api/graph.js +5 -9
  289. package/lib/api/api/graph.js.map +1 -1
  290. package/lib/api/api/health_report.js +5 -6
  291. package/lib/api/api/health_report.js.map +1 -1
  292. package/lib/api/api/ilm.js +55 -48
  293. package/lib/api/api/ilm.js.map +1 -1
  294. package/lib/api/api/index.js +5 -18
  295. package/lib/api/api/index.js.map +1 -1
  296. package/lib/api/api/indices.d.ts +1 -1
  297. package/lib/api/api/indices.js +385 -583
  298. package/lib/api/api/indices.js.map +1 -1
  299. package/lib/api/api/inference.d.ts +1 -1
  300. package/lib/api/api/inference.js +184 -280
  301. package/lib/api/api/inference.js.map +1 -1
  302. package/lib/api/api/info.js +5 -1
  303. package/lib/api/api/info.js.map +1 -1
  304. package/lib/api/api/ingest.js +60 -60
  305. package/lib/api/api/ingest.js.map +1 -1
  306. package/lib/api/api/knn_search.js +5 -10
  307. package/lib/api/api/knn_search.js.map +1 -1
  308. package/lib/api/api/license.js +35 -27
  309. package/lib/api/api/license.js.map +1 -1
  310. package/lib/api/api/logstash.js +15 -10
  311. package/lib/api/api/logstash.js.map +1 -1
  312. package/lib/api/api/mget.js +5 -14
  313. package/lib/api/api/mget.js.map +1 -1
  314. package/lib/api/api/migration.d.ts +1 -1
  315. package/lib/api/api/migration.js +15 -5
  316. package/lib/api/api/migration.js.map +1 -1
  317. package/lib/api/api/ml.js +365 -574
  318. package/lib/api/api/ml.js.map +1 -1
  319. package/lib/api/api/monitoring.js +5 -6
  320. package/lib/api/api/monitoring.js.map +1 -1
  321. package/lib/api/api/msearch.js +5 -19
  322. package/lib/api/api/msearch.js.map +1 -1
  323. package/lib/api/api/msearch_template.js +5 -10
  324. package/lib/api/api/msearch_template.js.map +1 -1
  325. package/lib/api/api/mtermvectors.js +5 -17
  326. package/lib/api/api/mtermvectors.js.map +1 -1
  327. package/lib/api/api/nodes.js +35 -47
  328. package/lib/api/api/nodes.js.map +1 -1
  329. package/lib/api/api/open_point_in_time.js +5 -12
  330. package/lib/api/api/open_point_in_time.js.map +1 -1
  331. package/lib/api/api/ping.js +5 -1
  332. package/lib/api/api/ping.js.map +1 -1
  333. package/lib/api/api/profiling.js +20 -14
  334. package/lib/api/api/profiling.js.map +1 -1
  335. package/lib/api/api/project.js +5 -3
  336. package/lib/api/api/project.js.map +1 -1
  337. package/lib/api/api/put_script.js +5 -8
  338. package/lib/api/api/put_script.js.map +1 -1
  339. package/lib/api/api/query_rules.js +40 -34
  340. package/lib/api/api/query_rules.js.map +1 -1
  341. package/lib/api/api/rank_eval.js +5 -9
  342. package/lib/api/api/rank_eval.js.map +1 -1
  343. package/lib/api/api/reindex.js +5 -16
  344. package/lib/api/api/reindex.js.map +1 -1
  345. package/lib/api/api/reindex_rethrottle.js +5 -4
  346. package/lib/api/api/reindex_rethrottle.js.map +1 -1
  347. package/lib/api/api/render_search_template.js +5 -7
  348. package/lib/api/api/render_search_template.js.map +1 -1
  349. package/lib/api/api/rollup.js +40 -40
  350. package/lib/api/api/rollup.js.map +1 -1
  351. package/lib/api/api/scripts_painless_execute.js +5 -5
  352. package/lib/api/api/scripts_painless_execute.js.map +1 -1
  353. package/lib/api/api/scroll.js +5 -8
  354. package/lib/api/api/scroll.js.map +1 -1
  355. package/lib/api/api/search.js +5 -84
  356. package/lib/api/api/search.js.map +1 -1
  357. package/lib/api/api/search_application.js +50 -40
  358. package/lib/api/api/search_application.js.map +1 -1
  359. package/lib/api/api/search_mvt.js +5 -30
  360. package/lib/api/api/search_mvt.js.map +1 -1
  361. package/lib/api/api/search_shards.js +5 -10
  362. package/lib/api/api/search_shards.js.map +1 -1
  363. package/lib/api/api/search_template.js +5 -22
  364. package/lib/api/api/search_template.js.map +1 -1
  365. package/lib/api/api/searchable_snapshots.js +20 -25
  366. package/lib/api/api/searchable_snapshots.js.map +1 -1
  367. package/lib/api/api/security.js +325 -339
  368. package/lib/api/api/security.js.map +1 -1
  369. package/lib/api/api/shutdown.js +15 -18
  370. package/lib/api/api/shutdown.js.map +1 -1
  371. package/lib/api/api/simulate.js +5 -10
  372. package/lib/api/api/simulate.js.map +1 -1
  373. package/lib/api/api/slm.js +45 -45
  374. package/lib/api/api/slm.js.map +1 -1
  375. package/lib/api/api/snapshot.js +65 -119
  376. package/lib/api/api/snapshot.js.map +1 -1
  377. package/lib/api/api/sql.js +30 -43
  378. package/lib/api/api/sql.js.map +1 -1
  379. package/lib/api/api/ssl.js +5 -1
  380. package/lib/api/api/ssl.js.map +1 -1
  381. package/lib/api/api/streams.js +15 -11
  382. package/lib/api/api/streams.js.map +1 -1
  383. package/lib/api/api/synonyms.js +35 -32
  384. package/lib/api/api/synonyms.js.map +1 -1
  385. package/lib/api/api/tasks.js +15 -21
  386. package/lib/api/api/tasks.js.map +1 -1
  387. package/lib/api/api/terms_enum.js +5 -10
  388. package/lib/api/api/terms_enum.js.map +1 -1
  389. package/lib/api/api/termvectors.js +5 -27
  390. package/lib/api/api/termvectors.js.map +1 -1
  391. package/lib/api/api/text_structure.js +20 -53
  392. package/lib/api/api/text_structure.js.map +1 -1
  393. package/lib/api/api/transform.js +65 -92
  394. package/lib/api/api/transform.js.map +1 -1
  395. package/lib/api/api/update.js +5 -24
  396. package/lib/api/api/update.js.map +1 -1
  397. package/lib/api/api/update_by_query.js +5 -39
  398. package/lib/api/api/update_by_query.js.map +1 -1
  399. package/lib/api/api/update_by_query_rethrottle.js +5 -4
  400. package/lib/api/api/update_by_query_rethrottle.js.map +1 -1
  401. package/lib/api/api/watcher.js +65 -69
  402. package/lib/api/api/watcher.js.map +1 -1
  403. package/lib/api/api/xpack.js +10 -8
  404. package/lib/api/api/xpack.js.map +1 -1
  405. package/lib/api/types.d.ts +84 -26
  406. package/lib/version.generated.js +2 -2
  407. package/package.json +2 -2
package/lib/api/api/ml.js CHANGED
@@ -1001,9 +1001,11 @@ class Ml {
1001
1001
  pathParts: {
1002
1002
  model_id: params.model_id
1003
1003
  },
1004
- acceptedParams: [
1005
- 'model_id'
1006
- ]
1004
+ acceptedParams: {
1005
+ path: ['model_id'],
1006
+ body: [],
1007
+ query: []
1008
+ }
1007
1009
  };
1008
1010
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1009
1011
  }
@@ -1049,15 +1051,11 @@ class Ml {
1049
1051
  pathParts: {
1050
1052
  job_id: params.job_id
1051
1053
  },
1052
- acceptedParams: [
1053
- 'job_id',
1054
- 'allow_no_match',
1055
- 'force',
1056
- 'timeout',
1057
- 'allow_no_match',
1058
- 'force',
1059
- 'timeout'
1060
- ]
1054
+ acceptedParams: {
1055
+ path: ['job_id'],
1056
+ body: ['allow_no_match', 'force', 'timeout'],
1057
+ query: ['allow_no_match', 'force', 'timeout']
1058
+ }
1061
1059
  };
1062
1060
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1063
1061
  }
@@ -1091,9 +1089,11 @@ class Ml {
1091
1089
  pathParts: {
1092
1090
  calendar_id: params.calendar_id
1093
1091
  },
1094
- acceptedParams: [
1095
- 'calendar_id'
1096
- ]
1092
+ acceptedParams: {
1093
+ path: ['calendar_id'],
1094
+ body: [],
1095
+ query: []
1096
+ }
1097
1097
  };
1098
1098
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1099
1099
  }
@@ -1128,10 +1128,11 @@ class Ml {
1128
1128
  calendar_id: params.calendar_id,
1129
1129
  event_id: params.event_id
1130
1130
  },
1131
- acceptedParams: [
1132
- 'calendar_id',
1133
- 'event_id'
1134
- ]
1131
+ acceptedParams: {
1132
+ path: ['calendar_id', 'event_id'],
1133
+ body: [],
1134
+ query: []
1135
+ }
1135
1136
  };
1136
1137
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1137
1138
  }
@@ -1166,10 +1167,11 @@ class Ml {
1166
1167
  calendar_id: params.calendar_id,
1167
1168
  job_id: params.job_id
1168
1169
  },
1169
- acceptedParams: [
1170
- 'calendar_id',
1171
- 'job_id'
1172
- ]
1170
+ acceptedParams: {
1171
+ path: ['calendar_id', 'job_id'],
1172
+ body: [],
1173
+ query: []
1174
+ }
1173
1175
  };
1174
1176
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1175
1177
  }
@@ -1203,11 +1205,11 @@ class Ml {
1203
1205
  pathParts: {
1204
1206
  id: params.id
1205
1207
  },
1206
- acceptedParams: [
1207
- 'id',
1208
- 'force',
1209
- 'timeout'
1210
- ]
1208
+ acceptedParams: {
1209
+ path: ['id'],
1210
+ body: [],
1211
+ query: ['force', 'timeout']
1212
+ }
1211
1213
  };
1212
1214
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1213
1215
  }
@@ -1241,10 +1243,11 @@ class Ml {
1241
1243
  pathParts: {
1242
1244
  datafeed_id: params.datafeed_id
1243
1245
  },
1244
- acceptedParams: [
1245
- 'datafeed_id',
1246
- 'force'
1247
- ]
1246
+ acceptedParams: {
1247
+ path: ['datafeed_id'],
1248
+ body: [],
1249
+ query: ['force']
1250
+ }
1248
1251
  };
1249
1252
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1250
1253
  }
@@ -1299,13 +1302,11 @@ class Ml {
1299
1302
  pathParts: {
1300
1303
  job_id: params.job_id
1301
1304
  },
1302
- acceptedParams: [
1303
- 'job_id',
1304
- 'requests_per_second',
1305
- 'timeout',
1306
- 'requests_per_second',
1307
- 'timeout'
1308
- ]
1305
+ acceptedParams: {
1306
+ path: ['job_id'],
1307
+ body: ['requests_per_second', 'timeout'],
1308
+ query: ['requests_per_second', 'timeout']
1309
+ }
1309
1310
  };
1310
1311
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1311
1312
  }
@@ -1339,9 +1340,11 @@ class Ml {
1339
1340
  pathParts: {
1340
1341
  filter_id: params.filter_id
1341
1342
  },
1342
- acceptedParams: [
1343
- 'filter_id'
1344
- ]
1343
+ acceptedParams: {
1344
+ path: ['filter_id'],
1345
+ body: [],
1346
+ query: []
1347
+ }
1345
1348
  };
1346
1349
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1347
1350
  }
@@ -1384,12 +1387,11 @@ class Ml {
1384
1387
  job_id: params.job_id,
1385
1388
  forecast_id: params.forecast_id
1386
1389
  },
1387
- acceptedParams: [
1388
- 'job_id',
1389
- 'forecast_id',
1390
- 'allow_no_forecasts',
1391
- 'timeout'
1392
- ]
1390
+ acceptedParams: {
1391
+ path: ['job_id', 'forecast_id'],
1392
+ body: [],
1393
+ query: ['allow_no_forecasts', 'timeout']
1394
+ }
1393
1395
  };
1394
1396
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1395
1397
  }
@@ -1423,12 +1425,11 @@ class Ml {
1423
1425
  pathParts: {
1424
1426
  job_id: params.job_id
1425
1427
  },
1426
- acceptedParams: [
1427
- 'job_id',
1428
- 'force',
1429
- 'delete_user_annotations',
1430
- 'wait_for_completion'
1431
- ]
1428
+ acceptedParams: {
1429
+ path: ['job_id'],
1430
+ body: [],
1431
+ query: ['force', 'delete_user_annotations', 'wait_for_completion']
1432
+ }
1432
1433
  };
1433
1434
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1434
1435
  }
@@ -1463,10 +1464,11 @@ class Ml {
1463
1464
  job_id: params.job_id,
1464
1465
  snapshot_id: params.snapshot_id
1465
1466
  },
1466
- acceptedParams: [
1467
- 'job_id',
1468
- 'snapshot_id'
1469
- ]
1467
+ acceptedParams: {
1468
+ path: ['job_id', 'snapshot_id'],
1469
+ body: [],
1470
+ query: []
1471
+ }
1470
1472
  };
1471
1473
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1472
1474
  }
@@ -1500,11 +1502,11 @@ class Ml {
1500
1502
  pathParts: {
1501
1503
  model_id: params.model_id
1502
1504
  },
1503
- acceptedParams: [
1504
- 'model_id',
1505
- 'force',
1506
- 'timeout'
1507
- ]
1505
+ acceptedParams: {
1506
+ path: ['model_id'],
1507
+ body: [],
1508
+ query: ['force', 'timeout']
1509
+ }
1508
1510
  };
1509
1511
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1510
1512
  }
@@ -1539,10 +1541,11 @@ class Ml {
1539
1541
  model_alias: params.model_alias,
1540
1542
  model_id: params.model_id
1541
1543
  },
1542
- acceptedParams: [
1543
- 'model_alias',
1544
- 'model_id'
1545
- ]
1544
+ acceptedParams: {
1545
+ path: ['model_alias', 'model_id'],
1546
+ body: [],
1547
+ query: []
1548
+ }
1546
1549
  };
1547
1550
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1548
1551
  }
@@ -1586,11 +1589,11 @@ class Ml {
1586
1589
  const path = '/_ml/anomaly_detectors/_estimate_model_memory';
1587
1590
  const meta = {
1588
1591
  name: 'ml.estimate_model_memory',
1589
- acceptedParams: [
1590
- 'analysis_config',
1591
- 'max_bucket_cardinality',
1592
- 'overall_cardinality'
1593
- ]
1592
+ acceptedParams: {
1593
+ path: [],
1594
+ body: ['analysis_config', 'max_bucket_cardinality', 'overall_cardinality'],
1595
+ query: []
1596
+ }
1594
1597
  };
1595
1598
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1596
1599
  }
@@ -1633,11 +1636,11 @@ class Ml {
1633
1636
  const path = '/_ml/data_frame/_evaluate';
1634
1637
  const meta = {
1635
1638
  name: 'ml.evaluate_data_frame',
1636
- acceptedParams: [
1637
- 'evaluation',
1638
- 'index',
1639
- 'query'
1640
- ]
1639
+ acceptedParams: {
1640
+ path: [],
1641
+ body: ['evaluation', 'index', 'query'],
1642
+ query: []
1643
+ }
1641
1644
  };
1642
1645
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1643
1646
  }
@@ -1692,17 +1695,11 @@ class Ml {
1692
1695
  pathParts: {
1693
1696
  id: params.id
1694
1697
  },
1695
- acceptedParams: [
1696
- 'id',
1697
- 'source',
1698
- 'dest',
1699
- 'analysis',
1700
- 'description',
1701
- 'model_memory_limit',
1702
- 'max_num_threads',
1703
- 'analyzed_fields',
1704
- 'allow_lazy_start'
1705
- ]
1698
+ acceptedParams: {
1699
+ path: ['id'],
1700
+ body: ['source', 'dest', 'analysis', 'description', 'model_memory_limit', 'max_num_threads', 'analyzed_fields', 'allow_lazy_start'],
1701
+ query: []
1702
+ }
1706
1703
  };
1707
1704
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1708
1705
  }
@@ -1748,19 +1745,11 @@ class Ml {
1748
1745
  pathParts: {
1749
1746
  job_id: params.job_id
1750
1747
  },
1751
- acceptedParams: [
1752
- 'job_id',
1753
- 'advance_time',
1754
- 'calc_interim',
1755
- 'end',
1756
- 'skip_time',
1757
- 'start',
1758
- 'advance_time',
1759
- 'calc_interim',
1760
- 'end',
1761
- 'skip_time',
1762
- 'start'
1763
- ]
1748
+ acceptedParams: {
1749
+ path: ['job_id'],
1750
+ body: ['advance_time', 'calc_interim', 'end', 'skip_time', 'start'],
1751
+ query: ['advance_time', 'calc_interim', 'end', 'skip_time', 'start']
1752
+ }
1764
1753
  };
1765
1754
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1766
1755
  }
@@ -1806,15 +1795,11 @@ class Ml {
1806
1795
  pathParts: {
1807
1796
  job_id: params.job_id
1808
1797
  },
1809
- acceptedParams: [
1810
- 'job_id',
1811
- 'duration',
1812
- 'expires_in',
1813
- 'max_model_memory',
1814
- 'duration',
1815
- 'expires_in',
1816
- 'max_model_memory'
1817
- ]
1798
+ acceptedParams: {
1799
+ path: ['job_id'],
1800
+ body: ['duration', 'expires_in', 'max_model_memory'],
1801
+ query: ['duration', 'expires_in', 'max_model_memory']
1802
+ }
1818
1803
  };
1819
1804
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1820
1805
  }
@@ -1869,27 +1854,11 @@ class Ml {
1869
1854
  job_id: params.job_id,
1870
1855
  timestamp: params.timestamp
1871
1856
  },
1872
- acceptedParams: [
1873
- 'job_id',
1874
- 'timestamp',
1875
- 'anomaly_score',
1876
- 'desc',
1877
- 'end',
1878
- 'exclude_interim',
1879
- 'expand',
1880
- 'page',
1881
- 'sort',
1882
- 'start',
1883
- 'anomaly_score',
1884
- 'desc',
1885
- 'end',
1886
- 'exclude_interim',
1887
- 'expand',
1888
- 'from',
1889
- 'size',
1890
- 'sort',
1891
- 'start'
1892
- ]
1857
+ acceptedParams: {
1858
+ path: ['job_id', 'timestamp'],
1859
+ body: ['anomaly_score', 'desc', 'end', 'exclude_interim', 'expand', 'page', 'sort', 'start'],
1860
+ query: ['anomaly_score', 'desc', 'end', 'exclude_interim', 'expand', 'from', 'size', 'sort', 'start']
1861
+ }
1893
1862
  };
1894
1863
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1895
1864
  }
@@ -1923,14 +1892,11 @@ class Ml {
1923
1892
  pathParts: {
1924
1893
  calendar_id: params.calendar_id
1925
1894
  },
1926
- acceptedParams: [
1927
- 'calendar_id',
1928
- 'end',
1929
- 'from',
1930
- 'job_id',
1931
- 'size',
1932
- 'start'
1933
- ]
1895
+ acceptedParams: {
1896
+ path: ['calendar_id'],
1897
+ body: [],
1898
+ query: ['end', 'from', 'job_id', 'size', 'start']
1899
+ }
1934
1900
  };
1935
1901
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1936
1902
  }
@@ -1985,12 +1951,11 @@ class Ml {
1985
1951
  pathParts: {
1986
1952
  calendar_id: params.calendar_id
1987
1953
  },
1988
- acceptedParams: [
1989
- 'calendar_id',
1990
- 'page',
1991
- 'from',
1992
- 'size'
1993
- ]
1954
+ acceptedParams: {
1955
+ path: ['calendar_id'],
1956
+ body: ['page'],
1957
+ query: ['from', 'size']
1958
+ }
1994
1959
  };
1995
1960
  return await this.transport.request({ path, method, querystring, body, meta }, options);
1996
1961
  }
@@ -2045,14 +2010,11 @@ class Ml {
2045
2010
  job_id: params.job_id,
2046
2011
  category_id: params.category_id
2047
2012
  },
2048
- acceptedParams: [
2049
- 'job_id',
2050
- 'category_id',
2051
- 'page',
2052
- 'from',
2053
- 'partition_field_value',
2054
- 'size'
2055
- ]
2013
+ acceptedParams: {
2014
+ path: ['job_id', 'category_id'],
2015
+ body: ['page'],
2016
+ query: ['from', 'partition_field_value', 'size']
2017
+ }
2056
2018
  };
2057
2019
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2058
2020
  }
@@ -2095,13 +2057,11 @@ class Ml {
2095
2057
  pathParts: {
2096
2058
  id: params.id
2097
2059
  },
2098
- acceptedParams: [
2099
- 'id',
2100
- 'allow_no_match',
2101
- 'from',
2102
- 'size',
2103
- 'exclude_generated'
2104
- ]
2060
+ acceptedParams: {
2061
+ path: ['id'],
2062
+ body: [],
2063
+ query: ['allow_no_match', 'from', 'size', 'exclude_generated']
2064
+ }
2105
2065
  };
2106
2066
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2107
2067
  }
@@ -2144,13 +2104,11 @@ class Ml {
2144
2104
  pathParts: {
2145
2105
  id: params.id
2146
2106
  },
2147
- acceptedParams: [
2148
- 'id',
2149
- 'allow_no_match',
2150
- 'from',
2151
- 'size',
2152
- 'verbose'
2153
- ]
2107
+ acceptedParams: {
2108
+ path: ['id'],
2109
+ body: [],
2110
+ query: ['allow_no_match', 'from', 'size', 'verbose']
2111
+ }
2154
2112
  };
2155
2113
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2156
2114
  }
@@ -2193,10 +2151,11 @@ class Ml {
2193
2151
  pathParts: {
2194
2152
  datafeed_id: params.datafeed_id
2195
2153
  },
2196
- acceptedParams: [
2197
- 'datafeed_id',
2198
- 'allow_no_match'
2199
- ]
2154
+ acceptedParams: {
2155
+ path: ['datafeed_id'],
2156
+ body: [],
2157
+ query: ['allow_no_match']
2158
+ }
2200
2159
  };
2201
2160
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2202
2161
  }
@@ -2239,11 +2198,11 @@ class Ml {
2239
2198
  pathParts: {
2240
2199
  datafeed_id: params.datafeed_id
2241
2200
  },
2242
- acceptedParams: [
2243
- 'datafeed_id',
2244
- 'allow_no_match',
2245
- 'exclude_generated'
2246
- ]
2201
+ acceptedParams: {
2202
+ path: ['datafeed_id'],
2203
+ body: [],
2204
+ query: ['allow_no_match', 'exclude_generated']
2205
+ }
2247
2206
  };
2248
2207
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2249
2208
  }
@@ -2286,11 +2245,11 @@ class Ml {
2286
2245
  pathParts: {
2287
2246
  filter_id: params.filter_id
2288
2247
  },
2289
- acceptedParams: [
2290
- 'filter_id',
2291
- 'from',
2292
- 'size'
2293
- ]
2248
+ acceptedParams: {
2249
+ path: ['filter_id'],
2250
+ body: [],
2251
+ query: ['from', 'size']
2252
+ }
2294
2253
  };
2295
2254
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2296
2255
  }
@@ -2336,18 +2295,11 @@ class Ml {
2336
2295
  pathParts: {
2337
2296
  job_id: params.job_id
2338
2297
  },
2339
- acceptedParams: [
2340
- 'job_id',
2341
- 'page',
2342
- 'desc',
2343
- 'end',
2344
- 'exclude_interim',
2345
- 'influencer_score',
2346
- 'from',
2347
- 'size',
2348
- 'sort',
2349
- 'start'
2350
- ]
2298
+ acceptedParams: {
2299
+ path: ['job_id'],
2300
+ body: ['page'],
2301
+ query: ['desc', 'end', 'exclude_interim', 'influencer_score', 'from', 'size', 'sort', 'start']
2302
+ }
2351
2303
  };
2352
2304
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2353
2305
  }
@@ -2390,10 +2342,11 @@ class Ml {
2390
2342
  pathParts: {
2391
2343
  job_id: params.job_id
2392
2344
  },
2393
- acceptedParams: [
2394
- 'job_id',
2395
- 'allow_no_match'
2396
- ]
2345
+ acceptedParams: {
2346
+ path: ['job_id'],
2347
+ body: [],
2348
+ query: ['allow_no_match']
2349
+ }
2397
2350
  };
2398
2351
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2399
2352
  }
@@ -2436,11 +2389,11 @@ class Ml {
2436
2389
  pathParts: {
2437
2390
  job_id: params.job_id
2438
2391
  },
2439
- acceptedParams: [
2440
- 'job_id',
2441
- 'allow_no_match',
2442
- 'exclude_generated'
2443
- ]
2392
+ acceptedParams: {
2393
+ path: ['job_id'],
2394
+ body: [],
2395
+ query: ['allow_no_match', 'exclude_generated']
2396
+ }
2444
2397
  };
2445
2398
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2446
2399
  }
@@ -2483,11 +2436,11 @@ class Ml {
2483
2436
  pathParts: {
2484
2437
  node_id: params.node_id
2485
2438
  },
2486
- acceptedParams: [
2487
- 'node_id',
2488
- 'master_timeout',
2489
- 'timeout'
2490
- ]
2439
+ acceptedParams: {
2440
+ path: ['node_id'],
2441
+ body: [],
2442
+ query: ['master_timeout', 'timeout']
2443
+ }
2491
2444
  };
2492
2445
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2493
2446
  }
@@ -2522,11 +2475,11 @@ class Ml {
2522
2475
  job_id: params.job_id,
2523
2476
  snapshot_id: params.snapshot_id
2524
2477
  },
2525
- acceptedParams: [
2526
- 'job_id',
2527
- 'snapshot_id',
2528
- 'allow_no_match'
2529
- ]
2478
+ acceptedParams: {
2479
+ path: ['job_id', 'snapshot_id'],
2480
+ body: [],
2481
+ query: ['allow_no_match']
2482
+ }
2530
2483
  };
2531
2484
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2532
2485
  }
@@ -2581,21 +2534,11 @@ class Ml {
2581
2534
  job_id: params.job_id,
2582
2535
  snapshot_id: params.snapshot_id
2583
2536
  },
2584
- acceptedParams: [
2585
- 'job_id',
2586
- 'snapshot_id',
2587
- 'desc',
2588
- 'end',
2589
- 'page',
2590
- 'sort',
2591
- 'start',
2592
- 'desc',
2593
- 'end',
2594
- 'from',
2595
- 'size',
2596
- 'sort',
2597
- 'start'
2598
- ]
2537
+ acceptedParams: {
2538
+ path: ['job_id', 'snapshot_id'],
2539
+ body: ['desc', 'end', 'page', 'sort', 'start'],
2540
+ query: ['desc', 'end', 'from', 'size', 'sort', 'start']
2541
+ }
2599
2542
  };
2600
2543
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2601
2544
  }
@@ -2641,23 +2584,11 @@ class Ml {
2641
2584
  pathParts: {
2642
2585
  job_id: params.job_id
2643
2586
  },
2644
- acceptedParams: [
2645
- 'job_id',
2646
- 'allow_no_match',
2647
- 'bucket_span',
2648
- 'end',
2649
- 'exclude_interim',
2650
- 'overall_score',
2651
- 'start',
2652
- 'top_n',
2653
- 'allow_no_match',
2654
- 'bucket_span',
2655
- 'end',
2656
- 'exclude_interim',
2657
- 'overall_score',
2658
- 'start',
2659
- 'top_n'
2660
- ]
2587
+ acceptedParams: {
2588
+ path: ['job_id'],
2589
+ body: ['allow_no_match', 'bucket_span', 'end', 'exclude_interim', 'overall_score', 'start', 'top_n'],
2590
+ query: ['allow_no_match', 'bucket_span', 'end', 'exclude_interim', 'overall_score', 'start', 'top_n']
2591
+ }
2661
2592
  };
2662
2593
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2663
2594
  }
@@ -2703,24 +2634,11 @@ class Ml {
2703
2634
  pathParts: {
2704
2635
  job_id: params.job_id
2705
2636
  },
2706
- acceptedParams: [
2707
- 'job_id',
2708
- 'desc',
2709
- 'end',
2710
- 'exclude_interim',
2711
- 'page',
2712
- 'record_score',
2713
- 'sort',
2714
- 'start',
2715
- 'desc',
2716
- 'end',
2717
- 'exclude_interim',
2718
- 'from',
2719
- 'record_score',
2720
- 'size',
2721
- 'sort',
2722
- 'start'
2723
- ]
2637
+ acceptedParams: {
2638
+ path: ['job_id'],
2639
+ body: ['desc', 'end', 'exclude_interim', 'page', 'record_score', 'sort', 'start'],
2640
+ query: ['desc', 'end', 'exclude_interim', 'from', 'record_score', 'size', 'sort', 'start']
2641
+ }
2724
2642
  };
2725
2643
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2726
2644
  }
@@ -2763,16 +2681,11 @@ class Ml {
2763
2681
  pathParts: {
2764
2682
  model_id: params.model_id
2765
2683
  },
2766
- acceptedParams: [
2767
- 'model_id',
2768
- 'allow_no_match',
2769
- 'decompress_definition',
2770
- 'exclude_generated',
2771
- 'from',
2772
- 'include',
2773
- 'size',
2774
- 'tags'
2775
- ]
2684
+ acceptedParams: {
2685
+ path: ['model_id'],
2686
+ body: [],
2687
+ query: ['allow_no_match', 'decompress_definition', 'exclude_generated', 'from', 'include', 'size', 'tags']
2688
+ }
2776
2689
  };
2777
2690
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2778
2691
  }
@@ -2815,12 +2728,11 @@ class Ml {
2815
2728
  pathParts: {
2816
2729
  model_id: params.model_id
2817
2730
  },
2818
- acceptedParams: [
2819
- 'model_id',
2820
- 'allow_no_match',
2821
- 'from',
2822
- 'size'
2823
- ]
2731
+ acceptedParams: {
2732
+ path: ['model_id'],
2733
+ body: [],
2734
+ query: ['allow_no_match', 'from', 'size']
2735
+ }
2824
2736
  };
2825
2737
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2826
2738
  }
@@ -2866,12 +2778,11 @@ class Ml {
2866
2778
  pathParts: {
2867
2779
  model_id: params.model_id
2868
2780
  },
2869
- acceptedParams: [
2870
- 'model_id',
2871
- 'docs',
2872
- 'inference_config',
2873
- 'timeout'
2874
- ]
2781
+ acceptedParams: {
2782
+ path: ['model_id'],
2783
+ body: ['docs', 'inference_config'],
2784
+ query: ['timeout']
2785
+ }
2875
2786
  };
2876
2787
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2877
2788
  }
@@ -2903,7 +2814,11 @@ class Ml {
2903
2814
  const path = '/_ml/info';
2904
2815
  const meta = {
2905
2816
  name: 'ml.info',
2906
- acceptedParams: []
2817
+ acceptedParams: {
2818
+ path: [],
2819
+ body: [],
2820
+ query: []
2821
+ }
2907
2822
  };
2908
2823
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2909
2824
  }
@@ -2949,11 +2864,11 @@ class Ml {
2949
2864
  pathParts: {
2950
2865
  job_id: params.job_id
2951
2866
  },
2952
- acceptedParams: [
2953
- 'job_id',
2954
- 'timeout',
2955
- 'timeout'
2956
- ]
2867
+ acceptedParams: {
2868
+ path: ['job_id'],
2869
+ body: ['timeout'],
2870
+ query: ['timeout']
2871
+ }
2957
2872
  };
2958
2873
  return await this.transport.request({ path, method, querystring, body, meta }, options);
2959
2874
  }
@@ -2999,10 +2914,11 @@ class Ml {
2999
2914
  pathParts: {
3000
2915
  calendar_id: params.calendar_id
3001
2916
  },
3002
- acceptedParams: [
3003
- 'calendar_id',
3004
- 'events'
3005
- ]
2917
+ acceptedParams: {
2918
+ path: ['calendar_id'],
2919
+ body: ['events'],
2920
+ query: []
2921
+ }
3006
2922
  };
3007
2923
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3008
2924
  }
@@ -3039,12 +2955,11 @@ class Ml {
3039
2955
  pathParts: {
3040
2956
  job_id: params.job_id
3041
2957
  },
3042
- acceptedParams: [
3043
- 'job_id',
3044
- 'data',
3045
- 'reset_end',
3046
- 'reset_start'
3047
- ]
2958
+ acceptedParams: {
2959
+ path: ['job_id'],
2960
+ body: ['data'],
2961
+ query: ['reset_end', 'reset_start']
2962
+ }
3048
2963
  };
3049
2964
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3050
2965
  }
@@ -3099,10 +3014,11 @@ class Ml {
3099
3014
  pathParts: {
3100
3015
  id: params.id
3101
3016
  },
3102
- acceptedParams: [
3103
- 'id',
3104
- 'config'
3105
- ]
3017
+ acceptedParams: {
3018
+ path: ['id'],
3019
+ body: ['config'],
3020
+ query: []
3021
+ }
3106
3022
  };
3107
3023
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3108
3024
  }
@@ -3157,13 +3073,11 @@ class Ml {
3157
3073
  pathParts: {
3158
3074
  datafeed_id: params.datafeed_id
3159
3075
  },
3160
- acceptedParams: [
3161
- 'datafeed_id',
3162
- 'datafeed_config',
3163
- 'job_config',
3164
- 'start',
3165
- 'end'
3166
- ]
3076
+ acceptedParams: {
3077
+ path: ['datafeed_id'],
3078
+ body: ['datafeed_config', 'job_config'],
3079
+ query: ['start', 'end']
3080
+ }
3167
3081
  };
3168
3082
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3169
3083
  }
@@ -3209,11 +3123,11 @@ class Ml {
3209
3123
  pathParts: {
3210
3124
  calendar_id: params.calendar_id
3211
3125
  },
3212
- acceptedParams: [
3213
- 'calendar_id',
3214
- 'job_ids',
3215
- 'description'
3216
- ]
3126
+ acceptedParams: {
3127
+ path: ['calendar_id'],
3128
+ body: ['job_ids', 'description'],
3129
+ query: []
3130
+ }
3217
3131
  };
3218
3132
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3219
3133
  }
@@ -3248,10 +3162,11 @@ class Ml {
3248
3162
  calendar_id: params.calendar_id,
3249
3163
  job_id: params.job_id
3250
3164
  },
3251
- acceptedParams: [
3252
- 'calendar_id',
3253
- 'job_id'
3254
- ]
3165
+ acceptedParams: {
3166
+ path: ['calendar_id', 'job_id'],
3167
+ body: [],
3168
+ query: []
3169
+ }
3255
3170
  };
3256
3171
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3257
3172
  }
@@ -3297,20 +3212,11 @@ class Ml {
3297
3212
  pathParts: {
3298
3213
  id: params.id
3299
3214
  },
3300
- acceptedParams: [
3301
- 'id',
3302
- 'allow_lazy_start',
3303
- 'analysis',
3304
- 'analyzed_fields',
3305
- 'description',
3306
- 'dest',
3307
- 'max_num_threads',
3308
- '_meta',
3309
- 'model_memory_limit',
3310
- 'source',
3311
- 'headers',
3312
- 'version'
3313
- ]
3215
+ acceptedParams: {
3216
+ path: ['id'],
3217
+ body: ['allow_lazy_start', 'analysis', 'analyzed_fields', 'description', 'dest', 'max_num_threads', '_meta', 'model_memory_limit', 'source', 'headers', 'version'],
3218
+ query: []
3219
+ }
3314
3220
  };
3315
3221
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3316
3222
  }
@@ -3356,29 +3262,11 @@ class Ml {
3356
3262
  pathParts: {
3357
3263
  datafeed_id: params.datafeed_id
3358
3264
  },
3359
- acceptedParams: [
3360
- 'datafeed_id',
3361
- 'aggregations',
3362
- 'aggs',
3363
- 'chunking_config',
3364
- 'delayed_data_check_config',
3365
- 'frequency',
3366
- 'indices',
3367
- 'indexes',
3368
- 'indices_options',
3369
- 'job_id',
3370
- 'max_empty_searches',
3371
- 'query',
3372
- 'query_delay',
3373
- 'runtime_mappings',
3374
- 'script_fields',
3375
- 'scroll_size',
3376
- 'headers',
3377
- 'allow_no_indices',
3378
- 'expand_wildcards',
3379
- 'ignore_throttled',
3380
- 'ignore_unavailable'
3381
- ]
3265
+ acceptedParams: {
3266
+ path: ['datafeed_id'],
3267
+ body: ['aggregations', 'aggs', 'chunking_config', 'delayed_data_check_config', 'frequency', 'indices', 'indexes', 'indices_options', 'job_id', 'max_empty_searches', 'query', 'query_delay', 'runtime_mappings', 'script_fields', 'scroll_size', 'headers'],
3268
+ query: ['allow_no_indices', 'expand_wildcards', 'ignore_throttled', 'ignore_unavailable']
3269
+ }
3382
3270
  };
3383
3271
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3384
3272
  }
@@ -3424,11 +3312,11 @@ class Ml {
3424
3312
  pathParts: {
3425
3313
  filter_id: params.filter_id
3426
3314
  },
3427
- acceptedParams: [
3428
- 'filter_id',
3429
- 'description',
3430
- 'items'
3431
- ]
3315
+ acceptedParams: {
3316
+ path: ['filter_id'],
3317
+ body: ['description', 'items'],
3318
+ query: []
3319
+ }
3432
3320
  };
3433
3321
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3434
3322
  }
@@ -3474,29 +3362,11 @@ class Ml {
3474
3362
  pathParts: {
3475
3363
  job_id: params.job_id
3476
3364
  },
3477
- acceptedParams: [
3478
- 'job_id',
3479
- 'allow_lazy_open',
3480
- 'analysis_config',
3481
- 'analysis_limits',
3482
- 'background_persist_interval',
3483
- 'custom_settings',
3484
- 'daily_model_snapshot_retention_after_days',
3485
- 'data_description',
3486
- 'datafeed_config',
3487
- 'description',
3488
- 'job_id',
3489
- 'groups',
3490
- 'model_plot_config',
3491
- 'model_snapshot_retention_days',
3492
- 'renormalization_window_days',
3493
- 'results_index_name',
3494
- 'results_retention_days',
3495
- 'allow_no_indices',
3496
- 'expand_wildcards',
3497
- 'ignore_throttled',
3498
- 'ignore_unavailable'
3499
- ]
3365
+ acceptedParams: {
3366
+ path: ['job_id'],
3367
+ body: ['allow_lazy_open', 'analysis_config', 'analysis_limits', 'background_persist_interval', 'custom_settings', 'daily_model_snapshot_retention_after_days', 'data_description', 'datafeed_config', 'description', 'job_id', 'groups', 'model_plot_config', 'model_snapshot_retention_days', 'renormalization_window_days', 'results_index_name', 'results_retention_days'],
3368
+ query: ['allow_no_indices', 'expand_wildcards', 'ignore_throttled', 'ignore_unavailable']
3369
+ }
3500
3370
  };
3501
3371
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3502
3372
  }
@@ -3542,22 +3412,11 @@ class Ml {
3542
3412
  pathParts: {
3543
3413
  model_id: params.model_id
3544
3414
  },
3545
- acceptedParams: [
3546
- 'model_id',
3547
- 'compressed_definition',
3548
- 'definition',
3549
- 'description',
3550
- 'inference_config',
3551
- 'input',
3552
- 'metadata',
3553
- 'model_type',
3554
- 'model_size_bytes',
3555
- 'platform_architecture',
3556
- 'tags',
3557
- 'prefix_strings',
3558
- 'defer_definition_decompression',
3559
- 'wait_for_completion'
3560
- ]
3415
+ acceptedParams: {
3416
+ path: ['model_id'],
3417
+ body: ['compressed_definition', 'definition', 'description', 'inference_config', 'input', 'metadata', 'model_type', 'model_size_bytes', 'platform_architecture', 'tags', 'prefix_strings'],
3418
+ query: ['defer_definition_decompression', 'wait_for_completion']
3419
+ }
3561
3420
  };
3562
3421
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3563
3422
  }
@@ -3592,11 +3451,11 @@ class Ml {
3592
3451
  model_alias: params.model_alias,
3593
3452
  model_id: params.model_id
3594
3453
  },
3595
- acceptedParams: [
3596
- 'model_alias',
3597
- 'model_id',
3598
- 'reassign'
3599
- ]
3454
+ acceptedParams: {
3455
+ path: ['model_alias', 'model_id'],
3456
+ body: [],
3457
+ query: ['reassign']
3458
+ }
3600
3459
  };
3601
3460
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3602
3461
  }
@@ -3643,13 +3502,11 @@ class Ml {
3643
3502
  model_id: params.model_id,
3644
3503
  part: params.part
3645
3504
  },
3646
- acceptedParams: [
3647
- 'model_id',
3648
- 'part',
3649
- 'definition',
3650
- 'total_definition_length',
3651
- 'total_parts'
3652
- ]
3505
+ acceptedParams: {
3506
+ path: ['model_id', 'part'],
3507
+ body: ['definition', 'total_definition_length', 'total_parts'],
3508
+ query: []
3509
+ }
3653
3510
  };
3654
3511
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3655
3512
  }
@@ -3695,12 +3552,11 @@ class Ml {
3695
3552
  pathParts: {
3696
3553
  model_id: params.model_id
3697
3554
  },
3698
- acceptedParams: [
3699
- 'model_id',
3700
- 'vocabulary',
3701
- 'merges',
3702
- 'scores'
3703
- ]
3555
+ acceptedParams: {
3556
+ path: ['model_id'],
3557
+ body: ['vocabulary', 'merges', 'scores'],
3558
+ query: []
3559
+ }
3704
3560
  };
3705
3561
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3706
3562
  }
@@ -3734,11 +3590,11 @@ class Ml {
3734
3590
  pathParts: {
3735
3591
  job_id: params.job_id
3736
3592
  },
3737
- acceptedParams: [
3738
- 'job_id',
3739
- 'wait_for_completion',
3740
- 'delete_user_annotations'
3741
- ]
3593
+ acceptedParams: {
3594
+ path: ['job_id'],
3595
+ body: [],
3596
+ query: ['wait_for_completion', 'delete_user_annotations']
3597
+ }
3742
3598
  };
3743
3599
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3744
3600
  }
@@ -3785,12 +3641,11 @@ class Ml {
3785
3641
  job_id: params.job_id,
3786
3642
  snapshot_id: params.snapshot_id
3787
3643
  },
3788
- acceptedParams: [
3789
- 'job_id',
3790
- 'snapshot_id',
3791
- 'delete_intervening_results',
3792
- 'delete_intervening_results'
3793
- ]
3644
+ acceptedParams: {
3645
+ path: ['job_id', 'snapshot_id'],
3646
+ body: ['delete_intervening_results'],
3647
+ query: ['delete_intervening_results']
3648
+ }
3794
3649
  };
3795
3650
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3796
3651
  }
@@ -3822,10 +3677,11 @@ class Ml {
3822
3677
  const path = '/_ml/set_upgrade_mode';
3823
3678
  const meta = {
3824
3679
  name: 'ml.set_upgrade_mode',
3825
- acceptedParams: [
3826
- 'enabled',
3827
- 'timeout'
3828
- ]
3680
+ acceptedParams: {
3681
+ path: [],
3682
+ body: [],
3683
+ query: ['enabled', 'timeout']
3684
+ }
3829
3685
  };
3830
3686
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3831
3687
  }
@@ -3871,12 +3727,11 @@ class Ml {
3871
3727
  pathParts: {
3872
3728
  id: params.id
3873
3729
  },
3874
- acceptedParams: [
3875
- 'id',
3876
- 'id',
3877
- 'timeout',
3878
- 'timeout'
3879
- ]
3730
+ acceptedParams: {
3731
+ path: ['id'],
3732
+ body: ['id', 'timeout'],
3733
+ query: ['timeout']
3734
+ }
3880
3735
  };
3881
3736
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3882
3737
  }
@@ -3922,15 +3777,11 @@ class Ml {
3922
3777
  pathParts: {
3923
3778
  datafeed_id: params.datafeed_id
3924
3779
  },
3925
- acceptedParams: [
3926
- 'datafeed_id',
3927
- 'end',
3928
- 'start',
3929
- 'timeout',
3930
- 'end',
3931
- 'start',
3932
- 'timeout'
3933
- ]
3780
+ acceptedParams: {
3781
+ path: ['datafeed_id'],
3782
+ body: ['end', 'start', 'timeout'],
3783
+ query: ['end', 'start', 'timeout']
3784
+ }
3934
3785
  };
3935
3786
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3936
3787
  }
@@ -3976,18 +3827,11 @@ class Ml {
3976
3827
  pathParts: {
3977
3828
  model_id: params.model_id
3978
3829
  },
3979
- acceptedParams: [
3980
- 'model_id',
3981
- 'adaptive_allocations',
3982
- 'cache_size',
3983
- 'deployment_id',
3984
- 'number_of_allocations',
3985
- 'priority',
3986
- 'queue_capacity',
3987
- 'threads_per_allocation',
3988
- 'timeout',
3989
- 'wait_for'
3990
- ]
3830
+ acceptedParams: {
3831
+ path: ['model_id'],
3832
+ body: ['adaptive_allocations'],
3833
+ query: ['cache_size', 'deployment_id', 'number_of_allocations', 'priority', 'queue_capacity', 'threads_per_allocation', 'timeout', 'wait_for']
3834
+ }
3991
3835
  };
3992
3836
  return await this.transport.request({ path, method, querystring, body, meta }, options);
3993
3837
  }
@@ -4033,16 +3877,11 @@ class Ml {
4033
3877
  pathParts: {
4034
3878
  id: params.id
4035
3879
  },
4036
- acceptedParams: [
4037
- 'id',
4038
- 'id',
4039
- 'allow_no_match',
4040
- 'force',
4041
- 'timeout',
4042
- 'allow_no_match',
4043
- 'force',
4044
- 'timeout'
4045
- ]
3880
+ acceptedParams: {
3881
+ path: ['id'],
3882
+ body: ['id', 'allow_no_match', 'force', 'timeout'],
3883
+ query: ['allow_no_match', 'force', 'timeout']
3884
+ }
4046
3885
  };
4047
3886
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4048
3887
  }
@@ -4088,17 +3927,11 @@ class Ml {
4088
3927
  pathParts: {
4089
3928
  datafeed_id: params.datafeed_id
4090
3929
  },
4091
- acceptedParams: [
4092
- 'datafeed_id',
4093
- 'allow_no_match',
4094
- 'force',
4095
- 'timeout',
4096
- 'close_job',
4097
- 'allow_no_match',
4098
- 'force',
4099
- 'timeout',
4100
- 'close_job'
4101
- ]
3930
+ acceptedParams: {
3931
+ path: ['datafeed_id'],
3932
+ body: ['allow_no_match', 'force', 'timeout', 'close_job'],
3933
+ query: ['allow_no_match', 'force', 'timeout', 'close_job']
3934
+ }
4102
3935
  };
4103
3936
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4104
3937
  }
@@ -4144,14 +3977,11 @@ class Ml {
4144
3977
  pathParts: {
4145
3978
  model_id: params.model_id
4146
3979
  },
4147
- acceptedParams: [
4148
- 'model_id',
4149
- 'id',
4150
- 'allow_no_match',
4151
- 'force',
4152
- 'allow_no_match',
4153
- 'force'
4154
- ]
3980
+ acceptedParams: {
3981
+ path: ['model_id'],
3982
+ body: ['id', 'allow_no_match', 'force'],
3983
+ query: ['allow_no_match', 'force']
3984
+ }
4155
3985
  };
4156
3986
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4157
3987
  }
@@ -4197,13 +4027,11 @@ class Ml {
4197
4027
  pathParts: {
4198
4028
  id: params.id
4199
4029
  },
4200
- acceptedParams: [
4201
- 'id',
4202
- 'description',
4203
- 'model_memory_limit',
4204
- 'max_num_threads',
4205
- 'allow_lazy_start'
4206
- ]
4030
+ acceptedParams: {
4031
+ path: ['id'],
4032
+ body: ['description', 'model_memory_limit', 'max_num_threads', 'allow_lazy_start'],
4033
+ query: []
4034
+ }
4207
4035
  };
4208
4036
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4209
4037
  }
@@ -4249,27 +4077,11 @@ class Ml {
4249
4077
  pathParts: {
4250
4078
  datafeed_id: params.datafeed_id
4251
4079
  },
4252
- acceptedParams: [
4253
- 'datafeed_id',
4254
- 'aggregations',
4255
- 'chunking_config',
4256
- 'delayed_data_check_config',
4257
- 'frequency',
4258
- 'indices',
4259
- 'indexes',
4260
- 'indices_options',
4261
- 'job_id',
4262
- 'max_empty_searches',
4263
- 'query',
4264
- 'query_delay',
4265
- 'runtime_mappings',
4266
- 'script_fields',
4267
- 'scroll_size',
4268
- 'allow_no_indices',
4269
- 'expand_wildcards',
4270
- 'ignore_throttled',
4271
- 'ignore_unavailable'
4272
- ]
4080
+ acceptedParams: {
4081
+ path: ['datafeed_id'],
4082
+ body: ['aggregations', 'chunking_config', 'delayed_data_check_config', 'frequency', 'indices', 'indexes', 'indices_options', 'job_id', 'max_empty_searches', 'query', 'query_delay', 'runtime_mappings', 'script_fields', 'scroll_size'],
4083
+ query: ['allow_no_indices', 'expand_wildcards', 'ignore_throttled', 'ignore_unavailable']
4084
+ }
4273
4085
  };
4274
4086
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4275
4087
  }
@@ -4315,12 +4127,11 @@ class Ml {
4315
4127
  pathParts: {
4316
4128
  filter_id: params.filter_id
4317
4129
  },
4318
- acceptedParams: [
4319
- 'filter_id',
4320
- 'add_items',
4321
- 'description',
4322
- 'remove_items'
4323
- ]
4130
+ acceptedParams: {
4131
+ path: ['filter_id'],
4132
+ body: ['add_items', 'description', 'remove_items'],
4133
+ query: []
4134
+ }
4324
4135
  };
4325
4136
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4326
4137
  }
@@ -4366,24 +4177,11 @@ class Ml {
4366
4177
  pathParts: {
4367
4178
  job_id: params.job_id
4368
4179
  },
4369
- acceptedParams: [
4370
- 'job_id',
4371
- 'allow_lazy_open',
4372
- 'analysis_limits',
4373
- 'background_persist_interval',
4374
- 'custom_settings',
4375
- 'categorization_filters',
4376
- 'description',
4377
- 'model_plot_config',
4378
- 'model_prune_window',
4379
- 'daily_model_snapshot_retention_after_days',
4380
- 'model_snapshot_retention_days',
4381
- 'renormalization_window_days',
4382
- 'results_retention_days',
4383
- 'groups',
4384
- 'detectors',
4385
- 'per_partition_categorization'
4386
- ]
4180
+ acceptedParams: {
4181
+ path: ['job_id'],
4182
+ body: ['allow_lazy_open', 'analysis_limits', 'background_persist_interval', 'custom_settings', 'categorization_filters', 'description', 'model_plot_config', 'model_prune_window', 'daily_model_snapshot_retention_after_days', 'model_snapshot_retention_days', 'renormalization_window_days', 'results_retention_days', 'groups', 'detectors', 'per_partition_categorization'],
4183
+ query: []
4184
+ }
4387
4185
  };
4388
4186
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4389
4187
  }
@@ -4430,12 +4228,11 @@ class Ml {
4430
4228
  job_id: params.job_id,
4431
4229
  snapshot_id: params.snapshot_id
4432
4230
  },
4433
- acceptedParams: [
4434
- 'job_id',
4435
- 'snapshot_id',
4436
- 'description',
4437
- 'retain'
4438
- ]
4231
+ acceptedParams: {
4232
+ path: ['job_id', 'snapshot_id'],
4233
+ body: ['description', 'retain'],
4234
+ query: []
4235
+ }
4439
4236
  };
4440
4237
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4441
4238
  }
@@ -4481,12 +4278,11 @@ class Ml {
4481
4278
  pathParts: {
4482
4279
  model_id: params.model_id
4483
4280
  },
4484
- acceptedParams: [
4485
- 'model_id',
4486
- 'number_of_allocations',
4487
- 'adaptive_allocations',
4488
- 'number_of_allocations'
4489
- ]
4281
+ acceptedParams: {
4282
+ path: ['model_id'],
4283
+ body: ['number_of_allocations', 'adaptive_allocations'],
4284
+ query: ['number_of_allocations']
4285
+ }
4490
4286
  };
4491
4287
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4492
4288
  }
@@ -4521,12 +4317,11 @@ class Ml {
4521
4317
  job_id: params.job_id,
4522
4318
  snapshot_id: params.snapshot_id
4523
4319
  },
4524
- acceptedParams: [
4525
- 'job_id',
4526
- 'snapshot_id',
4527
- 'wait_for_completion',
4528
- 'timeout'
4529
- ]
4320
+ acceptedParams: {
4321
+ path: ['job_id', 'snapshot_id'],
4322
+ body: [],
4323
+ query: ['wait_for_completion', 'timeout']
4324
+ }
4530
4325
  };
4531
4326
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4532
4327
  }
@@ -4570,17 +4365,11 @@ class Ml {
4570
4365
  const path = '/_ml/anomaly_detectors/_validate';
4571
4366
  const meta = {
4572
4367
  name: 'ml.validate',
4573
- acceptedParams: [
4574
- 'job_id',
4575
- 'analysis_config',
4576
- 'analysis_limits',
4577
- 'data_description',
4578
- 'description',
4579
- 'model_plot',
4580
- 'model_snapshot_id',
4581
- 'model_snapshot_retention_days',
4582
- 'results_index_name'
4583
- ]
4368
+ acceptedParams: {
4369
+ path: [],
4370
+ body: ['job_id', 'analysis_config', 'analysis_limits', 'data_description', 'description', 'model_plot', 'model_snapshot_id', 'model_snapshot_retention_days', 'results_index_name'],
4371
+ query: []
4372
+ }
4584
4373
  };
4585
4374
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4586
4375
  }
@@ -4614,9 +4403,11 @@ class Ml {
4614
4403
  const path = '/_ml/anomaly_detectors/_validate/detector';
4615
4404
  const meta = {
4616
4405
  name: 'ml.validate_detector',
4617
- acceptedParams: [
4618
- 'detector'
4619
- ]
4406
+ acceptedParams: {
4407
+ path: [],
4408
+ body: ['detector'],
4409
+ query: []
4410
+ }
4620
4411
  };
4621
4412
  return await this.transport.request({ path, method, querystring, body, meta }, options);
4622
4413
  }