Skip to content

API Update 9.0 #2636

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
Apr 14, 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Actions
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit
#
def delete(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'async_search.delete' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module Actions
# By default no timeout is set meaning that the currently available results will be returned without any additional wait.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit
#
def get(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'async_search.get' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Actions
# Ongoing async searches and any saved search results are deleted after this period. Server default: 5d.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit
#
def status(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'async_search.status' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module Actions
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body request body
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-async-search-submit
#
def submit(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'async_search.submit' }
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch-api/lib/elasticsearch/api/actions/bulk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ module Actions
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [String|Array] :body operations. Array of Strings, Header/Data pairs, or the conveniency "combined" format can be passed, refer to Elasticsearch::API::Utils.bulkify documentation.
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-bulk
#
def bulk(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'bulk' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-aliases
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-aliases
#
def aliases(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.aliases' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-allocation
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-allocation
#
def allocation(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.allocation' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-component-templates
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-component-templates
#
def component_templates(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.component_templates' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-count
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-count
#
def count(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.count' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-fielddata
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-fielddata
#
def fielddata(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.fielddata' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-health
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-health
#
def health(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.health' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module Actions
#
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-cat
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cat
#
def help(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.help' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-indices
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-indices
#
def indices(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.indices' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-master
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-master
#
def master(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.master' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-data-frame-analytics
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-data-frame-analytics
#
def ml_data_frame_analytics(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_data_frame_analytics' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-datafeeds
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-datafeeds
#
def ml_datafeeds(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_datafeeds' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-jobs
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-jobs
#
def ml_jobs(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_jobs' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-ml-trained-models
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-ml-trained-models
#
def ml_trained_models(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.ml_trained_models' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodeattrs
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodeattrs
#
def nodeattrs(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.nodeattrs' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-nodes
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-nodes
#
def nodes(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.nodes' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-pending-tasks
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-pending-tasks
#
def pending_tasks(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.pending_tasks' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-plugins
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-plugins
#
def plugins(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.plugins' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-recovery
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-recovery
#
def recovery(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.recovery' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-repositories
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-repositories
#
def repositories(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.repositories' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-segments
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-segments
#
def segments(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.segments' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-shards
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-shards
#
def shards(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.shards' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-snapshots
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-snapshots
#
def snapshots(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.snapshots' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-tasks
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-tasks
#
def tasks(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.tasks' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-templates
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-templates
#
def templates(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.templates' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-thread-pool
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-thread-pool
#
def thread_pool(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.thread_pool' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module Actions
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cat-transforms
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cat-transforms
#
def transforms(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.transforms' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module Actions
# Deprecated since version 7.0.0
#
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-clear-scroll
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-clear-scroll
#
def clear_scroll(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'clear_scroll' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Actions
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body request body
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-open-point-in-time
#
def close_point_in_time(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'close_point_in_time' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Actions
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body request body
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-allocation-explain
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-allocation-explain
#
def allocation_explain(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cluster.allocation_explain' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Actions
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template
#
def delete_component_template(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cluster.delete_component_template' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Actions
# nodes are still in the cluster. Server default: true.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-post-voting-config-exclusions
#
def delete_voting_config_exclusions(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cluster.delete_voting_config_exclusions' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Actions
# Defaults to false, which means information is retrieved from the master node.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template
# @see https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-cluster-put-component-template
#
def exists_component_template(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cluster.exists_component_template' }
Expand Down
Loading