Skip to content

Commit cde2a81

Browse files
nhtruonggithub-actions[bot]
authored andcommitted
Updated opensearch-ruby to reflect the latest OpenSearch API spec (2025-02-07)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 29567b4 commit cde2a81

File tree

104 files changed

+1946
-326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1946
-326
lines changed

lib/opensearch/api/actions/asynchronous_search/delete.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module OpenSearch
1313
module API
1414
module AsynchronousSearch
1515
module Actions
16-
# Delete asynchronous search.
16+
# Deletes any responses from an asynchronous search.
1717
#
1818
# @option args [String] :id *Required*
1919
# @option args [List] :ignore set to [404] to ignore server's NOT FOUND error for this request

lib/opensearch/api/actions/asynchronous_search/get.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module OpenSearch
1313
module API
1414
module AsynchronousSearch
1515
module Actions
16-
# Get partial responses from asynchronous search.
16+
# Gets partial responses from an asynchronous search.
1717
#
1818
# @option args [String] :id *Required*
1919
def get(args = {})

lib/opensearch/api/actions/asynchronous_search/search.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ module OpenSearch
1313
module API
1414
module AsynchronousSearch
1515
module Actions
16-
# Perform an asynchronous search.
16+
# Performs an asynchronous search.
1717
#
1818
# @option args [String] :index The name of the index to be searched. Can be an individual name, a comma-separated list of indexes, or a wildcard expression of index names.
19-
# @option args [String] :keep_alive The amount of time that the result is saved in the cluster. For example, `2d` means that the results are stored in the cluster for 48 hours. The saved search results are deleted after this period or if the search is canceled. Note that this includes the query execution time. If the query overruns this time, the process cancels this query automatically.
20-
# @option args [Boolean] :keep_on_completion Whether you want to save the results in the cluster after the search is complete.
21-
# @option args [String] :wait_for_completion_timeout The amount of time that you plan to wait for the results. You can poll the remaining results based on an ID. The maximum value is `300s`. Default is `1s`.
19+
# @option args [String] :keep_alive The amount of time that the result is saved in the cluster. For example, `2d` means that the results are stored in the cluster for 48 hours. The saved search results are deleted after this period or if the search is canceled. Note that this includes the query execution time. If the query exceeds this amount of time, the process cancels this query automatically.
20+
# @option args [Boolean] :keep_on_completion Whether to save the results in the cluster after the search is complete. You can examine the stored results at a later time.
21+
# @option args [String] :wait_for_completion_timeout The amount of time to wait for the results. You can poll the remaining results based on an ID. The maximum value is 300 seconds. Default is `1s`.
2222
# @option args [Hash] :body The search definition using the Query DSL.
2323
def search(args = {})
2424
args = Utils.clone_and_normalize_arguments(args)

lib/opensearch/api/actions/asynchronous_search/stats.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module OpenSearch
1313
module API
1414
module AsynchronousSearch
1515
module Actions
16-
# Monitoring of asynchronous searches that are running, completed, and/or persisted.
16+
# Monitors any asynchronous searches that are `running`, `completed`, or `persisted`.
1717
#
1818
def stats(args = {})
1919
args = Utils.clone_and_normalize_arguments(args)

lib/opensearch/api/actions/cat/aliases.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ module OpenSearch
1313
module API
1414
module Cat
1515
module Actions
16-
# Shows information about currently configured aliases to indexes including filter and routing info.
16+
# Shows information about aliases currently configured to indexes, including filter and routing information.
1717
#
18-
# @option args [Enumerable<String>, String] :expand_wildcards Whether to expand wildcard expression to concrete indexes that are open, closed or both.
19-
# @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20-
# @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21-
# @option args [Boolean] :help Return help information.
22-
# @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23-
# @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
24-
# @option args [Boolean] :v Verbose mode. Display column headers.
18+
# @option args [Enumerable<String>, String] :expand_wildcards Specifies the type of index that wildcard expressions can match. Supports comma-separated values.
19+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21+
# @option args [Boolean] :help Returns help information.
22+
# @option args [Boolean] :local Whether to return information from the local node only instead of from the cluster manager node.
23+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
24+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
2525
# @option args [Enumerable<String>, String] :name A comma-separated list of aliases to retrieve. Supports wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
2626
def aliases(args = {})
2727
args = Utils.clone_and_normalize_arguments(args)

lib/opensearch/api/actions/cat/all_pit_segments.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ module OpenSearch
1313
module API
1414
module Cat
1515
module Actions
16-
# Lists all active point-in-time segments.
16+
# Lists all active CAT point-in-time segments.
1717
#
18-
# @option args [String] :bytes The unit in which to display byte values.
19-
# @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20-
# @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21-
# @option args [Boolean] :help Return help information.
22-
# @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
23-
# @option args [Boolean] :v Verbose mode. Display column headers.
18+
# @option args [String] :bytes The units used to display byte values.
19+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
20+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21+
# @option args [Boolean] :help Returns help information.
22+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
23+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
2424
def all_pit_segments(args = {})
2525
args = Utils.clone_and_normalize_arguments(args)
2626
headers = args.delete('headers') || {}

lib/opensearch/api/actions/cat/allocation.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ module Cat
1515
module Actions
1616
# Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using.
1717
#
18-
# @option args [String] :bytes The unit used to display byte values.
19-
# @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
20-
# @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
21-
# @option args [Enumerable<String>] :h Comma-separated list of column names to display.
22-
# @option args [Boolean] :help Return help information.
23-
# @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
24-
# @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
25-
# @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
26-
# @option args [Boolean] :v Verbose mode. Display column headers.
27-
# @option args [Enumerable<String>, String] :node_id Comma-separated list of node identifiers or names used to limit the returned information.
18+
# @option args [String] :bytes The units used to display byte values.
19+
# @option args [String] :cluster_manager_timeout A timeout for connection to the cluster manager node.
20+
# @option args [String] :format A short version of the HTTP `Accept` header, such as `json` or `yaml`.
21+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
22+
# @option args [Boolean] :help Returns help information.
23+
# @option args [Boolean] :local Returns local information but does not retrieve the state from cluster-manager node.
24+
# @option args [String] :master_timeout DEPRECATED A timeout for connection to the cluster manager node.
25+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
26+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
27+
# @option args [Enumerable<String>, String] :node_id A comma-separated list of node IDs or names used to limit the returned information.
2828
def allocation(args = {})
2929
args = Utils.clone_and_normalize_arguments(args)
3030
_node_id = args.delete('node_id')

lib/opensearch/api/actions/cat/cluster_manager.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ module Cat
1515
module Actions
1616
# Returns information about the cluster-manager node.
1717
#
18-
# @option args [String] :cluster_manager_timeout Operation timeout for connection to cluster-manager node.
19-
# @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
20-
# @option args [Enumerable<String>] :h Comma-separated list of column names to display.
21-
# @option args [Boolean] :help Return help information.
22-
# @option args [Boolean] :local Return local information, do not retrieve the state from cluster-manager node.
23-
# @option args [String] :master_timeout DEPRECATED Operation timeout for connection to cluster-manager node.
24-
# @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
25-
# @option args [Boolean] :v Verbose mode. Display column headers.
18+
# @option args [String] :cluster_manager_timeout A timeout for connection to the cluster manager node.
19+
# @option args [String] :format A short version of the HTTP `Accept` header, such as `json` or `yaml`.
20+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
21+
# @option args [Boolean] :help Returns help information.
22+
# @option args [Boolean] :local Returns local information but does not retrieve the state from the cluster manager node.
23+
# @option args [String] :master_timeout DEPRECATED A timeout for connection to the cluster manager node.
24+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
25+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
2626
def cluster_manager(args = {})
2727
args = Utils.clone_and_normalize_arguments(args)
2828
headers = args.delete('headers') || {}

lib/opensearch/api/actions/cat/count.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ module OpenSearch
1313
module API
1414
module Cat
1515
module Actions
16-
# Provides quick access to the document count of the entire cluster, or individual indexes.
16+
# Provides quick access to the document count of the entire cluster or of an individual index.
1717
#
18-
# @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
19-
# @option args [Enumerable<String>] :h Comma-separated list of column names to display.
20-
# @option args [Boolean] :help Return help information.
21-
# @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
22-
# @option args [Boolean] :v Verbose mode. Display column headers.
18+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
19+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
20+
# @option args [Boolean] :help Returns help information.
21+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
22+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
2323
# @option args [Enumerable<String>, String] :index Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (`*`). To target all data streams and indexes, omit this parameter or use `*` or `_all`.
2424
def count(args = {})
2525
args = Utils.clone_and_normalize_arguments(args)

lib/opensearch/api/actions/cat/fielddata.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ module Cat
1515
module Actions
1616
# Shows how much heap memory is currently being used by field data on every data node in the cluster.
1717
#
18-
# @option args [String] :bytes The unit used to display byte values.
19-
# @option args [Enumerable<String>, String] :fields Comma-separated list of fields used to limit returned information.
20-
# @option args [String] :format A short version of the Accept header (for example, `json`, `yaml`).
21-
# @option args [Enumerable<String>] :h Comma-separated list of column names to display.
22-
# @option args [Boolean] :help Return help information.
23-
# @option args [Enumerable<String>] :s Comma-separated list of column names or column aliases to sort by.
24-
# @option args [Boolean] :v Verbose mode. Display column headers.
18+
# @option args [String] :bytes The units used to display byte values.
19+
# @option args [Enumerable<String>, String] :fields A comma-separated list of fields used to limit the amount of returned information.
20+
# @option args [String] :format A short version of the `Accept` header, such as `json` or `yaml`.
21+
# @option args [Enumerable<String>] :h A comma-separated list of column names to display.
22+
# @option args [Boolean] :help Returns help information.
23+
# @option args [Enumerable<String>] :s A comma-separated list of column names or column aliases to sort by.
24+
# @option args [Boolean] :v Enables verbose mode, which displays column headers.
2525
def fielddata(args = {})
2626
args = Utils.clone_and_normalize_arguments(args)
2727
_fields = args.delete('fields')

0 commit comments

Comments
 (0)