elasticsearch-api 8.12.2 → 8.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (566) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Rakefile +5 -3
  4. data/api-spec-testing/test_file/task_group.rb +1 -0
  5. data/api-spec-testing/test_file/test.rb +1 -1
  6. data/api-spec-testing/wipe_cluster.rb +5 -3
  7. data/lib/elasticsearch/api/actions/async_search/delete.rb +3 -4
  8. data/lib/elasticsearch/api/actions/async_search/get.rb +3 -4
  9. data/lib/elasticsearch/api/actions/async_search/status.rb +5 -5
  10. data/lib/elasticsearch/api/actions/async_search/submit.rb +4 -5
  11. data/lib/elasticsearch/api/actions/autoscaling/delete_autoscaling_policy.rb +3 -4
  12. data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_capacity.rb +3 -3
  13. data/lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb +3 -4
  14. data/lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb +3 -4
  15. data/lib/elasticsearch/api/actions/bulk.rb +11 -11
  16. data/lib/elasticsearch/api/actions/cat/aliases.rb +4 -5
  17. data/lib/elasticsearch/api/actions/cat/allocation.rb +4 -5
  18. data/lib/elasticsearch/api/actions/cat/component_templates.rb +4 -5
  19. data/lib/elasticsearch/api/actions/cat/count.rb +4 -5
  20. data/lib/elasticsearch/api/actions/cat/fielddata.rb +4 -5
  21. data/lib/elasticsearch/api/actions/cat/health.rb +3 -3
  22. data/lib/elasticsearch/api/actions/cat/help.rb +3 -3
  23. data/lib/elasticsearch/api/actions/cat/indices.rb +4 -5
  24. data/lib/elasticsearch/api/actions/cat/master.rb +3 -3
  25. data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +4 -5
  26. data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +4 -5
  27. data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +4 -5
  28. data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +4 -5
  29. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +3 -3
  30. data/lib/elasticsearch/api/actions/cat/nodes.rb +3 -3
  31. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +3 -3
  32. data/lib/elasticsearch/api/actions/cat/plugins.rb +3 -3
  33. data/lib/elasticsearch/api/actions/cat/recovery.rb +4 -5
  34. data/lib/elasticsearch/api/actions/cat/repositories.rb +3 -3
  35. data/lib/elasticsearch/api/actions/cat/segments.rb +4 -5
  36. data/lib/elasticsearch/api/actions/cat/shards.rb +4 -5
  37. data/lib/elasticsearch/api/actions/cat/snapshots.rb +4 -5
  38. data/lib/elasticsearch/api/actions/cat/tasks.rb +3 -3
  39. data/lib/elasticsearch/api/actions/cat/templates.rb +4 -5
  40. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +4 -5
  41. data/lib/elasticsearch/api/actions/cat/transforms.rb +4 -5
  42. data/lib/elasticsearch/api/actions/clear_scroll.rb +6 -7
  43. data/lib/elasticsearch/api/actions/close_point_in_time.rb +3 -3
  44. data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +3 -3
  45. data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +3 -4
  46. data/lib/elasticsearch/api/actions/cluster/delete_voting_config_exclusions.rb +3 -3
  47. data/lib/elasticsearch/api/actions/cluster/exists_component_template.rb +4 -5
  48. data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +4 -5
  49. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +3 -3
  50. data/lib/elasticsearch/api/actions/cluster/health.rb +4 -5
  51. data/lib/elasticsearch/api/actions/cluster/info.rb +3 -4
  52. data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +3 -3
  53. data/lib/elasticsearch/api/actions/cluster/post_voting_config_exclusions.rb +3 -3
  54. data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +3 -4
  55. data/lib/elasticsearch/api/actions/cluster/put_settings.rb +3 -3
  56. data/lib/elasticsearch/api/actions/cluster/remote_info.rb +3 -3
  57. data/lib/elasticsearch/api/actions/cluster/reroute.rb +3 -3
  58. data/lib/elasticsearch/api/actions/cluster/state.rb +4 -5
  59. data/lib/elasticsearch/api/actions/cluster/stats.rb +4 -5
  60. data/lib/elasticsearch/api/actions/connector/check_in.rb +3 -4
  61. data/lib/elasticsearch/api/actions/connector/delete.rb +5 -5
  62. data/lib/elasticsearch/api/actions/connector/get.rb +3 -4
  63. data/lib/elasticsearch/api/actions/connector/last_sync.rb +3 -4
  64. data/lib/elasticsearch/api/actions/connector/list.rb +8 -4
  65. data/lib/elasticsearch/api/actions/connector/post.rb +3 -3
  66. data/lib/elasticsearch/api/actions/connector/put.rb +3 -4
  67. data/lib/elasticsearch/api/actions/connector/secret_delete.rb +64 -0
  68. data/lib/elasticsearch/api/actions/connector/secret_get.rb +64 -0
  69. data/lib/elasticsearch/api/actions/connector/secret_post.rb +57 -0
  70. data/lib/elasticsearch/api/actions/connector/secret_put.rb +66 -0
  71. data/lib/elasticsearch/api/actions/{connector_sync_job/cancel.rb → connector/sync_job_cancel.rb} +9 -8
  72. data/lib/elasticsearch/api/actions/{connector_sync_job/check_in.rb → connector/sync_job_check_in.rb} +9 -8
  73. data/lib/elasticsearch/api/actions/{connector_sync_job/delete.rb → connector/sync_job_delete.rb} +9 -8
  74. data/lib/elasticsearch/api/actions/{connector_sync_job/error.rb → connector/sync_job_error.rb} +9 -8
  75. data/lib/elasticsearch/api/actions/{connector_sync_job/get.rb → connector/sync_job_get.rb} +9 -8
  76. data/lib/elasticsearch/api/actions/{connector_sync_job/list.rb → connector/sync_job_list.rb} +6 -5
  77. data/lib/elasticsearch/api/actions/{connector_sync_job/post.rb → connector/sync_job_post.rb} +5 -5
  78. data/lib/elasticsearch/api/actions/{connector_sync_job/update_stats.rb → connector/sync_job_update_stats.rb} +9 -8
  79. data/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +64 -0
  80. data/lib/elasticsearch/api/actions/connector/update_api_key_id.rb +66 -0
  81. data/lib/elasticsearch/api/actions/connector/update_configuration.rb +3 -4
  82. data/lib/elasticsearch/api/actions/connector/update_error.rb +3 -4
  83. data/lib/elasticsearch/api/actions/connector/update_filtering.rb +3 -4
  84. data/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +66 -0
  85. data/lib/elasticsearch/api/actions/connector/update_index_name.rb +66 -0
  86. data/lib/elasticsearch/api/actions/connector/update_name.rb +3 -4
  87. data/lib/elasticsearch/api/actions/connector/update_native.rb +66 -0
  88. data/lib/elasticsearch/api/actions/connector/update_pipeline.rb +3 -4
  89. data/lib/elasticsearch/api/actions/connector/update_scheduling.rb +3 -4
  90. data/lib/elasticsearch/api/actions/connector/update_service_type.rb +66 -0
  91. data/lib/elasticsearch/api/actions/connector/update_status.rb +66 -0
  92. data/lib/elasticsearch/api/actions/count.rb +9 -10
  93. data/lib/elasticsearch/api/actions/create.rb +3 -4
  94. data/lib/elasticsearch/api/actions/cross_cluster_replication/delete_auto_follow_pattern.rb +5 -5
  95. data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +4 -4
  96. data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_info.rb +5 -5
  97. data/lib/elasticsearch/api/actions/cross_cluster_replication/follow_stats.rb +5 -5
  98. data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +5 -5
  99. data/lib/elasticsearch/api/actions/cross_cluster_replication/get_auto_follow_pattern.rb +6 -6
  100. data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_auto_follow_pattern.rb +5 -5
  101. data/lib/elasticsearch/api/actions/cross_cluster_replication/pause_follow.rb +5 -5
  102. data/lib/elasticsearch/api/actions/cross_cluster_replication/put_auto_follow_pattern.rb +5 -5
  103. data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_auto_follow_pattern.rb +5 -5
  104. data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +5 -5
  105. data/lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb +6 -4
  106. data/lib/elasticsearch/api/actions/cross_cluster_replication/unfollow.rb +5 -5
  107. data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +3 -4
  108. data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +3 -4
  109. data/lib/elasticsearch/api/actions/dangling_indices/list_dangling_indices.rb +3 -3
  110. data/lib/elasticsearch/api/actions/delete.rb +5 -6
  111. data/lib/elasticsearch/api/actions/delete_by_query.rb +3 -4
  112. data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +3 -4
  113. data/lib/elasticsearch/api/actions/delete_script.rb +3 -4
  114. data/lib/elasticsearch/api/actions/enrich/delete_policy.rb +3 -4
  115. data/lib/elasticsearch/api/actions/enrich/execute_policy.rb +3 -4
  116. data/lib/elasticsearch/api/actions/enrich/get_policy.rb +4 -5
  117. data/lib/elasticsearch/api/actions/enrich/put_policy.rb +3 -4
  118. data/lib/elasticsearch/api/actions/enrich/stats.rb +3 -3
  119. data/lib/elasticsearch/api/actions/eql/delete.rb +3 -4
  120. data/lib/elasticsearch/api/actions/eql/get.rb +3 -4
  121. data/lib/elasticsearch/api/actions/eql/get_status.rb +3 -4
  122. data/lib/elasticsearch/api/actions/eql/search.rb +3 -4
  123. data/lib/elasticsearch/api/actions/esql/async_query.rb +56 -0
  124. data/lib/elasticsearch/api/actions/esql/async_query_get.rb +63 -0
  125. data/lib/elasticsearch/api/actions/esql/query.rb +5 -8
  126. data/lib/elasticsearch/api/actions/exists.rb +5 -6
  127. data/lib/elasticsearch/api/actions/exists_source.rb +4 -5
  128. data/lib/elasticsearch/api/actions/explain.rb +4 -5
  129. data/lib/elasticsearch/api/actions/features/get_features.rb +3 -3
  130. data/lib/elasticsearch/api/actions/features/reset_features.rb +3 -3
  131. data/lib/elasticsearch/api/actions/field_caps.rb +10 -10
  132. data/lib/elasticsearch/api/actions/fleet/delete_secret.rb +2 -3
  133. data/lib/elasticsearch/api/actions/fleet/get_secret.rb +2 -3
  134. data/lib/elasticsearch/api/actions/fleet/global_checkpoints.rb +3 -4
  135. data/lib/elasticsearch/api/actions/fleet/msearch.rb +9 -12
  136. data/lib/elasticsearch/api/actions/fleet/post_secret.rb +2 -2
  137. data/lib/elasticsearch/api/actions/fleet/search.rb +4 -5
  138. data/lib/elasticsearch/api/actions/get.rb +5 -6
  139. data/lib/elasticsearch/api/actions/get_script.rb +3 -4
  140. data/lib/elasticsearch/api/actions/get_script_context.rb +3 -3
  141. data/lib/elasticsearch/api/actions/get_script_languages.rb +3 -3
  142. data/lib/elasticsearch/api/actions/get_source.rb +3 -4
  143. data/lib/elasticsearch/api/actions/graph/explore.rb +5 -6
  144. data/lib/elasticsearch/api/actions/health_report.rb +4 -5
  145. data/lib/elasticsearch/api/actions/index.rb +4 -4
  146. data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +3 -4
  147. data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +3 -4
  148. data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +4 -5
  149. data/lib/elasticsearch/api/actions/index_lifecycle_management/get_status.rb +3 -3
  150. data/lib/elasticsearch/api/actions/index_lifecycle_management/migrate_to_data_tiers.rb +3 -3
  151. data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +3 -4
  152. data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +3 -4
  153. data/lib/elasticsearch/api/actions/index_lifecycle_management/remove_policy.rb +3 -4
  154. data/lib/elasticsearch/api/actions/index_lifecycle_management/retry.rb +3 -4
  155. data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +3 -3
  156. data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +3 -3
  157. data/lib/elasticsearch/api/actions/indices/add_block.rb +3 -4
  158. data/lib/elasticsearch/api/actions/indices/analyze.rb +9 -10
  159. data/lib/elasticsearch/api/actions/indices/clear_cache.rb +4 -5
  160. data/lib/elasticsearch/api/actions/indices/clone.rb +3 -4
  161. data/lib/elasticsearch/api/actions/indices/close.rb +3 -4
  162. data/lib/elasticsearch/api/actions/indices/create.rb +3 -4
  163. data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +3 -4
  164. data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +4 -5
  165. data/lib/elasticsearch/api/actions/indices/delete.rb +5 -6
  166. data/lib/elasticsearch/api/actions/indices/delete_alias.rb +4 -7
  167. data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +3 -4
  168. data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +3 -4
  169. data/lib/elasticsearch/api/actions/indices/delete_index_template.rb +3 -4
  170. data/lib/elasticsearch/api/actions/indices/delete_template.rb +5 -6
  171. data/lib/elasticsearch/api/actions/indices/disk_usage.rb +3 -4
  172. data/lib/elasticsearch/api/actions/indices/downsample.rb +3 -4
  173. data/lib/elasticsearch/api/actions/indices/exists.rb +5 -6
  174. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +5 -6
  175. data/lib/elasticsearch/api/actions/indices/exists_index_template.rb +4 -5
  176. data/lib/elasticsearch/api/actions/indices/exists_template.rb +5 -6
  177. data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +3 -4
  178. data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +3 -4
  179. data/lib/elasticsearch/api/actions/indices/flush.rb +4 -5
  180. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +4 -5
  181. data/lib/elasticsearch/api/actions/indices/get.rb +3 -4
  182. data/lib/elasticsearch/api/actions/indices/get_alias.rb +4 -5
  183. data/lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb +3 -4
  184. data/lib/elasticsearch/api/actions/indices/get_data_stream.rb +4 -5
  185. data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +3 -4
  186. data/lib/elasticsearch/api/actions/indices/get_index_template.rb +4 -5
  187. data/lib/elasticsearch/api/actions/indices/get_mapping.rb +4 -5
  188. data/lib/elasticsearch/api/actions/indices/get_settings.rb +4 -5
  189. data/lib/elasticsearch/api/actions/indices/get_template.rb +4 -5
  190. data/lib/elasticsearch/api/actions/indices/migrate_to_data_stream.rb +3 -4
  191. data/lib/elasticsearch/api/actions/indices/modify_data_stream.rb +3 -3
  192. data/lib/elasticsearch/api/actions/indices/open.rb +3 -4
  193. data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +3 -4
  194. data/lib/elasticsearch/api/actions/indices/put_alias.rb +4 -7
  195. data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +3 -4
  196. data/lib/elasticsearch/api/actions/indices/put_index_template.rb +3 -4
  197. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +3 -4
  198. data/lib/elasticsearch/api/actions/indices/put_settings.rb +4 -5
  199. data/lib/elasticsearch/api/actions/indices/put_template.rb +3 -4
  200. data/lib/elasticsearch/api/actions/indices/recovery.rb +4 -5
  201. data/lib/elasticsearch/api/actions/indices/refresh.rb +4 -5
  202. data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +3 -4
  203. data/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +64 -0
  204. data/lib/elasticsearch/api/actions/indices/resolve_index.rb +3 -4
  205. data/lib/elasticsearch/api/actions/indices/rollover.rb +5 -4
  206. data/lib/elasticsearch/api/actions/indices/segments.rb +4 -5
  207. data/lib/elasticsearch/api/actions/indices/shard_stores.rb +4 -5
  208. data/lib/elasticsearch/api/actions/indices/shrink.rb +3 -4
  209. data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +3 -4
  210. data/lib/elasticsearch/api/actions/indices/simulate_template.rb +4 -5
  211. data/lib/elasticsearch/api/actions/indices/split.rb +3 -4
  212. data/lib/elasticsearch/api/actions/indices/stats.rb +4 -5
  213. data/lib/elasticsearch/api/actions/indices/unfreeze.rb +3 -4
  214. data/lib/elasticsearch/api/actions/indices/update_aliases.rb +3 -3
  215. data/lib/elasticsearch/api/actions/indices/validate_query.rb +9 -10
  216. data/lib/elasticsearch/api/actions/inference/delete_model.rb +13 -11
  217. data/lib/elasticsearch/api/actions/inference/get_model.rb +14 -12
  218. data/lib/elasticsearch/api/actions/inference/inference.rb +13 -11
  219. data/lib/elasticsearch/api/actions/inference/put_model.rb +13 -11
  220. data/lib/elasticsearch/api/actions/info.rb +3 -3
  221. data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +3 -4
  222. data/lib/elasticsearch/api/actions/ingest/geo_ip_stats.rb +3 -3
  223. data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +4 -5
  224. data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +3 -3
  225. data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +3 -4
  226. data/lib/elasticsearch/api/actions/ingest/simulate.rb +4 -5
  227. data/lib/elasticsearch/api/actions/knn_search.rb +5 -6
  228. data/lib/elasticsearch/api/actions/license/delete.rb +3 -3
  229. data/lib/elasticsearch/api/actions/license/get.rb +3 -3
  230. data/lib/elasticsearch/api/actions/license/get_basic_status.rb +3 -3
  231. data/lib/elasticsearch/api/actions/license/get_trial_status.rb +3 -3
  232. data/lib/elasticsearch/api/actions/license/post.rb +3 -3
  233. data/lib/elasticsearch/api/actions/license/post_start_basic.rb +3 -3
  234. data/lib/elasticsearch/api/actions/license/post_start_trial.rb +3 -3
  235. data/lib/elasticsearch/api/actions/logstash/delete_pipeline.rb +3 -4
  236. data/lib/elasticsearch/api/actions/logstash/get_pipeline.rb +4 -5
  237. data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +3 -4
  238. data/lib/elasticsearch/api/actions/machine_learning/clear_trained_model_deployment_cache.rb +3 -4
  239. data/lib/elasticsearch/api/actions/machine_learning/close_job.rb +3 -4
  240. data/lib/elasticsearch/api/actions/machine_learning/delete_calendar.rb +3 -4
  241. data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb +3 -4
  242. data/lib/elasticsearch/api/actions/machine_learning/delete_calendar_job.rb +3 -4
  243. data/lib/elasticsearch/api/actions/machine_learning/delete_data_frame_analytics.rb +3 -4
  244. data/lib/elasticsearch/api/actions/machine_learning/delete_datafeed.rb +3 -4
  245. data/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb +4 -5
  246. data/lib/elasticsearch/api/actions/machine_learning/delete_filter.rb +3 -4
  247. data/lib/elasticsearch/api/actions/machine_learning/delete_forecast.rb +3 -4
  248. data/lib/elasticsearch/api/actions/machine_learning/delete_job.rb +3 -4
  249. data/lib/elasticsearch/api/actions/machine_learning/delete_model_snapshot.rb +3 -4
  250. data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model.rb +3 -4
  251. data/lib/elasticsearch/api/actions/machine_learning/delete_trained_model_alias.rb +3 -4
  252. data/lib/elasticsearch/api/actions/machine_learning/estimate_model_memory.rb +3 -3
  253. data/lib/elasticsearch/api/actions/machine_learning/evaluate_data_frame.rb +3 -3
  254. data/lib/elasticsearch/api/actions/machine_learning/explain_data_frame_analytics.rb +8 -9
  255. data/lib/elasticsearch/api/actions/machine_learning/flush_job.rb +3 -4
  256. data/lib/elasticsearch/api/actions/machine_learning/forecast.rb +3 -4
  257. data/lib/elasticsearch/api/actions/machine_learning/get_buckets.rb +8 -9
  258. data/lib/elasticsearch/api/actions/machine_learning/get_calendar_events.rb +3 -4
  259. data/lib/elasticsearch/api/actions/machine_learning/get_calendars.rb +8 -9
  260. data/lib/elasticsearch/api/actions/machine_learning/get_categories.rb +8 -9
  261. data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics.rb +4 -5
  262. data/lib/elasticsearch/api/actions/machine_learning/get_data_frame_analytics_stats.rb +4 -5
  263. data/lib/elasticsearch/api/actions/machine_learning/get_datafeed_stats.rb +4 -5
  264. data/lib/elasticsearch/api/actions/machine_learning/get_datafeeds.rb +4 -5
  265. data/lib/elasticsearch/api/actions/machine_learning/get_filters.rb +4 -5
  266. data/lib/elasticsearch/api/actions/machine_learning/get_influencers.rb +4 -5
  267. data/lib/elasticsearch/api/actions/machine_learning/get_job_stats.rb +4 -5
  268. data/lib/elasticsearch/api/actions/machine_learning/get_jobs.rb +4 -5
  269. data/lib/elasticsearch/api/actions/machine_learning/get_memory_stats.rb +4 -5
  270. data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshot_upgrade_stats.rb +3 -4
  271. data/lib/elasticsearch/api/actions/machine_learning/get_model_snapshots.rb +8 -9
  272. data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +4 -5
  273. data/lib/elasticsearch/api/actions/machine_learning/get_records.rb +4 -5
  274. data/lib/elasticsearch/api/actions/machine_learning/get_trained_models.rb +4 -5
  275. data/lib/elasticsearch/api/actions/machine_learning/get_trained_models_stats.rb +4 -5
  276. data/lib/elasticsearch/api/actions/machine_learning/infer_trained_model.rb +4 -7
  277. data/lib/elasticsearch/api/actions/machine_learning/info.rb +3 -3
  278. data/lib/elasticsearch/api/actions/machine_learning/open_job.rb +3 -4
  279. data/lib/elasticsearch/api/actions/machine_learning/post_calendar_events.rb +3 -4
  280. data/lib/elasticsearch/api/actions/machine_learning/post_data.rb +3 -4
  281. data/lib/elasticsearch/api/actions/machine_learning/preview_data_frame_analytics.rb +8 -9
  282. data/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb +8 -9
  283. data/lib/elasticsearch/api/actions/machine_learning/put_calendar.rb +3 -4
  284. data/lib/elasticsearch/api/actions/machine_learning/put_calendar_job.rb +3 -4
  285. data/lib/elasticsearch/api/actions/machine_learning/put_data_frame_analytics.rb +3 -4
  286. data/lib/elasticsearch/api/actions/machine_learning/put_datafeed.rb +3 -4
  287. data/lib/elasticsearch/api/actions/machine_learning/put_filter.rb +3 -4
  288. data/lib/elasticsearch/api/actions/machine_learning/put_job.rb +3 -4
  289. data/lib/elasticsearch/api/actions/machine_learning/put_trained_model.rb +3 -4
  290. data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_alias.rb +3 -4
  291. data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_definition_part.rb +3 -4
  292. data/lib/elasticsearch/api/actions/machine_learning/put_trained_model_vocabulary.rb +3 -4
  293. data/lib/elasticsearch/api/actions/machine_learning/reset_job.rb +3 -4
  294. data/lib/elasticsearch/api/actions/machine_learning/revert_model_snapshot.rb +3 -4
  295. data/lib/elasticsearch/api/actions/machine_learning/set_upgrade_mode.rb +3 -3
  296. data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +3 -4
  297. data/lib/elasticsearch/api/actions/machine_learning/start_datafeed.rb +3 -4
  298. data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +3 -4
  299. data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +3 -4
  300. data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +3 -4
  301. data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +3 -4
  302. data/lib/elasticsearch/api/actions/machine_learning/update_data_frame_analytics.rb +3 -4
  303. data/lib/elasticsearch/api/actions/machine_learning/update_datafeed.rb +3 -4
  304. data/lib/elasticsearch/api/actions/machine_learning/update_filter.rb +3 -4
  305. data/lib/elasticsearch/api/actions/machine_learning/update_job.rb +3 -4
  306. data/lib/elasticsearch/api/actions/machine_learning/update_model_snapshot.rb +3 -4
  307. data/lib/elasticsearch/api/actions/machine_learning/update_trained_model_deployment.rb +3 -4
  308. data/lib/elasticsearch/api/actions/machine_learning/upgrade_job_snapshot.rb +3 -4
  309. data/lib/elasticsearch/api/actions/machine_learning/validate.rb +3 -3
  310. data/lib/elasticsearch/api/actions/machine_learning/validate_detector.rb +3 -3
  311. data/lib/elasticsearch/api/actions/mget.rb +4 -5
  312. data/lib/elasticsearch/api/actions/migration/deprecations.rb +4 -5
  313. data/lib/elasticsearch/api/actions/migration/get_feature_upgrade_status.rb +3 -3
  314. data/lib/elasticsearch/api/actions/migration/post_feature_upgrade.rb +3 -3
  315. data/lib/elasticsearch/api/actions/monitoring/bulk.rb +10 -11
  316. data/lib/elasticsearch/api/actions/msearch.rb +10 -13
  317. data/lib/elasticsearch/api/actions/msearch_template.rb +8 -11
  318. data/lib/elasticsearch/api/actions/mtermvectors.rb +9 -10
  319. data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +4 -7
  320. data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +3 -4
  321. data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +4 -5
  322. data/lib/elasticsearch/api/actions/nodes/info.rb +4 -5
  323. data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +4 -5
  324. data/lib/elasticsearch/api/actions/nodes/stats.rb +4 -5
  325. data/lib/elasticsearch/api/actions/nodes/usage.rb +4 -5
  326. data/lib/elasticsearch/api/actions/open_point_in_time.rb +3 -4
  327. data/lib/elasticsearch/api/actions/ping.rb +7 -9
  328. data/lib/elasticsearch/api/actions/profiling/flamegraph.rb +53 -0
  329. data/lib/elasticsearch/api/actions/profiling/stacktraces.rb +53 -0
  330. data/lib/elasticsearch/api/actions/profiling/status.rb +3 -3
  331. data/lib/elasticsearch/api/actions/profiling/topn_functions.rb +53 -0
  332. data/lib/elasticsearch/api/actions/put_script.rb +3 -4
  333. data/lib/elasticsearch/api/actions/query_ruleset/delete.rb +3 -4
  334. data/lib/elasticsearch/api/actions/query_ruleset/get.rb +3 -4
  335. data/lib/elasticsearch/api/actions/query_ruleset/list.rb +3 -3
  336. data/lib/elasticsearch/api/actions/query_ruleset/put.rb +3 -4
  337. data/lib/elasticsearch/api/actions/rank_eval.rb +4 -5
  338. data/lib/elasticsearch/api/actions/reindex.rb +3 -3
  339. data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +3 -4
  340. data/lib/elasticsearch/api/actions/render_search_template.rb +8 -9
  341. data/lib/elasticsearch/api/actions/rollup/delete_job.rb +3 -4
  342. data/lib/elasticsearch/api/actions/rollup/get_jobs.rb +4 -5
  343. data/lib/elasticsearch/api/actions/rollup/get_rollup_caps.rb +4 -5
  344. data/lib/elasticsearch/api/actions/rollup/get_rollup_index_caps.rb +3 -4
  345. data/lib/elasticsearch/api/actions/rollup/put_job.rb +3 -4
  346. data/lib/elasticsearch/api/actions/rollup/rollup_search.rb +3 -4
  347. data/lib/elasticsearch/api/actions/rollup/start_job.rb +3 -4
  348. data/lib/elasticsearch/api/actions/rollup/stop_job.rb +3 -4
  349. data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +3 -3
  350. data/lib/elasticsearch/api/actions/scroll.rb +8 -9
  351. data/lib/elasticsearch/api/actions/search.rb +9 -10
  352. data/lib/elasticsearch/api/actions/search_application/delete.rb +3 -4
  353. data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +3 -4
  354. data/lib/elasticsearch/api/actions/search_application/get.rb +3 -4
  355. data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +4 -5
  356. data/lib/elasticsearch/api/actions/search_application/list.rb +3 -3
  357. data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +2 -3
  358. data/lib/elasticsearch/api/actions/search_application/put.rb +3 -4
  359. data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +3 -4
  360. data/lib/elasticsearch/api/actions/search_application/render_query.rb +3 -4
  361. data/lib/elasticsearch/api/actions/search_application/search.rb +6 -6
  362. data/lib/elasticsearch/api/actions/search_mvt.rb +3 -4
  363. data/lib/elasticsearch/api/actions/search_shards.rb +4 -5
  364. data/lib/elasticsearch/api/actions/search_template.rb +4 -5
  365. data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +4 -5
  366. data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +4 -5
  367. data/lib/elasticsearch/api/actions/searchable_snapshots/mount.rb +3 -4
  368. data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +4 -5
  369. data/lib/elasticsearch/api/actions/security/activate_user_profile.rb +3 -3
  370. data/lib/elasticsearch/api/actions/security/authenticate.rb +3 -3
  371. data/lib/elasticsearch/api/actions/security/bulk_update_api_keys.rb +3 -3
  372. data/lib/elasticsearch/api/actions/security/change_password.rb +4 -5
  373. data/lib/elasticsearch/api/actions/security/clear_api_key_cache.rb +3 -4
  374. data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +3 -4
  375. data/lib/elasticsearch/api/actions/security/clear_cached_realms.rb +3 -4
  376. data/lib/elasticsearch/api/actions/security/clear_cached_roles.rb +3 -4
  377. data/lib/elasticsearch/api/actions/security/clear_cached_service_tokens.rb +3 -4
  378. data/lib/elasticsearch/api/actions/security/create_api_key.rb +3 -3
  379. data/lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb +3 -3
  380. data/lib/elasticsearch/api/actions/security/create_service_token.rb +3 -4
  381. data/lib/elasticsearch/api/actions/security/delete_privileges.rb +3 -4
  382. data/lib/elasticsearch/api/actions/security/delete_role.rb +3 -4
  383. data/lib/elasticsearch/api/actions/security/delete_role_mapping.rb +3 -4
  384. data/lib/elasticsearch/api/actions/security/delete_service_token.rb +3 -4
  385. data/lib/elasticsearch/api/actions/security/delete_user.rb +3 -4
  386. data/lib/elasticsearch/api/actions/security/disable_user.rb +3 -4
  387. data/lib/elasticsearch/api/actions/security/disable_user_profile.rb +3 -4
  388. data/lib/elasticsearch/api/actions/security/enable_user.rb +3 -4
  389. data/lib/elasticsearch/api/actions/security/enable_user_profile.rb +3 -4
  390. data/lib/elasticsearch/api/actions/security/enroll_kibana.rb +3 -3
  391. data/lib/elasticsearch/api/actions/security/enroll_node.rb +3 -3
  392. data/lib/elasticsearch/api/actions/security/get_api_key.rb +4 -3
  393. data/lib/elasticsearch/api/actions/security/get_builtin_privileges.rb +3 -3
  394. data/lib/elasticsearch/api/actions/security/get_privileges.rb +4 -5
  395. data/lib/elasticsearch/api/actions/security/get_role.rb +6 -7
  396. data/lib/elasticsearch/api/actions/security/get_role_mapping.rb +4 -5
  397. data/lib/elasticsearch/api/actions/security/get_service_accounts.rb +4 -5
  398. data/lib/elasticsearch/api/actions/security/get_service_credentials.rb +3 -4
  399. data/lib/elasticsearch/api/actions/security/get_settings.rb +3 -3
  400. data/lib/elasticsearch/api/actions/security/get_token.rb +3 -3
  401. data/lib/elasticsearch/api/actions/security/get_user.rb +6 -7
  402. data/lib/elasticsearch/api/actions/security/get_user_privileges.rb +3 -3
  403. data/lib/elasticsearch/api/actions/security/get_user_profile.rb +3 -4
  404. data/lib/elasticsearch/api/actions/security/grant_api_key.rb +3 -3
  405. data/lib/elasticsearch/api/actions/security/has_privileges.rb +4 -5
  406. data/lib/elasticsearch/api/actions/security/has_privileges_user_profile.rb +3 -3
  407. data/lib/elasticsearch/api/actions/security/invalidate_api_key.rb +3 -3
  408. data/lib/elasticsearch/api/actions/security/invalidate_token.rb +3 -3
  409. data/lib/elasticsearch/api/actions/security/oidc_authenticate.rb +3 -3
  410. data/lib/elasticsearch/api/actions/security/oidc_logout.rb +3 -3
  411. data/lib/elasticsearch/api/actions/security/oidc_prepare_authentication.rb +3 -3
  412. data/lib/elasticsearch/api/actions/security/put_privileges.rb +3 -3
  413. data/lib/elasticsearch/api/actions/security/put_role.rb +3 -4
  414. data/lib/elasticsearch/api/actions/security/put_role_mapping.rb +3 -4
  415. data/lib/elasticsearch/api/actions/security/put_user.rb +3 -4
  416. data/lib/elasticsearch/api/actions/security/query_api_keys.rb +5 -3
  417. data/lib/elasticsearch/api/actions/security/query_user.rb +57 -0
  418. data/lib/elasticsearch/api/actions/security/saml_authenticate.rb +3 -3
  419. data/lib/elasticsearch/api/actions/security/saml_complete_logout.rb +3 -3
  420. data/lib/elasticsearch/api/actions/security/saml_invalidate.rb +3 -3
  421. data/lib/elasticsearch/api/actions/security/saml_logout.rb +3 -3
  422. data/lib/elasticsearch/api/actions/security/saml_prepare_authentication.rb +3 -3
  423. data/lib/elasticsearch/api/actions/security/saml_service_provider_metadata.rb +3 -4
  424. data/lib/elasticsearch/api/actions/security/suggest_user_profiles.rb +3 -3
  425. data/lib/elasticsearch/api/actions/security/update_api_key.rb +3 -4
  426. data/lib/elasticsearch/api/actions/security/update_cross_cluster_api_key.rb +3 -4
  427. data/lib/elasticsearch/api/actions/security/update_settings.rb +3 -3
  428. data/lib/elasticsearch/api/actions/security/update_user_profile_data.rb +3 -4
  429. data/lib/elasticsearch/api/actions/shutdown/delete_node.rb +2 -3
  430. data/lib/elasticsearch/api/actions/shutdown/get_node.rb +3 -4
  431. data/lib/elasticsearch/api/actions/shutdown/put_node.rb +2 -3
  432. data/lib/elasticsearch/api/actions/simulate/ingest.rb +4 -5
  433. data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +3 -4
  434. data/lib/elasticsearch/api/actions/snapshot/clone.rb +3 -4
  435. data/lib/elasticsearch/api/actions/snapshot/create.rb +3 -4
  436. data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +3 -4
  437. data/lib/elasticsearch/api/actions/snapshot/delete.rb +5 -6
  438. data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +5 -6
  439. data/lib/elasticsearch/api/actions/snapshot/get.rb +5 -6
  440. data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +6 -7
  441. data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +3 -4
  442. data/lib/elasticsearch/api/actions/snapshot/restore.rb +3 -4
  443. data/lib/elasticsearch/api/actions/snapshot/status.rb +6 -7
  444. data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +3 -4
  445. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +3 -4
  446. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +3 -4
  447. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +3 -3
  448. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +4 -5
  449. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +3 -3
  450. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +3 -3
  451. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +3 -4
  452. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/start.rb +3 -3
  453. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/stop.rb +3 -3
  454. data/lib/elasticsearch/api/actions/sql/clear_cursor.rb +3 -3
  455. data/lib/elasticsearch/api/actions/sql/delete_async.rb +3 -4
  456. data/lib/elasticsearch/api/actions/sql/get_async.rb +3 -4
  457. data/lib/elasticsearch/api/actions/sql/get_async_status.rb +3 -4
  458. data/lib/elasticsearch/api/actions/sql/query.rb +3 -3
  459. data/lib/elasticsearch/api/actions/sql/translate.rb +3 -3
  460. data/lib/elasticsearch/api/actions/ssl/certificates.rb +3 -3
  461. data/lib/elasticsearch/api/actions/synonyms/delete_synonym.rb +3 -8
  462. data/lib/elasticsearch/api/actions/synonyms/delete_synonym_rule.rb +3 -8
  463. data/lib/elasticsearch/api/actions/synonyms/get_synonym.rb +3 -8
  464. data/lib/elasticsearch/api/actions/synonyms/get_synonym_rule.rb +3 -8
  465. data/lib/elasticsearch/api/actions/synonyms/get_synonyms_sets.rb +3 -7
  466. data/lib/elasticsearch/api/actions/synonyms/put_synonym.rb +3 -8
  467. data/lib/elasticsearch/api/actions/synonyms/put_synonym_rule.rb +3 -8
  468. data/lib/elasticsearch/api/actions/tasks/cancel.rb +4 -5
  469. data/lib/elasticsearch/api/actions/tasks/get.rb +3 -4
  470. data/lib/elasticsearch/api/actions/tasks/list.rb +3 -3
  471. data/lib/elasticsearch/api/actions/terms_enum.rb +5 -6
  472. data/lib/elasticsearch/api/actions/termvectors.rb +12 -12
  473. data/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +64 -0
  474. data/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +64 -0
  475. data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +9 -9
  476. data/lib/elasticsearch/api/actions/text_structure/test_grok_pattern.rb +54 -0
  477. data/lib/elasticsearch/api/actions/transform/delete_transform.rb +3 -4
  478. data/lib/elasticsearch/api/actions/transform/get_transform.rb +4 -5
  479. data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +3 -4
  480. data/lib/elasticsearch/api/actions/transform/preview_transform.rb +8 -9
  481. data/lib/elasticsearch/api/actions/transform/put_transform.rb +3 -4
  482. data/lib/elasticsearch/api/actions/transform/reset_transform.rb +3 -4
  483. data/lib/elasticsearch/api/actions/transform/schedule_now_transform.rb +3 -4
  484. data/lib/elasticsearch/api/actions/transform/start_transform.rb +3 -4
  485. data/lib/elasticsearch/api/actions/transform/stop_transform.rb +3 -4
  486. data/lib/elasticsearch/api/actions/transform/update_transform.rb +3 -4
  487. data/lib/elasticsearch/api/actions/transform/upgrade_transforms.rb +3 -3
  488. data/lib/elasticsearch/api/actions/update.rb +5 -6
  489. data/lib/elasticsearch/api/actions/update_by_query.rb +3 -4
  490. data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +3 -4
  491. data/lib/elasticsearch/api/actions/watcher/ack_watch.rb +3 -4
  492. data/lib/elasticsearch/api/actions/watcher/activate_watch.rb +3 -4
  493. data/lib/elasticsearch/api/actions/watcher/deactivate_watch.rb +3 -4
  494. data/lib/elasticsearch/api/actions/watcher/delete_watch.rb +5 -6
  495. data/lib/elasticsearch/api/actions/watcher/execute_watch.rb +4 -5
  496. data/lib/elasticsearch/api/actions/watcher/get_settings.rb +3 -3
  497. data/lib/elasticsearch/api/actions/watcher/get_watch.rb +3 -4
  498. data/lib/elasticsearch/api/actions/watcher/put_watch.rb +3 -4
  499. data/lib/elasticsearch/api/actions/watcher/query_watches.rb +3 -3
  500. data/lib/elasticsearch/api/actions/watcher/start.rb +3 -3
  501. data/lib/elasticsearch/api/actions/watcher/stats.rb +4 -5
  502. data/lib/elasticsearch/api/actions/watcher/stop.rb +3 -3
  503. data/lib/elasticsearch/api/actions/watcher/update_settings.rb +3 -3
  504. data/lib/elasticsearch/api/actions/xpack/info.rb +3 -3
  505. data/lib/elasticsearch/api/actions/xpack/usage.rb +3 -3
  506. data/lib/elasticsearch/api/version.rb +1 -1
  507. data/lib/elasticsearch/api.rb +1 -2
  508. data/spec/elasticsearch/api/actions/connector/update_active_filtering_spec.rb +38 -0
  509. data/spec/elasticsearch/api/actions/connector/update_api_key_id_spec.rb +38 -0
  510. data/spec/elasticsearch/api/actions/connector/update_filtering_validation_spec.rb +38 -0
  511. data/spec/elasticsearch/api/actions/connector/update_index_name_spec.rb +38 -0
  512. data/spec/elasticsearch/api/actions/connector/update_native_spec.rb +38 -0
  513. data/spec/elasticsearch/api/actions/connector/update_service_type_spec.rb +38 -0
  514. data/spec/elasticsearch/api/actions/connector/update_status_spec.rb +38 -0
  515. data/spec/elasticsearch/api/actions/connector_secret/delete_spec.rb +35 -0
  516. data/spec/elasticsearch/api/actions/connector_secret/get_spec.rb +35 -0
  517. data/spec/elasticsearch/api/actions/connector_secret/post_spec.rb +35 -0
  518. data/spec/elasticsearch/api/actions/connector_secret/put_spec.rb +35 -0
  519. data/spec/elasticsearch/api/actions/connector_sync_job/cancel_spec.rb +3 -3
  520. data/spec/elasticsearch/api/actions/connector_sync_job/check_in_spec.rb +3 -3
  521. data/spec/elasticsearch/api/actions/connector_sync_job/delete_spec.rb +3 -3
  522. data/spec/elasticsearch/api/actions/connector_sync_job/error_spec.rb +3 -3
  523. data/spec/elasticsearch/api/actions/connector_sync_job/get_spec.rb +3 -3
  524. data/spec/elasticsearch/api/actions/connector_sync_job/list_spec.rb +3 -3
  525. data/spec/elasticsearch/api/actions/connector_sync_job/post_spec.rb +3 -3
  526. data/spec/elasticsearch/api/actions/connector_sync_job/update_stats_spec.rb +3 -3
  527. data/spec/elasticsearch/api/actions/esql/async_query_get._spec.rb +35 -0
  528. data/spec/elasticsearch/api/actions/esql/async_query_spec.rb +35 -0
  529. data/spec/elasticsearch/api/actions/indices/resolve_cluster_spec.rb +51 -0
  530. data/spec/elasticsearch/api/actions/inference/delete_model_spec.rb +2 -2
  531. data/spec/elasticsearch/api/actions/inference/get_model_spec.rb +2 -2
  532. data/spec/elasticsearch/api/actions/inference/inference_spec.rb +2 -2
  533. data/spec/elasticsearch/api/actions/inference/put_model_spec.rb +2 -2
  534. data/spec/elasticsearch/api/actions/profiling/flamegraph_spec.rb +35 -0
  535. data/spec/elasticsearch/api/actions/profiling/stacktraces_spec.rb +35 -0
  536. data/spec/elasticsearch/api/actions/profiling/topn_functions_spec.rb +35 -0
  537. data/spec/{platinum/unit/text_structure/find_structure_test.rb → elasticsearch/api/actions/security/query_user_spec.rb} +26 -17
  538. data/spec/elasticsearch/api/actions/text_structure/find_field_structure_spec.rb +35 -0
  539. data/spec/elasticsearch/api/actions/text_structure/find_message_structure_spec.rb +35 -0
  540. data/spec/elasticsearch/api/actions/text_structure/find_structure_spec.rb +35 -0
  541. data/spec/elasticsearch/api/actions/text_structure/test_grok_pattern_spec.rb +35 -0
  542. data/spec/elasticsearch/api/perform_request_spec.rb +1 -1
  543. data/spec/free/integration/health_spec.rb +28 -0
  544. data/spec/free/integration/spec_helper.rb +28 -0
  545. data/spec/platinum/integration/api_key/api_key_cross_cluster_spec.rb +6 -15
  546. data/spec/platinum/integration/api_key/api_key_query_with_aggs_spec.rb +120 -0
  547. data/spec/platinum/integration/platinum_helper.rb +1 -1
  548. data/spec/platinum/integration/security/users_query_spec.rb +49 -0
  549. data/spec/rest_api/rest_api_yaml_spec.rb +6 -0
  550. data/spec/rest_api/skipped_tests_free.yml +45 -0
  551. data/spec/rest_api/skipped_tests_platinum.yml +6 -0
  552. data/{lib/elasticsearch/api/namespace/connector_sync_job.rb → spec/rspec_formatter.rb} +9 -14
  553. data/spec/spec_helper.rb +10 -3
  554. data/utils/Gemfile +1 -1
  555. data/utils/{endpoint_spec.rb → thor/endpoint_spec.rb} +1 -2
  556. data/utils/{endpoint_specifics.rb → thor/endpoint_specifics.rb} +5 -5
  557. data/utils/thor/generate_source.rb +9 -89
  558. data/utils/thor/generator/build_hash_helper.rb +64 -0
  559. data/utils/thor/generator/docs_helper.rb +62 -0
  560. data/utils/thor/generator/files_helper.rb +25 -22
  561. data/utils/thor/templates/_body.erb +1 -1
  562. data/utils/thor/templates/_documentation_top.erb +11 -12
  563. data/utils/thor/templates/_method_setup.erb +6 -6
  564. data/utils/thor/templates/_perform_request.erb +1 -1
  565. data/utils/thor/templates/method.erb +14 -14
  566. metadata +90 -16
@@ -0,0 +1,66 @@
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.
17
+ #
18
+ # Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
19
+ # @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
20
+ #
21
+ module Elasticsearch
22
+ module API
23
+ module Connector
24
+ module Actions
25
+ # Updates the is_native flag of the connector.
26
+ # This functionality is Experimental and may be changed or removed
27
+ # completely in a future release. Elastic will take a best effort approach
28
+ # to fix any issues, but experimental features are not subject to the
29
+ # support SLA of official GA features.
30
+ #
31
+ # @option arguments [String] :connector_id The unique identifier of the connector to be updated.
32
+ # @option arguments [Hash] :headers Custom HTTP headers
33
+ # @option arguments [Hash] :body An object containing the connector's is_native flag (*Required*)
34
+ #
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/connector-apis.html
36
+ #
37
+ def update_native(arguments = {})
38
+ request_opts = { endpoint: arguments[:endpoint] || 'connector.update_native' }
39
+
40
+ defined_params = [:connector_id].each_with_object({}) do |variable, set_variables|
41
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
+ end
43
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
44
+
45
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
46
+ raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
47
+
48
+ arguments = arguments.clone
49
+ headers = arguments.delete(:headers) || {}
50
+
51
+ body = arguments.delete(:body)
52
+
53
+ _connector_id = arguments.delete(:connector_id)
54
+
55
+ method = Elasticsearch::API::HTTP_PUT
56
+ path = "_connector/#{Utils.__listify(_connector_id)}/_native"
57
+ params = {}
58
+
59
+ Elasticsearch::API::Response.new(
60
+ perform_request(method, path, params, body, headers, request_opts)
61
+ )
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -32,14 +32,13 @@ module Elasticsearch
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  # @option arguments [Hash] :body An object with connector ingest pipeline configuration. (*Required*)
34
34
  #
35
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-pipeline-api.html
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/update-connector-pipeline-api.html
36
36
  #
37
37
  def update_pipeline(arguments = {})
38
- request_opts = { endpoint: arguments[:endpoint] || "connector.update_pipeline" }
38
+ request_opts = { endpoint: arguments[:endpoint] || 'connector.update_pipeline' }
39
39
 
40
- defined_params = [:connector_id].inject({}) do |set_variables, variable|
40
+ defined_params = [:connector_id].each_with_object({}) do |variable, set_variables|
41
41
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
- set_variables
43
42
  end
44
43
  request_opts[:defined_params] = defined_params unless defined_params.empty?
45
44
 
@@ -32,14 +32,13 @@ module Elasticsearch
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  # @option arguments [Hash] :body An object containing the connector's scheduling configuration. (*Required*)
34
34
  #
35
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/update-connector-scheduling-api.html
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/update-connector-scheduling-api.html
36
36
  #
37
37
  def update_scheduling(arguments = {})
38
- request_opts = { endpoint: arguments[:endpoint] || "connector.update_scheduling" }
38
+ request_opts = { endpoint: arguments[:endpoint] || 'connector.update_scheduling' }
39
39
 
40
- defined_params = [:connector_id].inject({}) do |set_variables, variable|
40
+ defined_params = [:connector_id].each_with_object({}) do |variable, set_variables|
41
41
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
- set_variables
43
42
  end
44
43
  request_opts[:defined_params] = defined_params unless defined_params.empty?
45
44
 
@@ -0,0 +1,66 @@
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.
17
+ #
18
+ # Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
19
+ # @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
20
+ #
21
+ module Elasticsearch
22
+ module API
23
+ module Connector
24
+ module Actions
25
+ # Updates the service type of the connector.
26
+ # This functionality is Experimental and may be changed or removed
27
+ # completely in a future release. Elastic will take a best effort approach
28
+ # to fix any issues, but experimental features are not subject to the
29
+ # support SLA of official GA features.
30
+ #
31
+ # @option arguments [String] :connector_id The unique identifier of the connector to be updated.
32
+ # @option arguments [Hash] :headers Custom HTTP headers
33
+ # @option arguments [Hash] :body An object containing the connector's service type. (*Required*)
34
+ #
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/update-connector-service-type-api.html
36
+ #
37
+ def update_service_type(arguments = {})
38
+ request_opts = { endpoint: arguments[:endpoint] || 'connector.update_service_type' }
39
+
40
+ defined_params = [:connector_id].each_with_object({}) do |variable, set_variables|
41
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
+ end
43
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
44
+
45
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
46
+ raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
47
+
48
+ arguments = arguments.clone
49
+ headers = arguments.delete(:headers) || {}
50
+
51
+ body = arguments.delete(:body)
52
+
53
+ _connector_id = arguments.delete(:connector_id)
54
+
55
+ method = Elasticsearch::API::HTTP_PUT
56
+ path = "_connector/#{Utils.__listify(_connector_id)}/_service_type"
57
+ params = {}
58
+
59
+ Elasticsearch::API::Response.new(
60
+ perform_request(method, path, params, body, headers, request_opts)
61
+ )
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,66 @@
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.
17
+ #
18
+ # Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
19
+ # @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
20
+ #
21
+ module Elasticsearch
22
+ module API
23
+ module Connector
24
+ module Actions
25
+ # Updates the status of the connector.
26
+ # This functionality is Experimental and may be changed or removed
27
+ # completely in a future release. Elastic will take a best effort approach
28
+ # to fix any issues, but experimental features are not subject to the
29
+ # support SLA of official GA features.
30
+ #
31
+ # @option arguments [String] :connector_id The unique identifier of the connector to be updated.
32
+ # @option arguments [Hash] :headers Custom HTTP headers
33
+ # @option arguments [Hash] :body An object containing the connector's status. (*Required*)
34
+ #
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/update-connector-status-api.html
36
+ #
37
+ def update_status(arguments = {})
38
+ request_opts = { endpoint: arguments[:endpoint] || 'connector.update_status' }
39
+
40
+ defined_params = [:connector_id].each_with_object({}) do |variable, set_variables|
41
+ set_variables[variable] = arguments[variable] if arguments.key?(variable)
42
+ end
43
+ request_opts[:defined_params] = defined_params unless defined_params.empty?
44
+
45
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
46
+ raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
47
+
48
+ arguments = arguments.clone
49
+ headers = arguments.delete(:headers) || {}
50
+
51
+ body = arguments.delete(:body)
52
+
53
+ _connector_id = arguments.delete(:connector_id)
54
+
55
+ method = Elasticsearch::API::HTTP_PUT
56
+ path = "_connector/#{Utils.__listify(_connector_id)}/_status"
57
+ params = {}
58
+
59
+ Elasticsearch::API::Response.new(
60
+ perform_request(method, path, params, body, headers, request_opts)
61
+ )
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -41,21 +41,20 @@ module Elasticsearch
41
41
  # @option arguments [Hash] :headers Custom HTTP headers
42
42
  # @option arguments [Hash] :body A query to restrict the results specified with the Query DSL (optional)
43
43
  #
44
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/search-count.html
44
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-count.html
45
45
  #
46
46
  def count(arguments = {})
47
- request_opts = { endpoint: arguments[:endpoint] || "count" }
47
+ request_opts = { endpoint: arguments[:endpoint] || 'count' }
48
48
 
49
- defined_params = [:index].inject({}) do |set_variables, variable|
49
+ defined_params = [:index].each_with_object({}) do |variable, set_variables|
50
50
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
51
- set_variables
52
51
  end
53
52
  request_opts[:defined_params] = defined_params unless defined_params.empty?
54
53
 
55
54
  arguments = arguments.clone
56
55
  headers = arguments.delete(:headers) || {}
57
56
 
58
- body = arguments.delete(:body)
57
+ body = arguments.delete(:body)
59
58
 
60
59
  _index = arguments.delete(:index)
61
60
 
@@ -65,11 +64,11 @@ module Elasticsearch
65
64
  Elasticsearch::API::HTTP_GET
66
65
  end
67
66
 
68
- path = if _index
69
- "#{Utils.__listify(_index)}/_count"
70
- else
71
- "_count"
72
- end
67
+ path = if _index
68
+ "#{Utils.__listify(_index)}/_count"
69
+ else
70
+ '_count'
71
+ end
73
72
  params = Utils.process_params(arguments)
74
73
 
75
74
  Elasticsearch::API::Response.new(
@@ -37,14 +37,13 @@ module Elasticsearch
37
37
  # @option arguments [Hash] :headers Custom HTTP headers
38
38
  # @option arguments [Hash] :body The document (*Required*)
39
39
  #
40
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/docs-index_.html
40
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/docs-index_.html
41
41
  #
42
42
  def create(arguments = {})
43
- request_opts = { endpoint: arguments[:endpoint] || "create" }
43
+ request_opts = { endpoint: arguments[:endpoint] || 'create' }
44
44
 
45
- defined_params = [:index, :id].inject({}) do |set_variables, variable|
45
+ defined_params = %i[index id].each_with_object({}) do |variable, set_variables|
46
46
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
47
- set_variables
48
47
  end
49
48
  request_opts[:defined_params] = defined_params unless defined_params.empty?
50
49
 
@@ -25,16 +25,16 @@ module Elasticsearch
25
25
  # Deletes auto-follow patterns.
26
26
  #
27
27
  # @option arguments [String] :name The name of the auto follow pattern.
28
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-delete-auto-follow-pattern.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-delete-auto-follow-pattern.html
31
32
  #
32
33
  def delete_auto_follow_pattern(arguments = {})
33
- request_opts = { endpoint: arguments[:endpoint] || "ccr.delete_auto_follow_pattern" }
34
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.delete_auto_follow_pattern' }
34
35
 
35
- defined_params = [:name].inject({}) do |set_variables, variable|
36
+ defined_params = [:name].each_with_object({}) do |variable, set_variables|
36
37
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
- set_variables
38
38
  end
39
39
  request_opts[:defined_params] = defined_params unless defined_params.empty?
40
40
 
@@ -49,7 +49,7 @@ module Elasticsearch
49
49
 
50
50
  method = Elasticsearch::API::HTTP_DELETE
51
51
  path = "_ccr/auto_follow/#{Utils.__listify(_name)}"
52
- params = {}
52
+ params = Utils.process_params(arguments)
53
53
 
54
54
  Elasticsearch::API::Response.new(
55
55
  perform_request(method, path, params, body, headers, request_opts)
@@ -26,17 +26,17 @@ module Elasticsearch
26
26
  #
27
27
  # @option arguments [String] :index The name of the follower index
28
28
  # @option arguments [String] :wait_for_active_shards Sets the number of shard copies that must be active before returning. Defaults to 0. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
29
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
29
30
  # @option arguments [Hash] :headers Custom HTTP headers
30
31
  # @option arguments [Hash] :body The name of the leader index and other optional ccr related parameters (*Required*)
31
32
  #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-put-follow.html
33
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-follow.html
33
34
  #
34
35
  def follow(arguments = {})
35
- request_opts = { endpoint: arguments[:endpoint] || "ccr.follow" }
36
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow' }
36
37
 
37
- defined_params = [:index].inject({}) do |set_variables, variable|
38
+ defined_params = [:index].each_with_object({}) do |variable, set_variables|
38
39
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
39
- set_variables
40
40
  end
41
41
  request_opts[:defined_params] = defined_params unless defined_params.empty?
42
42
 
@@ -25,16 +25,16 @@ module Elasticsearch
25
25
  # Retrieves information about all follower indices, including parameters and status for each follower index
26
26
  #
27
27
  # @option arguments [List] :index A comma-separated list of index patterns; use `_all` to perform the operation on all indices
28
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-get-follow-info.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-info.html
31
32
  #
32
33
  def follow_info(arguments = {})
33
- request_opts = { endpoint: arguments[:endpoint] || "ccr.follow_info" }
34
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow_info' }
34
35
 
35
- defined_params = [:index].inject({}) do |set_variables, variable|
36
+ defined_params = [:index].each_with_object({}) do |variable, set_variables|
36
37
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
- set_variables
38
38
  end
39
39
  request_opts[:defined_params] = defined_params unless defined_params.empty?
40
40
 
@@ -49,7 +49,7 @@ module Elasticsearch
49
49
 
50
50
  method = Elasticsearch::API::HTTP_GET
51
51
  path = "#{Utils.__listify(_index)}/_ccr/info"
52
- params = {}
52
+ params = Utils.process_params(arguments)
53
53
 
54
54
  Elasticsearch::API::Response.new(
55
55
  perform_request(method, path, params, body, headers, request_opts)
@@ -25,16 +25,16 @@ module Elasticsearch
25
25
  # Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices.
26
26
  #
27
27
  # @option arguments [List] :index A comma-separated list of index patterns; use `_all` to perform the operation on all indices
28
+ # @option arguments [Time] :timeout Explicit operation timeout
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-get-follow-stats.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-follow-stats.html
31
32
  #
32
33
  def follow_stats(arguments = {})
33
- request_opts = { endpoint: arguments[:endpoint] || "ccr.follow_stats" }
34
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.follow_stats' }
34
35
 
35
- defined_params = [:index].inject({}) do |set_variables, variable|
36
+ defined_params = [:index].each_with_object({}) do |variable, set_variables|
36
37
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
- set_variables
38
38
  end
39
39
  request_opts[:defined_params] = defined_params unless defined_params.empty?
40
40
 
@@ -49,7 +49,7 @@ module Elasticsearch
49
49
 
50
50
  method = Elasticsearch::API::HTTP_GET
51
51
  path = "#{Utils.__listify(_index)}/_ccr/stats"
52
- params = {}
52
+ params = Utils.process_params(arguments)
53
53
 
54
54
  Elasticsearch::API::Response.new(
55
55
  perform_request(method, path, params, body, headers, request_opts)
@@ -25,17 +25,17 @@ module Elasticsearch
25
25
  # Removes the follower retention leases from the leader.
26
26
  #
27
27
  # @option arguments [String] :index the name of the leader index for which specified follower retention leases should be removed
28
+ # @option arguments [Time] :timeout Explicit operation timeout
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  # @option arguments [Hash] :body the name and UUID of the follower index, the name of the cluster containing the follower index, and the alias from the perspective of that cluster for the remote cluster containing the leader index (*Required*)
30
31
  #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-post-forget-follower.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-forget-follower.html
32
33
  #
33
34
  def forget_follower(arguments = {})
34
- request_opts = { endpoint: arguments[:endpoint] || "ccr.forget_follower" }
35
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.forget_follower' }
35
36
 
36
- defined_params = [:index].inject({}) do |set_variables, variable|
37
+ defined_params = [:index].each_with_object({}) do |variable, set_variables|
37
38
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
38
- set_variables
39
39
  end
40
40
  request_opts[:defined_params] = defined_params unless defined_params.empty?
41
41
 
@@ -51,7 +51,7 @@ module Elasticsearch
51
51
 
52
52
  method = Elasticsearch::API::HTTP_POST
53
53
  path = "#{Utils.__listify(_index)}/_ccr/forget_follower"
54
- params = {}
54
+ params = Utils.process_params(arguments)
55
55
 
56
56
  Elasticsearch::API::Response.new(
57
57
  perform_request(method, path, params, body, headers, request_opts)
@@ -25,16 +25,16 @@ module Elasticsearch
25
25
  # Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection.
26
26
  #
27
27
  # @option arguments [String] :name The name of the auto follow pattern.
28
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-get-auto-follow-pattern.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-auto-follow-pattern.html
31
32
  #
32
33
  def get_auto_follow_pattern(arguments = {})
33
- request_opts = { endpoint: arguments[:endpoint] || "ccr.get_auto_follow_pattern" }
34
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.get_auto_follow_pattern' }
34
35
 
35
- defined_params = [:name].inject({}) do |set_variables, variable|
36
+ defined_params = [:name].each_with_object({}) do |variable, set_variables|
36
37
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
- set_variables
38
38
  end
39
39
  request_opts[:defined_params] = defined_params unless defined_params.empty?
40
40
 
@@ -49,9 +49,9 @@ module Elasticsearch
49
49
  path = if _name
50
50
  "_ccr/auto_follow/#{Utils.__listify(_name)}"
51
51
  else
52
- "_ccr/auto_follow"
52
+ '_ccr/auto_follow'
53
53
  end
54
- params = {}
54
+ params = Utils.process_params(arguments)
55
55
 
56
56
  Elasticsearch::API::Response.new(
57
57
  perform_request(method, path, params, body, headers, request_opts)
@@ -25,16 +25,16 @@ module Elasticsearch
25
25
  # Pauses an auto-follow pattern
26
26
  #
27
27
  # @option arguments [String] :name The name of the auto follow pattern that should pause discovering new indices to follow.
28
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-pause-auto-follow-pattern.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-pause-auto-follow-pattern.html
31
32
  #
32
33
  def pause_auto_follow_pattern(arguments = {})
33
- request_opts = { endpoint: arguments[:endpoint] || "ccr.pause_auto_follow_pattern" }
34
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.pause_auto_follow_pattern' }
34
35
 
35
- defined_params = [:name].inject({}) do |set_variables, variable|
36
+ defined_params = [:name].each_with_object({}) do |variable, set_variables|
36
37
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
- set_variables
38
38
  end
39
39
  request_opts[:defined_params] = defined_params unless defined_params.empty?
40
40
 
@@ -49,7 +49,7 @@ module Elasticsearch
49
49
 
50
50
  method = Elasticsearch::API::HTTP_POST
51
51
  path = "_ccr/auto_follow/#{Utils.__listify(_name)}/pause"
52
- params = {}
52
+ params = Utils.process_params(arguments)
53
53
 
54
54
  Elasticsearch::API::Response.new(
55
55
  perform_request(method, path, params, body, headers, request_opts)
@@ -25,16 +25,16 @@ module Elasticsearch
25
25
  # Pauses a follower index. The follower index will not fetch any additional operations from the leader index.
26
26
  #
27
27
  # @option arguments [String] :index The name of the follower index that should pause following its leader index.
28
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-post-pause-follow.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-pause-follow.html
31
32
  #
32
33
  def pause_follow(arguments = {})
33
- request_opts = { endpoint: arguments[:endpoint] || "ccr.pause_follow" }
34
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.pause_follow' }
34
35
 
35
- defined_params = [:index].inject({}) do |set_variables, variable|
36
+ defined_params = [:index].each_with_object({}) do |variable, set_variables|
36
37
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
- set_variables
38
38
  end
39
39
  request_opts[:defined_params] = defined_params unless defined_params.empty?
40
40
 
@@ -49,7 +49,7 @@ module Elasticsearch
49
49
 
50
50
  method = Elasticsearch::API::HTTP_POST
51
51
  path = "#{Utils.__listify(_index)}/_ccr/pause_follow"
52
- params = {}
52
+ params = Utils.process_params(arguments)
53
53
 
54
54
  Elasticsearch::API::Response.new(
55
55
  perform_request(method, path, params, body, headers, request_opts)
@@ -25,17 +25,17 @@ module Elasticsearch
25
25
  # Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.
26
26
  #
27
27
  # @option arguments [String] :name The name of the auto follow pattern.
28
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  # @option arguments [Hash] :body The specification of the auto follow pattern (*Required*)
30
31
  #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-put-auto-follow-pattern.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-put-auto-follow-pattern.html
32
33
  #
33
34
  def put_auto_follow_pattern(arguments = {})
34
- request_opts = { endpoint: arguments[:endpoint] || "ccr.put_auto_follow_pattern" }
35
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.put_auto_follow_pattern' }
35
36
 
36
- defined_params = [:name].inject({}) do |set_variables, variable|
37
+ defined_params = [:name].each_with_object({}) do |variable, set_variables|
37
38
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
38
- set_variables
39
39
  end
40
40
  request_opts[:defined_params] = defined_params unless defined_params.empty?
41
41
 
@@ -51,7 +51,7 @@ module Elasticsearch
51
51
 
52
52
  method = Elasticsearch::API::HTTP_PUT
53
53
  path = "_ccr/auto_follow/#{Utils.__listify(_name)}"
54
- params = {}
54
+ params = Utils.process_params(arguments)
55
55
 
56
56
  Elasticsearch::API::Response.new(
57
57
  perform_request(method, path, params, body, headers, request_opts)
@@ -25,16 +25,16 @@ module Elasticsearch
25
25
  # Resumes an auto-follow pattern that has been paused
26
26
  #
27
27
  # @option arguments [String] :name The name of the auto follow pattern to resume discovering new indices to follow.
28
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-resume-auto-follow-pattern.html
31
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-resume-auto-follow-pattern.html
31
32
  #
32
33
  def resume_auto_follow_pattern(arguments = {})
33
- request_opts = { endpoint: arguments[:endpoint] || "ccr.resume_auto_follow_pattern" }
34
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.resume_auto_follow_pattern' }
34
35
 
35
- defined_params = [:name].inject({}) do |set_variables, variable|
36
+ defined_params = [:name].each_with_object({}) do |variable, set_variables|
36
37
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
37
- set_variables
38
38
  end
39
39
  request_opts[:defined_params] = defined_params unless defined_params.empty?
40
40
 
@@ -49,7 +49,7 @@ module Elasticsearch
49
49
 
50
50
  method = Elasticsearch::API::HTTP_POST
51
51
  path = "_ccr/auto_follow/#{Utils.__listify(_name)}/resume"
52
- params = {}
52
+ params = Utils.process_params(arguments)
53
53
 
54
54
  Elasticsearch::API::Response.new(
55
55
  perform_request(method, path, params, body, headers, request_opts)
@@ -25,17 +25,17 @@ module Elasticsearch
25
25
  # Resumes a follower index that has been paused
26
26
  #
27
27
  # @option arguments [String] :index The name of the follow index to resume following.
28
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
29
30
  # @option arguments [Hash] :body The name of the leader index and other optional ccr related parameters
30
31
  #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/ccr-post-resume-follow.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-post-resume-follow.html
32
33
  #
33
34
  def resume_follow(arguments = {})
34
- request_opts = { endpoint: arguments[:endpoint] || "ccr.resume_follow" }
35
+ request_opts = { endpoint: arguments[:endpoint] || 'ccr.resume_follow' }
35
36
 
36
- defined_params = [:index].inject({}) do |set_variables, variable|
37
+ defined_params = [:index].each_with_object({}) do |variable, set_variables|
37
38
  set_variables[variable] = arguments[variable] if arguments.key?(variable)
38
- set_variables
39
39
  end
40
40
  request_opts[:defined_params] = defined_params unless defined_params.empty?
41
41
 
@@ -50,7 +50,7 @@ module Elasticsearch
50
50
 
51
51
  method = Elasticsearch::API::HTTP_POST
52
52
  path = "#{Utils.__listify(_index)}/_ccr/resume_follow"
53
- params = {}
53
+ params = Utils.process_params(arguments)
54
54
 
55
55
  Elasticsearch::API::Response.new(
56
56
  perform_request(method, path, params, body, headers, request_opts)