elasticsearch-api 9.2.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/elasticsearch-api.gemspec +1 -0
  3. data/lib/elasticsearch/api/actions/async_search/submit.rb +13 -18
  4. data/lib/elasticsearch/api/actions/bulk.rb +2 -1
  5. data/lib/elasticsearch/api/actions/cat/aliases.rb +1 -1
  6. data/lib/elasticsearch/api/actions/cat/circuit_breaker.rb +96 -0
  7. data/lib/elasticsearch/api/actions/cat/count.rb +8 -10
  8. data/lib/elasticsearch/api/actions/cat/indices.rb +1 -1
  9. data/lib/elasticsearch/api/actions/cat/segments.rb +10 -0
  10. data/lib/elasticsearch/api/actions/cat/tasks.rb +3 -4
  11. data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +2 -3
  12. data/lib/elasticsearch/api/actions/cluster/health.rb +25 -12
  13. data/lib/elasticsearch/api/actions/cluster/put_settings.rb +3 -3
  14. data/lib/elasticsearch/api/actions/cluster/reroute.rb +1 -1
  15. data/lib/elasticsearch/api/actions/cluster/state.rb +6 -5
  16. data/lib/elasticsearch/api/actions/connector/check_in.rb +3 -4
  17. data/lib/elasticsearch/api/actions/connector/sync_job_check_in.rb +3 -4
  18. data/lib/elasticsearch/api/actions/connector/sync_job_claim.rb +3 -4
  19. data/lib/elasticsearch/api/actions/connector/sync_job_error.rb +3 -4
  20. data/lib/elasticsearch/api/actions/connector/sync_job_update_stats.rb +3 -4
  21. data/lib/elasticsearch/api/actions/connector/update_active_filtering.rb +3 -4
  22. data/lib/elasticsearch/api/actions/connector/update_error.rb +3 -4
  23. data/lib/elasticsearch/api/actions/connector/update_features.rb +3 -4
  24. data/lib/elasticsearch/api/actions/connector/update_filtering_validation.rb +3 -4
  25. data/lib/elasticsearch/api/actions/connector/update_status.rb +3 -4
  26. data/lib/elasticsearch/api/actions/count.rb +1 -9
  27. data/lib/elasticsearch/api/actions/create.rb +1 -1
  28. data/lib/elasticsearch/api/actions/cross_cluster_replication/forget_follower.rb +1 -1
  29. data/lib/elasticsearch/api/actions/cross_cluster_replication/resume_follow.rb +1 -1
  30. data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +3 -3
  31. data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +3 -3
  32. data/lib/elasticsearch/api/actions/delete.rb +1 -1
  33. data/lib/elasticsearch/api/actions/delete_by_query.rb +1 -1
  34. data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +1 -1
  35. data/lib/elasticsearch/api/actions/eql/search.rb +3 -10
  36. data/lib/elasticsearch/api/actions/esql/delete_view.rb +75 -0
  37. data/lib/elasticsearch/api/actions/esql/get_query.rb +3 -4
  38. data/lib/elasticsearch/api/actions/esql/get_view.rb +77 -0
  39. data/lib/elasticsearch/api/actions/esql/list_queries.rb +3 -4
  40. data/lib/elasticsearch/api/actions/esql/put_view.rb +76 -0
  41. data/lib/elasticsearch/api/actions/exists.rb +1 -1
  42. data/lib/elasticsearch/api/actions/exists_source.rb +1 -1
  43. data/lib/elasticsearch/api/actions/explain.rb +1 -1
  44. data/lib/elasticsearch/api/actions/features/reset_features.rb +3 -4
  45. data/lib/elasticsearch/api/actions/field_caps.rb +1 -9
  46. data/lib/elasticsearch/api/actions/fleet/msearch.rb +3 -4
  47. data/lib/elasticsearch/api/actions/fleet/search.rb +4 -5
  48. data/lib/elasticsearch/api/actions/get.rb +1 -1
  49. data/lib/elasticsearch/api/actions/get_source.rb +1 -1
  50. data/lib/elasticsearch/api/actions/graph/explore.rb +1 -1
  51. data/lib/elasticsearch/api/actions/index.rb +4 -1
  52. data/lib/elasticsearch/api/actions/indices/add_block.rb +1 -1
  53. data/lib/elasticsearch/api/actions/indices/cancel_migrate_reindex.rb +0 -4
  54. data/lib/elasticsearch/api/actions/indices/create_from.rb +0 -4
  55. data/lib/elasticsearch/api/actions/indices/data_streams_stats.rb +2 -2
  56. data/lib/elasticsearch/api/actions/indices/delete.rb +1 -1
  57. data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +5 -4
  58. data/lib/elasticsearch/api/actions/indices/delete_data_stream_options.rb +5 -4
  59. data/lib/elasticsearch/api/actions/indices/delete_sample_configuration.rb +80 -0
  60. data/lib/elasticsearch/api/actions/indices/disk_usage.rb +3 -4
  61. data/lib/elasticsearch/api/actions/indices/downsample.rb +8 -6
  62. data/lib/elasticsearch/api/actions/indices/exists_alias.rb +1 -1
  63. data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +3 -3
  64. data/lib/elasticsearch/api/actions/indices/field_usage_stats.rb +4 -5
  65. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +5 -4
  66. data/lib/elasticsearch/api/actions/indices/get_alias.rb +1 -1
  67. data/lib/elasticsearch/api/actions/indices/get_all_sample_configuration.rb +68 -0
  68. data/lib/elasticsearch/api/actions/indices/get_index_template.rb +1 -1
  69. data/lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb +0 -4
  70. data/lib/elasticsearch/api/actions/indices/get_sample.rb +74 -0
  71. data/lib/elasticsearch/api/actions/indices/get_sample_configuration.rb +78 -0
  72. data/lib/elasticsearch/api/actions/indices/get_sample_stats.rb +74 -0
  73. data/lib/elasticsearch/api/actions/indices/migrate_reindex.rb +0 -4
  74. data/lib/elasticsearch/api/actions/indices/open.rb +1 -1
  75. data/lib/elasticsearch/api/actions/indices/promote_data_stream.rb +1 -1
  76. data/lib/elasticsearch/api/actions/indices/put_index_template.rb +1 -1
  77. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +2 -1
  78. data/lib/elasticsearch/api/actions/indices/put_sample_configuration.rb +82 -0
  79. data/lib/elasticsearch/api/actions/indices/put_template.rb +1 -1
  80. data/lib/elasticsearch/api/actions/indices/reload_search_analyzers.rb +3 -2
  81. data/lib/elasticsearch/api/actions/indices/remove_block.rb +1 -1
  82. data/lib/elasticsearch/api/actions/indices/resolve_index.rb +8 -10
  83. data/lib/elasticsearch/api/actions/indices/stats.rb +2 -2
  84. data/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +3 -3
  85. data/lib/elasticsearch/api/actions/inference/completion.rb +5 -1
  86. data/lib/elasticsearch/api/actions/inference/delete.rb +3 -2
  87. data/lib/elasticsearch/api/actions/inference/get.rb +2 -1
  88. data/lib/elasticsearch/api/actions/inference/put.rb +5 -2
  89. data/lib/elasticsearch/api/actions/inference/put_groq.rb +79 -0
  90. data/lib/elasticsearch/api/actions/inference/put_nvidia.rb +84 -0
  91. data/lib/elasticsearch/api/actions/inference/put_openshift_ai.rb +84 -0
  92. data/lib/elasticsearch/api/actions/inference/rerank.rb +1 -1
  93. data/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +1 -1
  94. data/lib/elasticsearch/api/actions/inference/stream_completion.rb +1 -1
  95. data/lib/elasticsearch/api/actions/inference/text_embedding.rb +1 -1
  96. data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +1 -1
  97. data/lib/elasticsearch/api/actions/license/post_start_basic.rb +1 -1
  98. data/lib/elasticsearch/api/actions/license/post_start_trial.rb +2 -2
  99. data/lib/elasticsearch/api/actions/machine_learning/start_data_frame_analytics.rb +2 -1
  100. data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +1 -1
  101. data/lib/elasticsearch/api/actions/machine_learning/stop_data_frame_analytics.rb +2 -1
  102. data/lib/elasticsearch/api/actions/machine_learning/stop_datafeed.rb +1 -0
  103. data/lib/elasticsearch/api/actions/machine_learning/stop_trained_model_deployment.rb +2 -1
  104. data/lib/elasticsearch/api/actions/mget.rb +1 -1
  105. data/lib/elasticsearch/api/actions/msearch.rb +2 -2
  106. data/lib/elasticsearch/api/actions/mtermvectors.rb +1 -1
  107. data/lib/elasticsearch/api/actions/nodes/clear_repositories_metering_archive.rb +3 -4
  108. data/lib/elasticsearch/api/actions/nodes/get_repositories_metering_info.rb +3 -4
  109. data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +1 -1
  110. data/lib/elasticsearch/api/actions/nodes/stats.rb +1 -1
  111. data/lib/elasticsearch/api/actions/nodes/usage.rb +3 -2
  112. data/lib/elasticsearch/api/actions/open_point_in_time.rb +1 -9
  113. data/lib/elasticsearch/api/actions/project/tags.rb +8 -6
  114. data/lib/elasticsearch/api/actions/rank_eval.rb +1 -1
  115. data/lib/elasticsearch/api/actions/reindex.rb +2 -1
  116. data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +1 -1
  117. data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +3 -4
  118. data/lib/elasticsearch/api/actions/search.rb +1 -9
  119. data/lib/elasticsearch/api/actions/search_application/delete_behavioral_analytics.rb +3 -4
  120. data/lib/elasticsearch/api/actions/search_application/get_behavioral_analytics.rb +3 -4
  121. data/lib/elasticsearch/api/actions/search_application/post_behavioral_analytics_event.rb +3 -4
  122. data/lib/elasticsearch/api/actions/search_application/put_behavioral_analytics.rb +3 -4
  123. data/lib/elasticsearch/api/actions/search_application/render_query.rb +3 -4
  124. data/lib/elasticsearch/api/actions/search_mvt.rb +12 -5
  125. data/lib/elasticsearch/api/actions/search_shards.rb +1 -1
  126. data/lib/elasticsearch/api/actions/search_template.rb +2 -2
  127. data/lib/elasticsearch/api/actions/searchable_snapshots/cache_stats.rb +3 -4
  128. data/lib/elasticsearch/api/actions/searchable_snapshots/clear_cache.rb +6 -6
  129. data/lib/elasticsearch/api/actions/security/clear_cached_privileges.rb +1 -1
  130. data/lib/elasticsearch/api/actions/security/create_service_token.rb +1 -1
  131. data/lib/elasticsearch/api/actions/security/delete_service_token.rb +1 -1
  132. data/lib/elasticsearch/api/actions/simulate/ingest.rb +3 -4
  133. data/lib/elasticsearch/api/actions/snapshot/delete.rb +1 -1
  134. data/lib/elasticsearch/api/actions/snapshot/repository_verify_integrity.rb +3 -4
  135. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +1 -1
  136. data/lib/elasticsearch/api/actions/sql/query.rb +0 -8
  137. data/lib/elasticsearch/api/actions/streams/logs_disable.rb +3 -4
  138. data/lib/elasticsearch/api/actions/streams/logs_enable.rb +3 -4
  139. data/lib/elasticsearch/api/actions/streams/status.rb +3 -4
  140. data/lib/elasticsearch/api/actions/tasks/cancel.rb +3 -4
  141. data/lib/elasticsearch/api/actions/tasks/get.rb +3 -4
  142. data/lib/elasticsearch/api/actions/tasks/list.rb +3 -4
  143. data/lib/elasticsearch/api/actions/terms_enum.rb +1 -1
  144. data/lib/elasticsearch/api/actions/termvectors.rb +1 -1
  145. data/lib/elasticsearch/api/actions/text_structure/find_field_structure.rb +1 -1
  146. data/lib/elasticsearch/api/actions/text_structure/find_message_structure.rb +1 -1
  147. data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +1 -1
  148. data/lib/elasticsearch/api/actions/transform/get_node_stats.rb +15 -3
  149. data/lib/elasticsearch/api/actions/transform/get_transform_stats.rb +1 -1
  150. data/lib/elasticsearch/api/actions/update.rb +1 -1
  151. data/lib/elasticsearch/api/actions/update_by_query.rb +2 -2
  152. data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +1 -1
  153. data/lib/elasticsearch/api/actions/watcher/put_watch.rb +2 -2
  154. data/lib/elasticsearch/api/actions/xpack/info.rb +1 -1
  155. data/lib/elasticsearch/api/utils.rb +0 -4
  156. data/lib/elasticsearch/api/version.rb +2 -2
  157. data/lib/elasticsearch/api.rb +1 -0
  158. metadata +29 -2
@@ -31,10 +31,9 @@ module Elasticsearch
31
31
  # The cancelled flag in the response indicates that the cancellation command has been processed and the task will stop as soon as possible.
32
32
  # To troubleshoot why a cancelled task does not complete promptly, use the get task information API with the `?detailed` parameter to identify the other tasks the system is running.
33
33
  # You can also use the node hot threads API to obtain detailed information about the work the system is doing instead of completing the cancelled task.
34
- # This functionality is Experimental and may be changed or removed
35
- # completely in a future release. Elastic will take a best effort approach
36
- # to fix any issues, but experimental features are not subject to the
37
- # support SLA of official GA features.
34
+ # This functionality is in technical preview and may be changed or removed in a future
35
+ # release. Elastic will apply best effort to fix any issues, but features in technical
36
+ # preview are not subject to the support SLA of official GA features.
38
37
  #
39
38
  # @option arguments [String] :task_id The task identifier.
40
39
  # @option arguments [String, Array<String>] :actions A comma-separated list or wildcard expression of actions that is used to limit the request.
@@ -27,10 +27,9 @@ module Elasticsearch
27
27
  # WARNING: The task management API is new and should still be considered a beta feature.
28
28
  # The API may change in ways that are not backwards compatible.
29
29
  # If the task identifier is not found, a 404 response code indicates that there are no resources that match the request.
30
- # This functionality is Experimental and may be changed or removed
31
- # completely in a future release. Elastic will take a best effort approach
32
- # to fix any issues, but experimental features are not subject to the
33
- # support SLA of official GA features.
30
+ # This functionality is in technical preview and may be changed or removed in a future
31
+ # release. Elastic will apply best effort to fix any issues, but features in technical
32
+ # preview are not subject to the support SLA of official GA features.
34
33
  #
35
34
  # @option arguments [String] :task_id The task identifier. (*Required*)
36
35
  # @option arguments [Time] :timeout The period to wait for a response.
@@ -78,10 +78,9 @@ module Elasticsearch
78
78
  # In this example, `X-Opaque-Id: 123456` is the ID as a part of the response header.
79
79
  # The `X-Opaque-Id` in the task `headers` is the ID for the task that was initiated by the REST request.
80
80
  # The `X-Opaque-Id` in the children `headers` is the child task of the task that was initiated by the REST request.
81
- # This functionality is Experimental and may be changed or removed
82
- # completely in a future release. Elastic will take a best effort approach
83
- # to fix any issues, but experimental features are not subject to the
84
- # support SLA of official GA features.
81
+ # This functionality is in technical preview and may be changed or removed in a future
82
+ # release. Elastic will apply best effort to fix any issues, but features in technical
83
+ # preview are not subject to the support SLA of official GA features.
85
84
  #
86
85
  # @option arguments [String, Array<String>] :actions A comma-separated list or wildcard expression of actions used to limit the request.
87
86
  # For example, you can use `cluser:*` to retrieve all cluster-related tasks.
@@ -25,7 +25,7 @@ module Elasticsearch
25
25
  # Discover terms that match a partial string in an index.
26
26
  # This API is designed for low-latency look-ups used in auto-complete scenarios.
27
27
  #
28
- # @option arguments [String] :index A comma-separated list of data streams, indices, and index aliases to search.
28
+ # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and index aliases to search.
29
29
  # Wildcard (`*`) expressions are supported.
30
30
  # To search all data streams or indices, omit this parameter or use `*` or `_all`. (*Required*)
31
31
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
@@ -58,7 +58,7 @@ module Elasticsearch
58
58
  # @option arguments [String] :preference The node or shard the operation should be performed on.
59
59
  # It is random by default.
60
60
  # @option arguments [Boolean] :realtime If true, the request is real-time as opposed to near-real-time. Server default: true.
61
- # @option arguments [String] :routing A custom value that is used to route operations to a specific shard.
61
+ # @option arguments [String, Array<String>] :routing A custom value that is used to route operations to a specific shard.
62
62
  # @option arguments [Boolean] :term_statistics If `true`, the response includes:
63
63
  # - The total term frequency (how often a term occurs in all documents).
64
64
  # - The document frequency (the number of documents containing the current term).
@@ -36,7 +36,7 @@ module Elasticsearch
36
36
  # If the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response.
37
37
  # It helps determine why the returned structure was chosen.
38
38
  #
39
- # @option arguments [String] :column_names If `format` is set to `delimited`, you can specify the column names in a comma-separated list.
39
+ # @option arguments [String, Array<String>] :column_names If `format` is set to `delimited`, you can specify the column names in a comma-separated list.
40
40
  # If this parameter is not specified, the structure finder uses the column names from the header row of the text.
41
41
  # If the text does not have a header row, columns are named "column1", "column2", "column3", for example.
42
42
  # @option arguments [String] :delimiter If you have set `format` to `delimited`, you can specify the character used to delimit the values in each row.
@@ -37,7 +37,7 @@ module Elasticsearch
37
37
  # If the structure finder produces unexpected results, specify the `explain` query parameter and an explanation will appear in the response.
38
38
  # It helps determine why the returned structure was chosen.
39
39
  #
40
- # @option arguments [String] :column_names If the format is `delimited`, you can specify the column names in a comma-separated list.
40
+ # @option arguments [String, Array<String>] :column_names If the format is `delimited`, you can specify the column names in a comma-separated list.
41
41
  # If this parameter is not specified, the structure finder uses the column names from the header row of the text.
42
42
  # If the text does not have a header role, columns are named "column1", "column2", "column3", for example.
43
43
  # @option arguments [String] :delimiter If you the format is `delimited`, you can specify the character used to delimit the values in each row.
@@ -40,7 +40,7 @@ module Elasticsearch
40
40
  # It must be a character set that is supported by the JVM that Elasticsearch uses.
41
41
  # For example, `UTF-8`, `UTF-16LE`, `windows-1252`, or `EUC-JP`.
42
42
  # If this parameter is not specified, the structure finder chooses an appropriate character set.
43
- # @option arguments [String] :column_names If you have set format to `delimited`, you can specify the column names in a comma-separated list.
43
+ # @option arguments [String, Array<String>] :column_names If you have set format to `delimited`, you can specify the column names in a comma-separated list.
44
44
  # If this parameter is not specified, the structure finder uses the column names from the header row of the text.
45
45
  # If the text does not have a header role, columns are named "column1", "column2", "column3", for example.
46
46
  # @option arguments [String] :delimiter If you have set `format` to `delimited`, you can specify the character used to delimit the values in each row.
@@ -22,11 +22,23 @@ module Elasticsearch
22
22
  module API
23
23
  module Transform
24
24
  module Actions
25
- # Retrieves transform usage information for transform nodes
25
+ # Get node stats.
26
+ # Get per-node information about transform usage.
26
27
  #
28
+ # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
29
+ # when they occur.
30
+ # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
31
+ # returned by Elasticsearch.
32
+ # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
33
+ # For example `"exists_time": "1h"` for humans and
34
+ # `"exists_time_in_millis": 3600000` for computers. When disabled the human
35
+ # readable values will be omitted. This makes sense for responses being consumed
36
+ # only by machines.
37
+ # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
38
+ # this option for debugging only.
27
39
  # @option arguments [Hash] :headers Custom HTTP headers
28
40
  #
29
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-node-stats.html
41
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-node-stats
30
42
  #
31
43
  def get_node_stats(arguments = {})
32
44
  request_opts = { endpoint: arguments[:endpoint] || 'transform.get_node_stats' }
@@ -38,7 +50,7 @@ module Elasticsearch
38
50
 
39
51
  method = Elasticsearch::API::HTTP_GET
40
52
  path = '_transform/_node_stats'
41
- params = {}
53
+ params = Utils.process_params(arguments)
42
54
 
43
55
  Elasticsearch::API::Response.new(
44
56
  perform_request(method, path, params, body, headers, request_opts)
@@ -37,7 +37,7 @@ module Elasticsearch
37
37
  # there are no matches or only partial matches. Server default: true.
38
38
  # @option arguments [Integer] :from Skips the specified number of transforms. Server default: 0.
39
39
  # @option arguments [Integer] :size Specifies the maximum number of transforms to obtain. Server default: 100.
40
- # @option arguments [Time] :timeout Controls the time to wait for the stats
40
+ # @option arguments [Time] :timeout Controls the time to wait for the stats Server default: 30s.
41
41
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
42
42
  # when they occur.
43
43
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -48,7 +48,7 @@ module Elasticsearch
48
48
  # If 'false', it does nothing with refreshes. Server default: false.
49
49
  # @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias.
50
50
  # @option arguments [Integer] :retry_on_conflict The number of times the operation should be retried when a conflict occurs. Server default: 0.
51
- # @option arguments [String] :routing A custom value used to route operations to a specific shard.
51
+ # @option arguments [String, Array<String>] :routing A custom value used to route operations to a specific shard.
52
52
  # @option arguments [Time] :timeout The period to wait for the following operations: dynamic mapping updates and waiting for active shards.
53
53
  # Elasticsearch waits for at least the timeout period before failing.
54
54
  # The actual wait time could be longer, particularly when multiple waits occur. Server default: 1m.
@@ -109,7 +109,7 @@ module Elasticsearch
109
109
  # This parameter can be used only when the `q` query string parameter is specified.
110
110
  # @option arguments [String, Array<String>] :expand_wildcards The type of index that wildcard patterns can match.
111
111
  # If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
112
- # It supports comma-separated values, such as `open,hidden`.
112
+ # It supports comma-separated values, such as `open,hidden`. Server default: open.
113
113
  # @option arguments [Integer] :from Skips the specified number of documents. Server default: 0.
114
114
  # @option arguments [Boolean] :ignore_unavailable If `false`, the request returns an error if it targets a missing or closed index.
115
115
  # @option arguments [Boolean] :lenient If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored.
@@ -128,7 +128,7 @@ module Elasticsearch
128
128
  # @option arguments [Boolean] :request_cache If `true`, the request cache is used for this request.
129
129
  # It defaults to the index-level setting.
130
130
  # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. Server default: -1.
131
- # @option arguments [String] :routing A custom value used to route operations to a specific shard.
131
+ # @option arguments [String, Array<String>] :routing A custom value used to route operations to a specific shard.
132
132
  # @option arguments [Time] :scroll The period to retain the search context for scrolling. Server default: 5m.
133
133
  # @option arguments [Integer] :scroll_size The size of the scroll request that powers the operation. Server default: 1000.
134
134
  # @option arguments [Time] :search_timeout An explicit timeout for each search request.
@@ -27,7 +27,7 @@ module Elasticsearch
27
27
  #
28
28
  # @option arguments [String] :task_id The ID for the task. (*Required*)
29
29
  # @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second.
30
- # To turn off throttling, set it to `-1`. Server default: -1.
30
+ # To turn off throttling, set it to `-1`. (*Required*)
31
31
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
32
32
  # when they occur.
33
33
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -35,8 +35,8 @@ module Elasticsearch
35
35
  # @option arguments [String] :id The identifier for the watch. (*Required*)
36
36
  # @option arguments [Boolean] :active The initial state of the watch.
37
37
  # The default value is `true`, which means the watch is active by default. Server default: true.
38
- # @option arguments [Integer] :if_primary_term only update the watch if the last operation that has changed the watch has the specified primary term
39
- # @option arguments [Integer] :if_seq_no only update the watch if the last operation that has changed the watch has the specified sequence number
38
+ # @option arguments [Integer] :if_primary_term Only update the watch if the last operation that has changed the watch has the specified primary term
39
+ # @option arguments [Integer] :if_seq_no Only update the watch if the last operation that has changed the watch has the specified sequence number
40
40
  # @option arguments [Integer] :version Explicit version number for concurrency control
41
41
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
42
42
  # when they occur.
@@ -30,7 +30,7 @@ module Elasticsearch
30
30
  #
31
31
  # @option arguments [Array<String>] :categories A comma-separated list of the information categories to include in the response.
32
32
  # For example, `build,license,features`.
33
- # @option arguments [Boolean] :accept_enterprise If this param is used it must be set to true
33
+ # @option arguments [Boolean] :accept_enterprise If used, this otherwise ignored parameter must be set to true
34
34
  # @option arguments [Boolean] :human Defines whether additional human-readable information is included in the response.
35
35
  # In particular, it adds descriptions and a tag line. Server default: true.
36
36
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
@@ -102,7 +102,6 @@ module Elasticsearch
102
102
  operations = %w[index create delete update]
103
103
 
104
104
  case
105
-
106
105
  # Hashes with `:data`
107
106
  when payload.any? { |d| d.is_a?(Hash) && d.values.first.is_a?(Hash) && operations.include?(d.keys.first.to_s) && (d.values.first[:data] || d.values.first['data']) }
108
107
  payload = payload.
@@ -117,17 +116,14 @@ module Elasticsearch
117
116
  end.
118
117
  map { |item| Elasticsearch::API.serializer.dump(item) }
119
118
  payload << '' unless payload.empty?
120
-
121
119
  # Array of strings
122
120
  when payload.all? { |d| d.is_a? String }
123
121
  payload << ''
124
-
125
122
  # Header/Data pairs
126
123
  else
127
124
  payload = payload.map { |item| Elasticsearch::API.serializer.dump(item) }
128
125
  payload << ''
129
126
  end
130
-
131
127
  payload = payload.join("\n")
132
128
  end
133
129
 
@@ -17,7 +17,7 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module API
20
- VERSION = '9.2.0'.freeze
21
- ES_SPECIFICATION_COMMIT = 'd520d9e8cf14cad487de5e0654007686c395b494'.freeze
20
+ VERSION = '9.3.0'.freeze
21
+ ES_SPECIFICATION_COMMIT = 'c2cdbfe0c3812eedea4a98c5d8375f240b779a0f'.freeze
22
22
  end
23
23
  end
@@ -28,6 +28,7 @@ module Elasticsearch
28
28
  # It includes the namespace modules from ./api/actions
29
29
  module API
30
30
  include Elasticsearch::API::Actions
31
+
31
32
  DEFAULT_SERIALIZER = MultiJson
32
33
 
33
34
  HTTP_GET = 'GET'.freeze
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.0
4
+ version: 9.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic Client Library Maintainers
@@ -9,6 +9,20 @@ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: base64
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
12
26
  - !ruby/object:Gem::Dependency
13
27
  name: multi_json
14
28
  requirement: !ruby/object:Gem::Requirement
@@ -285,6 +299,7 @@ files:
285
299
  - lib/elasticsearch/api/actions/bulk.rb
286
300
  - lib/elasticsearch/api/actions/cat/aliases.rb
287
301
  - lib/elasticsearch/api/actions/cat/allocation.rb
302
+ - lib/elasticsearch/api/actions/cat/circuit_breaker.rb
288
303
  - lib/elasticsearch/api/actions/cat/component_templates.rb
289
304
  - lib/elasticsearch/api/actions/cat/count.rb
290
305
  - lib/elasticsearch/api/actions/cat/fielddata.rb
@@ -391,8 +406,11 @@ files:
391
406
  - lib/elasticsearch/api/actions/esql/async_query_delete.rb
392
407
  - lib/elasticsearch/api/actions/esql/async_query_get.rb
393
408
  - lib/elasticsearch/api/actions/esql/async_query_stop.rb
409
+ - lib/elasticsearch/api/actions/esql/delete_view.rb
394
410
  - lib/elasticsearch/api/actions/esql/get_query.rb
411
+ - lib/elasticsearch/api/actions/esql/get_view.rb
395
412
  - lib/elasticsearch/api/actions/esql/list_queries.rb
413
+ - lib/elasticsearch/api/actions/esql/put_view.rb
396
414
  - lib/elasticsearch/api/actions/esql/query.rb
397
415
  - lib/elasticsearch/api/actions/exists.rb
398
416
  - lib/elasticsearch/api/actions/exists_source.rb
@@ -438,6 +456,7 @@ files:
438
456
  - lib/elasticsearch/api/actions/indices/delete_data_stream.rb
439
457
  - lib/elasticsearch/api/actions/indices/delete_data_stream_options.rb
440
458
  - lib/elasticsearch/api/actions/indices/delete_index_template.rb
459
+ - lib/elasticsearch/api/actions/indices/delete_sample_configuration.rb
441
460
  - lib/elasticsearch/api/actions/indices/delete_template.rb
442
461
  - lib/elasticsearch/api/actions/indices/disk_usage.rb
443
462
  - lib/elasticsearch/api/actions/indices/downsample.rb
@@ -451,6 +470,7 @@ files:
451
470
  - lib/elasticsearch/api/actions/indices/forcemerge.rb
452
471
  - lib/elasticsearch/api/actions/indices/get.rb
453
472
  - lib/elasticsearch/api/actions/indices/get_alias.rb
473
+ - lib/elasticsearch/api/actions/indices/get_all_sample_configuration.rb
454
474
  - lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb
455
475
  - lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb
456
476
  - lib/elasticsearch/api/actions/indices/get_data_stream.rb
@@ -461,6 +481,9 @@ files:
461
481
  - lib/elasticsearch/api/actions/indices/get_index_template.rb
462
482
  - lib/elasticsearch/api/actions/indices/get_mapping.rb
463
483
  - lib/elasticsearch/api/actions/indices/get_migrate_reindex_status.rb
484
+ - lib/elasticsearch/api/actions/indices/get_sample.rb
485
+ - lib/elasticsearch/api/actions/indices/get_sample_configuration.rb
486
+ - lib/elasticsearch/api/actions/indices/get_sample_stats.rb
464
487
  - lib/elasticsearch/api/actions/indices/get_settings.rb
465
488
  - lib/elasticsearch/api/actions/indices/get_template.rb
466
489
  - lib/elasticsearch/api/actions/indices/migrate_reindex.rb
@@ -475,6 +498,7 @@ files:
475
498
  - lib/elasticsearch/api/actions/indices/put_data_stream_settings.rb
476
499
  - lib/elasticsearch/api/actions/indices/put_index_template.rb
477
500
  - lib/elasticsearch/api/actions/indices/put_mapping.rb
501
+ - lib/elasticsearch/api/actions/indices/put_sample_configuration.rb
478
502
  - lib/elasticsearch/api/actions/indices/put_settings.rb
479
503
  - lib/elasticsearch/api/actions/indices/put_template.rb
480
504
  - lib/elasticsearch/api/actions/indices/recovery.rb
@@ -514,11 +538,14 @@ files:
514
538
  - lib/elasticsearch/api/actions/inference/put_elser.rb
515
539
  - lib/elasticsearch/api/actions/inference/put_googleaistudio.rb
516
540
  - lib/elasticsearch/api/actions/inference/put_googlevertexai.rb
541
+ - lib/elasticsearch/api/actions/inference/put_groq.rb
517
542
  - lib/elasticsearch/api/actions/inference/put_hugging_face.rb
518
543
  - lib/elasticsearch/api/actions/inference/put_jinaai.rb
519
544
  - lib/elasticsearch/api/actions/inference/put_llama.rb
520
545
  - lib/elasticsearch/api/actions/inference/put_mistral.rb
546
+ - lib/elasticsearch/api/actions/inference/put_nvidia.rb
521
547
  - lib/elasticsearch/api/actions/inference/put_openai.rb
548
+ - lib/elasticsearch/api/actions/inference/put_openshift_ai.rb
522
549
  - lib/elasticsearch/api/actions/inference/put_voyageai.rb
523
550
  - lib/elasticsearch/api/actions/inference/put_watsonx.rb
524
551
  - lib/elasticsearch/api/actions/inference/rerank.rb
@@ -841,7 +868,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
841
868
  - !ruby/object:Gem::Version
842
869
  version: '0'
843
870
  requirements: []
844
- rubygems_version: 3.6.9
871
+ rubygems_version: 4.0.3
845
872
  specification_version: 4
846
873
  summary: Ruby API for Elasticsearch.
847
874
  test_files: []