elasticsearch-api 9.1.2 → 9.2.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 (140) hide show
  1. checksums.yaml +4 -4
  2. data/lib/elasticsearch/api/actions/async_search/submit.rb +12 -4
  3. data/lib/elasticsearch/api/actions/cat/aliases.rb +9 -0
  4. data/lib/elasticsearch/api/actions/cat/allocation.rb +9 -1
  5. data/lib/elasticsearch/api/actions/cat/component_templates.rb +9 -0
  6. data/lib/elasticsearch/api/actions/cat/count.rb +17 -0
  7. data/lib/elasticsearch/api/actions/cat/fielddata.rb +9 -1
  8. data/lib/elasticsearch/api/actions/cat/health.rb +10 -2
  9. data/lib/elasticsearch/api/actions/cat/indices.rb +10 -3
  10. data/lib/elasticsearch/api/actions/cat/master.rb +10 -1
  11. data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +11 -3
  12. data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +9 -1
  13. data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +9 -2
  14. data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +11 -4
  15. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +10 -1
  16. data/lib/elasticsearch/api/actions/cat/nodes.rb +10 -3
  17. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +10 -2
  18. data/lib/elasticsearch/api/actions/cat/plugins.rb +10 -1
  19. data/lib/elasticsearch/api/actions/cat/recovery.rb +9 -2
  20. data/lib/elasticsearch/api/actions/cat/repositories.rb +9 -0
  21. data/lib/elasticsearch/api/actions/cat/segments.rb +9 -1
  22. data/lib/elasticsearch/api/actions/cat/shards.rb +9 -2
  23. data/lib/elasticsearch/api/actions/cat/snapshots.rb +9 -1
  24. data/lib/elasticsearch/api/actions/cat/tasks.rb +10 -2
  25. data/lib/elasticsearch/api/actions/cat/templates.rb +10 -1
  26. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +9 -1
  27. data/lib/elasticsearch/api/actions/cat/transforms.rb +9 -1
  28. data/lib/elasticsearch/api/actions/close_point_in_time.rb +2 -0
  29. data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +5 -0
  30. data/lib/elasticsearch/api/actions/cluster/state.rb +1 -1
  31. data/lib/elasticsearch/api/actions/connector/delete.rb +1 -1
  32. data/lib/elasticsearch/api/actions/connector/list.rb +2 -2
  33. data/lib/elasticsearch/api/actions/connector/sync_job_list.rb +2 -2
  34. data/lib/elasticsearch/api/actions/count.rb +10 -2
  35. data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +1 -1
  36. data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +1 -1
  37. data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +1 -1
  38. data/lib/elasticsearch/api/actions/delete_by_query.rb +2 -2
  39. data/lib/elasticsearch/api/actions/eql/get.rb +1 -1
  40. data/lib/elasticsearch/api/actions/eql/search.rb +8 -0
  41. data/lib/elasticsearch/api/actions/esql/async_query.rb +1 -1
  42. data/lib/elasticsearch/api/actions/esql/query.rb +1 -1
  43. data/lib/elasticsearch/api/actions/explain.rb +2 -2
  44. data/lib/elasticsearch/api/actions/field_caps.rb +8 -0
  45. data/lib/elasticsearch/api/actions/fleet/search.rb +2 -6
  46. data/lib/elasticsearch/api/actions/get.rb +1 -0
  47. data/lib/elasticsearch/api/actions/get_script.rb +1 -1
  48. data/lib/elasticsearch/api/actions/graph/explore.rb +2 -6
  49. data/lib/elasticsearch/api/actions/index_lifecycle_management/move_to_step.rb +1 -0
  50. data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +1 -0
  51. data/lib/elasticsearch/api/actions/indices/analyze.rb +3 -6
  52. data/lib/elasticsearch/api/actions/indices/create_from.rb +0 -1
  53. data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +1 -1
  54. data/lib/elasticsearch/api/actions/indices/delete_data_stream_options.rb +1 -1
  55. data/lib/elasticsearch/api/actions/indices/disk_usage.rb +1 -0
  56. data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +1 -1
  57. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +1 -1
  58. data/lib/elasticsearch/api/actions/indices/get_data_stream_mappings.rb +75 -0
  59. data/lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb +1 -0
  60. data/lib/elasticsearch/api/actions/indices/put_data_stream_mappings.rb +84 -0
  61. data/lib/elasticsearch/api/actions/indices/put_data_stream_options.rb +1 -0
  62. data/lib/elasticsearch/api/actions/indices/put_index_template.rb +1 -1
  63. data/lib/elasticsearch/api/actions/indices/put_template.rb +1 -1
  64. data/lib/elasticsearch/api/actions/indices/refresh.rb +1 -0
  65. data/lib/elasticsearch/api/actions/indices/resolve_index.rb +9 -0
  66. data/lib/elasticsearch/api/actions/indices/rollover.rb +1 -1
  67. data/lib/elasticsearch/api/actions/indices/shrink.rb +1 -0
  68. data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +2 -1
  69. data/lib/elasticsearch/api/actions/indices/simulate_template.rb +1 -1
  70. data/lib/elasticsearch/api/actions/indices/split.rb +1 -0
  71. data/lib/elasticsearch/api/actions/indices/stats.rb +1 -1
  72. data/lib/elasticsearch/api/actions/indices/validate_query.rb +1 -1
  73. data/lib/elasticsearch/api/actions/inference/completion.rb +1 -0
  74. data/lib/elasticsearch/api/actions/inference/inference.rb +1 -0
  75. data/lib/elasticsearch/api/actions/inference/put.rb +2 -1
  76. data/lib/elasticsearch/api/actions/inference/put_ai21.rb +79 -0
  77. data/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +1 -0
  78. data/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +1 -0
  79. data/lib/elasticsearch/api/actions/inference/put_amazonsagemaker.rb +1 -0
  80. data/lib/elasticsearch/api/actions/inference/put_anthropic.rb +1 -0
  81. data/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +1 -0
  82. data/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +1 -0
  83. data/lib/elasticsearch/api/actions/inference/put_cohere.rb +1 -0
  84. data/lib/elasticsearch/api/actions/inference/put_contextualai.rb +84 -0
  85. data/lib/elasticsearch/api/actions/inference/put_custom.rb +1 -0
  86. data/lib/elasticsearch/api/actions/inference/put_deepseek.rb +1 -0
  87. data/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +1 -0
  88. data/lib/elasticsearch/api/actions/inference/put_elser.rb +1 -0
  89. data/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +1 -0
  90. data/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +1 -0
  91. data/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +1 -0
  92. data/lib/elasticsearch/api/actions/inference/put_jinaai.rb +1 -0
  93. data/lib/elasticsearch/api/actions/inference/put_llama.rb +79 -0
  94. data/lib/elasticsearch/api/actions/inference/put_mistral.rb +1 -0
  95. data/lib/elasticsearch/api/actions/inference/put_openai.rb +1 -0
  96. data/lib/elasticsearch/api/actions/inference/put_voyageai.rb +1 -0
  97. data/lib/elasticsearch/api/actions/inference/put_watsonx.rb +1 -0
  98. data/lib/elasticsearch/api/actions/inference/rerank.rb +1 -0
  99. data/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +1 -0
  100. data/lib/elasticsearch/api/actions/inference/stream_completion.rb +1 -0
  101. data/lib/elasticsearch/api/actions/inference/text_embedding.rb +1 -0
  102. data/lib/elasticsearch/api/actions/license/get.rb +3 -1
  103. data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +2 -1
  104. data/lib/elasticsearch/api/actions/machine_learning/get_overall_buckets.rb +1 -1
  105. data/lib/elasticsearch/api/actions/msearch.rb +7 -0
  106. data/lib/elasticsearch/api/actions/msearch_template.rb +8 -0
  107. data/lib/elasticsearch/api/actions/nodes/stats.rb +1 -1
  108. data/lib/elasticsearch/api/actions/open_point_in_time.rb +8 -0
  109. data/lib/elasticsearch/api/actions/project/tags.rb +65 -0
  110. data/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +1 -1
  111. data/lib/elasticsearch/api/actions/reindex.rb +1 -1
  112. data/lib/elasticsearch/api/actions/render_search_template.rb +3 -6
  113. data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +3 -6
  114. data/lib/elasticsearch/api/actions/search.rb +11 -2
  115. data/lib/elasticsearch/api/actions/search_mvt.rb +9 -1
  116. data/lib/elasticsearch/api/actions/search_template.rb +8 -0
  117. data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +1 -1
  118. data/lib/elasticsearch/api/actions/security/get_settings.rb +1 -1
  119. data/lib/elasticsearch/api/actions/security/get_stats.rb +62 -0
  120. data/lib/elasticsearch/api/actions/security/update_settings.rb +1 -1
  121. data/lib/elasticsearch/api/actions/simulate/ingest.rb +4 -0
  122. data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +1 -1
  123. data/lib/elasticsearch/api/actions/snapshot/repository_analyze.rb +17 -10
  124. data/lib/elasticsearch/api/actions/snapshot/status.rb +5 -0
  125. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +1 -0
  126. data/lib/elasticsearch/api/actions/sql/get_async.rb +1 -1
  127. data/lib/elasticsearch/api/actions/sql/query.rb +8 -0
  128. data/lib/elasticsearch/api/actions/streams/logs_disable.rb +23 -3
  129. data/lib/elasticsearch/api/actions/streams/logs_enable.rb +26 -3
  130. data/lib/elasticsearch/api/actions/streams/status.rb +20 -3
  131. data/lib/elasticsearch/api/actions/tasks/list.rb +1 -1
  132. data/lib/elasticsearch/api/actions/terms_enum.rb +2 -6
  133. data/lib/elasticsearch/api/actions/transform/get_node_stats.rb +1 -1
  134. data/lib/elasticsearch/api/actions/update_by_query.rb +2 -2
  135. data/lib/elasticsearch/api/actions/watcher/get_settings.rb +1 -1
  136. data/lib/elasticsearch/api/actions/watcher/put_watch.rb +1 -0
  137. data/lib/elasticsearch/api/actions/watcher/update_settings.rb +1 -1
  138. data/lib/elasticsearch/api/version.rb +2 -2
  139. data/lib/elasticsearch/api.rb +1 -0
  140. metadata +9 -2
@@ -108,26 +108,33 @@ module Elasticsearch
108
108
  #
109
109
  # @option arguments [String] :repository The name of the repository. (*Required*)
110
110
  # @option arguments [Integer] :blob_count The total number of blobs to write to the repository during the test.
111
- # For realistic experiments, you should set it to at least `2000`. Server default: 100.
112
- # @option arguments [Integer] :concurrency The number of operations to run concurrently during the test. Server default: 10.
111
+ # For realistic experiments, set this parameter to at least `2000`. Server default: 100.
112
+ # @option arguments [Integer] :concurrency The number of operations to run concurrently during the test.
113
+ # For realistic experiments, leave this parameter unset. Server default: 10.
113
114
  # @option arguments [Boolean] :detailed Indicates whether to return detailed results, including timing information for every operation performed during the analysis.
114
115
  # If false, it returns only a summary of the analysis.
115
116
  # @option arguments [Integer] :early_read_node_count The number of nodes on which to perform an early read operation while writing each blob.
116
- # Early read operations are only rarely performed. Server default: 2.
117
+ # Early read operations are only rarely performed.
118
+ # For realistic experiments, leave this parameter unset. Server default: 2.
117
119
  # @option arguments [Integer, String] :max_blob_size The maximum size of a blob to be written during the test.
118
- # For realistic experiments, you should set it to at least `2gb`. Server default: 10mb.
120
+ # For realistic experiments, set this parameter to at least `2gb`. Server default: 10mb.
119
121
  # @option arguments [Integer, String] :max_total_data_size An upper limit on the total size of all the blobs written during the test.
120
- # For realistic experiments, you should set it to at least `1tb`. Server default: 1gb.
121
- # @option arguments [Float] :rare_action_probability The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob. Server default: 0.02.
122
- # @option arguments [Boolean] :rarely_abort_writes Indicates whether to rarely cancel writes before they complete. Server default: true.
123
- # @option arguments [Integer] :read_node_count The number of nodes on which to read a blob after writing. Server default: 10.
122
+ # For realistic experiments, set this parameter to at least `1tb`. Server default: 1gb.
123
+ # @option arguments [Float] :rare_action_probability The probability of performing a rare action such as an early read, an overwrite, or an aborted write on each blob.
124
+ # For realistic experiments, leave this parameter unset. Server default: 0.02.
125
+ # @option arguments [Boolean] :rarely_abort_writes Indicates whether to rarely cancel writes before they complete.
126
+ # For realistic experiments, leave this parameter unset. Server default: true.
127
+ # @option arguments [Integer] :read_node_count The number of nodes on which to read a blob after writing.
128
+ # For realistic experiments, leave this parameter unset. Server default: 10.
124
129
  # @option arguments [Integer] :register_operation_count The minimum number of linearizable register operations to perform in total.
125
- # For realistic experiments, you should set it to at least `100`. Server default: 10.
130
+ # For realistic experiments, set this parameter to at least `100`. Server default: 10.
126
131
  # @option arguments [Integer] :seed The seed for the pseudo-random number generator used to generate the list of operations performed during the test.
127
132
  # To repeat the same set of operations in multiple experiments, use the same seed in each experiment.
128
133
  # Note that the operations are performed concurrently so might not always happen in the same order on each run.
134
+ # For realistic experiments, leave this parameter unset.
129
135
  # @option arguments [Time] :timeout The period of time to wait for the test to complete.
130
- # If no response is received before the timeout expires, the test is cancelled and returns an error. Server default: 30s.
136
+ # If no response is received before the timeout expires, the test is cancelled and returns an error.
137
+ # For realistic experiments, set this parameter sufficiently long to allow the test to complete. Server default: 30s.
131
138
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
132
139
  # when they occur.
133
140
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -29,6 +29,11 @@ module Elasticsearch
29
29
  # If you omit the `<snapshot>` request path parameter, the request retrieves information only for currently running snapshots.
30
30
  # This usage is preferred.
31
31
  # If needed, you can specify `<repository>` and `<snapshot>` to retrieve information for specific snapshots, even if they're not currently running.
32
+ # Note that the stats will not be available for any shard snapshots in an ongoing snapshot completed by a node that (even momentarily) left the cluster.
33
+ # Loading the stats from the repository is an expensive operation (see the WARNING below).
34
+ # Therefore the stats values for such shards will be -1 even though the "stage" value will be "DONE", in order to minimize latency.
35
+ # A "description" field will be present for a shard snapshot completed by a departed node explaining why the shard snapshot's stats results are invalid.
36
+ # Consequently, the total stats for the index will be less than expected due to the missing values from these shards.
32
37
  # WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive.
33
38
  # The API requires a read from the repository for each shard in each snapshot.
34
39
  # For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards).
@@ -58,6 +58,7 @@ module Elasticsearch
58
58
  end
59
59
  request_opts[:defined_params] = defined_params unless defined_params.empty?
60
60
 
61
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
61
62
  raise ArgumentError, "Required argument 'policy_id' missing" unless arguments[:policy_id]
62
63
 
63
64
  arguments = arguments.clone
@@ -33,7 +33,7 @@ module Elasticsearch
33
33
  # You must specify a format using this parameter or the `Accept` HTTP header.
34
34
  # If you specify both, the API uses this parameter.
35
35
  # @option arguments [Time] :keep_alive The retention period for the search and its results.
36
- # It defaults to the `keep_alive` period for the original SQL search.
36
+ # It defaults to the `keep_alive` period for the original SQL search. Server default: 5d.
37
37
  # @option arguments [Time] :wait_for_completion_timeout The period to wait for complete results.
38
38
  # It defaults to no timeout, meaning the request waits for complete search results.
39
39
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
@@ -28,6 +28,14 @@ module Elasticsearch
28
28
  # @option arguments [String] :format The format for the response.
29
29
  # You can also specify a format using the `Accept` HTTP header.
30
30
  # If you specify both this parameter and the `Accept` HTTP header, this parameter takes precedence.
31
+ # @option arguments [String] :project_routing Specifies a subset of projects to target for the search using project
32
+ # metadata tags in a subset of Lucene query syntax.
33
+ # Allowed Lucene queries: the _alias tag and a single value (possibly wildcarded).
34
+ # Examples:
35
+ # _alias:my-project
36
+ # _alias:_origin
37
+ # _alias:*pr*
38
+ # Supported in serverless only.
31
39
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
32
40
  # when they occur.
33
41
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -22,11 +22,31 @@ module Elasticsearch
22
22
  module API
23
23
  module Streams
24
24
  module Actions
25
- # Disable the Logs Streams feature for this cluster
25
+ # Disable logs stream.
26
+ # Turn off the logs stream feature for this cluster.
27
+ # This functionality is Experimental and may be changed or removed
28
+ # completely in a future release. Elastic will take a best effort approach
29
+ # to fix any issues, but experimental features are not subject to the
30
+ # support SLA of official GA features.
26
31
  #
32
+ # @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
33
+ # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
34
+ # @option arguments [Time] :timeout The period to wait for a response.
35
+ # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
36
+ # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
37
+ # when they occur.
38
+ # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
39
+ # returned by Elasticsearch.
40
+ # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
41
+ # For example `"exists_time": "1h"` for humans and
42
+ # `"exists_time_in_millis": 3600000` for computers. When disabled the human
43
+ # readable values will be omitted. This makes sense for responses being consumed
44
+ # only by machines.
45
+ # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
46
+ # this option for debugging only.
27
47
  # @option arguments [Hash] :headers Custom HTTP headers
28
48
  #
29
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-logs-disable.html
49
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch#TODO
30
50
  #
31
51
  def logs_disable(arguments = {})
32
52
  request_opts = { endpoint: arguments[:endpoint] || 'streams.logs_disable' }
@@ -38,7 +58,7 @@ module Elasticsearch
38
58
 
39
59
  method = Elasticsearch::API::HTTP_POST
40
60
  path = '_streams/logs/_disable'
41
- params = {}
61
+ params = Utils.process_params(arguments)
42
62
 
43
63
  Elasticsearch::API::Response.new(
44
64
  perform_request(method, path, params, body, headers, request_opts)
@@ -22,11 +22,34 @@ module Elasticsearch
22
22
  module API
23
23
  module Streams
24
24
  module Actions
25
- # Enable the Logs Streams feature for this cluster
25
+ # Enable logs stream.
26
+ # Turn on the logs stream feature for this cluster.
27
+ # NOTE: To protect existing data, this feature can be turned on only if the
28
+ # cluster does not have existing indices or data streams that match the pattern `logs|logs.*`.
29
+ # If those indices or data streams exist, a `409 - Conflict` response and error is returned.
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.
26
34
  #
35
+ # @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
36
+ # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
37
+ # @option arguments [Time] :timeout The period to wait for a response.
38
+ # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
39
+ # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
40
+ # when they occur.
41
+ # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
42
+ # returned by Elasticsearch.
43
+ # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
44
+ # For example `"exists_time": "1h"` for humans and
45
+ # `"exists_time_in_millis": 3600000` for computers. When disabled the human
46
+ # readable values will be omitted. This makes sense for responses being consumed
47
+ # only by machines.
48
+ # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
49
+ # this option for debugging only.
27
50
  # @option arguments [Hash] :headers Custom HTTP headers
28
51
  #
29
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-logs-enable.html
52
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch#TODO
30
53
  #
31
54
  def logs_enable(arguments = {})
32
55
  request_opts = { endpoint: arguments[:endpoint] || 'streams.logs_enable' }
@@ -38,7 +61,7 @@ module Elasticsearch
38
61
 
39
62
  method = Elasticsearch::API::HTTP_POST
40
63
  path = '_streams/logs/_enable'
41
- params = {}
64
+ params = Utils.process_params(arguments)
42
65
 
43
66
  Elasticsearch::API::Response.new(
44
67
  perform_request(method, path, params, body, headers, request_opts)
@@ -22,11 +22,28 @@ module Elasticsearch
22
22
  module API
23
23
  module Streams
24
24
  module Actions
25
- # Return the current status of the streams feature for each streams type
25
+ # Get the status of streams.
26
+ # Get the current status for all types of streams.
27
+ # This functionality is Experimental and may be changed or removed
28
+ # completely in a future release. Elastic will take a best effort approach
29
+ # to fix any issues, but experimental features are not subject to the
30
+ # support SLA of official GA features.
26
31
  #
32
+ # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
33
+ # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
34
+ # when they occur.
35
+ # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
36
+ # returned by Elasticsearch.
37
+ # @option arguments [Boolean] :human When set to `true` will return statistics in a format suitable for humans.
38
+ # For example `"exists_time": "1h"` for humans and
39
+ # `"exists_time_in_millis": 3600000` for computers. When disabled the human
40
+ # readable values will be omitted. This makes sense for responses being consumed
41
+ # only by machines.
42
+ # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
43
+ # this option for debugging only.
27
44
  # @option arguments [Hash] :headers Custom HTTP headers
28
45
  #
29
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-status.html
46
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch#TODO
30
47
  #
31
48
  def status(arguments = {})
32
49
  request_opts = { endpoint: arguments[:endpoint] || 'streams.status' }
@@ -38,7 +55,7 @@ module Elasticsearch
38
55
 
39
56
  method = Elasticsearch::API::HTTP_GET
40
57
  path = '_streams/status'
41
- params = {}
58
+ params = Utils.process_params(arguments)
42
59
 
43
60
  Elasticsearch::API::Response.new(
44
61
  perform_request(method, path, params, body, headers, request_opts)
@@ -88,7 +88,7 @@ module Elasticsearch
88
88
  # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about the running tasks.
89
89
  # This information is useful to distinguish tasks from each other but is more costly to run.
90
90
  # @option arguments [String] :group_by A key that is used to group tasks in the response.
91
- # The task lists can be grouped either by nodes or by parent tasks.
91
+ # The task lists can be grouped either by nodes or by parent tasks. Server default: nodes.
92
92
  # @option arguments [String, Array] :nodes A comma-separated list of node IDs or names that is used to limit the returned information.
93
93
  # @option arguments [String] :parent_task_id A parent task identifier that is used to limit returned information.
94
94
  # To return all tasks, omit this parameter or use a value of `-1`.
@@ -52,6 +52,7 @@ module Elasticsearch
52
52
  end
53
53
  request_opts[:defined_params] = defined_params unless defined_params.empty?
54
54
 
55
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
55
56
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
56
57
 
57
58
  arguments = arguments.clone
@@ -61,12 +62,7 @@ module Elasticsearch
61
62
 
62
63
  _index = arguments.delete(:index)
63
64
 
64
- method = if body
65
- Elasticsearch::API::HTTP_POST
66
- else
67
- Elasticsearch::API::HTTP_GET
68
- end
69
-
65
+ method = Elasticsearch::API::HTTP_POST
70
66
  path = "#{Utils.listify(_index)}/_terms_enum"
71
67
  params = Utils.process_params(arguments)
72
68
 
@@ -22,7 +22,7 @@ module Elasticsearch
22
22
  module API
23
23
  module Transform
24
24
  module Actions
25
- # Retrieves transform usage information for transform nodes.
25
+ # Retrieves transform usage information for transform nodes
26
26
  #
27
27
  # @option arguments [Hash] :headers Custom HTTP headers
28
28
  #
@@ -103,8 +103,8 @@ module Elasticsearch
103
103
  # @option arguments [Boolean] :analyze_wildcard If `true`, wildcard and prefix queries are analyzed.
104
104
  # This parameter can be used only when the `q` query string parameter is specified.
105
105
  # @option arguments [String] :conflicts The preferred behavior when update by query hits version conflicts: `abort` or `proceed`. Server default: abort.
106
- # @option arguments [String] :default_operator The default operator for query string query: `AND` or `OR`.
107
- # This parameter can be used only when the `q` query string parameter is specified. Server default: OR.
106
+ # @option arguments [String] :default_operator The default operator for query string query: `and` or `or`.
107
+ # This parameter can be used only when the `q` query string parameter is specified. Server default: or.
108
108
  # @option arguments [String] :df The field to use as default where no field prefix is given in the query string.
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.
@@ -27,7 +27,7 @@ module Elasticsearch
27
27
  # Only a subset of settings are shown, for example `index.auto_expand_replicas` and `index.number_of_replicas`.
28
28
  #
29
29
  # @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
30
- # If no response is received before the timeout expires, the request fails and returns an error.
30
+ # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
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
@@ -62,6 +62,7 @@ module Elasticsearch
62
62
  end
63
63
  request_opts[:defined_params] = defined_params unless defined_params.empty?
64
64
 
65
+ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
65
66
  raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
66
67
 
67
68
  arguments = arguments.clone
@@ -31,7 +31,7 @@ module Elasticsearch
31
31
  # Watcher shards must always be in the `data_content` tier.
32
32
  #
33
33
  # @option arguments [Time] :master_timeout The period to wait for a connection to the master node.
34
- # If no response is received before the timeout expires, the request fails and returns an error.
34
+ # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
35
35
  # @option arguments [Time] :timeout The period to wait for a response.
36
36
  # If no response is received before the timeout expires, the request fails and returns an error.
37
37
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
@@ -17,7 +17,7 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module API
20
- VERSION = '9.1.2'.freeze
21
- ES_SPECIFICATION_COMMIT = 'eeef9c87c1273e5dd3a5a313768bfa6728cd39cc'.freeze
20
+ VERSION = '9.2.0'.freeze
21
+ ES_SPECIFICATION_COMMIT = 'd520d9e8cf14cad487de5e0654007686c395b494'.freeze
22
22
  end
23
23
  end
@@ -71,6 +71,7 @@ module Elasticsearch
71
71
  :migration,
72
72
  :machine_learning,
73
73
  :nodes,
74
+ :project,
74
75
  :query_rules,
75
76
  :search_application,
76
77
  :searchable_snapshots,
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.1.2
4
+ version: 9.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic Client Library Maintainers
@@ -454,6 +454,7 @@ files:
454
454
  - lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb
455
455
  - lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb
456
456
  - lib/elasticsearch/api/actions/indices/get_data_stream.rb
457
+ - lib/elasticsearch/api/actions/indices/get_data_stream_mappings.rb
457
458
  - lib/elasticsearch/api/actions/indices/get_data_stream_options.rb
458
459
  - lib/elasticsearch/api/actions/indices/get_data_stream_settings.rb
459
460
  - lib/elasticsearch/api/actions/indices/get_field_mapping.rb
@@ -469,6 +470,7 @@ files:
469
470
  - lib/elasticsearch/api/actions/indices/promote_data_stream.rb
470
471
  - lib/elasticsearch/api/actions/indices/put_alias.rb
471
472
  - lib/elasticsearch/api/actions/indices/put_data_lifecycle.rb
473
+ - lib/elasticsearch/api/actions/indices/put_data_stream_mappings.rb
472
474
  - lib/elasticsearch/api/actions/indices/put_data_stream_options.rb
473
475
  - lib/elasticsearch/api/actions/indices/put_data_stream_settings.rb
474
476
  - lib/elasticsearch/api/actions/indices/put_index_template.rb
@@ -497,6 +499,7 @@ files:
497
499
  - lib/elasticsearch/api/actions/inference/get.rb
498
500
  - lib/elasticsearch/api/actions/inference/inference.rb
499
501
  - lib/elasticsearch/api/actions/inference/put.rb
502
+ - lib/elasticsearch/api/actions/inference/put_ai21.rb
500
503
  - lib/elasticsearch/api/actions/inference/put_alibabacloud.rb
501
504
  - lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb
502
505
  - lib/elasticsearch/api/actions/inference/put_amazonsagemaker.rb
@@ -504,6 +507,7 @@ files:
504
507
  - lib/elasticsearch/api/actions/inference/put_azureaistudio.rb
505
508
  - lib/elasticsearch/api/actions/inference/put_azureopenai.rb
506
509
  - lib/elasticsearch/api/actions/inference/put_cohere.rb
510
+ - lib/elasticsearch/api/actions/inference/put_contextualai.rb
507
511
  - lib/elasticsearch/api/actions/inference/put_custom.rb
508
512
  - lib/elasticsearch/api/actions/inference/put_deepseek.rb
509
513
  - lib/elasticsearch/api/actions/inference/put_elasticsearch.rb
@@ -512,6 +516,7 @@ files:
512
516
  - lib/elasticsearch/api/actions/inference/put_googlevertexai.rb
513
517
  - lib/elasticsearch/api/actions/inference/put_hugging_face.rb
514
518
  - lib/elasticsearch/api/actions/inference/put_jinaai.rb
519
+ - lib/elasticsearch/api/actions/inference/put_llama.rb
515
520
  - lib/elasticsearch/api/actions/inference/put_mistral.rb
516
521
  - lib/elasticsearch/api/actions/inference/put_openai.rb
517
522
  - lib/elasticsearch/api/actions/inference/put_voyageai.rb
@@ -631,6 +636,7 @@ files:
631
636
  - lib/elasticsearch/api/actions/nodes/usage.rb
632
637
  - lib/elasticsearch/api/actions/open_point_in_time.rb
633
638
  - lib/elasticsearch/api/actions/ping.rb
639
+ - lib/elasticsearch/api/actions/project/tags.rb
634
640
  - lib/elasticsearch/api/actions/put_script.rb
635
641
  - lib/elasticsearch/api/actions/query_rules/delete_rule.rb
636
642
  - lib/elasticsearch/api/actions/query_rules/delete_ruleset.rb
@@ -698,6 +704,7 @@ files:
698
704
  - lib/elasticsearch/api/actions/security/get_service_accounts.rb
699
705
  - lib/elasticsearch/api/actions/security/get_service_credentials.rb
700
706
  - lib/elasticsearch/api/actions/security/get_settings.rb
707
+ - lib/elasticsearch/api/actions/security/get_stats.rb
701
708
  - lib/elasticsearch/api/actions/security/get_token.rb
702
709
  - lib/elasticsearch/api/actions/security/get_user.rb
703
710
  - lib/elasticsearch/api/actions/security/get_user_privileges.rb
@@ -834,7 +841,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
834
841
  - !ruby/object:Gem::Version
835
842
  version: '0'
836
843
  requirements: []
837
- rubygems_version: 3.7.1
844
+ rubygems_version: 3.6.9
838
845
  specification_version: 4
839
846
  summary: Ruby API for Elasticsearch.
840
847
  test_files: []