elasticsearch-api 6.8.3 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +17 -1
  3. data/LICENSE.txt +199 -10
  4. data/README.md +3 -3
  5. data/Rakefile +23 -6
  6. data/elasticsearch-api.gemspec +77 -43
  7. data/lib/elasticsearch/api/actions/abort_benchmark.rb +17 -4
  8. data/lib/elasticsearch/api/actions/benchmark.rb +18 -5
  9. data/lib/elasticsearch/api/actions/bulk.rb +18 -7
  10. data/lib/elasticsearch/api/actions/cat/aliases.rb +25 -11
  11. data/lib/elasticsearch/api/actions/cat/allocation.rb +26 -12
  12. data/lib/elasticsearch/api/actions/cat/count.rb +25 -11
  13. data/lib/elasticsearch/api/actions/cat/fielddata.rb +23 -11
  14. data/lib/elasticsearch/api/actions/cat/health.rb +26 -12
  15. data/lib/elasticsearch/api/actions/cat/help.rb +18 -6
  16. data/lib/elasticsearch/api/actions/cat/indices.rb +28 -13
  17. data/lib/elasticsearch/api/actions/cat/master.rb +25 -11
  18. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +19 -7
  19. data/lib/elasticsearch/api/actions/cat/nodes.rb +25 -11
  20. data/lib/elasticsearch/api/actions/cat/params_registry.rb +19 -6
  21. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +25 -11
  22. data/lib/elasticsearch/api/actions/cat/plugins.rb +21 -8
  23. data/lib/elasticsearch/api/actions/cat/recovery.rb +26 -11
  24. data/lib/elasticsearch/api/actions/cat/repositories.rb +18 -7
  25. data/lib/elasticsearch/api/actions/cat/segments.rb +22 -10
  26. data/lib/elasticsearch/api/actions/cat/shards.rb +26 -12
  27. data/lib/elasticsearch/api/actions/cat/snapshots.rb +19 -9
  28. data/lib/elasticsearch/api/actions/cat/tasks.rb +20 -6
  29. data/lib/elasticsearch/api/actions/cat/templates.rb +21 -8
  30. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +33 -16
  31. data/lib/elasticsearch/api/actions/clear_scroll.rb +19 -15
  32. data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +20 -6
  33. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +19 -7
  34. data/lib/elasticsearch/api/actions/cluster/health.rb +35 -13
  35. data/lib/elasticsearch/api/actions/cluster/params_registry.rb +19 -6
  36. data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +20 -6
  37. data/lib/elasticsearch/api/actions/cluster/put_settings.rb +19 -8
  38. data/lib/elasticsearch/api/actions/cluster/remote_info.rb +17 -10
  39. data/lib/elasticsearch/api/actions/cluster/reroute.rb +23 -10
  40. data/lib/elasticsearch/api/actions/cluster/state.rb +28 -18
  41. data/lib/elasticsearch/api/actions/cluster/stats.rb +21 -16
  42. data/lib/elasticsearch/api/actions/count.rb +18 -4
  43. data/lib/elasticsearch/api/actions/create.rb +16 -3
  44. data/lib/elasticsearch/api/actions/delete.rb +24 -19
  45. data/lib/elasticsearch/api/actions/delete_by_query.rb +18 -5
  46. data/lib/elasticsearch/api/actions/{delete_by_query_rethrottle.rb → delete_by_rethrottle.rb} +18 -5
  47. data/lib/elasticsearch/api/actions/delete_script.rb +18 -5
  48. data/lib/elasticsearch/api/actions/exists.rb +18 -6
  49. data/lib/elasticsearch/api/actions/exists_source.rb +16 -3
  50. data/lib/elasticsearch/api/actions/explain.rb +30 -10
  51. data/lib/elasticsearch/api/actions/field_caps.rb +18 -6
  52. data/lib/elasticsearch/api/actions/get.rb +20 -6
  53. data/lib/elasticsearch/api/actions/get_script.rb +22 -9
  54. data/lib/elasticsearch/api/actions/get_source.rb +32 -10
  55. data/lib/elasticsearch/api/actions/index.rb +37 -17
  56. data/lib/elasticsearch/api/actions/indices/analyze.rb +32 -6
  57. data/lib/elasticsearch/api/actions/indices/clear_cache.rb +20 -8
  58. data/lib/elasticsearch/api/actions/indices/close.rb +31 -11
  59. data/lib/elasticsearch/api/actions/indices/create.rb +36 -24
  60. data/lib/elasticsearch/api/actions/indices/delete.rb +21 -7
  61. data/lib/elasticsearch/api/actions/indices/delete_alias.rb +20 -8
  62. data/lib/elasticsearch/api/actions/indices/delete_template.rb +18 -6
  63. data/lib/elasticsearch/api/actions/indices/exists.rb +32 -12
  64. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +30 -10
  65. data/lib/elasticsearch/api/actions/indices/exists_template.rb +20 -8
  66. data/lib/elasticsearch/api/actions/indices/exists_type.rb +31 -10
  67. data/lib/elasticsearch/api/actions/indices/flush.rb +26 -9
  68. data/lib/elasticsearch/api/actions/indices/flush_synced.rb +18 -5
  69. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +18 -5
  70. data/lib/elasticsearch/api/actions/indices/freeze.rb +1 -4
  71. data/lib/elasticsearch/api/actions/indices/get.rb +21 -7
  72. data/lib/elasticsearch/api/actions/indices/get_alias.rb +18 -5
  73. data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +21 -7
  74. data/lib/elasticsearch/api/actions/indices/get_mapping.rb +21 -8
  75. data/lib/elasticsearch/api/actions/indices/get_settings.rb +18 -5
  76. data/lib/elasticsearch/api/actions/indices/get_template.rb +21 -7
  77. data/lib/elasticsearch/api/actions/indices/open.rb +18 -5
  78. data/lib/elasticsearch/api/actions/indices/params_registry.rb +19 -6
  79. data/lib/elasticsearch/api/actions/indices/put_alias.rb +18 -5
  80. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +23 -11
  81. data/lib/elasticsearch/api/actions/indices/put_settings.rb +18 -5
  82. data/lib/elasticsearch/api/actions/indices/put_template.rb +21 -7
  83. data/lib/elasticsearch/api/actions/indices/recovery.rb +19 -6
  84. data/lib/elasticsearch/api/actions/indices/refresh.rb +18 -5
  85. data/lib/elasticsearch/api/actions/indices/rollover.rb +21 -7
  86. data/lib/elasticsearch/api/actions/indices/segments.rb +18 -5
  87. data/lib/elasticsearch/api/actions/indices/shard_stores.rb +18 -5
  88. data/lib/elasticsearch/api/actions/indices/shrink.rb +18 -7
  89. data/lib/elasticsearch/api/actions/indices/split.rb +19 -9
  90. data/lib/elasticsearch/api/actions/indices/stats.rb +18 -5
  91. data/lib/elasticsearch/api/actions/indices/unfreeze.rb +0 -4
  92. data/lib/elasticsearch/api/actions/indices/update_aliases.rb +18 -5
  93. data/lib/elasticsearch/api/actions/indices/upgrade.rb +18 -5
  94. data/lib/elasticsearch/api/actions/indices/validate_query.rb +18 -5
  95. data/lib/elasticsearch/api/actions/info.rb +16 -9
  96. data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +18 -5
  97. data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +20 -8
  98. data/lib/elasticsearch/api/actions/ingest/params_registry.rb +19 -6
  99. data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +0 -4
  100. data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +18 -5
  101. data/lib/elasticsearch/api/actions/ingest/simulate.rb +22 -9
  102. data/lib/elasticsearch/api/actions/mget.rb +17 -4
  103. data/lib/elasticsearch/api/actions/msearch.rb +21 -7
  104. data/lib/elasticsearch/api/actions/msearch_template.rb +21 -6
  105. data/lib/elasticsearch/api/actions/mtermvectors.rb +18 -5
  106. data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +20 -5
  107. data/lib/elasticsearch/api/actions/nodes/info.rb +44 -11
  108. data/lib/elasticsearch/api/actions/nodes/params_registry.rb +19 -6
  109. data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +19 -12
  110. data/lib/elasticsearch/api/actions/nodes/shutdown.rb +17 -4
  111. data/lib/elasticsearch/api/actions/nodes/stats.rb +18 -5
  112. data/lib/elasticsearch/api/actions/nodes/usage.rb +3 -7
  113. data/lib/elasticsearch/api/actions/params_registry.rb +19 -6
  114. data/lib/elasticsearch/api/actions/ping.rb +16 -9
  115. data/lib/elasticsearch/api/actions/put_script.rb +18 -6
  116. data/lib/elasticsearch/api/actions/rank_eval.rb +17 -4
  117. data/lib/elasticsearch/api/actions/reindex.rb +19 -5
  118. data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +17 -4
  119. data/lib/elasticsearch/api/actions/remote/info.rb +16 -3
  120. data/lib/elasticsearch/api/actions/render_search_template.rb +18 -5
  121. data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +16 -9
  122. data/lib/elasticsearch/api/actions/scroll.rb +19 -6
  123. data/lib/elasticsearch/api/actions/search.rb +72 -39
  124. data/lib/elasticsearch/api/actions/search_shards.rb +31 -11
  125. data/lib/elasticsearch/api/actions/search_template.rb +21 -6
  126. data/lib/elasticsearch/api/actions/snapshot/create.rb +20 -6
  127. data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +18 -5
  128. data/lib/elasticsearch/api/actions/snapshot/delete.rb +20 -7
  129. data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +19 -5
  130. data/lib/elasticsearch/api/actions/snapshot/get.rb +21 -7
  131. data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +23 -7
  132. data/lib/elasticsearch/api/actions/snapshot/params_registry.rb +19 -6
  133. data/lib/elasticsearch/api/actions/snapshot/restore.rb +18 -5
  134. data/lib/elasticsearch/api/actions/snapshot/status.rb +23 -8
  135. data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +18 -5
  136. data/lib/elasticsearch/api/actions/tasks/cancel.rb +18 -5
  137. data/lib/elasticsearch/api/actions/tasks/get.rb +18 -5
  138. data/lib/elasticsearch/api/actions/tasks/list.rb +18 -5
  139. data/lib/elasticsearch/api/actions/tasks/params_registry.rb +19 -6
  140. data/lib/elasticsearch/api/actions/termvectors.rb +33 -18
  141. data/lib/elasticsearch/api/actions/update.rb +61 -26
  142. data/lib/elasticsearch/api/actions/update_by_query.rb +18 -5
  143. data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +16 -3
  144. data/lib/elasticsearch/api/namespace/cat.rb +16 -3
  145. data/lib/elasticsearch/api/namespace/cluster.rb +16 -3
  146. data/lib/elasticsearch/api/namespace/common.rb +16 -3
  147. data/lib/elasticsearch/api/namespace/indices.rb +16 -3
  148. data/lib/elasticsearch/api/namespace/ingest.rb +16 -3
  149. data/lib/elasticsearch/api/namespace/nodes.rb +16 -3
  150. data/lib/elasticsearch/api/namespace/remote.rb +16 -3
  151. data/lib/elasticsearch/api/namespace/snapshot.rb +16 -3
  152. data/lib/elasticsearch/api/namespace/tasks.rb +16 -3
  153. data/lib/elasticsearch/api/utils.rb +16 -3
  154. data/lib/elasticsearch/api/version.rb +17 -4
  155. data/lib/elasticsearch/api.rb +18 -5
  156. data/lib/elasticsearch-api.rb +16 -3
  157. data/spec/elasticsearch/api/actions/abort_benchmark_spec.rb +16 -3
  158. data/spec/elasticsearch/api/actions/benchmark_spec.rb +16 -3
  159. data/spec/elasticsearch/api/actions/bulk_spec.rb +16 -3
  160. data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +16 -3
  161. data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +16 -3
  162. data/spec/elasticsearch/api/actions/cat/count_spec.rb +16 -3
  163. data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +16 -3
  164. data/spec/elasticsearch/api/actions/cat/health_spec.rb +16 -3
  165. data/spec/elasticsearch/api/actions/cat/help_spec.rb +16 -3
  166. data/spec/elasticsearch/api/actions/cat/indices_spec.rb +16 -3
  167. data/spec/elasticsearch/api/actions/cat/master_spec.rb +16 -3
  168. data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +16 -3
  169. data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +16 -3
  170. data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +16 -3
  171. data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +16 -3
  172. data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +16 -3
  173. data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +16 -3
  174. data/spec/elasticsearch/api/actions/cat/segments_spec.rb +33 -4
  175. data/spec/elasticsearch/api/actions/cat/shards_spec.rb +16 -3
  176. data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +16 -3
  177. data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +16 -3
  178. data/spec/elasticsearch/api/actions/cat/templates_spec.rb +16 -3
  179. data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +16 -3
  180. data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +16 -3
  181. data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +16 -3
  182. data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +16 -3
  183. data/spec/elasticsearch/api/actions/cluster/health_spec.rb +16 -3
  184. data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +16 -3
  185. data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +16 -3
  186. data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +16 -3
  187. data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +16 -3
  188. data/spec/elasticsearch/api/actions/cluster/state_spec.rb +16 -3
  189. data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +16 -20
  190. data/spec/elasticsearch/api/actions/count_spec.rb +16 -3
  191. data/spec/elasticsearch/api/actions/create_document_spec.rb +16 -3
  192. data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +16 -3
  193. data/spec/elasticsearch/api/actions/delete_document_spec.rb +16 -9
  194. data/spec/elasticsearch/api/actions/delete_script_spec.rb +16 -3
  195. data/spec/elasticsearch/api/actions/exists_document_spec.rb +16 -3
  196. data/spec/elasticsearch/api/actions/explain_document_spec.rb +17 -10
  197. data/spec/elasticsearch/api/actions/field_caps_spec.rb +16 -3
  198. data/spec/elasticsearch/api/actions/get_document_source_spec.rb +17 -4
  199. data/spec/elasticsearch/api/actions/get_document_spec.rb +17 -4
  200. data/spec/elasticsearch/api/actions/get_script_spec.rb +22 -16
  201. data/spec/elasticsearch/api/actions/hashie_spec.rb +16 -3
  202. data/spec/elasticsearch/api/actions/index_document_spec.rb +16 -9
  203. data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +16 -3
  204. data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +19 -6
  205. data/spec/elasticsearch/api/actions/indices/close_spec.rb +16 -3
  206. data/spec/elasticsearch/api/actions/indices/create_spec.rb +16 -3
  207. data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +16 -3
  208. data/spec/elasticsearch/api/actions/indices/delete_spec.rb +16 -3
  209. data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +16 -3
  210. data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +16 -3
  211. data/spec/elasticsearch/api/actions/indices/exists_spec.rb +16 -3
  212. data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +16 -3
  213. data/spec/elasticsearch/api/actions/indices/exists_type_spec.rb +16 -3
  214. data/spec/elasticsearch/api/actions/indices/flush_spec.rb +16 -3
  215. data/spec/elasticsearch/api/actions/indices/flush_synced_spec.rb +16 -3
  216. data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +16 -3
  217. data/spec/elasticsearch/api/actions/indices/freeze_spec.rb +68 -0
  218. data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +16 -3
  219. data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +16 -3
  220. data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +16 -3
  221. data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +16 -3
  222. data/spec/elasticsearch/api/actions/indices/get_spec.rb +16 -3
  223. data/spec/elasticsearch/api/actions/indices/open_spec.rb +16 -3
  224. data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +16 -3
  225. data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +16 -3
  226. data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +31 -3
  227. data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +16 -3
  228. data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +16 -3
  229. data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +16 -3
  230. data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +16 -3
  231. data/spec/elasticsearch/api/actions/indices/segments_spec.rb +16 -3
  232. data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +16 -3
  233. data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +16 -3
  234. data/spec/elasticsearch/api/actions/indices/split_spec.rb +16 -3
  235. data/spec/elasticsearch/api/actions/indices/stats_spec.rb +125 -0
  236. data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +68 -0
  237. data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +16 -3
  238. data/spec/elasticsearch/api/actions/indices/upgrade_spec.rb +16 -3
  239. data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +16 -3
  240. data/spec/elasticsearch/api/actions/info_spec.rb +16 -3
  241. data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +16 -3
  242. data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +16 -3
  243. data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +16 -3
  244. data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +16 -3
  245. data/spec/elasticsearch/api/actions/json_builders_spec.rb +16 -3
  246. data/spec/elasticsearch/api/actions/mget_spec.rb +16 -3
  247. data/spec/elasticsearch/api/actions/msearch_spec.rb +16 -3
  248. data/spec/elasticsearch/api/actions/msearch_template_spec.rb +16 -3
  249. data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +16 -3
  250. data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +16 -3
  251. data/spec/elasticsearch/api/actions/nodes/info_spec.rb +16 -3
  252. data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +16 -3
  253. data/spec/elasticsearch/api/actions/nodes/shutdown_spec.rb +16 -3
  254. data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +16 -3
  255. data/spec/elasticsearch/api/actions/ping_spec.rb +16 -3
  256. data/spec/elasticsearch/api/actions/put_script_spec.rb +16 -3
  257. data/spec/elasticsearch/api/actions/reindex_spec.rb +16 -3
  258. data/spec/elasticsearch/api/actions/remote/info_spec.rb +16 -3
  259. data/spec/elasticsearch/api/actions/render_search_template_spec.rb +16 -3
  260. data/spec/elasticsearch/api/actions/scoll_spec.rb +16 -3
  261. data/spec/elasticsearch/api/actions/search_shards_spec.rb +16 -3
  262. data/spec/elasticsearch/api/actions/search_spec.rb +31 -3
  263. data/spec/elasticsearch/api/actions/search_template_spec.rb +16 -3
  264. data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +16 -3
  265. data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +16 -3
  266. data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +16 -3
  267. data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +16 -3
  268. data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +16 -3
  269. data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +16 -3
  270. data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +16 -3
  271. data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +16 -3
  272. data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +16 -3
  273. data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +16 -3
  274. data/spec/elasticsearch/api/actions/tasks/get_spec.rb +16 -3
  275. data/spec/elasticsearch/api/actions/tasks/list_spec.rb +16 -3
  276. data/spec/elasticsearch/api/actions/termvectors_spec.rb +16 -9
  277. data/spec/elasticsearch/api/actions/update_by_query_spec.rb +16 -3
  278. data/spec/elasticsearch/api/actions/update_document_spec.rb +16 -9
  279. data/spec/elasticsearch/api/api_spec.rb +16 -3
  280. data/spec/elasticsearch/api/client_spec.rb +16 -3
  281. data/spec/elasticsearch/api/utils_spec.rb +16 -3
  282. data/spec/spec_helper.rb +16 -14
  283. data/test/integration/yaml_test_runner.rb +84 -42
  284. data/test/test_helper.rb +86 -14
  285. data/utils/Gemfile +17 -0
  286. data/utils/Thorfile +17 -0
  287. data/utils/thor/generate_api.rb +16 -3
  288. data/utils/thor/generate_source.rb +22 -6
  289. data/utils/thor/lister.rb +16 -3
  290. data/utils/thor/templates/ruby/method.erb +22 -7
  291. data/utils/thor/templates/ruby/test.erb +17 -0
  292. data/utils/thor/templates/ruby/test_helper.rb +16 -4
  293. metadata +54 -120
  294. data/lib/elasticsearch/api/actions/count_percolate.rb +0 -86
  295. data/lib/elasticsearch/api/actions/delete_template.rb +0 -25
  296. data/lib/elasticsearch/api/actions/field_stats.rb +0 -40
  297. data/lib/elasticsearch/api/actions/get_template.rb +0 -31
  298. data/lib/elasticsearch/api/actions/indices/delete_mapping.rb +0 -30
  299. data/lib/elasticsearch/api/actions/indices/delete_warmer.rb +0 -36
  300. data/lib/elasticsearch/api/actions/indices/get_aliases.rb +0 -41
  301. data/lib/elasticsearch/api/actions/indices/get_warmer.rb +0 -66
  302. data/lib/elasticsearch/api/actions/indices/optimize.rb +0 -81
  303. data/lib/elasticsearch/api/actions/indices/put_warmer.rb +0 -69
  304. data/lib/elasticsearch/api/actions/indices/seal.rb +0 -28
  305. data/lib/elasticsearch/api/actions/indices/snapshot_index.rb +0 -48
  306. data/lib/elasticsearch/api/actions/indices/status.rb +0 -67
  307. data/lib/elasticsearch/api/actions/list_benchmarks.rb +0 -31
  308. data/lib/elasticsearch/api/actions/mlt.rb +0 -134
  309. data/lib/elasticsearch/api/actions/mpercolate.rb +0 -66
  310. data/lib/elasticsearch/api/actions/percolate.rb +0 -77
  311. data/lib/elasticsearch/api/actions/put_template.rb +0 -29
  312. data/lib/elasticsearch/api/actions/search_exists.rb +0 -67
  313. data/lib/elasticsearch/api/actions/suggest.rb +0 -53
  314. data/spec/elasticsearch/api/actions/count_percolate_spec.rb +0 -21
  315. data/spec/elasticsearch/api/actions/delete_template_spec.rb +0 -21
  316. data/spec/elasticsearch/api/actions/field_stats_spec.rb +0 -21
  317. data/spec/elasticsearch/api/actions/get_template_spec.rb +0 -56
  318. data/spec/elasticsearch/api/actions/indices/delete_mapping_spec.rb +0 -81
  319. data/spec/elasticsearch/api/actions/indices/delete_warmer_spec.rb +0 -90
  320. data/spec/elasticsearch/api/actions/indices/get_aliases_spec.rb +0 -59
  321. data/spec/elasticsearch/api/actions/indices/get_template_spec.rb +0 -63
  322. data/spec/elasticsearch/api/actions/indices/get_warmer_spec.rb +0 -52
  323. data/spec/elasticsearch/api/actions/indices/optimize_spec.rb +0 -67
  324. data/spec/elasticsearch/api/actions/indices/put_warmer_spec.rb +0 -105
  325. data/spec/elasticsearch/api/actions/indices/seal_spec.rb +0 -22
  326. data/spec/elasticsearch/api/actions/indices/snapshot_index_spec.rb +0 -93
  327. data/spec/elasticsearch/api/actions/indices/status_spec.rb +0 -96
  328. data/spec/elasticsearch/api/actions/list_benchmarks_spec.rb +0 -21
  329. data/spec/elasticsearch/api/actions/mlt_spec.rb +0 -134
  330. data/spec/elasticsearch/api/actions/mpercolate_spec.rb +0 -53
  331. data/spec/elasticsearch/api/actions/put_template_spec.rb +0 -21
  332. data/spec/elasticsearch/api/actions/rank_eval_spec.rb +0 -113
  333. data/spec/elasticsearch/api/actions/search_exists_spec.rb +0 -67
  334. data/spec/elasticsearch/api/actions/suggest_spec.rb +0 -81
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -34,16 +47,17 @@ module Elasticsearch
34
47
  # client.cat.allocation format: 'json'
35
48
  #
36
49
  # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information
37
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
38
- # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb)
39
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
40
- # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
41
- # @option arguments [List] :h Comma-separated list of column names to display
42
- # @option arguments [Boolean] :help Return help information
50
+ # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
51
+ # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
52
+ # @option arguments [Boolean] :v Display column headers as part of the output
43
53
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
44
- # @option arguments [Boolean] :v Verbose mode. Display column headers
54
+ # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
55
+ # @option arguments [Boolean] :help Return information about headers
56
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
57
+ # (default: false)
58
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
45
59
  #
46
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-allocation.html
60
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-allocation.html
47
61
  #
48
62
  def allocation(arguments={})
49
63
  node_id = arguments.delete(:node_id)
@@ -57,7 +71,7 @@ module Elasticsearch
57
71
 
58
72
  # Register this action with its valid params when the module is loaded.
59
73
  #
60
- # @since 6.2.0
74
+ # @since 6.1.1
61
75
  ParamsRegistry.register(:allocation, [
62
76
  :format,
63
77
  :bytes,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -30,15 +43,16 @@ module Elasticsearch
30
43
  # client.cat.count format: 'json'
31
44
  #
32
45
  # @option arguments [List] :index A comma-separated list of index names to limit the returned information
33
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
34
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
35
- # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
36
- # @option arguments [List] :h Comma-separated list of column names to display
37
- # @option arguments [Boolean] :help Return help information
46
+ # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
47
+ # @option arguments [Boolean] :v Display column headers as part of the output
38
48
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
39
- # @option arguments [Boolean] :v Verbose mode. Display column headers
49
+ # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
50
+ # @option arguments [Boolean] :help Return information about headers
51
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
52
+ # (default: false)
53
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
40
54
  #
41
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-count.html
55
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-count.html
42
56
  #
43
57
  def count(arguments={})
44
58
  index = arguments.delete(:index)
@@ -57,7 +71,7 @@ module Elasticsearch
57
71
 
58
72
  # Register this action with its valid params when the module is loaded.
59
73
  #
60
- # @since 6.2.0
74
+ # @since 6.1.1
61
75
  ParamsRegistry.register(:count, [
62
76
  :format,
63
77
  :local,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -17,18 +30,17 @@ module Elasticsearch
17
30
  #
18
31
  # client.cat.fielddata fields: 'title,body'
19
32
  #
20
- # @option arguments [List] :fields A comma-separated list of fields to return the fielddata size
21
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
22
- # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb)
23
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
33
+ # @option arguments [List] :fields A comma-separated list of fields to include in the output
34
+ # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
35
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
36
+ # (default: false)
24
37
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
25
38
  # @option arguments [List] :h Comma-separated list of column names to display
26
39
  # @option arguments [Boolean] :help Return help information
27
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
28
40
  # @option arguments [Boolean] :v Verbose mode. Display column headers
29
- # @option arguments [List] :fields A comma-separated list of fields to return in the output
41
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
30
42
  #
31
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-fielddata.html
43
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-fielddata.html
32
44
  #
33
45
  def fielddata(arguments={})
34
46
  fields = arguments.delete(:fields)
@@ -43,7 +55,7 @@ module Elasticsearch
43
55
 
44
56
  # Register this action with its valid params when the module is loaded.
45
57
  #
46
- # @since 6.2.0
58
+ # @since 6.1.1
47
59
  ParamsRegistry.register(:fielddata, [
48
60
  :format,
49
61
  :bytes,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -21,16 +34,17 @@ module Elasticsearch
21
34
  #
22
35
  # client.cat.health format: 'json'
23
36
  #
24
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
25
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
26
- # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
27
- # @option arguments [List] :h Comma-separated list of column names to display
28
- # @option arguments [Boolean] :help Return help information
37
+ # @option arguments [Boolean] :ts Whether to display timestamp information
38
+ # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
39
+ # @option arguments [Boolean] :v Display column headers as part of the output
29
40
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
30
- # @option arguments [Boolean] :ts Set to false to disable timestamping
31
- # @option arguments [Boolean] :v Verbose mode. Display column headers
41
+ # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
42
+ # @option arguments [Boolean] :help Return information about headers
43
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
44
+ # (default: false)
45
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
32
46
  #
33
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-health.html
47
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-health.html
34
48
  #
35
49
  def health(arguments={})
36
50
  method = HTTP_GET
@@ -44,7 +58,7 @@ module Elasticsearch
44
58
 
45
59
  # Register this action with its valid params when the module is loaded.
46
60
  #
47
- # @since 6.2.0
61
+ # @since 6.1.1
48
62
  ParamsRegistry.register(:health, [
49
63
  :format,
50
64
  :local,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -10,9 +23,8 @@ module Elasticsearch
10
23
  # Help information for the Cat API
11
24
  #
12
25
  # @option arguments [Boolean] :help Return help information
13
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
14
26
  #
15
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat.html
27
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html
16
28
  #
17
29
  def help(arguments={})
18
30
  method = HTTP_GET
@@ -25,7 +37,7 @@ module Elasticsearch
25
37
 
26
38
  # Register this action with its valid params when the module is loaded.
27
39
  #
28
- # @since 6.2.0
40
+ # @since 6.1.1
29
41
  ParamsRegistry.register(:help, [
30
42
  :help,
31
43
  :s ].freeze)
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -40,18 +53,20 @@ module Elasticsearch
40
53
  # client.cat.indices format: 'json'
41
54
  #
42
55
  # @option arguments [List] :index A comma-separated list of index names to limit the returned information
43
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
44
56
  # @option arguments [String] :bytes The unit in which to display byte values (options: b, k, m, g)
45
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
46
- # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
47
- # @option arguments [List] :h Comma-separated list of column names to display
48
- # @option arguments [String] :health A health status ("green", "yellow", or "red" to filter only indices matching the specified health status (options: green, yellow, red)
49
- # @option arguments [Boolean] :help Return help information
50
- # @option arguments [Boolean] :pri Set to true to return stats only for primary shards
57
+ # @option arguments [Boolean] :pri Limit the returned information on primary shards only (default: false)
58
+ # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
59
+ # @option arguments [Boolean] :v Display column headers as part of the output
51
60
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
52
- # @option arguments [Boolean] :v Verbose mode. Display column headers
61
+ # @option arguments [String] :health A health status ("green", "yellow", or "red" to filter only indices
62
+ # matching the specified health status (options: green, yellow, red)
63
+ # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
64
+ # @option arguments [Boolean] :help Return information about headers
65
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
66
+ # (default: false)
67
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
53
68
  #
54
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-indices.html
69
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-indices.html
55
70
  #
56
71
  def indices(arguments={})
57
72
  index = arguments.delete(:index)
@@ -69,7 +84,7 @@ module Elasticsearch
69
84
 
70
85
  # Register this action with its valid params when the module is loaded.
71
86
  #
72
- # @since 6.2.0
87
+ # @since 6.1.1
73
88
  ParamsRegistry.register(:indices, [
74
89
  :format,
75
90
  :bytes,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -21,15 +34,16 @@ module Elasticsearch
21
34
  #
22
35
  # client.cat.master format: 'json'
23
36
  #
24
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
25
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
26
- # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
27
- # @option arguments [List] :h Comma-separated list of column names to display
28
- # @option arguments [Boolean] :help Return help information
37
+ # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
38
+ # @option arguments [Boolean] :v Display column headers as part of the output
29
39
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
30
- # @option arguments [Boolean] :v Verbose mode. Display column headers
40
+ # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
41
+ # @option arguments [Boolean] :help Return information about headers
42
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
43
+ # (default: false)
44
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
31
45
  #
32
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-master.html
46
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-master.html
33
47
  #
34
48
  def master(arguments={})
35
49
  method = HTTP_GET
@@ -42,7 +56,7 @@ module Elasticsearch
42
56
 
43
57
  # Register this action with its valid params when the module is loaded.
44
58
  #
45
- # @since 6.2.0
59
+ # @since 6.1.1
46
60
  ParamsRegistry.register(:master, [
47
61
  :format,
48
62
  :local,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -9,15 +22,14 @@ module Elasticsearch
9
22
 
10
23
  # Display custom node attributes
11
24
  #
12
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
13
25
  # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
14
26
  # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
15
27
  # @option arguments [List] :h Comma-separated list of column names to display
16
28
  # @option arguments [Boolean] :help Return help information
17
- # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
18
29
  # @option arguments [Boolean] :v Verbose mode. Display column headers
30
+ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
19
31
  #
20
- # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodeattrs.html
32
+ # @see http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html
21
33
  #
22
34
  def nodeattrs(arguments={})
23
35
  method = 'GET'
@@ -30,7 +42,7 @@ module Elasticsearch
30
42
 
31
43
  # Register this action with its valid params when the module is loaded.
32
44
  #
33
- # @since 6.2.0
45
+ # @since 6.1.1
34
46
  ParamsRegistry.register(:nodeattrs, [
35
47
  :format,
36
48
  :local,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -29,16 +42,17 @@ module Elasticsearch
29
42
  #
30
43
  # client.cat.nodes format: 'json'
31
44
  #
32
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
33
45
  # @option arguments [Boolean] :full_id Return the full node ID instead of the shortened version (default: false)
34
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
35
- # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
36
- # @option arguments [List] :h Comma-separated list of column names to display
37
- # @option arguments [Boolean] :help Return help information
46
+ # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
47
+ # @option arguments [Boolean] :v Display column headers as part of the output
38
48
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
39
- # @option arguments [Boolean] :v Verbose mode. Display column headers
49
+ # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
50
+ # @option arguments [Boolean] :help Return information about headers
51
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
52
+ # (default: false)
53
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
40
54
  #
41
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-nodes.html
55
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-nodes.html
42
56
  #
43
57
  def nodes(arguments={})
44
58
  method = HTTP_GET
@@ -54,7 +68,7 @@ module Elasticsearch
54
68
 
55
69
  # Register this action with its valid params when the module is loaded.
56
70
  #
57
- # @since 6.2.0
71
+ # @since 6.1.1
58
72
  ParamsRegistry.register(:nodes, [
59
73
  :format,
60
74
  :full_id,
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -12,7 +25,7 @@ module Elasticsearch
12
25
 
13
26
  # A Mapping of all the actions to their list of valid params.
14
27
  #
15
- # @since 6.2.0
28
+ # @since 6.1.1
16
29
  PARAMS = {}
17
30
 
18
31
  # Register an action with its list of valid params.
@@ -23,7 +36,7 @@ module Elasticsearch
23
36
  # @param [ Symbol ] action The action to register.
24
37
  # @param [ Array[Symbol] ] valid_params The list of valid params.
25
38
  #
26
- # @since 6.2.0
39
+ # @since 6.1.1
27
40
  def register(action, valid_params)
28
41
  PARAMS[action.to_sym] = valid_params
29
42
  end
@@ -37,7 +50,7 @@ module Elasticsearch
37
50
  #
38
51
  # @return [ Array<Symbol> ] The list of valid params for the action.
39
52
  #
40
- # @since 6.2.0
53
+ # @since 6.1.1
41
54
  def get(action)
42
55
  PARAMS.fetch(action, [])
43
56
  end
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
4
17
 
5
18
  module Elasticsearch
6
19
  module API
@@ -21,15 +34,16 @@ module Elasticsearch
21
34
  #
22
35
  # client.cat.pending_tasks format: 'json'
23
36
  #
24
- # @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
25
- # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
26
- # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
27
- # @option arguments [List] :h Comma-separated list of column names to display
28
- # @option arguments [Boolean] :help Return help information
37
+ # @option arguments [List] :h Comma-separated list of column names to display -- see the `help` argument
38
+ # @option arguments [Boolean] :v Display column headers as part of the output
29
39
  # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
30
- # @option arguments [Boolean] :v Verbose mode. Display column headers
40
+ # @option arguments [String] :format The output format. Options: 'text', 'json'; default: 'text'
41
+ # @option arguments [Boolean] :help Return information about headers
42
+ # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
43
+ # (default: false)
44
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
31
45
  #
32
- # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cat-pending-tasks.html
46
+ # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-pending-tasks.html
33
47
  #
34
48
  def pending_tasks(arguments={})
35
49
  method = HTTP_GET
@@ -43,7 +57,7 @@ module Elasticsearch
43
57
 
44
58
  # Register this action with its valid params when the module is loaded.
45
59
  #
46
- # @since 6.2.0
60
+ # @since 6.1.1
47
61
  ParamsRegistry.register(:pending_tasks, [
48
62
  :format,
49
63
  :local,