Skip to content
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

Auto-generated code for 9.0 #2601

Open
wants to merge 1 commit into
base: 9.0
Choose a base branch
from
Open
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 @@ -27,7 +27,7 @@ module Actions
# @option arguments [String] :id The async search ID
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html
#
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 @@ -30,7 +30,7 @@ module Actions
# @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html
#
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 @@ -28,7 +28,7 @@ module Actions
# @option arguments [Time] :keep_alive Specify the time interval in which the results (partial or final) for this search will be available
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html
#
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 @@ -71,7 +71,7 @@ module Actions
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The search definition using the Query DSL
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/async-search.html
#
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 @@ -40,7 +40,7 @@ module Actions
# @option arguments [String|Array] :body The operation definition and data (action-data pairs), separated by newlines. 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/guide/en/elasticsearch/reference/current/docs-bulk.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/docs-bulk.html
#
def bulk(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'bulk' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Actions
# @option arguments [Time] :master_timeout Timeout for waiting for new cluster state in case it is blocked
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-alias.html
#
def aliases(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.aliases' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-allocation.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-allocation.html
#
def allocation(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.allocation' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-component-templates.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-component-templates.html
#
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 @@ -32,7 +32,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-count.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-count.html
#
def count(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.count' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-fielddata.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-fielddata.html
#
def fielddata(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.fielddata' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-health.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-health.html
#
def health(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.health' }
Expand Down
6 changes: 2 additions & 4 deletions elasticsearch-api/lib/elasticsearch/api/actions/cat/help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ module Cat
module Actions
# Returns help for the Cat APIs.
#
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat.html
#
def help(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.help' }
Expand All @@ -40,7 +38,7 @@ def help(arguments = {})

method = Elasticsearch::API::HTTP_GET
path = '_cat'
params = Utils.process_params(arguments)
params = {}

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 @@ -39,7 +39,7 @@ module Actions
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-indices.html
#
def indices(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.indices' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-master.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-master.html
#
def master(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.master' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html
# @see http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-dfanalytics.html
#
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 @@ -34,7 +34,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html
# @see http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-datafeeds.html
#
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 @@ -35,7 +35,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html
# @see http://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-anomaly-detectors.html
#
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 @@ -37,7 +37,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-trained-model.html
#
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 @@ -33,7 +33,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodeattrs.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-nodeattrs.html
#
def nodeattrs(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.nodeattrs' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Actions
# @option arguments [Boolean] :include_unloaded_segments If set to true segment stats will include stats for segments that are not currently loaded into memory
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-nodes.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-nodes.html
#
def nodes(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.nodes' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-pending-tasks.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-pending-tasks.html
#
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 @@ -34,7 +34,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-plugins.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-plugins.html
#
def plugins(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.plugins' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-recovery.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-recovery.html
#
def recovery(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.recovery' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-repositories.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-repositories.html
#
def repositories(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.repositories' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ module Actions
#
# @option arguments [List] :index A comma-separated list of index names to limit the returned information
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [String] :bytes The unit in which to display byte values (options: b, k, kb, m, mb, g, gb, t, tb, p, pb)
# @option arguments [List] :h Comma-separated list of column names to display
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-segments.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-segments.html
#
def segments(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.segments' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-shards.html
#
def shards(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.shards' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-snapshots.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-snapshots.html
#
def snapshots(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.snapshots' }
Expand Down
4 changes: 3 additions & 1 deletion elasticsearch-api/lib/elasticsearch/api/actions/cat/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ module Actions
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos)
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
# @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the task has completed.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/tasks.html
#
def tasks(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.tasks' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-templates.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-templates.html
#
def templates(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.templates' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-thread-pool.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-thread-pool.html
#
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 @@ -36,7 +36,7 @@ module Actions
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cat-transforms.html
#
def transforms(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.transforms' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Actions
# Deprecated since version 7.0.0
#
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/clear-scroll-api.html
#
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 @@ -26,7 +26,7 @@ module Actions
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body a point-in-time id to close
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/point-in-time-api.html
#
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 @@ -30,7 +30,7 @@ module Actions
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The index, shard, and primary flag to explain. Empty means 'explain a randomly-chosen unassigned shard'
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-allocation-explain.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/cluster-allocation-explain.html
#
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 @@ -29,7 +29,7 @@ module Actions
# @option arguments [Time] :master_timeout Specify timeout for connection to master
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-component-template.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/9.0/indices-component-template.html
#
def delete_component_template(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cluster.delete_component_template' }
Expand Down
Loading