Skip to content

Auto-generated code for 8.18 #2734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/8.18/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/8.18/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/8.18/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/8.18/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/8.18/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/8.18/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/8.18/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
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
end

it 'performs the request' do
expect(client_double.ingest.delete_geoip_database(id: 'foo', body: {})).to be_a Elasticsearch::API::Response
expect(client_double.ingest.delete_geoip_database(id: 'foo')).to be_a Elasticsearch::API::Response
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
end

it 'performs the request' do
expect(client_double.ingest.delete_ip_location_database(id: 'foo', body: {})).to be_a Elasticsearch::API::Response
expect(client_double.ingest.delete_ip_location_database(id: 'foo')).to be_a Elasticsearch::API::Response
end
end