Skip to content

Commit

Permalink
Auto-generated API code
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticmachine committed Dec 23, 2024
1 parent a030610 commit f8ed229
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 12 deletions.
5 changes: 2 additions & 3 deletions elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ module Actions
# @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)
# @option arguments [String] :routing Specific routing value
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [String] :type Default document type for items which don't provide one
# @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
# @option arguments [List] :_source_excludes Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
# @option arguments [List] :_source_includes Default list of fields to extract and return from the _source field, can be overridden on each sub-request
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
# @option arguments [Boolean] :require_alias Sets require_alias for all incoming documents. Defaults to unset (false)
# @option arguments [Boolean] :require_data_stream When true, requires the destination to be a data stream (existing or to-be-created). Default is false
# @option arguments [Boolean] :require_alias If true, the request’s actions must target an index alias. Defaults to false.
# @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
# @option arguments [Boolean] :list_executed_pipelines Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. Array of Strings, Header/Data pairs,
Expand Down
2 changes: 2 additions & 0 deletions elasticsearch-api/lib/elasticsearch/api/actions/eql/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ module Actions
# @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response
# @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)
# @option arguments [Time] :keep_alive Update the time interval in which the results (partial or final) for this search will be available
# @option arguments [Boolean] :allow_partial_search_results Control whether the query should keep running in case of shard failures, and return partial results
# @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.
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body Eql request body. Use the `query` to limit the query scope. (*Required*)
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
#
# @option arguments [String] :policy The name of the index lifecycle policy
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html
Expand All @@ -48,7 +50,7 @@ def delete_lifecycle(arguments = {})

method = Elasticsearch::API::HTTP_DELETE
path = "_ilm/policy/#{Utils.__listify(_policy)}"
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module Actions
# @option arguments [String] :index The name of the index to explain
# @option arguments [Boolean] :only_managed filters the indices included in the response to ones managed by ILM
# @option arguments [Boolean] :only_errors filters the indices included in the response to ones in an ILM error state, implies only_managed
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Returns the specified policy definition. Includes the policy version and last modified date.
#
# @option arguments [String] :policy The name of the index lifecycle policy
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html
Expand All @@ -50,7 +52,7 @@ def get_lifecycle(arguments = {})
else
'_ilm/policy'
end
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Creates a lifecycle policy
#
# @option arguments [String] :policy The name of the index lifecycle policy
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The lifecycle policy definition to register
#
Expand All @@ -49,7 +51,7 @@ def put_lifecycle(arguments = {})

method = Elasticsearch::API::HTTP_PUT
path = "_ilm/policy/#{Utils.__listify(_policy)}"
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module IndexLifecycleManagement
module Actions
# Start the index lifecycle management (ILM) plugin.
#
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html
Expand All @@ -38,7 +40,7 @@ def start(arguments = {})

method = Elasticsearch::API::HTTP_POST
path = '_ilm/start'
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ module IndexLifecycleManagement
module Actions
# Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin
#
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html
Expand All @@ -38,7 +40,7 @@ def stop(arguments = {})

method = Elasticsearch::API::HTTP_POST
path = '_ilm/stop'
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Deletes a geoip database configuration
#
# @option arguments [List] :id A comma-separated list of geoip database configurations to delete
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-geoip-database-api.html
Expand All @@ -48,7 +50,7 @@ def delete_geoip_database(arguments = {})

method = Elasticsearch::API::HTTP_DELETE
path = "_ingest/geoip/database/#{Utils.__listify(_id)}"
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Deletes an ip location database configuration
#
# @option arguments [List] :id A comma-separated list of ip location database configurations to delete
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-ip-location-database-api.html
Expand All @@ -48,7 +50,7 @@ def delete_ip_location_database(arguments = {})

method = Elasticsearch::API::HTTP_DELETE
path = "_ingest/ip_location/database/#{Utils.__listify(_id)}"
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Puts the configuration for a geoip database to be downloaded
#
# @option arguments [String] :id The id of the database configuration
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The database configuration definition (*Required*)
#
Expand All @@ -50,7 +52,7 @@ def put_geoip_database(arguments = {})

method = Elasticsearch::API::HTTP_PUT
path = "_ingest/geoip/database/#{Utils.__listify(_id)}"
params = {}
params = Utils.process_params(arguments)

Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module Actions
# Puts the configuration for a ip location database to be downloaded
#
# @option arguments [String] :id The id of the database configuration
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The database configuration definition (*Required*)
#
Expand All @@ -50,7 +52,7 @@ def put_ip_location_database(arguments = {})

method = Elasticsearch::API::HTTP_PUT
path = "_ingest/ip_location/database/#{Utils.__listify(_id)}"
params = {}
params = Utils.process_params(arguments)

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

0 comments on commit f8ed229

Please sign in to comment.