elasticsearch-api 8.10.0 → 8.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (696) hide show
  1. checksums.yaml +4 -4
  2. data/api-spec-testing/test_file/action.rb +76 -64
  3. data/api-spec-testing/test_file/task_group.rb +1 -1
  4. data/api-spec-testing/test_file.rb +8 -3
  5. data/elasticsearch-api.gemspec +2 -2
  6. data/lib/elasticsearch/api/actions/async_search/delete.rb +10 -2
  7. data/lib/elasticsearch/api/actions/async_search/get.rb +10 -2
  8. data/lib/elasticsearch/api/actions/async_search/status.rb +10 -2
  9. data/lib/elasticsearch/api/actions/async_search/submit.rb +10 -2
  10. data/lib/elasticsearch/api/actions/autoscaling/delete_autoscaling_policy.rb +10 -2
  11. data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_capacity.rb +4 -2
  12. data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb +10 -2
  13. data/lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb +10 -2
  14. data/lib/elasticsearch/api/actions/bulk.rb +10 -2
  15. data/lib/elasticsearch/api/actions/cat/aliases.rb +10 -2
  16. data/lib/elasticsearch/api/actions/cat/allocation.rb +10 -2
  17. data/lib/elasticsearch/api/actions/cat/component_templates.rb +10 -2
  18. data/lib/elasticsearch/api/actions/cat/count.rb +10 -2
  19. data/lib/elasticsearch/api/actions/cat/fielddata.rb +10 -2
  20. data/lib/elasticsearch/api/actions/cat/health.rb +4 -2
  21. data/lib/elasticsearch/api/actions/cat/help.rb +4 -2
  22. data/lib/elasticsearch/api/actions/cat/indices.rb +10 -2
  23. data/lib/elasticsearch/api/actions/cat/master.rb +4 -2
  24. data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +10 -2
  25. data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +10 -2
  26. data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +10 -2
  27. data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +10 -2
  28. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +4 -2
  29. data/lib/elasticsearch/api/actions/cat/nodes.rb +4 -2
  30. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +4 -2
  31. data/lib/elasticsearch/api/actions/cat/plugins.rb +4 -2
  32. data/lib/elasticsearch/api/actions/cat/recovery.rb +10 -2
  33. data/lib/elasticsearch/api/actions/cat/repositories.rb +4 -2
  34. data/lib/elasticsearch/api/actions/cat/segments.rb +10 -2
  35. data/lib/elasticsearch/api/actions/cat/shards.rb +10 -2
  36. data/lib/elasticsearch/api/actions/cat/snapshots.rb +10 -2
  37. data/lib/elasticsearch/api/actions/cat/tasks.rb +4 -2
  38. data/lib/elasticsearch/api/actions/cat/templates.rb +10 -2
  39. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +10 -2
  40. data/lib/elasticsearch/api/actions/cat/transforms.rb +10 -2
  41. data/lib/elasticsearch/api/actions/clear_scroll.rb +11 -3
  42. data/lib/elasticsearch/api/actions/close_point_in_time.rb +4 -2
  43. data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +4 -2
  44. data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +10 -2
  45. data/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +4 -2
  46. data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +10 -2
  47. data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +10 -2
  48. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +4 -2
  49. data/lib/elasticsearch/api/actions/cluster/health.rb +10 -2
  50. data/lib/elasticsearch/api/actions/cluster/info.rb +10 -2
  51. data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +4 -2
  52. data/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +4 -2
  53. data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +10 -2
  54. data/lib/elasticsearch/api/actions/cluster/put_settings.rb +4 -2
  55. data/lib/elasticsearch/api/actions/cluster/remote_info.rb +4 -2
  56. data/lib/elasticsearch/api/actions/cluster/reroute.rb +4 -2
  57. data/lib/elasticsearch/api/actions/cluster/state.rb +10 -2
  58. data/lib/elasticsearch/api/actions/cluster/stats.rb +10 -2
  59. data/lib/elasticsearch/api/actions/count.rb +10 -2
  60. data/lib/elasticsearch/api/actions/create.rb +9 -1
  61. data/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +10 -2
  62. data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +10 -2
  63. data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +10 -2
  64. data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +10 -2
  65. data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +10 -2
  66. data/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +10 -2
  67. data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +10 -2
  68. data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +10 -2
  69. data/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +10 -2
  70. data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +10 -2
  71. data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +10 -2
  72. data/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +4 -2
  73. data/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +10 -2
  74. data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +10 -2
  75. data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +10 -2
  76. data/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +4 -2
  77. data/lib/elasticsearch/api/actions/delete.rb +11 -3
  78. data/lib/elasticsearch/api/actions/delete_by_query.rb +10 -2
  79. data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +10 -2
  80. data/lib/elasticsearch/api/actions/delete_script.rb +10 -2
  81. data/lib/elasticsearch/api/actions/enrich/delete_policy.rb +10 -2
  82. data/lib/elasticsearch/api/actions/enrich/execute_policy.rb +10 -2
  83. data/lib/elasticsearch/api/actions/enrich/get_policy.rb +10 -2
  84. data/lib/elasticsearch/api/actions/enrich/put_policy.rb +10 -2
  85. data/lib/elasticsearch/api/actions/enrich/stats.rb +4 -2
  86. data/lib/elasticsearch/api/actions/eql/delete.rb +10 -2
  87. data/lib/elasticsearch/api/actions/eql/get.rb +10 -2
  88. data/lib/elasticsearch/api/actions/eql/get_status.rb +10 -2
  89. data/lib/elasticsearch/api/actions/eql/search.rb +10 -2
  90. data/lib/elasticsearch/api/actions/esql/query.rb +59 -0
  91. data/lib/elasticsearch/api/actions/exists.rb +10 -2
  92. data/lib/elasticsearch/api/actions/exists_source.rb +10 -2
  93. data/lib/elasticsearch/api/actions/explain.rb +10 -2
  94. data/lib/elasticsearch/api/actions/features/get_features.rb +4 -2
  95. data/lib/elasticsearch/api/actions/features/reset_features.rb +4 -2
  96. data/lib/elasticsearch/api/actions/field_caps.rb +10 -2
  97. data/lib/elasticsearch/api/actions/fleet/delete_secret.rb +9 -1
  98. data/lib/elasticsearch/api/actions/fleet/get_secret.rb +9 -1
  99. data/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +10 -2
  100. data/lib/elasticsearch/api/actions/fleet/msearch.rb +9 -1
  101. data/lib/elasticsearch/api/actions/fleet/post_secret.rb +3 -1
  102. data/lib/elasticsearch/api/actions/fleet/search.rb +9 -1
  103. data/lib/elasticsearch/api/actions/get.rb +11 -3
  104. data/lib/elasticsearch/api/actions/get_script.rb +10 -2
  105. data/lib/elasticsearch/api/actions/get_script_context.rb +4 -2
  106. data/lib/elasticsearch/api/actions/get_script_languages.rb +4 -2
  107. data/lib/elasticsearch/api/actions/get_source.rb +10 -2
  108. data/lib/elasticsearch/api/actions/graph/explore.rb +10 -2
  109. data/lib/elasticsearch/api/actions/health_report.rb +10 -2
  110. data/lib/elasticsearch/api/actions/index.rb +10 -2
  111. data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +10 -2
  112. data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +10 -2
  113. data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +10 -2
  114. data/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +4 -2
  115. data/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +4 -2
  116. data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +10 -2
  117. data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +10 -2
  118. data/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +10 -2
  119. data/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +10 -2
  120. data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +4 -2
  121. data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +4 -2
  122. data/lib/elasticsearch/api/actions/indices/add_block.rb +10 -2
  123. data/lib/elasticsearch/api/actions/indices/analyze.rb +10 -2
  124. data/lib/elasticsearch/api/actions/indices/clear_cache.rb +10 -2
  125. data/lib/elasticsearch/api/actions/indices/clone.rb +10 -2
  126. data/lib/elasticsearch/api/actions/indices/close.rb +10 -2
  127. data/lib/elasticsearch/api/actions/indices/create.rb +10 -2
  128. data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +10 -2
  129. data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +10 -2
  130. data/lib/elasticsearch/api/actions/indices/delete.rb +11 -3
  131. data/lib/elasticsearch/api/actions/indices/delete_alias.rb +10 -2
  132. data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +10 -2
  133. data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +10 -2
  134. data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +10 -2
  135. data/lib/elasticsearch/api/actions/indices/delete_template.rb +11 -3
  136. data/lib/elasticsearch/api/actions/indices/disk_usage.rb +10 -2
  137. data/lib/elasticsearch/api/actions/indices/downsample.rb +10 -2
  138. data/lib/elasticsearch/api/actions/indices/exists.rb +10 -2
  139. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +10 -2
  140. data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +10 -2
  141. data/lib/elasticsearch/api/actions/indices/exists_template.rb +10 -2
  142. data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +10 -2
  143. data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +10 -2
  144. data/lib/elasticsearch/api/actions/indices/flush.rb +10 -2
  145. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +10 -2
  146. data/lib/elasticsearch/api/actions/indices/get.rb +10 -2
  147. data/lib/elasticsearch/api/actions/indices/get_alias.rb +10 -2
  148. data/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +10 -2
  149. data/lib/elasticsearch/api/actions/indices/get_data_stream.rb +10 -2
  150. data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +10 -2
  151. data/lib/elasticsearch/api/actions/indices/get_index_template.rb +10 -2
  152. data/lib/elasticsearch/api/actions/indices/get_mapping.rb +10 -2
  153. data/lib/elasticsearch/api/actions/indices/get_settings.rb +10 -2
  154. data/lib/elasticsearch/api/actions/indices/get_template.rb +10 -2
  155. data/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +10 -2
  156. data/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +4 -2
  157. data/lib/elasticsearch/api/actions/indices/open.rb +10 -2
  158. data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +10 -2
  159. data/lib/elasticsearch/api/actions/indices/put_alias.rb +10 -2
  160. data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +10 -2
  161. data/lib/elasticsearch/api/actions/indices/put_index_template.rb +10 -2
  162. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +10 -2
  163. data/lib/elasticsearch/api/actions/indices/put_settings.rb +10 -2
  164. data/lib/elasticsearch/api/actions/indices/put_template.rb +10 -2
  165. data/lib/elasticsearch/api/actions/indices/recovery.rb +10 -2
  166. data/lib/elasticsearch/api/actions/indices/refresh.rb +10 -2
  167. data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +10 -2
  168. data/lib/elasticsearch/api/actions/indices/resolve_index.rb +10 -2
  169. data/lib/elasticsearch/api/actions/indices/rollover.rb +10 -2
  170. data/lib/elasticsearch/api/actions/indices/segments.rb +10 -2
  171. data/lib/elasticsearch/api/actions/indices/shard_stores.rb +10 -2
  172. data/lib/elasticsearch/api/actions/indices/shrink.rb +10 -2
  173. data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +10 -2
  174. data/lib/elasticsearch/api/actions/indices/simulate_template.rb +10 -2
  175. data/lib/elasticsearch/api/actions/indices/split.rb +10 -2
  176. data/lib/elasticsearch/api/actions/indices/stats.rb +10 -2
  177. data/lib/elasticsearch/api/actions/indices/unfreeze.rb +10 -2
  178. data/lib/elasticsearch/api/actions/indices/update_aliases.rb +4 -2
  179. data/lib/elasticsearch/api/actions/indices/validate_query.rb +10 -2
  180. data/lib/elasticsearch/api/actions/inference/delete_model.rb +69 -0
  181. data/lib/elasticsearch/api/actions/inference/get_model.rb +69 -0
  182. data/lib/elasticsearch/api/actions/inference/inference.rb +70 -0
  183. data/lib/elasticsearch/api/actions/inference/put_model.rb +70 -0
  184. data/lib/elasticsearch/api/actions/info.rb +4 -2
  185. data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +10 -2
  186. data/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +4 -2
  187. data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +10 -2
  188. data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +4 -2
  189. data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +10 -2
  190. data/lib/elasticsearch/api/actions/ingest/simulate.rb +10 -2
  191. data/lib/elasticsearch/api/actions/knn_search.rb +10 -2
  192. data/lib/elasticsearch/api/actions/license/delete.rb +4 -2
  193. data/lib/elasticsearch/api/actions/license/get.rb +4 -2
  194. data/lib/elasticsearch/api/actions/license/get_basic_status.rb +4 -2
  195. data/lib/elasticsearch/api/actions/license/get_trial_status.rb +4 -2
  196. data/lib/elasticsearch/api/actions/license/post.rb +4 -2
  197. data/lib/elasticsearch/api/actions/license/post_start_basic.rb +4 -2
  198. data/lib/elasticsearch/api/actions/license/post_start_trial.rb +4 -2
  199. data/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +10 -2
  200. data/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +10 -2
  201. data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +10 -2
  202. data/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +10 -2
  203. data/lib/elasticsearch/api/actions/machine_learning/close_job.rb +10 -2
  204. data/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +10 -2
  205. data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +10 -2
  206. data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +10 -2
  207. data/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +10 -2
  208. data/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +10 -2
  209. data/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +10 -2
  210. data/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +10 -2
  211. data/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +10 -2
  212. data/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +10 -2
  213. data/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +10 -2
  214. data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +10 -2
  215. data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +10 -2
  216. data/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +4 -2
  217. data/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +4 -2
  218. data/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +10 -2
  219. data/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +10 -2
  220. data/lib/elasticsearch/api/actions/machine_learning/forecast.rb +10 -2
  221. data/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +10 -2
  222. data/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +10 -2
  223. data/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +10 -2
  224. data/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +10 -2
  225. data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +10 -2
  226. data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +10 -2
  227. data/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +10 -2
  228. data/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +10 -2
  229. data/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +10 -2
  230. data/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +10 -2
  231. data/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +10 -2
  232. data/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +10 -2
  233. data/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +10 -2
  234. data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +10 -2
  235. data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +10 -2
  236. data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +10 -2
  237. data/lib/elasticsearch/api/actions/machine_learning/get_records.rb +10 -2
  238. data/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +10 -2
  239. data/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +10 -2
  240. data/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +10 -2
  241. data/lib/elasticsearch/api/actions/machine_learning/info.rb +4 -2
  242. data/lib/elasticsearch/api/actions/machine_learning/open_job.rb +10 -2
  243. data/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +10 -2
  244. data/lib/elasticsearch/api/actions/machine_learning/post_data.rb +10 -2
  245. data/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +10 -2
  246. data/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +10 -2
  247. data/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +10 -2
  248. data/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +10 -2
  249. data/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +10 -2
  250. data/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +10 -2
  251. data/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +10 -2
  252. data/lib/elasticsearch/api/actions/machine_learning/put_job.rb +10 -2
  253. data/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +10 -2
  254. data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +10 -2
  255. data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +10 -2
  256. data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +10 -2
  257. data/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +10 -2
  258. data/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +10 -2
  259. data/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +4 -2
  260. data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +10 -2
  261. data/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +10 -2
  262. data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +10 -2
  263. data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +10 -2
  264. data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +10 -2
  265. data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +10 -2
  266. data/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +10 -2
  267. data/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +10 -2
  268. data/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +10 -2
  269. data/lib/elasticsearch/api/actions/machine_learning/update_job.rb +10 -2
  270. data/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +10 -2
  271. data/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +10 -2
  272. data/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +10 -2
  273. data/lib/elasticsearch/api/actions/machine_learning/validate.rb +4 -2
  274. data/lib/elasticsearch/api/actions/machine_learning/validate_detector.rb +4 -2
  275. data/lib/elasticsearch/api/actions/mget.rb +10 -2
  276. data/lib/elasticsearch/api/actions/migration/deprecations.rb +10 -2
  277. data/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +4 -2
  278. data/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +4 -2
  279. data/lib/elasticsearch/api/actions/monitoring/bulk.rb +10 -2
  280. data/lib/elasticsearch/api/actions/msearch.rb +10 -2
  281. data/lib/elasticsearch/api/actions/msearch_template.rb +10 -2
  282. data/lib/elasticsearch/api/actions/mtermvectors.rb +10 -2
  283. data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +10 -2
  284. data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +10 -2
  285. data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +10 -2
  286. data/lib/elasticsearch/api/actions/nodes/info.rb +10 -2
  287. data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +10 -2
  288. data/lib/elasticsearch/api/actions/nodes/stats.rb +10 -2
  289. data/lib/elasticsearch/api/actions/nodes/usage.rb +10 -2
  290. data/lib/elasticsearch/api/actions/open_point_in_time.rb +10 -2
  291. data/lib/elasticsearch/api/actions/ping.rb +4 -2
  292. data/lib/elasticsearch/api/actions/put_script.rb +10 -2
  293. data/lib/elasticsearch/api/actions/query_ruleset/delete.rb +10 -2
  294. data/lib/elasticsearch/api/actions/query_ruleset/get.rb +10 -2
  295. data/lib/elasticsearch/api/actions/query_ruleset/list.rb +4 -2
  296. data/lib/elasticsearch/api/actions/query_ruleset/put.rb +10 -2
  297. data/lib/elasticsearch/api/actions/rank_eval.rb +10 -2
  298. data/lib/elasticsearch/api/actions/reindex.rb +4 -2
  299. data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +10 -2
  300. data/lib/elasticsearch/api/actions/render_search_template.rb +10 -2
  301. data/lib/elasticsearch/api/actions/rollup/delete_job.rb +10 -2
  302. data/lib/elasticsearch/api/actions/rollup/get_jobs.rb +10 -2
  303. data/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb +10 -2
  304. data/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb +10 -2
  305. data/lib/elasticsearch/api/actions/rollup/put_job.rb +10 -2
  306. data/lib/elasticsearch/api/actions/rollup/rollup_search.rb +10 -2
  307. data/lib/elasticsearch/api/actions/rollup/start_job.rb +10 -2
  308. data/lib/elasticsearch/api/actions/rollup/stop_job.rb +10 -2
  309. data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +4 -2
  310. data/lib/elasticsearch/api/actions/scroll.rb +10 -2
  311. data/lib/elasticsearch/api/actions/search.rb +10 -2
  312. data/lib/elasticsearch/api/actions/search_application/delete.rb +10 -2
  313. data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +10 -2
  314. data/lib/elasticsearch/api/actions/search_application/get.rb +10 -2
  315. data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +10 -2
  316. data/lib/elasticsearch/api/actions/search_application/list.rb +4 -2
  317. data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +9 -1
  318. data/lib/elasticsearch/api/actions/search_application/put.rb +10 -2
  319. data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +10 -2
  320. data/lib/elasticsearch/api/actions/search_application/render_query.rb +10 -2
  321. data/lib/elasticsearch/api/actions/search_application/search.rb +10 -2
  322. data/lib/elasticsearch/api/actions/search_mvt.rb +10 -2
  323. data/lib/elasticsearch/api/actions/search_shards.rb +10 -2
  324. data/lib/elasticsearch/api/actions/search_template.rb +10 -2
  325. data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +10 -2
  326. data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +10 -2
  327. data/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +10 -2
  328. data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +10 -2
  329. data/lib/elasticsearch/api/actions/security/activate_user_profile.rb +4 -2
  330. data/lib/elasticsearch/api/actions/security/authenticate.rb +4 -2
  331. data/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +4 -2
  332. data/lib/elasticsearch/api/actions/security/change_password.rb +10 -2
  333. data/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +10 -2
  334. data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +10 -2
  335. data/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +10 -2
  336. data/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +10 -2
  337. data/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +10 -2
  338. data/lib/elasticsearch/api/actions/security/create_api_key.rb +4 -2
  339. data/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +4 -2
  340. data/lib/elasticsearch/api/actions/security/create_service_token.rb +10 -2
  341. data/lib/elasticsearch/api/actions/security/delete_privileges.rb +10 -2
  342. data/lib/elasticsearch/api/actions/security/delete_role.rb +10 -2
  343. data/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +10 -2
  344. data/lib/elasticsearch/api/actions/security/delete_service_token.rb +10 -2
  345. data/lib/elasticsearch/api/actions/security/delete_user.rb +10 -2
  346. data/lib/elasticsearch/api/actions/security/disable_user.rb +10 -2
  347. data/lib/elasticsearch/api/actions/security/disable_user_profile.rb +10 -2
  348. data/lib/elasticsearch/api/actions/security/enable_user.rb +10 -2
  349. data/lib/elasticsearch/api/actions/security/enable_user_profile.rb +10 -2
  350. data/lib/elasticsearch/api/actions/security/enroll_kibana.rb +4 -2
  351. data/lib/elasticsearch/api/actions/security/enroll_node.rb +4 -2
  352. data/lib/elasticsearch/api/actions/security/get_api_key.rb +4 -2
  353. data/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +4 -2
  354. data/lib/elasticsearch/api/actions/security/get_privileges.rb +10 -2
  355. data/lib/elasticsearch/api/actions/security/get_role.rb +11 -3
  356. data/lib/elasticsearch/api/actions/security/get_role_mapping.rb +10 -2
  357. data/lib/elasticsearch/api/actions/security/get_service_accounts.rb +10 -2
  358. data/lib/elasticsearch/api/actions/security/get_service_credentials.rb +10 -2
  359. data/lib/elasticsearch/api/actions/security/get_settings.rb +4 -2
  360. data/lib/elasticsearch/api/actions/security/get_token.rb +4 -2
  361. data/lib/elasticsearch/api/actions/security/get_user.rb +11 -3
  362. data/lib/elasticsearch/api/actions/security/get_user_privileges.rb +4 -2
  363. data/lib/elasticsearch/api/actions/security/get_user_profile.rb +10 -2
  364. data/lib/elasticsearch/api/actions/security/grant_api_key.rb +4 -2
  365. data/lib/elasticsearch/api/actions/security/has_privileges.rb +10 -2
  366. data/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +4 -2
  367. data/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +4 -2
  368. data/lib/elasticsearch/api/actions/security/invalidate_token.rb +4 -2
  369. data/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +4 -2
  370. data/lib/elasticsearch/api/actions/security/oidc_logout.rb +4 -2
  371. data/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +4 -2
  372. data/lib/elasticsearch/api/actions/security/put_privileges.rb +4 -2
  373. data/lib/elasticsearch/api/actions/security/put_role.rb +10 -2
  374. data/lib/elasticsearch/api/actions/security/put_role_mapping.rb +10 -2
  375. data/lib/elasticsearch/api/actions/security/put_user.rb +10 -2
  376. data/lib/elasticsearch/api/actions/security/query_api_keys.rb +4 -2
  377. data/lib/elasticsearch/api/actions/security/saml_authenticate.rb +4 -2
  378. data/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +4 -2
  379. data/lib/elasticsearch/api/actions/security/saml_invalidate.rb +4 -2
  380. data/lib/elasticsearch/api/actions/security/saml_logout.rb +4 -2
  381. data/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +4 -2
  382. data/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +10 -2
  383. data/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +4 -2
  384. data/lib/elasticsearch/api/actions/security/update_api_key.rb +10 -2
  385. data/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +10 -2
  386. data/lib/elasticsearch/api/actions/security/update_settings.rb +4 -2
  387. data/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +10 -2
  388. data/lib/elasticsearch/api/actions/shutdown/delete_node.rb +9 -1
  389. data/lib/elasticsearch/api/actions/shutdown/get_node.rb +9 -1
  390. data/lib/elasticsearch/api/actions/shutdown/put_node.rb +9 -1
  391. data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +10 -2
  392. data/lib/elasticsearch/api/actions/snapshot/clone.rb +10 -2
  393. data/lib/elasticsearch/api/actions/snapshot/create.rb +10 -2
  394. data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +10 -2
  395. data/lib/elasticsearch/api/actions/snapshot/delete.rb +11 -3
  396. data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +11 -3
  397. data/lib/elasticsearch/api/actions/snapshot/get.rb +11 -3
  398. data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +11 -3
  399. data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +10 -2
  400. data/lib/elasticsearch/api/actions/snapshot/restore.rb +10 -2
  401. data/lib/elasticsearch/api/actions/snapshot/status.rb +11 -3
  402. data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +10 -2
  403. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +10 -2
  404. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +10 -2
  405. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +4 -2
  406. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +10 -2
  407. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +4 -2
  408. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +4 -2
  409. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +10 -2
  410. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +4 -2
  411. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +4 -2
  412. data/lib/elasticsearch/api/actions/sql/clear_cursor.rb +4 -2
  413. data/lib/elasticsearch/api/actions/sql/delete_async.rb +10 -2
  414. data/lib/elasticsearch/api/actions/sql/get_async.rb +10 -2
  415. data/lib/elasticsearch/api/actions/sql/get_async_status.rb +10 -2
  416. data/lib/elasticsearch/api/actions/sql/query.rb +4 -2
  417. data/lib/elasticsearch/api/actions/sql/translate.rb +4 -2
  418. data/lib/elasticsearch/api/actions/ssl/certificates.rb +4 -2
  419. data/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +10 -2
  420. data/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +10 -2
  421. data/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +10 -2
  422. data/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +10 -2
  423. data/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +4 -2
  424. data/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +10 -2
  425. data/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +10 -2
  426. data/lib/elasticsearch/api/actions/tasks/cancel.rb +10 -2
  427. data/lib/elasticsearch/api/actions/tasks/get.rb +10 -2
  428. data/lib/elasticsearch/api/actions/tasks/list.rb +4 -2
  429. data/lib/elasticsearch/api/actions/terms_enum.rb +10 -2
  430. data/lib/elasticsearch/api/actions/termvectors.rb +10 -2
  431. data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +4 -2
  432. data/lib/elasticsearch/api/actions/transform/delete_transform.rb +10 -2
  433. data/lib/elasticsearch/api/actions/transform/get_transform.rb +10 -2
  434. data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +10 -2
  435. data/lib/elasticsearch/api/actions/transform/preview_transform.rb +10 -2
  436. data/lib/elasticsearch/api/actions/transform/put_transform.rb +10 -2
  437. data/lib/elasticsearch/api/actions/transform/reset_transform.rb +10 -2
  438. data/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +10 -2
  439. data/lib/elasticsearch/api/actions/transform/start_transform.rb +10 -2
  440. data/lib/elasticsearch/api/actions/transform/stop_transform.rb +10 -2
  441. data/lib/elasticsearch/api/actions/transform/update_transform.rb +10 -2
  442. data/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +4 -2
  443. data/lib/elasticsearch/api/actions/update.rb +11 -3
  444. data/lib/elasticsearch/api/actions/update_by_query.rb +10 -2
  445. data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +10 -2
  446. data/lib/elasticsearch/api/actions/watcher/ack_watch.rb +10 -2
  447. data/lib/elasticsearch/api/actions/watcher/activate_watch.rb +10 -2
  448. data/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +10 -2
  449. data/lib/elasticsearch/api/actions/watcher/delete_watch.rb +11 -3
  450. data/lib/elasticsearch/api/actions/watcher/execute_watch.rb +10 -2
  451. data/lib/elasticsearch/api/actions/watcher/get_settings.rb +4 -2
  452. data/lib/elasticsearch/api/actions/watcher/get_watch.rb +10 -2
  453. data/lib/elasticsearch/api/actions/watcher/put_watch.rb +10 -2
  454. data/lib/elasticsearch/api/actions/watcher/query_watches.rb +4 -2
  455. data/lib/elasticsearch/api/actions/watcher/start.rb +4 -2
  456. data/lib/elasticsearch/api/actions/watcher/stats.rb +10 -2
  457. data/lib/elasticsearch/api/actions/watcher/stop.rb +4 -2
  458. data/lib/elasticsearch/api/actions/watcher/update_settings.rb +4 -2
  459. data/lib/elasticsearch/api/actions/xpack/info.rb +4 -2
  460. data/lib/elasticsearch/api/actions/xpack/usage.rb +4 -2
  461. data/lib/elasticsearch/api/namespace/common.rb +2 -2
  462. data/lib/elasticsearch/api/namespace/{synonym_rule.rb → esql.rb} +7 -7
  463. data/lib/elasticsearch/api/namespace/{synonyms_sets.rb → inference.rb} +7 -7
  464. data/lib/elasticsearch/api/version.rb +1 -1
  465. data/lib/elasticsearch/api.rb +2 -2
  466. data/spec/elasticsearch/api/actions/bulk_spec.rb +24 -1
  467. data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +2 -1
  468. data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +2 -1
  469. data/spec/elasticsearch/api/actions/cat/component_templates_spec.rb +22 -10
  470. data/spec/elasticsearch/api/actions/cat/count_spec.rb +2 -1
  471. data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +4 -2
  472. data/spec/elasticsearch/api/actions/cat/health_spec.rb +2 -1
  473. data/spec/elasticsearch/api/actions/cat/help_spec.rb +2 -1
  474. data/spec/elasticsearch/api/actions/cat/indices_spec.rb +2 -1
  475. data/spec/elasticsearch/api/actions/cat/master_spec.rb +2 -1
  476. data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +2 -1
  477. data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +2 -1
  478. data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +2 -1
  479. data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +2 -1
  480. data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +2 -1
  481. data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +2 -1
  482. data/spec/elasticsearch/api/actions/cat/segments_spec.rb +13 -1
  483. data/spec/elasticsearch/api/actions/cat/shards_spec.rb +2 -1
  484. data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +2 -1
  485. data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +2 -1
  486. data/spec/elasticsearch/api/actions/cat/templates_spec.rb +2 -1
  487. data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +2 -1
  488. data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +4 -2
  489. data/spec/elasticsearch/api/actions/close_point_in_time_spec.rb +2 -1
  490. data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +2 -1
  491. data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +2 -1
  492. data/spec/elasticsearch/api/actions/cluster/health_spec.rb +6 -3
  493. data/spec/elasticsearch/api/actions/cluster/info_spec.rb +2 -1
  494. data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +2 -1
  495. data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +2 -1
  496. data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +2 -1
  497. data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +4 -2
  498. data/spec/elasticsearch/api/actions/cluster/state_spec.rb +4 -2
  499. data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +2 -1
  500. data/spec/elasticsearch/api/actions/count_spec.rb +6 -3
  501. data/spec/elasticsearch/api/actions/create_document_spec.rb +35 -1
  502. data/spec/elasticsearch/api/actions/dangling_indices/delete_dangling_indices_spec.rb +2 -1
  503. data/spec/elasticsearch/api/actions/dangling_indices/import_dangling_indices_spec.rb +2 -1
  504. data/spec/elasticsearch/api/actions/dangling_indices/list_dangling_indices_spec.rb +2 -1
  505. data/spec/elasticsearch/api/actions/data_frame/update_data_frame_transform_spec.rb +2 -1
  506. data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +4 -2
  507. data/spec/elasticsearch/api/actions/delete_document_spec.rb +4 -2
  508. data/spec/elasticsearch/api/actions/delete_script_spec.rb +2 -1
  509. data/spec/elasticsearch/api/actions/{synonyms/update_spec.rb → esql/query_spec.rb} +6 -5
  510. data/spec/elasticsearch/api/actions/exists_document_spec.rb +2 -1
  511. data/spec/elasticsearch/api/actions/explain_document_spec.rb +35 -1
  512. data/spec/elasticsearch/api/actions/features/get_features_spec.rb +2 -1
  513. data/spec/elasticsearch/api/actions/features/reset_features_spec.rb +2 -1
  514. data/spec/elasticsearch/api/actions/field_caps_spec.rb +2 -1
  515. data/spec/elasticsearch/api/actions/fleet/global_checkpoints_spec.rb +2 -1
  516. data/spec/elasticsearch/api/actions/fleet/msearch_spec.rb +2 -1
  517. data/spec/elasticsearch/api/actions/fleet/search_spec.rb +2 -1
  518. data/spec/elasticsearch/api/actions/get_document_source_spec.rb +13 -1
  519. data/spec/elasticsearch/api/actions/get_document_spec.rb +13 -1
  520. data/spec/elasticsearch/api/actions/get_script_spec.rb +2 -1
  521. data/spec/elasticsearch/api/actions/health_report_spec.rb +4 -2
  522. data/spec/elasticsearch/api/actions/index_document_spec.rb +24 -1
  523. data/spec/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers_spec.rb +2 -1
  524. data/spec/elasticsearch/api/actions/indices/add_block_spec.rb +3 -1
  525. data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +13 -1
  526. data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +24 -1
  527. data/spec/elasticsearch/api/actions/indices/clone_spec.rb +3 -1
  528. data/spec/elasticsearch/api/actions/indices/close_spec.rb +13 -1
  529. data/spec/elasticsearch/api/actions/indices/create_spec.rb +13 -1
  530. data/spec/elasticsearch/api/actions/indices/data_streams_stats_spec.rb +13 -1
  531. data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +15 -1
  532. data/spec/elasticsearch/api/actions/indices/delete_data_lifecycle_spec.rb +2 -1
  533. data/spec/elasticsearch/api/actions/indices/delete_spec.rb +24 -1
  534. data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +13 -1
  535. data/spec/elasticsearch/api/actions/indices/disk_usage_spec.rb +2 -1
  536. data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +26 -1
  537. data/spec/elasticsearch/api/actions/indices/exists_spec.rb +24 -1
  538. data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +13 -1
  539. data/spec/elasticsearch/api/actions/indices/explain_data_lifecycle_spec.rb +3 -1
  540. data/spec/elasticsearch/api/actions/indices/field_usage_stats_spec.rb +2 -1
  541. data/spec/elasticsearch/api/actions/indices/flush_spec.rb +46 -1
  542. data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +2 -1
  543. data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +25 -1
  544. data/spec/elasticsearch/api/actions/indices/get_data_lifecycle_spec.rb +2 -1
  545. data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +13 -1
  546. data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +35 -1
  547. data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +35 -1
  548. data/spec/elasticsearch/api/actions/indices/get_spec.rb +2 -1
  549. data/spec/elasticsearch/api/actions/indices/open_spec.rb +13 -1
  550. data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +27 -1
  551. data/spec/elasticsearch/api/actions/indices/put_data_lifecycle_spec.rb +2 -1
  552. data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +24 -1
  553. data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +46 -1
  554. data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +13 -1
  555. data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +2 -1
  556. data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +46 -1
  557. data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +13 -1
  558. data/spec/elasticsearch/api/actions/indices/segments_spec.rb +46 -1
  559. data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +2 -1
  560. data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +3 -1
  561. data/spec/elasticsearch/api/actions/indices/split_spec.rb +3 -1
  562. data/spec/elasticsearch/api/actions/indices/stats_spec.rb +68 -1
  563. data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +13 -1
  564. data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +2 -1
  565. data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +69 -1
  566. data/spec/elasticsearch/api/actions/{synonyms/delete_synonym_rule_spec.rb → inference/delete_model_spec.rb} +6 -4
  567. data/spec/elasticsearch/api/actions/{synonyms/get_synonym_rule_spec.rb → inference/get_model_spec.rb} +6 -4
  568. data/spec/elasticsearch/api/actions/{synonyms/delete_synonym_spec.rb → inference/inference_spec.rb} +7 -5
  569. data/spec/elasticsearch/api/actions/{synonyms/put_synonym_rule_spec.rb → inference/put_model_spec.rb} +6 -4
  570. data/spec/elasticsearch/api/actions/info_spec.rb +2 -1
  571. data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +13 -1
  572. data/spec/elasticsearch/api/actions/ingest/geo_ip_stats_spec.rb +2 -1
  573. data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +13 -1
  574. data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +13 -1
  575. data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +13 -1
  576. data/spec/elasticsearch/api/actions/json_builders_spec.rb +4 -2
  577. data/spec/elasticsearch/api/actions/machine_learning/get_memory_stats_spec.rb +13 -1
  578. data/spec/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats_spec.rb +5 -1
  579. data/spec/elasticsearch/api/actions/machine_learning/infer_trained_model_deployment_spec.rb +2 -1
  580. data/spec/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part_spec.rb +3 -1
  581. data/spec/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary_spec.rb +3 -1
  582. data/spec/elasticsearch/api/actions/machine_learning/reset_job_spec.rb +2 -1
  583. data/spec/elasticsearch/api/actions/machine_learning/set_upgrade_mode_spec.rb +4 -2
  584. data/spec/elasticsearch/api/actions/machine_learning/start_trained_model_deployment_spec.rb +3 -1
  585. data/spec/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment_spec.rb +3 -1
  586. data/spec/elasticsearch/api/actions/machine_learning/update_trained_model_deployment_spec.rb +3 -1
  587. data/spec/elasticsearch/api/actions/mget_spec.rb +24 -1
  588. data/spec/elasticsearch/api/actions/migration/get_feature_upgrade_status_spec.rb +2 -1
  589. data/spec/elasticsearch/api/actions/migration/post_feature_upgrade_spec.rb +2 -1
  590. data/spec/elasticsearch/api/actions/msearch_spec.rb +35 -1
  591. data/spec/elasticsearch/api/actions/msearch_template_spec.rb +13 -1
  592. data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +2 -1
  593. data/spec/elasticsearch/api/actions/nodes/clear_repositories_metering_archive_spec.rb +3 -1
  594. data/spec/elasticsearch/api/actions/nodes/get_repositories_metering_info_spec.rb +3 -1
  595. data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +24 -1
  596. data/spec/elasticsearch/api/actions/nodes/info_spec.rb +46 -1
  597. data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +35 -1
  598. data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +35 -1
  599. data/spec/elasticsearch/api/actions/open_point_in_time_spec.rb +2 -1
  600. data/spec/elasticsearch/api/actions/ping_spec.rb +2 -1
  601. data/spec/elasticsearch/api/actions/put_script_spec.rb +4 -2
  602. data/spec/elasticsearch/api/actions/query_ruleset/delete_spec.rb +2 -1
  603. data/spec/elasticsearch/api/actions/query_ruleset/get_spec.rb +2 -1
  604. data/spec/elasticsearch/api/actions/query_ruleset/put_spec.rb +2 -1
  605. data/spec/elasticsearch/api/actions/rank_eval_spec.rb +13 -1
  606. data/spec/elasticsearch/api/actions/reindex_spec.rb +2 -1
  607. data/spec/elasticsearch/api/actions/render_search_template_spec.rb +4 -2
  608. data/spec/elasticsearch/api/actions/scroll_spec.rb +4 -2
  609. data/spec/elasticsearch/api/actions/search_application/delete_behavioral_analytics_spec.rb +3 -1
  610. data/spec/elasticsearch/api/actions/search_application/delete_spec.rb +2 -1
  611. data/spec/elasticsearch/api/actions/search_application/get_behavioral_analytics_spec.rb +2 -1
  612. data/spec/elasticsearch/api/actions/search_application/get_spec.rb +2 -1
  613. data/spec/elasticsearch/api/actions/search_application/list_spec.rb +2 -1
  614. data/spec/elasticsearch/api/actions/search_application/post_behavioral_analytics_event_spec.rb +3 -1
  615. data/spec/elasticsearch/api/actions/search_application/put_behavioral_analytics_spec.rb +3 -1
  616. data/spec/elasticsearch/api/actions/search_application/put_spec.rb +2 -1
  617. data/spec/elasticsearch/api/actions/search_application/render_query_spec.rb +3 -1
  618. data/spec/elasticsearch/api/actions/search_application/search_spec.rb +2 -1
  619. data/spec/elasticsearch/api/actions/search_mvt_spec.rb +3 -1
  620. data/spec/elasticsearch/api/actions/search_shards_spec.rb +2 -1
  621. data/spec/elasticsearch/api/actions/search_spec.rb +24 -1
  622. data/spec/elasticsearch/api/actions/search_template_spec.rb +2 -1
  623. data/spec/elasticsearch/api/actions/searchable_snapshots/cache_stats_spec.rb +13 -1
  624. data/spec/elasticsearch/api/actions/searchable_snapshots/clear_cache_spec.rb +14 -1
  625. data/spec/elasticsearch/api/actions/searchable_snapshots/mount_spec.rb +3 -1
  626. data/spec/elasticsearch/api/actions/searchable_snapshots/stats_spec.rb +15 -1
  627. data/spec/elasticsearch/api/actions/security/clear_cached_service_tokens_spec.rb +3 -1
  628. data/spec/elasticsearch/api/actions/security/create_api_key_spec.rb +4 -2
  629. data/spec/elasticsearch/api/actions/security/create_cross_cluster_api_key_spec.rb +2 -1
  630. data/spec/elasticsearch/api/actions/security/create_service_token_spec.rb +15 -1
  631. data/spec/elasticsearch/api/actions/security/delete_service_token_spec.rb +3 -1
  632. data/spec/elasticsearch/api/actions/security/disable_user_profile_spec.rb +2 -1
  633. data/spec/elasticsearch/api/actions/security/enable_user_profile_spec.rb +2 -1
  634. data/spec/elasticsearch/api/actions/security/enroll_kibana_spec.rb +2 -1
  635. data/spec/elasticsearch/api/actions/security/get_api_key_spec.rb +2 -1
  636. data/spec/elasticsearch/api/actions/security/get_builtin_privileges_spec.rb +2 -1
  637. data/spec/elasticsearch/api/actions/security/get_service_accounts_spec.rb +26 -1
  638. data/spec/elasticsearch/api/actions/security/get_service_credentials_spec.rb +3 -1
  639. data/spec/elasticsearch/api/actions/security/has_privileges_user_profile_spec.rb +2 -1
  640. data/spec/elasticsearch/api/actions/security/invalidate_api_key_spec.rb +2 -1
  641. data/spec/elasticsearch/api/actions/security/query_api_keys_spec.rb +2 -1
  642. data/spec/elasticsearch/api/actions/security/saml_authenticate_spec.rb +2 -1
  643. data/spec/elasticsearch/api/actions/security/saml_complete_logout_spec.rb +2 -1
  644. data/spec/elasticsearch/api/actions/security/saml_invalidate_spec.rb +2 -1
  645. data/spec/elasticsearch/api/actions/security/saml_logout_spec.rb +2 -1
  646. data/spec/elasticsearch/api/actions/security/saml_prepare_authentication_spec.rb +2 -1
  647. data/spec/elasticsearch/api/actions/security/saml_service_provider_metadata_spec.rb +3 -1
  648. data/spec/elasticsearch/api/actions/security/suggest_user_profiles_spec.rb +2 -1
  649. data/spec/elasticsearch/api/actions/security/update_api_key_spec.rb +2 -1
  650. data/spec/elasticsearch/api/actions/security/update_cross_cluster_api_key_spec.rb +3 -1
  651. data/spec/elasticsearch/api/actions/shutdown/delete_node_spec.rb +2 -1
  652. data/spec/elasticsearch/api/actions/shutdown/get_node_spec.rb +13 -1
  653. data/spec/elasticsearch/api/actions/shutdown/put_node_spec.rb +2 -1
  654. data/spec/elasticsearch/api/actions/snapshot/clone_spec.rb +4 -1
  655. data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +3 -1
  656. data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +3 -1
  657. data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +15 -1
  658. data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +3 -1
  659. data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +2 -1
  660. data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +3 -1
  661. data/spec/elasticsearch/api/actions/snapshot/repository_analize_spec.rb +3 -1
  662. data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +3 -1
  663. data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +13 -1
  664. data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +3 -1
  665. data/spec/elasticsearch/api/actions/sql/delete_async_spec.rb +2 -1
  666. data/spec/elasticsearch/api/actions/sql/get_async_spec.rb +2 -1
  667. data/spec/elasticsearch/api/actions/sql/get_async_stats_spec.rb +2 -1
  668. data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +13 -1
  669. data/spec/elasticsearch/api/actions/tasks/get_spec.rb +2 -1
  670. data/spec/elasticsearch/api/actions/tasks/list_spec.rb +2 -1
  671. data/spec/elasticsearch/api/actions/terms_enum_spec.rb +2 -1
  672. data/spec/elasticsearch/api/actions/termvectors_spec.rb +13 -1
  673. data/spec/elasticsearch/api/actions/transform/schedule_now_transform_spec.rb +3 -1
  674. data/spec/elasticsearch/api/actions/update_by_query_spec.rb +2 -1
  675. data/spec/elasticsearch/api/actions/update_document_spec.rb +13 -1
  676. data/spec/elasticsearch/api/actions/watcher/get_settings_spec.rb +2 -1
  677. data/spec/elasticsearch/api/actions/watcher/update_settings_spec.rb +3 -2
  678. data/spec/elasticsearch/api/perform_request_spec.rb +86 -0
  679. data/spec/rest_api/rest_api_tests_helper.rb +1 -1
  680. data/spec/rest_api/rest_api_yaml_spec.rb +2 -0
  681. data/spec/spec_helper.rb +0 -4
  682. data/utils/endpoint_spec.rb +194 -0
  683. data/utils/{thor/generator/endpoint_specifics.rb → endpoint_specifics.rb} +4 -4
  684. data/utils/thor/generate_source.rb +14 -141
  685. data/utils/thor/templates/_body.erb +2 -2
  686. data/utils/thor/templates/_documentation_top.erb +22 -22
  687. data/utils/thor/templates/_method_setup.erb +10 -10
  688. data/utils/thor/templates/_perform_request.erb +11 -11
  689. data/utils/thor/templates/method.erb +28 -19
  690. metadata +25 -31
  691. data/spec/elasticsearch/api/actions/query_ruleset/list_spec.rb +0 -34
  692. data/spec/elasticsearch/api/actions/security/get_settings_spec.rb +0 -34
  693. data/spec/elasticsearch/api/actions/security/update_settings_spec.rb +0 -34
  694. data/spec/elasticsearch/api/actions/synonyms/get_synonym_spec.rb +0 -34
  695. data/spec/elasticsearch/api/actions/synonyms/get_synonyms_sets_spec.rb +0 -34
  696. data/spec/rspec_formatter.rb +0 -31
@@ -31,9 +31,17 @@ module Elasticsearch
31
31
  # @option arguments [String] :name The name of the analytics collection to be created or updated
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  #
34
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/put-analytics-collection.html
34
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/put-analytics-collection.html
35
35
  #
36
36
  def put_behavioral_analytics(arguments = {})
37
+ request_opts = { endpoint: arguments[:endpoint] || "search_application.put_behavioral_analytics" }
38
+
39
+ defined_params = [:name].inject({}) do |set_variables, variable|
40
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
41
+ set_variables
42
+ end
43
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
44
+
37
45
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
38
46
 
39
47
  arguments = arguments.clone
@@ -48,7 +56,7 @@ module Elasticsearch
48
56
  params = {}
49
57
 
50
58
  Elasticsearch::API::Response.new(
51
- perform_request(method, path, params, body, headers)
59
+ perform_request(method, path, params, body, headers, request_opts)
52
60
  )
53
61
  end
54
62
  end
@@ -32,9 +32,17 @@ module Elasticsearch
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  # @option arguments [Hash] :body Search parameters, which will override any default search parameters defined in the search application template
34
34
  #
35
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-application-render-query.html
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-application-render-query.html
36
36
  #
37
37
  def render_query(arguments = {})
38
+ request_opts = { endpoint: arguments[:endpoint] || "search_application.render_query" }
39
+
40
+ defined_params = [:name].inject({}) do |set_variables, variable|
41
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
+ set_variables
43
+ end
44
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
45
+
38
46
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
39
47
 
40
48
  arguments = arguments.clone
@@ -49,7 +57,7 @@ module Elasticsearch
49
57
  params = {}
50
58
 
51
59
  Elasticsearch::API::Response.new(
52
- perform_request(method, path, params, body, headers)
60
+ perform_request(method, path, params, body, headers, request_opts)
53
61
  )
54
62
  end
55
63
  end
@@ -32,9 +32,17 @@ module Elasticsearch
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  # @option arguments [Hash] :body Search parameters, including template parameters that override defaults
34
34
  #
35
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-application-search.html
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-application-search.html
36
36
  #
37
37
  def search(arguments = {})
38
+ request_opts = { endpoint: arguments[:endpoint] || "search_application.search" }
39
+
40
+ defined_params = [:name].inject({}) do |set_variables, variable|
41
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
+ set_variables
43
+ end
44
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
45
+
38
46
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
39
47
 
40
48
  arguments = arguments.clone
@@ -54,7 +62,7 @@ module Elasticsearch
54
62
  params = {}
55
63
 
56
64
  Elasticsearch::API::Response.new(
57
- perform_request(method, path, params, body, headers)
65
+ perform_request(method, path, params, body, headers, request_opts)
58
66
  )
59
67
  end
60
68
  end
@@ -42,9 +42,17 @@ module Elasticsearch
42
42
  # @option arguments [Hash] :headers Custom HTTP headers
43
43
  # @option arguments [Hash] :body Search request body.
44
44
  #
45
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-vector-tile-api.html
45
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-vector-tile-api.html
46
46
  #
47
47
  def search_mvt(arguments = {})
48
+ request_opts = { endpoint: arguments[:endpoint] || "search_mvt" }
49
+
50
+ defined_params = [:index, :field, :zoom, :x, :y].inject({}) do |set_variables, variable|
51
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
52
+ set_variables
53
+ end
54
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
55
+
48
56
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
49
57
  raise ArgumentError, "Required argument 'field' missing" unless arguments[:field]
50
58
  raise ArgumentError, "Required argument 'zoom' missing" unless arguments[:zoom]
@@ -71,7 +79,7 @@ module Elasticsearch
71
79
  params = Utils.process_params(arguments)
72
80
 
73
81
  Elasticsearch::API::Response.new(
74
- perform_request(method, path, params, body, headers)
82
+ perform_request(method, path, params, body, headers, request_opts)
75
83
  )
76
84
  end
77
85
  end
@@ -32,9 +32,17 @@ module Elasticsearch
32
32
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
33
33
  # @option arguments [Hash] :headers Custom HTTP headers
34
34
  #
35
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-shards.html
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-shards.html
36
36
  #
37
37
  def search_shards(arguments = {})
38
+ request_opts = { endpoint: arguments[:endpoint] || "search_shards" }
39
+
40
+ defined_params = [:index].inject({}) do |set_variables, variable|
41
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
+ set_variables
43
+ end
44
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
45
+
38
46
  arguments = arguments.clone
39
47
  headers = arguments.delete(:headers) || {}
40
48
 
@@ -51,7 +59,7 @@ module Elasticsearch
51
59
  params = Utils.process_params(arguments)
52
60
 
53
61
  Elasticsearch::API::Response.new(
54
- perform_request(method, path, params, body, headers)
62
+ perform_request(method, path, params, body, headers, request_opts)
55
63
  )
56
64
  end
57
65
  end
@@ -40,9 +40,17 @@ module Elasticsearch
40
40
  # @option arguments [Hash] :headers Custom HTTP headers
41
41
  # @option arguments [Hash] :body The search definition template and its params (*Required*)
42
42
  #
43
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/search-template.html
43
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/search-template.html
44
44
  #
45
45
  def search_template(arguments = {})
46
+ request_opts = { endpoint: arguments[:endpoint] || "search_template" }
47
+
48
+ defined_params = [:index].inject({}) do |set_variables, variable|
49
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
50
+ set_variables
51
+ end
52
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
53
+
46
54
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
47
55
 
48
56
  arguments = arguments.clone
@@ -61,7 +69,7 @@ module Elasticsearch
61
69
  params = Utils.process_params(arguments)
62
70
 
63
71
  Elasticsearch::API::Response.new(
64
- perform_request(method, path, params, body, headers)
72
+ perform_request(method, path, params, body, headers, request_opts)
65
73
  )
66
74
  end
67
75
  end
@@ -31,9 +31,17 @@ module Elasticsearch
31
31
  # @option arguments [List] :node_id A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  #
34
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/searchable-snapshots-apis.html
34
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/searchable-snapshots-apis.html
35
35
  #
36
36
  def cache_stats(arguments = {})
37
+ request_opts = { endpoint: arguments[:endpoint] || "searchable_snapshots.cache_stats" }
38
+
39
+ defined_params = [:node_id].inject({}) do |set_variables, variable|
40
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
41
+ set_variables
42
+ end
43
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
44
+
37
45
  arguments = arguments.clone
38
46
  headers = arguments.delete(:headers) || {}
39
47
 
@@ -50,7 +58,7 @@ module Elasticsearch
50
58
  params = {}
51
59
 
52
60
  Elasticsearch::API::Response.new(
53
- perform_request(method, path, params, body, headers)
61
+ perform_request(method, path, params, body, headers, request_opts)
54
62
  )
55
63
  end
56
64
  end
@@ -34,9 +34,17 @@ module Elasticsearch
34
34
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
35
35
  # @option arguments [Hash] :headers Custom HTTP headers
36
36
  #
37
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/searchable-snapshots-apis.html
37
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/searchable-snapshots-apis.html
38
38
  #
39
39
  def clear_cache(arguments = {})
40
+ request_opts = { endpoint: arguments[:endpoint] || "searchable_snapshots.clear_cache" }
41
+
42
+ defined_params = [:index].inject({}) do |set_variables, variable|
43
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
44
+ set_variables
45
+ end
46
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
47
+
40
48
  arguments = arguments.clone
41
49
  headers = arguments.delete(:headers) || {}
42
50
 
@@ -53,7 +61,7 @@ module Elasticsearch
53
61
  params = Utils.process_params(arguments)
54
62
 
55
63
  Elasticsearch::API::Response.new(
56
- perform_request(method, path, params, body, headers)
64
+ perform_request(method, path, params, body, headers, request_opts)
57
65
  )
58
66
  end
59
67
  end
@@ -32,9 +32,17 @@ module Elasticsearch
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  # @option arguments [Hash] :body The restore configuration for mounting the snapshot as searchable (*Required*)
34
34
  #
35
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/searchable-snapshots-api-mount-snapshot.html
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/searchable-snapshots-api-mount-snapshot.html
36
36
  #
37
37
  def mount(arguments = {})
38
+ request_opts = { endpoint: arguments[:endpoint] || "searchable_snapshots.mount" }
39
+
40
+ defined_params = [:repository, :snapshot].inject({}) do |set_variables, variable|
41
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
+ set_variables
43
+ end
44
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
45
+
38
46
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
39
47
  raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository]
40
48
  raise ArgumentError, "Required argument 'snapshot' missing" unless arguments[:snapshot]
@@ -53,7 +61,7 @@ module Elasticsearch
53
61
  params = Utils.process_params(arguments)
54
62
 
55
63
  Elasticsearch::API::Response.new(
56
- perform_request(method, path, params, body, headers)
64
+ perform_request(method, path, params, body, headers, request_opts)
57
65
  )
58
66
  end
59
67
  end
@@ -28,9 +28,17 @@ module Elasticsearch
28
28
  # @option arguments [String] :level Return stats aggregated at cluster, index or shard level (options: cluster, indices, shards)
29
29
  # @option arguments [Hash] :headers Custom HTTP headers
30
30
  #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/searchable-snapshots-apis.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/searchable-snapshots-apis.html
32
32
  #
33
33
  def stats(arguments = {})
34
+ request_opts = { endpoint: arguments[:endpoint] || "searchable_snapshots.stats" }
35
+
36
+ defined_params = [:index].inject({}) do |set_variables, variable|
37
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
38
+ set_variables
39
+ end
40
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
41
+
34
42
  arguments = arguments.clone
35
43
  headers = arguments.delete(:headers) || {}
36
44
 
@@ -47,7 +55,7 @@ module Elasticsearch
47
55
  params = Utils.process_params(arguments)
48
56
 
49
57
  Elasticsearch::API::Response.new(
50
- perform_request(method, path, params, body, headers)
58
+ perform_request(method, path, params, body, headers, request_opts)
51
59
  )
52
60
  end
53
61
  end
@@ -27,9 +27,11 @@ module Elasticsearch
27
27
  # @option arguments [Hash] :headers Custom HTTP headers
28
28
  # @option arguments [Hash] :body The grant type and user's credential (*Required*)
29
29
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-activate-user-profile.html
30
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-activate-user-profile.html
31
31
  #
32
32
  def activate_user_profile(arguments = {})
33
+ request_opts = { endpoint: arguments[:endpoint] || "security.activate_user_profile" }
34
+
33
35
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
34
36
 
35
37
  arguments = arguments.clone
@@ -42,7 +44,7 @@ module Elasticsearch
42
44
  params = {}
43
45
 
44
46
  Elasticsearch::API::Response.new(
45
- perform_request(method, path, params, body, headers)
47
+ perform_request(method, path, params, body, headers, request_opts)
46
48
  )
47
49
  end
48
50
  end
@@ -26,9 +26,11 @@ module Elasticsearch
26
26
  #
27
27
  # @option arguments [Hash] :headers Custom HTTP headers
28
28
  #
29
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-authenticate.html
29
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-authenticate.html
30
30
  #
31
31
  def authenticate(arguments = {})
32
+ request_opts = { endpoint: arguments[:endpoint] || "security.authenticate" }
33
+
32
34
  arguments = arguments.clone
33
35
  headers = arguments.delete(:headers) || {}
34
36
 
@@ -39,7 +41,7 @@ module Elasticsearch
39
41
  params = {}
40
42
 
41
43
  Elasticsearch::API::Response.new(
42
- perform_request(method, path, params, body, headers)
44
+ perform_request(method, path, params, body, headers, request_opts)
43
45
  )
44
46
  end
45
47
  end
@@ -27,9 +27,11 @@ module Elasticsearch
27
27
  # @option arguments [Hash] :headers Custom HTTP headers
28
28
  # @option arguments [Hash] :body The API key request to update the attributes of multiple API keys. (*Required*)
29
29
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-bulk-update-api-keys.html
30
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-bulk-update-api-keys.html
31
31
  #
32
32
  def bulk_update_api_keys(arguments = {})
33
+ request_opts = { endpoint: arguments[:endpoint] || "security.bulk_update_api_keys" }
34
+
33
35
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
34
36
 
35
37
  arguments = arguments.clone
@@ -42,7 +44,7 @@ module Elasticsearch
42
44
  params = {}
43
45
 
44
46
  Elasticsearch::API::Response.new(
45
- perform_request(method, path, params, body, headers)
47
+ perform_request(method, path, params, body, headers, request_opts)
46
48
  )
47
49
  end
48
50
  end
@@ -29,9 +29,17 @@ module Elasticsearch
29
29
  # @option arguments [Hash] :headers Custom HTTP headers
30
30
  # @option arguments [Hash] :body the new password for the user (*Required*)
31
31
  #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-change-password.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-change-password.html
33
33
  #
34
34
  def change_password(arguments = {})
35
+ request_opts = { endpoint: arguments[:endpoint] || "security.change_password" }
36
+
37
+ defined_params = [:username].inject({}) do |set_variables, variable|
38
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
39
+ set_variables
40
+ end
41
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
42
+
35
43
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
36
44
 
37
45
  arguments = arguments.clone
@@ -50,7 +58,7 @@ module Elasticsearch
50
58
  params = Utils.process_params(arguments)
51
59
 
52
60
  Elasticsearch::API::Response.new(
53
- perform_request(method, path, params, body, headers)
61
+ perform_request(method, path, params, body, headers, request_opts)
54
62
  )
55
63
  end
56
64
  end
@@ -27,9 +27,17 @@ module Elasticsearch
27
27
  # @option arguments [List] :ids A comma-separated list of IDs of API keys to clear from the cache
28
28
  # @option arguments [Hash] :headers Custom HTTP headers
29
29
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-clear-api-key-cache.html
30
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-clear-api-key-cache.html
31
31
  #
32
32
  def clear_api_key_cache(arguments = {})
33
+ request_opts = { endpoint: arguments[:endpoint] || "security.clear_api_key_cache" }
34
+
35
+ defined_params = [:ids].inject({}) do |set_variables, variable|
36
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
+ set_variables
38
+ end
39
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
40
+
33
41
  raise ArgumentError, "Required argument 'ids' missing" unless arguments[:ids]
34
42
 
35
43
  arguments = arguments.clone
@@ -44,7 +52,7 @@ module Elasticsearch
44
52
  params = {}
45
53
 
46
54
  Elasticsearch::API::Response.new(
47
- perform_request(method, path, params, body, headers)
55
+ perform_request(method, path, params, body, headers, request_opts)
48
56
  )
49
57
  end
50
58
  end
@@ -27,9 +27,17 @@ module Elasticsearch
27
27
  # @option arguments [List] :application A comma-separated list of application names
28
28
  # @option arguments [Hash] :headers Custom HTTP headers
29
29
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-clear-privilege-cache.html
30
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-clear-privilege-cache.html
31
31
  #
32
32
  def clear_cached_privileges(arguments = {})
33
+ request_opts = { endpoint: arguments[:endpoint] || "security.clear_cached_privileges" }
34
+
35
+ defined_params = [:application].inject({}) do |set_variables, variable|
36
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
+ set_variables
38
+ end
39
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
40
+
33
41
  raise ArgumentError, "Required argument 'application' missing" unless arguments[:application]
34
42
 
35
43
  arguments = arguments.clone
@@ -44,7 +52,7 @@ module Elasticsearch
44
52
  params = {}
45
53
 
46
54
  Elasticsearch::API::Response.new(
47
- perform_request(method, path, params, body, headers)
55
+ perform_request(method, path, params, body, headers, request_opts)
48
56
  )
49
57
  end
50
58
  end
@@ -28,9 +28,17 @@ module Elasticsearch
28
28
  # @option arguments [List] :usernames Comma-separated list of usernames to clear from the cache
29
29
  # @option arguments [Hash] :headers Custom HTTP headers
30
30
  #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-clear-cache.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-clear-cache.html
32
32
  #
33
33
  def clear_cached_realms(arguments = {})
34
+ request_opts = { endpoint: arguments[:endpoint] || "security.clear_cached_realms" }
35
+
36
+ defined_params = [:realms].inject({}) do |set_variables, variable|
37
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
38
+ set_variables
39
+ end
40
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
41
+
34
42
  raise ArgumentError, "Required argument 'realms' missing" unless arguments[:realms]
35
43
 
36
44
  arguments = arguments.clone
@@ -45,7 +53,7 @@ module Elasticsearch
45
53
  params = Utils.process_params(arguments)
46
54
 
47
55
  Elasticsearch::API::Response.new(
48
- perform_request(method, path, params, body, headers)
56
+ perform_request(method, path, params, body, headers, request_opts)
49
57
  )
50
58
  end
51
59
  end
@@ -27,9 +27,17 @@ module Elasticsearch
27
27
  # @option arguments [List] :name Role name
28
28
  # @option arguments [Hash] :headers Custom HTTP headers
29
29
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-clear-role-cache.html
30
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-clear-role-cache.html
31
31
  #
32
32
  def clear_cached_roles(arguments = {})
33
+ request_opts = { endpoint: arguments[:endpoint] || "security.clear_cached_roles" }
34
+
35
+ defined_params = [:name].inject({}) do |set_variables, variable|
36
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
+ set_variables
38
+ end
39
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
40
+
33
41
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
34
42
 
35
43
  arguments = arguments.clone
@@ -44,7 +52,7 @@ module Elasticsearch
44
52
  params = {}
45
53
 
46
54
  Elasticsearch::API::Response.new(
47
- perform_request(method, path, params, body, headers)
55
+ perform_request(method, path, params, body, headers, request_opts)
48
56
  )
49
57
  end
50
58
  end
@@ -29,9 +29,17 @@ module Elasticsearch
29
29
  # @option arguments [List] :name A comma-separated list of service token names
30
30
  # @option arguments [Hash] :headers Custom HTTP headers
31
31
  #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-clear-service-token-caches.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-clear-service-token-caches.html
33
33
  #
34
34
  def clear_cached_service_tokens(arguments = {})
35
+ request_opts = { endpoint: arguments[:endpoint] || "security.clear_cached_service_tokens" }
36
+
37
+ defined_params = [:namespace, :service, :name].inject({}) do |set_variables, variable|
38
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
39
+ set_variables
40
+ end
41
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
42
+
35
43
  raise ArgumentError, "Required argument 'namespace' missing" unless arguments[:namespace]
36
44
  raise ArgumentError, "Required argument 'service' missing" unless arguments[:service]
37
45
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
@@ -52,7 +60,7 @@ module Elasticsearch
52
60
  params = {}
53
61
 
54
62
  Elasticsearch::API::Response.new(
55
- perform_request(method, path, params, body, headers)
63
+ perform_request(method, path, params, body, headers, request_opts)
56
64
  )
57
65
  end
58
66
  end
@@ -28,9 +28,11 @@ module Elasticsearch
28
28
  # @option arguments [Hash] :headers Custom HTTP headers
29
29
  # @option arguments [Hash] :body The api key request to create an API key (*Required*)
30
30
  #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-create-api-key.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-create-api-key.html
32
32
  #
33
33
  def create_api_key(arguments = {})
34
+ request_opts = { endpoint: arguments[:endpoint] || "security.create_api_key" }
35
+
34
36
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
35
37
 
36
38
  arguments = arguments.clone
@@ -43,7 +45,7 @@ module Elasticsearch
43
45
  params = Utils.process_params(arguments)
44
46
 
45
47
  Elasticsearch::API::Response.new(
46
- perform_request(method, path, params, body, headers)
48
+ perform_request(method, path, params, body, headers, request_opts)
47
49
  )
48
50
  end
49
51
  end
@@ -31,9 +31,11 @@ module Elasticsearch
31
31
  # @option arguments [Hash] :headers Custom HTTP headers
32
32
  # @option arguments [Hash] :body The request to create a cross-cluster API key (*Required*)
33
33
  #
34
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-create-cross-cluster-api-key.html
34
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-create-cross-cluster-api-key.html
35
35
  #
36
36
  def create_cross_cluster_api_key(arguments = {})
37
+ request_opts = { endpoint: arguments[:endpoint] || "security.create_cross_cluster_api_key" }
38
+
37
39
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
38
40
 
39
41
  arguments = arguments.clone
@@ -46,7 +48,7 @@ module Elasticsearch
46
48
  params = {}
47
49
 
48
50
  Elasticsearch::API::Response.new(
49
- perform_request(method, path, params, body, headers)
51
+ perform_request(method, path, params, body, headers, request_opts)
50
52
  )
51
53
  end
52
54
  end
@@ -30,9 +30,17 @@ module Elasticsearch
30
30
  # @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` (the default) then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for)
31
31
  # @option arguments [Hash] :headers Custom HTTP headers
32
32
  #
33
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-create-service-token.html
33
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-create-service-token.html
34
34
  #
35
35
  def create_service_token(arguments = {})
36
+ request_opts = { endpoint: arguments[:endpoint] || "security.create_service_token" }
37
+
38
+ defined_params = [:namespace, :service, :name].inject({}) do |set_variables, variable|
39
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
40
+ set_variables
41
+ end
42
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
43
+
36
44
  raise ArgumentError, "Required argument 'namespace' missing" unless arguments[:namespace]
37
45
  raise ArgumentError, "Required argument 'service' missing" unless arguments[:service]
38
46
 
@@ -56,7 +64,7 @@ module Elasticsearch
56
64
  params = Utils.process_params(arguments)
57
65
 
58
66
  Elasticsearch::API::Response.new(
59
- perform_request(method, path, params, body, headers)
67
+ perform_request(method, path, params, body, headers, request_opts)
60
68
  )
61
69
  end
62
70
  end
@@ -29,9 +29,17 @@ module Elasticsearch
29
29
  # @option arguments [String] :refresh If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes. (options: true, false, wait_for)
30
30
  # @option arguments [Hash] :headers Custom HTTP headers
31
31
  #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/security-api-delete-privilege.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/security-api-delete-privilege.html
33
33
  #
34
34
  def delete_privileges(arguments = {})
35
+ request_opts = { endpoint: arguments[:endpoint] || "security.delete_privileges" }
36
+
37
+ defined_params = [:application, :name].inject({}) do |set_variables, variable|
38
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
39
+ set_variables
40
+ end
41
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
42
+
35
43
  raise ArgumentError, "Required argument 'application' missing" unless arguments[:application]
36
44
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
37
45
 
@@ -49,7 +57,7 @@ module Elasticsearch
49
57
  params = Utils.process_params(arguments)
50
58
 
51
59
  Elasticsearch::API::Response.new(
52
- perform_request(method, path, params, body, headers)
60
+ perform_request(method, path, params, body, headers, request_opts)
53
61
  )
54
62
  end
55
63
  end