Skip to content

Commit fe17ff0

Browse files
committed
[API] Generated code for 7.6
1 parent af49320 commit fe17ff0

File tree

14 files changed

+74
-18
lines changed

14 files changed

+74
-18
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def bulk(arguments = {})
4646

4747
body = arguments[:body]
4848
if body.is_a? Array
49-
payload = Utils.__bulkify(body)
49+
payload = Elasticsearch::API::Utils.__bulkify(body)
5050
else
5151
payload = body
5252
end

elasticsearch-api/lib/elasticsearch/api/actions/cat/health.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def health(arguments = {})
2626

2727
method = Elasticsearch::API::HTTP_GET
2828
path = "_cat/health"
29-
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
29+
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
3030
params[:h] = Utils.__listify(params[:h]) if params[:h]
3131

3232
body = nil

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Actions
1111
# @option arguments [List] :index A comma-separated list of index names to limit the returned information
1212
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
1313
# @option arguments [String] :bytes The unit in which to display byte values
14-
# (options: b,k,m,g)
14+
# (options: b,k,kb,m,mb,g,gb,t,tb,p,pb)
1515

1616
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
1717
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node

elasticsearch-api/lib/elasticsearch/api/actions/cat/nodes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Actions
1313

1414
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
1515
# @option arguments [Boolean] :full_id Return the full node ID instead of the shortened version (default: false)
16-
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
16+
# @option arguments [Boolean] :local Calculate the selected nodes using the local cluster state rather than the state from master node (default: false) *Deprecated*
1717
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
1818
# @option arguments [List] :h Comma-separated list of column names to display
1919
# @option arguments [Boolean] :help Return help information

elasticsearch-api/lib/elasticsearch/api/actions/cat/pending_tasks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def pending_tasks(arguments = {})
2727

2828
method = Elasticsearch::API::HTTP_GET
2929
path = "_cat/pending_tasks"
30-
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
30+
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
3131
params[:h] = Utils.__listify(params[:h]) if params[:h]
3232

3333
body = nil

elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module Actions
99
#
1010
# @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices (*Required*)
1111
# @option arguments [List] :type A comma-separated list of document types to search; leave empty to perform the operation on all types
12+
# @option arguments [String] :analyzer The analyzer to use for the query string
1213
# @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false)
1314
# @option arguments [String] :default_operator The default operator for query string query (AND or OR)
1415
# (options: AND,OR)
@@ -85,6 +86,7 @@ def delete_by_query(arguments = {})
8586
#
8687
# @since 6.2.0
8788
ParamsRegistry.register(:delete_by_query, [
89+
:analyzer,
8890
:analyze_wildcard,
8991
:default_operator,
9092
:df,
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Licensed to Elasticsearch B.V under one or more agreements.
2+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
# See the LICENSE file in the project root for more information
4+
5+
module Elasticsearch
6+
module API
7+
module Actions
8+
# Returns all script contexts.
9+
#
10+
11+
#
12+
# @see [TODO]
13+
#
14+
def get_script_context(arguments = {})
15+
arguments = arguments.clone
16+
17+
method = Elasticsearch::API::HTTP_GET
18+
path = "_script_context"
19+
params = {}
20+
21+
body = nil
22+
perform_request(method, path, params, body).body
23+
end
24+
end
25+
end
26+
end
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Licensed to Elasticsearch B.V under one or more agreements.
2+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
# See the LICENSE file in the project root for more information
4+
5+
module Elasticsearch
6+
module API
7+
module Actions
8+
# Returns available script types, languages and contexts
9+
#
10+
11+
#
12+
# @see [TODO]
13+
#
14+
def get_script_languages(arguments = {})
15+
arguments = arguments.clone
16+
17+
method = Elasticsearch::API::HTTP_GET
18+
path = "_script_language"
19+
params = {}
20+
21+
body = nil
22+
perform_request(method, path, params, body).body
23+
end
24+
end
25+
end
26+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Elasticsearch
66
module API
77
module Indices
88
module Actions
9-
# Performs a synced flush operation on one or more indices.
9+
# Performs a synced flush operation on one or more indices. Synced flush is deprecated and will be removed in 8.0. Use flush instead
1010
#
1111
# @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string for all indices
1212
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,10 @@ def put_mapping(arguments = {})
3939
method = Elasticsearch::API::HTTP_PUT
4040
path = if _index && _type
4141
"#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/_mappings"
42+
elsif _index
43+
"#{Utils.__listify(_index)}/_mapping"
4244
elsif _type
4345
"_mappings/#{Utils.__listify(_type)}"
44-
elsif _index
45-
"#{Utils.__listify(_index)}/_mappings"
46-
else
47-
"_mapping/#{Utils.__listify(_type)}"
4846
end
4947
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
5048

0 commit comments

Comments
 (0)