Skip to content

Commit

Permalink
[API] Auto-generated API code
Browse files Browse the repository at this point in the history
- Pins source code documentation URL to 8.11
- indices data_lifecycle APIs set to Experimental
  • Loading branch information
picandocodigo committed Oct 6, 2023
1 parent b900c57 commit 4498903
Show file tree
Hide file tree
Showing 446 changed files with 462 additions and 446 deletions.
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/8.11/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/8.11/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 @@ -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/8.11/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/current/async-search.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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 @@ -27,7 +27,7 @@ module Actions
# @option arguments [String] :name the name of the autoscaling policy
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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 @@ -26,7 +26,7 @@ module Actions
#
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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 @@ -27,7 +27,7 @@ module Actions
# @option arguments [String] :name the name of the autoscaling policy
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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 @@ -28,7 +28,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/current/autoscaling-put-autoscaling-policy.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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 @@ -38,7 +38,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/8.11/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 [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-alias.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/current/cat.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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/current/cat-indices.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/current/cat-segments.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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/8.11/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/8.11/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/current/tasks.html
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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/8.11/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 @@ -29,7 +29,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/8.11/cluster-allocation-explain.html
#
def allocation_explain(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || "cluster.allocation_explain" }
Expand Down
Loading

0 comments on commit 4498903

Please sign in to comment.