Skip to content

Commit 4f8eb15

Browse files
committed
[API] Updates source code documentation.
Updates APIs: * bulk: - adds list_executed_pipelines - If +true+, the response will include the ingest pipelines that were executed for each index or create. - require_data_stream If +true+, the request's actions must target a data stream (existing or to-be-created). * cat APIs have been streamlined, removes master_timeout, verbose options for Serverless. * eql.search - Adds allow_partial_search_results and allow_partial_sequence_results parameters. * indices.exists_alias, indices.get_alias - adds master_timeout parameter * machine_learning.get_trained_models - include_model_definition parameter is deprecated! Use [include=definition] instead * machine_learning.put_job - adds allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable parameters
1 parent 97cabfe commit 4f8eb15

Some content is hidden

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

58 files changed

+128
-72
lines changed

lib/elasticsearch-serverless/api/bulk.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module Actions
2626
# This reduces overhead and can greatly increase indexing speed.
2727
#
2828
# @option arguments [String] :index Name of the data stream, index, or index alias to perform bulk actions on.
29+
# @option arguments [Boolean] :list_executed_pipelines If +true+, the response will include the ingest pipelines that were executed for each index or create.
2930
# @option arguments [String] :pipeline ID of the pipeline to use to preprocess incoming documents.
3031
# If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request.
3132
# If a final pipeline is configured it will always run, regardless of the value of this parameter.
@@ -39,6 +40,7 @@ module Actions
3940
# @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation.
4041
# Set to all or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1.
4142
# @option arguments [Boolean] :require_alias If +true+, the request’s actions must target an index alias.
43+
# @option arguments [Boolean] :require_data_stream If +true+, the request's actions must target a data stream (existing or to-be-created).
4244
# @option arguments [Hash] :headers Custom HTTP headers
4345
# @option arguments [String|Array] :body operations. Array of Strings, Header/Data pairs, or the conveniency "combined" format can be passed, refer to ElasticsearchServerless::API::Utils.bulkify documentation.
4446
#

lib/elasticsearch-serverless/api/cat/aliases.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ module Actions
2929
#
3030
# @option arguments [String, Array<String>] :name A comma-separated list of aliases to retrieve. Supports wildcards (+*+). To retrieve all aliases, omit this parameter or use +*+ or +_all+.
3131
# @option arguments [String, Array<String>] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
32+
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
3233
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
3334
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
3435
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
3536
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
3637
# can't be combined with any other query string option.
37-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
3838
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
3939
# Sorting defaults to ascending and can be changed by setting +:asc+
4040
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/cat/component_templates.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ module Actions
3333
# local cluster state. If +false+ the list of selected nodes are computed
3434
# from the cluster state of the master node. In both cases the coordinating
3535
# node will send requests for further information to each selected node.
36+
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
3637
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
3738
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
3839
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
3940
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
4041
# can't be combined with any other query string option.
41-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
4242
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
4343
# Sorting defaults to ascending and can be changed by setting +:asc+
4444
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/cat/count.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ module Actions
3535
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
3636
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
3737
# can't be combined with any other query string option.
38-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
3938
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
4039
# Sorting defaults to ascending and can be changed by setting +:asc+
4140
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/cat/help.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ module Actions
2525
# Get CAT help.
2626
# Returns help for the CAT APIs.
2727
#
28-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
29-
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
30-
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
31-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
32-
# can't be combined with any other query string option.
33-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
34-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
35-
# Sorting defaults to ascending and can be changed by setting +:asc+
36-
# or +:desc+ as a suffix to the column name.
37-
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
3828
# @option arguments [Hash] :headers Custom HTTP headers
3929
#
4030
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
@@ -49,7 +39,7 @@ def help(arguments = {})
4939

5040
method = ElasticsearchServerless::API::HTTP_GET
5141
path = "_cat"
52-
params = Utils.process_params(arguments)
42+
params = {}
5343

5444
ElasticsearchServerless::API::Response.new(
5545
perform_request(method, path, params, body, headers, request_opts)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ module Actions
4343
# @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory.
4444
# @option arguments [Boolean] :pri If true, the response only includes information from primary shards.
4545
# @option arguments [String] :time The unit used to display time values.
46+
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
4647
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
4748
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
4849
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
4950
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
5051
# can't be combined with any other query string option.
51-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
5252
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
5353
# Sorting defaults to ascending and can be changed by setting +:asc+
5454
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ module Actions
3434
# @option arguments [String, Array<String>] :h Comma-separated list of column names to display. Server default: create_time,id,state,type.
3535
# @option arguments [String, Array<String>] :s Comma-separated list of column names or column aliases used to sort the
3636
# response.
37-
# @option arguments [Time] :time Unit used to display time values.
37+
# @option arguments [String] :time Unit used to display time values.
3838
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
3939
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
4040
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
4141
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
4242
# can't be combined with any other query string option.
43-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
4443
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
4544
# Sorting defaults to ascending and can be changed by setting +:asc+
4645
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ module Actions
4747
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
4848
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
4949
# can't be combined with any other query string option.
50-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
5150
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
5251
# Sorting defaults to ascending and can be changed by setting +:asc+
5352
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/cat/ml_jobs.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ module Actions
4848
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
4949
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
5050
# can't be combined with any other query string option.
51-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
5251
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
5352
# Sorting defaults to ascending and can be changed by setting +:asc+
5453
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/cat/ml_trained_models.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ module Actions
3737
# @option arguments [String, Array<String>] :s A comma-separated list of column names or aliases used to sort the response.
3838
# @option arguments [Integer] :from Skips the specified number of transforms.
3939
# @option arguments [Integer] :size The maximum number of transforms to display.
40+
# @option arguments [String] :time Unit used to display time values.
4041
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
4142
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
4243
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
4344
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
4445
# can't be combined with any other query string option.
45-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
4646
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
4747
# Sorting defaults to ascending and can be changed by setting +:asc+
4848
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/cat/transforms.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ module ElasticsearchServerless
2222
module API
2323
module Cat
2424
module Actions
25-
# Get transforms.
26-
# Returns configuration and usage information about transforms.
25+
# Get transform information.
26+
# Get configuration and usage information about transforms.
2727
# CAT APIs are only intended for human consumption using the Kibana
2828
# console or command line. They are not intended for use by applications. For
2929
# application consumption, use the get transform statistics API.
@@ -43,7 +43,6 @@ module Actions
4343
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
4444
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
4545
# can't be combined with any other query string option.
46-
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
4746
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
4847
# Sorting defaults to ascending and can be changed by setting +:asc+
4948
# or +:desc+ as a suffix to the column name.

lib/elasticsearch-serverless/api/count.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
module ElasticsearchServerless
2222
module API
2323
module Actions
24-
# Returns number of documents matching a query.
24+
# Count search results.
25+
# Get the number of documents matching a query.
2526
#
2627
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases to search.
2728
# Supports wildcards (+*+).

lib/elasticsearch-serverless/api/enrich/execute_policy.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module ElasticsearchServerless
2222
module API
2323
module Enrich
2424
module Actions
25-
# Creates the enrich index for an existing enrich policy.
25+
# Run an enrich policy.
26+
# Create the enrich index for an existing enrich policy.
2627
#
2728
# @option arguments [String] :name Enrich policy to execute. (*Required*)
2829
# @option arguments [Boolean] :wait_for_completion If +true+, the request blocks other enrich policy execution requests until complete. Server default: true.

lib/elasticsearch-serverless/api/eql/delete.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module ElasticsearchServerless
2222
module API
2323
module Eql
2424
module Actions
25-
# Deletes an async EQL search or a stored synchronous EQL search.
25+
# Delete an async EQL search.
26+
# Delete an async EQL search or a stored synchronous EQL search.
2627
# The API also deletes results for the search.
2728
#
2829
# @option arguments [String] :id Identifier for the search to delete.

lib/elasticsearch-serverless/api/eql/get.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module ElasticsearchServerless
2222
module API
2323
module Eql
2424
module Actions
25-
# Returns the current status and available results for an async EQL search or a stored synchronous EQL search.
25+
# Get async EQL search results.
26+
# Get the current status and available results for an async EQL search or a stored synchronous EQL search.
2627
#
2728
# @option arguments [String] :id Identifier for the search. (*Required*)
2829
# @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster.

lib/elasticsearch-serverless/api/eql/get_status.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module ElasticsearchServerless
2222
module API
2323
module Eql
2424
module Actions
25-
# Returns the current status for an async EQL search or a stored synchronous EQL search without returning results.
25+
# Get the async EQL status.
26+
# Get the current status for an async EQL search or a stored synchronous EQL search without returning results.
2627
#
2728
# @option arguments [String] :id Identifier for the search. (*Required*)
2829
# @option arguments [Hash] :headers Custom HTTP headers

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ module ElasticsearchServerless
2222
module API
2323
module Eql
2424
module Actions
25-
# Returns results matching a query expressed in Event Query Language (EQL)
25+
# Get EQL search results.
26+
# Returns search results for an Event Query Language (EQL) query.
27+
# EQL assumes each document in a data stream or index corresponds to an event.
2628
#
2729
# @option arguments [String, Array] :index The name of the index to scope the operation (*Required*)
2830
# @option arguments [Boolean] :allow_no_indices [TODO] Server default: true.
31+
# @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.
32+
# @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.
33+
# This flag has effect only if allow_partial_search_results is true.
2934
# @option arguments [String, Array<String>] :expand_wildcards [TODO] Server default: open.
3035
# @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response. Server default: true.
3136
# @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster. Server default: 5d.

lib/elasticsearch-serverless/api/graph/explore.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ module ElasticsearchServerless
2222
module API
2323
module Graph
2424
module Actions
25-
# Extracts and summarizes information about the documents and terms in an Elasticsearch data stream or index.
25+
# Explore graph analytics.
26+
# Extract and summarize information about the documents and terms in an Elasticsearch data stream or index.
27+
# The easiest way to understand the behavior of this API is to use the Graph UI to explore connections.
28+
# An initial request to the +_explore+ API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph.
29+
# Subsequent requests enable you to spider out from one more vertices of interest.
30+
# You can exclude vertices that have already been returned.
2631
#
2732
# @option arguments [String, Array] :index Name of the index. (*Required*)
2833
# @option arguments [String] :routing Custom value used to route operations to a specific shard.

lib/elasticsearch-serverless/api/indices/exists_alias.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module Actions
3535
# Supports comma-separated values, such as +open,hidden+.
3636
# Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open.
3737
# @option arguments [Boolean] :ignore_unavailable If +false+, requests that include a missing data stream or index in the target indices or data streams return an error.
38+
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
39+
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
3840
# @option arguments [Hash] :headers Custom HTTP headers
3941
#
4042
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html

lib/elasticsearch-serverless/api/indices/exists_index_template.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module ElasticsearchServerless
2222
module API
2323
module Indices
2424
module Actions
25-
# Returns information about whether a particular index template exists.
25+
# Check index templates.
26+
# Check whether index templates exist.
2627
#
2728
# @option arguments [String] :name Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. (*Required*)
2829
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.

0 commit comments

Comments
 (0)