Skip to content

Commit f8ed229

Browse files
Auto-generated API code
1 parent a030610 commit f8ed229

File tree

12 files changed

+32
-12
lines changed

12 files changed

+32
-12
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ module Actions
2828
# @option arguments [String] :refresh If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes. (options: true, false, wait_for)
2929
# @option arguments [String] :routing Specific routing value
3030
# @option arguments [Time] :timeout Explicit operation timeout
31-
# @option arguments [String] :type Default document type for items which don't provide one
3231
# @option arguments [List] :_source True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
3332
# @option arguments [List] :_source_excludes Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
3433
# @option arguments [List] :_source_includes Default list of fields to extract and return from the _source field, can be overridden on each sub-request
3534
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
36-
# @option arguments [Boolean] :require_alias Sets require_alias for all incoming documents. Defaults to unset (false)
37-
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
35+
# @option arguments [Boolean] :require_alias If true, the request’s actions must target an index alias. Defaults to false.
36+
# @option arguments [Boolean] :require_data_stream If true, the request's actions must target a data stream (existing or to-be-created). Default to false
3837
# @option arguments [Boolean] :list_executed_pipelines Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)
3938
# @option arguments [Hash] :headers Custom HTTP headers
4039
# @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. Array of Strings, Header/Data pairs,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ module Actions
2828
# @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response
2929
# @option arguments [Boolean] :keep_on_completion Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)
3030
# @option arguments [Time] :keep_alive Update the time interval in which the results (partial or final) for this search will be available
31+
# @option arguments [Boolean] :allow_partial_search_results Control whether the query should keep running in case of shard failures, and return partial results
32+
# @option arguments [Boolean] :allow_partial_sequence_results Control whether a sequence query should return partial results or no results at all in case of shard failures. This option has effect only if [allow_partial_search_results] is true.
3133
# @option arguments [Hash] :headers Custom HTTP headers
3234
# @option arguments [Hash] :body Eql request body. Use the `query` to limit the query scope. (*Required*)
3335
#

elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module Actions
2525
# Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
2626
#
2727
# @option arguments [String] :policy The name of the index lifecycle policy
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
29+
# @option arguments [Time] :timeout Explicit operation timeout
2830
# @option arguments [Hash] :headers Custom HTTP headers
2931
#
3032
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html
@@ -48,7 +50,7 @@ def delete_lifecycle(arguments = {})
4850

4951
method = Elasticsearch::API::HTTP_DELETE
5052
path = "_ilm/policy/#{Utils.__listify(_policy)}"
51-
params = {}
53+
params = Utils.process_params(arguments)
5254

5355
Elasticsearch::API::Response.new(
5456
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Actions
2727
# @option arguments [String] :index The name of the index to explain
2828
# @option arguments [Boolean] :only_managed filters the indices included in the response to ones managed by ILM
2929
# @option arguments [Boolean] :only_errors filters the indices included in the response to ones in an ILM error state, implies only_managed
30+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
3031
# @option arguments [Hash] :headers Custom HTTP headers
3132
#
3233
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html

elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module Actions
2525
# Returns the specified policy definition. Includes the policy version and last modified date.
2626
#
2727
# @option arguments [String] :policy The name of the index lifecycle policy
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
29+
# @option arguments [Time] :timeout Explicit operation timeout
2830
# @option arguments [Hash] :headers Custom HTTP headers
2931
#
3032
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html
@@ -50,7 +52,7 @@ def get_lifecycle(arguments = {})
5052
else
5153
'_ilm/policy'
5254
end
53-
params = {}
55+
params = Utils.process_params(arguments)
5456

5557
Elasticsearch::API::Response.new(
5658
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module Actions
2525
# Creates a lifecycle policy
2626
#
2727
# @option arguments [String] :policy The name of the index lifecycle policy
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
29+
# @option arguments [Time] :timeout Explicit operation timeout
2830
# @option arguments [Hash] :headers Custom HTTP headers
2931
# @option arguments [Hash] :body The lifecycle policy definition to register
3032
#
@@ -49,7 +51,7 @@ def put_lifecycle(arguments = {})
4951

5052
method = Elasticsearch::API::HTTP_PUT
5153
path = "_ilm/policy/#{Utils.__listify(_policy)}"
52-
params = {}
54+
params = Utils.process_params(arguments)
5355

5456
Elasticsearch::API::Response.new(
5557
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module IndexLifecycleManagement
2424
module Actions
2525
# Start the index lifecycle management (ILM) plugin.
2626
#
27+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28+
# @option arguments [Time] :timeout Explicit operation timeout
2729
# @option arguments [Hash] :headers Custom HTTP headers
2830
#
2931
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html
@@ -38,7 +40,7 @@ def start(arguments = {})
3840

3941
method = Elasticsearch::API::HTTP_POST
4042
path = '_ilm/start'
41-
params = {}
43+
params = Utils.process_params(arguments)
4244

4345
Elasticsearch::API::Response.new(
4446
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module IndexLifecycleManagement
2424
module Actions
2525
# Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin
2626
#
27+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
28+
# @option arguments [Time] :timeout Explicit operation timeout
2729
# @option arguments [Hash] :headers Custom HTTP headers
2830
#
2931
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html
@@ -38,7 +40,7 @@ def stop(arguments = {})
3840

3941
method = Elasticsearch::API::HTTP_POST
4042
path = '_ilm/stop'
41-
params = {}
43+
params = Utils.process_params(arguments)
4244

4345
Elasticsearch::API::Response.new(
4446
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module Actions
2525
# Deletes a geoip database configuration
2626
#
2727
# @option arguments [List] :id A comma-separated list of geoip database configurations to delete
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
29+
# @option arguments [Time] :timeout Explicit operation timeout
2830
# @option arguments [Hash] :headers Custom HTTP headers
2931
#
3032
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-geoip-database-api.html
@@ -48,7 +50,7 @@ def delete_geoip_database(arguments = {})
4850

4951
method = Elasticsearch::API::HTTP_DELETE
5052
path = "_ingest/geoip/database/#{Utils.__listify(_id)}"
51-
params = {}
53+
params = Utils.process_params(arguments)
5254

5355
Elasticsearch::API::Response.new(
5456
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module Actions
2525
# Deletes an ip location database configuration
2626
#
2727
# @option arguments [List] :id A comma-separated list of ip location database configurations to delete
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
29+
# @option arguments [Time] :timeout Explicit operation timeout
2830
# @option arguments [Hash] :headers Custom HTTP headers
2931
#
3032
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-ip-location-database-api.html
@@ -48,7 +50,7 @@ def delete_ip_location_database(arguments = {})
4850

4951
method = Elasticsearch::API::HTTP_DELETE
5052
path = "_ingest/ip_location/database/#{Utils.__listify(_id)}"
51-
params = {}
53+
params = Utils.process_params(arguments)
5254

5355
Elasticsearch::API::Response.new(
5456
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module Actions
2525
# Puts the configuration for a geoip database to be downloaded
2626
#
2727
# @option arguments [String] :id The id of the database configuration
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
29+
# @option arguments [Time] :timeout Explicit operation timeout
2830
# @option arguments [Hash] :headers Custom HTTP headers
2931
# @option arguments [Hash] :body The database configuration definition (*Required*)
3032
#
@@ -50,7 +52,7 @@ def put_geoip_database(arguments = {})
5052

5153
method = Elasticsearch::API::HTTP_PUT
5254
path = "_ingest/geoip/database/#{Utils.__listify(_id)}"
53-
params = {}
55+
params = Utils.process_params(arguments)
5456

5557
Elasticsearch::API::Response.new(
5658
perform_request(method, path, params, body, headers, request_opts)

elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module Actions
2525
# Puts the configuration for a ip location database to be downloaded
2626
#
2727
# @option arguments [String] :id The id of the database configuration
28+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
29+
# @option arguments [Time] :timeout Explicit operation timeout
2830
# @option arguments [Hash] :headers Custom HTTP headers
2931
# @option arguments [Hash] :body The database configuration definition (*Required*)
3032
#
@@ -50,7 +52,7 @@ def put_ip_location_database(arguments = {})
5052

5153
method = Elasticsearch::API::HTTP_PUT
5254
path = "_ingest/ip_location/database/#{Utils.__listify(_id)}"
53-
params = {}
55+
params = Utils.process_params(arguments)
5456

5557
Elasticsearch::API::Response.new(
5658
perform_request(method, path, params, body, headers, request_opts)

0 commit comments

Comments
 (0)