Skip to content

Commit 60365a0

Browse files
Auto-generated API code
1 parent 3905d2d commit 60365a0

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module Actions
3636
# @option arguments [Boolean] :require_alias Sets require_alias for all incoming documents. Defaults to unset (false)
3737
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
3838
# @option arguments [Boolean] :list_executed_pipelines Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)
39+
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
3940
# @option arguments [Hash] :headers Custom HTTP headers
4041
# @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. Array of Strings, Header/Data pairs,
4142
# or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.__bulkify documentation.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module Actions
3434
# @option arguments [Number] :version Explicit version number for concurrency control
3535
# @option arguments [String] :version_type Specific version type (options: internal, external, external_gte)
3636
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
37+
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
3738
# @option arguments [Hash] :headers Custom HTTP headers
3839
# @option arguments [Hash] :body The document (*Required*)
3940
#

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module Actions
3737
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
3838
# @option arguments [Boolean] :require_alias When true, requires destination to be an alias. Default is false
3939
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
40+
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
4041
# @option arguments [Hash] :headers Custom HTTP headers
4142
# @option arguments [Hash] :body The document (*Required*)
4243
#

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ module Elasticsearch
2222
module API
2323
module Indices
2424
module Actions
25-
# Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.
25+
# Resolves the specified index expressions to return information about each cluster. If no index expression is provided, this endpoint will return information about all the remote clusters that are configured on the local cluster.
2626
#
2727
# @option arguments [List] :name A comma-separated list of cluster:index names or wildcard expressions
28-
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
29-
# @option arguments [Boolean] :ignore_throttled Whether specified concrete, expanded or aliased indices should be ignored when throttled
30-
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
31-
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all)
28+
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed). Only allowed when providing an index expression.
29+
# @option arguments [Boolean] :ignore_throttled Whether specified concrete, expanded or aliased indices should be ignored when throttled. Only allowed when providing an index expression.
30+
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified). Only allowed when providing an index expression.
31+
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open). Only allowed when providing an index expression. (options: open, closed, hidden, none, all)
32+
# @option arguments [Time] :timeout The maximum time to wait for remote clusters to respond
3233
# @option arguments [Hash] :headers Custom HTTP headers
3334
#
3435
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-resolve-cluster-api.html
@@ -41,8 +42,6 @@ def resolve_cluster(arguments = {})
4142
end
4243
request_opts[:defined_params] = defined_params unless defined_params.empty?
4344

44-
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
45-
4645
arguments = arguments.clone
4746
headers = arguments.delete(:headers) || {}
4847

@@ -51,7 +50,11 @@ def resolve_cluster(arguments = {})
5150
_name = arguments.delete(:name)
5251

5352
method = Elasticsearch::API::HTTP_GET
54-
path = "_resolve/cluster/#{Utils.__listify(_name)}"
53+
path = if _name
54+
"_resolve/cluster/#{Utils.__listify(_name)}"
55+
else
56+
'_resolve/cluster'
57+
end
5558
params = Utils.process_params(arguments)
5659

5760
Elasticsearch::API::Response.new(

elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb

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

5151
_task_type = arguments.delete(:task_type)
5252

53-
method = Elasticsearch::API::HTTP_POST
53+
method = Elasticsearch::API::HTTP_PUT
5454
path = if _task_type && _inference_id
5555
"_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}/_update"
5656
else

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ module Actions
3737
# @option arguments [Number] :if_seq_no only perform the update operation if the last operation that has changed the document has the specified sequence number
3838
# @option arguments [Number] :if_primary_term only perform the update operation if the last operation that has changed the document has the specified primary term
3939
# @option arguments [Boolean] :require_alias When true, requires destination is an alias. Default is false
40+
# @option arguments [Boolean] :include_source_on_error True or false if to include the document source in the error message in case of parsing errors. Defaults to true.
4041
# @option arguments [Hash] :headers Custom HTTP headers
4142
# @option arguments [Hash] :body The request definition requires either `script` or partial `doc` (*Required*)
4243
#

0 commit comments

Comments
 (0)