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 8.x #2514

Merged
merged 2 commits into from
Nov 11, 2024
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 @@ -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/8.16/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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 @@ -69,7 +69,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/8.16/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/async-search.html
#
def submit(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'async_search.submit' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module Actions
# @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.16/autoscaling-delete-autoscaling-policy.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-delete-autoscaling-policy.html
#
def delete_autoscaling_policy(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.delete_autoscaling_policy' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module Actions
# @option arguments [Time] :master_timeout Timeout for processing on master node
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.16/autoscaling-get-autoscaling-capacity.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-capacity.html
#
def get_autoscaling_capacity(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.get_autoscaling_capacity' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Actions
# @option arguments [Time] :master_timeout Timeout for processing on master node
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.16/autoscaling-get-autoscaling-policy.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-get-autoscaling-policy.html
#
def get_autoscaling_policy(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.get_autoscaling_policy' }
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 specification of the autoscaling policy (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.16/autoscaling-put-autoscaling-policy.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/autoscaling-put-autoscaling-policy.html
#
def put_autoscaling_policy(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.put_autoscaling_policy' }
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/8.16/docs-bulk.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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 [Boolean] :local_only True if only the node being called should be considered
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://github.com/elastic/elasticsearch/blob/8.16/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities
# @see https://github.com/elastic/elasticsearch/blob/8.17/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc#require-or-skip-api-capabilities
#
def capabilities(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'capabilities' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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/8.16/cat-alias.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-allocation.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-component-templates.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-count.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-fielddata.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-health.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-health.html
#
def health(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.health' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Actions
# @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/8.16/cat.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat.html
#
def help(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.help' }
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/8.16/cat-indices.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-master.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-dfanalytics.html
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-datafeeds.html
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-anomaly-detectors.html
# @see http://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-trained-model.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-nodeattrs.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-nodes.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-pending-tasks.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-plugins.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-recovery.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-repositories.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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 @@ -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/8.16/cat-segments.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-shards.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-snapshots.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cat-snapshots.html
#
def snapshots(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'cat.snapshots' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,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/8.16/tasks.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-templates.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-thread-pool.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/cat-transforms.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/clear-scroll-api.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/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/8.16/point-in-time-api.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/point-in-time-api.html
#
def close_point_in_time(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'close_point_in_time' }
Expand Down
Loading