Skip to content

Commit 9302d5a

Browse files
committed
[API] Updates API to specification commit 119eb27ee25a0be53121ed59edadbc5acb55462e
* cluster.get_component_template - Adds [String] `:settings_filter` Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys. * cluster.put_component_template - Adds [String] `:cause` User defined reason for create the component template. Server default: api. * index - Adds [Boolean] `:require_data_stream` If `true`, the request's actions must target a data stream (existing or to be created). * license.post_start_trial - [String] `type_query_string` parameter renamed to `type`, The type of trial license to generate (default: "trial") * search - Adds [Boolean] `:ccs_minimize_roundtrips` Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution Server default: true. * reindex - adds :max_docs parameter, the maximum number of documents to reindex * search_mvt - adds :track_total_hits the number of hits matching the query to count accurately * security.grant_api_key - adds :refresh, if 'true', Elasticsearch refreshes the affected shards to make this operation visible to search. * snapshot.delete - adds :wait_for_completion, if `true`, the request returns a response when the matching snapshots are all deleted.
1 parent d9e8733 commit 9302d5a

21 files changed

+55
-33
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ module Actions
3333
# @option arguments [Boolean] :active_only If `true`, the response only includes ongoing shard recoveries.
3434
# @option arguments [String] :bytes The unit used to display byte values.
3535
# @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries.
36-
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
37-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
36+
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display.
37+
# It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l.
38+
# @option arguments [String, Array<String>] :s A comma-separated list of column names or aliases that determines the sort order.
3839
# Sorting defaults to ascending and can be changed by setting `:asc`
3940
# or `:desc` as a suffix to the column name.
40-
# @option arguments [String] :time Unit used to display time values.
41+
# @option arguments [String] :time The unit used to display time values.
4142
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
4243
# `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text.
4344
# @option arguments [Boolean] :help When set to `true` will output available columns. This option

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ module Actions
3131
# Supports wildcards (`*`).
3232
# To target all data streams and indices, omit this parameter or use `*` or `_all`.
3333
# @option arguments [String] :bytes The unit used to display byte values.
34-
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
35-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
34+
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display.
35+
# It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l.
36+
# @option arguments [String, Array<String>] :s A comma-separated list of column names or aliases that determines the sort order.
3637
# Sorting defaults to ascending and can be changed by setting `:asc`
3738
# or `:desc` as a suffix to the column name.
3839
# @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ module Actions
3232
# To target all data streams and indices, omit this parameter or use `*` or `_all`.
3333
# @option arguments [String] :bytes The unit used to display byte values.
3434
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
35-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
35+
# @option arguments [String, Array<String>] :s A comma-separated list of column names or aliases that determines the sort order.
3636
# Sorting defaults to ascending and can be changed by setting `:asc`
3737
# or `:desc` as a suffix to the column name.
38-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
39-
# @option arguments [String] :time Unit used to display time values.
38+
# @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s.
39+
# @option arguments [String] :time The unit used to display time values.
4040
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
4141
# `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text.
4242
# @option arguments [Boolean] :help When set to `true` will output available columns. This option

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ module Actions
3232
# `_all` returns all repositories.
3333
# If any repository fails during the request, Elasticsearch returns an error.
3434
# @option arguments [Boolean] :ignore_unavailable If `true`, the response does not include information from unavailable snapshots.
35-
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
35+
# @option arguments [String, Array<String>] :h A comma-separated list of columns names to display.
36+
# It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l.
3637
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
3738
# Sorting defaults to ascending and can be changed by setting `:asc`
3839
# or `:desc` as a suffix to the column name.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ module Actions
3030
# @option arguments [String, Array<String>] :thread_pool_patterns A comma-separated list of thread pool names used to limit the request.
3131
# Accepts wildcard expressions.
3232
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
33-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
33+
# @option arguments [String, Array<String>] :s A comma-separated list of column names or aliases that determines the sort order.
3434
# Sorting defaults to ascending and can be changed by setting `:asc`
3535
# or `:desc` as a suffix to the column name.
3636
# @option arguments [String] :time The unit used to display time values.
3737
# @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the
3838
# local cluster state. If `false` the list of selected nodes are computed
3939
# from the cluster state of the master node. In both cases the coordinating
4040
# node will send requests for further information to each selected node.
41-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
41+
# @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s.
4242
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
4343
# `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text.
4444
# @option arguments [Boolean] :help When set to `true` will output available columns. This option

elasticsearch-api/lib/elasticsearch/api/actions/cluster/get_component_template.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module Actions
2828
# @option arguments [String] :name Comma-separated list of component template names used to limit the request.
2929
# Wildcard (`*`) expressions are supported.
3030
# @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format.
31+
# @option arguments [String, Array<String>] :settings_filter Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
3132
# @option arguments [Boolean] :include_defaults Return all default configurations for the component template (default: false)
3233
# @option arguments [Boolean] :local If `true`, the request retrieves information from the local node only.
3334
# If `false`, information is retrieved from the master node.

elasticsearch-api/lib/elasticsearch/api/actions/cluster/put_component_template.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ module Actions
4343
# If you use Elastic Agent and want to overwrite one of these templates, set the `version` for your replacement template higher than the current version.
4444
# If you don’t use Elastic Agent and want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the cluster update settings API. (*Required*)
4545
# @option arguments [Boolean] :create If `true`, this request cannot replace or update existing component templates.
46+
# @option arguments [String] :cause User defined reason for create the component template. Server default: api.
4647
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
4748
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
4849
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors

elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ module Actions
2727
# EQL assumes each document in a data stream or index corresponds to an event.
2828
#
2929
# @option arguments [String, Array] :index The name of the index to scope the operation (*Required*)
30-
# @option arguments [Boolean] :allow_no_indices [TODO] Server default: true.
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) Server default: true.
3131
# @option arguments [Boolean] :allow_partial_search_results If true, returns partial results if there are shard failures. If false, returns an error with no partial results. Server default: true.
3232
# @option arguments [Boolean] :allow_partial_sequence_results If true, sequence queries will return partial results in case of shard failures. If false, they will return no results at all.
3333
# This flag has effect only if allow_partial_search_results is true.
34-
# @option arguments [String, Array<String>] :expand_wildcards [TODO] Server default: open.
34+
# @option arguments [String, Array<String>] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. Server default: open.
35+
# @option arguments [Boolean] :ccs_minimize_roundtrips Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution Server default: true.
3536
# @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. Server default: true.
3637
# @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster. Server default: 5d.
3738
# @option arguments [Boolean] :keep_on_completion If true, the search and its results are stored on the cluster.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ module Actions
4646
# @option arguments [Boolean, String, Array<String>] :_source Indicates whether to return the `_source` field (`true` or `false`) or lists the fields to return.
4747
# @option arguments [String, Array<String>] :_source_excludes A comma-separated list of source fields to exclude in the response.
4848
# @option arguments [String, Array<String>] :_source_includes A comma-separated list of source fields to include in the response.
49-
# @option arguments [String, Array<String>] :stored_fields A comma-separated list of stored fields to return as part of a hit.
5049
# @option arguments [Integer] :version The version number for concurrency control.
5150
# It must match the current version of the document for the request to succeed.
5251
# @option arguments [String] :version_type The version type.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ module Actions
138138
# You can set it to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
139139
# The default value of `1` means it waits for each primary shard to be active. Server default: 1.
140140
# @option arguments [Boolean] :require_alias If `true`, the destination must be an index alias.
141+
# @option arguments [Boolean] :require_data_stream If `true`, the request's actions must target a data stream (existing or to be created).
141142
# @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
142143
# when they occur.
143144
# @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response

0 commit comments

Comments
 (0)