Skip to content

Commit f131437

Browse files
committed
[API] Updates to latest spec:
- indices.create_from body is no longer required. - indices.simulate_index_template adds body parameter.
1 parent 23b862e commit f131437

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/indices/create_from.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def create_from(arguments = {})
5555
end
5656
request_opts[:defined_params] = defined_params unless defined_params.empty?
5757

58-
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
5958
raise ArgumentError, "Required argument 'source' missing" unless arguments[:source]
6059
raise ArgumentError, "Required argument 'dest' missing" unless arguments[:dest]
6160

elasticsearch-api/lib/elasticsearch/api/actions/indices/disk_usage.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module Actions
2929
# NOTE: The total size of fields of the analyzed shards of the index in the response is usually smaller than the index `store_size` value because some small metadata files are ignored and some parts of data files might not be scanned by the API.
3030
# Since stored fields are stored together in a compressed format, the sizes of stored fields are also estimates and can be inaccurate.
3131
# The stored size of the `_id` field is likely underestimated while the `_source` field is overestimated.
32+
# For usage examples see the External documentation or refer to {https://www.elastic.co/docs/reference/elasticsearch/rest-apis/index-disk-usage Analyze the index disk usage example} for an example.
3233
# This functionality is Experimental and may be changed or removed
3334
# completely in a future release. Elastic will take a best effort approach
3435
# to fix any issues, but experimental features are not subject to the

elasticsearch-api/lib/elasticsearch/api/actions/indices/simulate_index_template.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module Actions
4242
# @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
4343
# this option for debugging only.
4444
# @option arguments [Hash] :headers Custom HTTP headers
45+
# @option arguments [Hash] :body index_template
4546
#
4647
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-simulate-index-template
4748
#
@@ -58,7 +59,7 @@ def simulate_index_template(arguments = {})
5859
arguments = arguments.clone
5960
headers = arguments.delete(:headers) || {}
6061

61-
body = nil
62+
body = arguments.delete(:body)
6263

6364
_name = arguments.delete(:name)
6465

elasticsearch-api/lib/elasticsearch/api/actions/license/get.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ module Actions
2727
#
2828
# @option arguments [Boolean] :accept_enterprise If `true`, this parameter returns enterprise for Enterprise license types. If `false`, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility.
2929
# This parameter is deprecated and will always be set to true in 8.x. Server default: true.
30-
# @option arguments [Boolean] :local Specifies whether to retrieve local information. The default value is `false`, which means the information is retrieved from the master node.
30+
# @option arguments [Boolean] :local Specifies whether to retrieve local information.
31+
# From 9.2 onwards the default value is `true`, which means the information is retrieved from the responding node.
32+
# In earlier versions the default is `false`, which means the information is retrieved from the elected master node. Server default: true.
3133
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
3234
# when they occur.
3335
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

elasticsearch-api/lib/elasticsearch/api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
module Elasticsearch
1919
module API
2020
VERSION = '9.2.0'.freeze
21-
ES_SPECIFICATION_COMMIT = '98ec7ac24c4fbb1acb2abccf8325251ad4a1e4c6'.freeze
21+
ES_SPECIFICATION_COMMIT = 'a4676aabf1b13839ec5bef82f775aad25dbdec22'.freeze
2222
end
2323
end

0 commit comments

Comments
 (0)