elasticsearch-api 7.7.0.pre → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/elasticsearch-api.gemspec +7 -2
- data/lib/elasticsearch/api/actions/bulk.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/aliases.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/allocation.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/count.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/health.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/help.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/indices.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/master.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/nodes.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/plugins.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/recovery.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/repositories.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/segments.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/shards.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/templates.rb +1 -1
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +1 -1
- data/lib/elasticsearch/api/actions/clear_scroll.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/health.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/state.rb +1 -1
- data/lib/elasticsearch/api/actions/cluster/stats.rb +1 -1
- data/lib/elasticsearch/api/actions/count.rb +1 -1
- data/lib/elasticsearch/api/actions/create.rb +1 -1
- data/lib/elasticsearch/api/actions/delete.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_by_query.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +1 -1
- data/lib/elasticsearch/api/actions/delete_script.rb +1 -1
- data/lib/elasticsearch/api/actions/exists.rb +1 -1
- data/lib/elasticsearch/api/actions/exists_source.rb +1 -1
- data/lib/elasticsearch/api/actions/explain.rb +1 -1
- data/lib/elasticsearch/api/actions/field_caps.rb +1 -1
- data/lib/elasticsearch/api/actions/get.rb +1 -1
- data/lib/elasticsearch/api/actions/get_script.rb +1 -1
- data/lib/elasticsearch/api/actions/get_script_context.rb +1 -1
- data/lib/elasticsearch/api/actions/get_script_languages.rb +1 -1
- data/lib/elasticsearch/api/actions/get_source.rb +1 -1
- data/lib/elasticsearch/api/actions/index.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/analyze.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/clone.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/close.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/create.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/exists.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/exists_type.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/flush.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/freeze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_data_streams.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_template.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/get_upgrade.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/open.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/put_template.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/recovery.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/refresh.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/rollover.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/segments.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/shrink.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/split.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/stats.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +1 -1
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +1 -1
- data/lib/elasticsearch/api/actions/info.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +1 -1
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +1 -1
- data/lib/elasticsearch/api/actions/mget.rb +1 -1
- data/lib/elasticsearch/api/actions/msearch.rb +1 -1
- data/lib/elasticsearch/api/actions/msearch_template.rb +1 -1
- data/lib/elasticsearch/api/actions/mtermvectors.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/info.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +3 -2
- data/lib/elasticsearch/api/actions/nodes/stats.rb +1 -1
- data/lib/elasticsearch/api/actions/nodes/usage.rb +1 -1
- data/lib/elasticsearch/api/actions/ping.rb +1 -1
- data/lib/elasticsearch/api/actions/put_script.rb +1 -1
- data/lib/elasticsearch/api/actions/rank_eval.rb +1 -1
- data/lib/elasticsearch/api/actions/reindex.rb +1 -1
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +1 -1
- data/lib/elasticsearch/api/actions/render_search_template.rb +1 -1
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +1 -1
- data/lib/elasticsearch/api/actions/scroll.rb +1 -1
- data/lib/elasticsearch/api/actions/search.rb +1 -1
- data/lib/elasticsearch/api/actions/search_shards.rb +1 -1
- data/lib/elasticsearch/api/actions/search_template.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/create.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/get.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/status.rb +1 -1
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +1 -1
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +1 -1
- data/lib/elasticsearch/api/actions/tasks/get.rb +1 -1
- data/lib/elasticsearch/api/actions/tasks/list.rb +1 -1
- data/lib/elasticsearch/api/actions/termvectors.rb +1 -1
- data/lib/elasticsearch/api/actions/update.rb +1 -1
- data/lib/elasticsearch/api/actions/update_by_query.rb +1 -1
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +1 -1
- data/lib/elasticsearch/api/version.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/freeze_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +12 -7
- data/spec/rest_yaml_tests_helper.rb +4 -0
- data/utils/thor/generator/endpoint_specifics.rb +0 -2
- data/utils/thor/generator/files_helper.rb +10 -0
- data/utils/thor/templates/_documentation_top.erb +1 -1
- metadata +10 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1c68afba6599c75e0d09197f20ffb3736ad8e76a753cdf711bc1ac58dda8c303
|
|
4
|
+
data.tar.gz: 2aa7e95dfab8df37f85b4679a57b42697696437a5572f2a1a2b75a4aba7e1c67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a446a5c3fe25660fea3069ee65eba3d957efe7904fae7407ee370ead70e34da893fe6799292cc861a914e353134ba244f506e7d4cf6742c89b252c5cd21b61d9
|
|
7
|
+
data.tar.gz: 98b4dde5a98370824b5fa3af9296724774172cd737b4869e0ddf6b1d86c2f79ded0199bb5613dcdf3478b1d19ec52507d8073861f26a36535e3f21af44538f19
|
data/elasticsearch-api.gemspec
CHANGED
|
@@ -13,9 +13,14 @@ Gem::Specification.new do |s|
|
|
|
13
13
|
s.authors = ['Karel Minarik']
|
|
14
14
|
s.email = ['karel.minarik@elasticsearch.org']
|
|
15
15
|
s.summary = 'Ruby API for Elasticsearch.'
|
|
16
|
-
s.homepage = 'https://
|
|
16
|
+
s.homepage = 'https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/7.x/index.html'
|
|
17
17
|
s.license = 'Apache-2.0'
|
|
18
|
-
|
|
18
|
+
s.metadata = {
|
|
19
|
+
'homepage_uri' => 'https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/7.x/index.html',
|
|
20
|
+
'changelog_uri' => 'https://github.com/elastic/elasticsearch-ruby/blob/7.x/CHANGELOG.md',
|
|
21
|
+
'source_code_uri' => 'https://github.com/elastic/elasticsearch-ruby/tree/7.x/elasticsearch-api',
|
|
22
|
+
'bug_tracker_uri' => 'https://github.com/elastic/elasticsearch-ruby/issues'
|
|
23
|
+
}
|
|
19
24
|
s.files = `git ls-files`.split($/)
|
|
20
25
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
21
26
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
|
@@ -23,7 +23,7 @@ module Elasticsearch
|
|
|
23
23
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
24
24
|
# @option arguments [Hash] :body The operation definition and data (action-data pairs), separated by newlines (*Required*)
|
|
25
25
|
#
|
|
26
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
26
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-bulk.html
|
|
27
27
|
#
|
|
28
28
|
def bulk(arguments = {})
|
|
29
29
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
|
@@ -20,7 +20,7 @@ module Elasticsearch
|
|
|
20
20
|
|
|
21
21
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
22
22
|
#
|
|
23
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-alias.html
|
|
24
24
|
#
|
|
25
25
|
def aliases(arguments = {})
|
|
26
26
|
headers = arguments.delete(:headers) || {}
|
|
@@ -21,7 +21,7 @@ module Elasticsearch
|
|
|
21
21
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
22
22
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
23
23
|
#
|
|
24
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-allocation.html
|
|
25
25
|
#
|
|
26
26
|
def allocation(arguments = {})
|
|
27
27
|
headers = arguments.delete(:headers) || {}
|
|
@@ -16,7 +16,7 @@ module Elasticsearch
|
|
|
16
16
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
17
17
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
18
18
|
#
|
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-count.html
|
|
20
20
|
#
|
|
21
21
|
def count(arguments = {})
|
|
22
22
|
headers = arguments.delete(:headers) || {}
|
|
@@ -20,7 +20,7 @@ module Elasticsearch
|
|
|
20
20
|
# @option arguments [List] :fields A comma-separated list of fields to return in the output
|
|
21
21
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
22
22
|
#
|
|
23
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-fielddata.html
|
|
24
24
|
#
|
|
25
25
|
def fielddata(arguments = {})
|
|
26
26
|
headers = arguments.delete(:headers) || {}
|
|
@@ -19,7 +19,7 @@ module Elasticsearch
|
|
|
19
19
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
20
20
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
21
21
|
#
|
|
22
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-health.html
|
|
23
23
|
#
|
|
24
24
|
def health(arguments = {})
|
|
25
25
|
headers = arguments.delete(:headers) || {}
|
|
@@ -12,7 +12,7 @@ module Elasticsearch
|
|
|
12
12
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
|
13
13
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
14
14
|
#
|
|
15
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
15
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat.html
|
|
16
16
|
#
|
|
17
17
|
def help(arguments = {})
|
|
18
18
|
headers = arguments.delete(:headers) || {}
|
|
@@ -32,7 +32,7 @@ module Elasticsearch
|
|
|
32
32
|
|
|
33
33
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
34
34
|
#
|
|
35
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-indices.html
|
|
36
36
|
#
|
|
37
37
|
def indices(arguments = {})
|
|
38
38
|
headers = arguments.delete(:headers) || {}
|
|
@@ -17,7 +17,7 @@ module Elasticsearch
|
|
|
17
17
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
18
18
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
19
19
|
#
|
|
20
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-master.html
|
|
21
21
|
#
|
|
22
22
|
def master(arguments = {})
|
|
23
23
|
headers = arguments.delete(:headers) || {}
|
|
@@ -17,7 +17,7 @@ module Elasticsearch
|
|
|
17
17
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
18
18
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
19
19
|
#
|
|
20
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-nodeattrs.html
|
|
21
21
|
#
|
|
22
22
|
def nodeattrs(arguments = {})
|
|
23
23
|
headers = arguments.delete(:headers) || {}
|
|
@@ -24,7 +24,7 @@ module Elasticsearch
|
|
|
24
24
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
25
25
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
26
26
|
#
|
|
27
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-nodes.html
|
|
28
28
|
#
|
|
29
29
|
def nodes(arguments = {})
|
|
30
30
|
headers = arguments.delete(:headers) || {}
|
|
@@ -20,7 +20,7 @@ module Elasticsearch
|
|
|
20
20
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
21
21
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
22
22
|
#
|
|
23
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-pending-tasks.html
|
|
24
24
|
#
|
|
25
25
|
def pending_tasks(arguments = {})
|
|
26
26
|
headers = arguments.delete(:headers) || {}
|
|
@@ -17,7 +17,7 @@ module Elasticsearch
|
|
|
17
17
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
18
18
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
19
19
|
#
|
|
20
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-plugins.html
|
|
21
21
|
#
|
|
22
22
|
def plugins(arguments = {})
|
|
23
23
|
headers = arguments.delete(:headers) || {}
|
|
@@ -25,7 +25,7 @@ module Elasticsearch
|
|
|
25
25
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
26
26
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
27
27
|
#
|
|
28
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
28
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-recovery.html
|
|
29
29
|
#
|
|
30
30
|
def recovery(arguments = {})
|
|
31
31
|
headers = arguments.delete(:headers) || {}
|
|
@@ -17,7 +17,7 @@ module Elasticsearch
|
|
|
17
17
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
18
18
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
19
19
|
#
|
|
20
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-repositories.html
|
|
21
21
|
#
|
|
22
22
|
def repositories(arguments = {})
|
|
23
23
|
headers = arguments.delete(:headers) || {}
|
|
@@ -19,7 +19,7 @@ module Elasticsearch
|
|
|
19
19
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
20
20
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
21
21
|
#
|
|
22
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-segments.html
|
|
23
23
|
#
|
|
24
24
|
def segments(arguments = {})
|
|
25
25
|
headers = arguments.delete(:headers) || {}
|
|
@@ -24,7 +24,7 @@ module Elasticsearch
|
|
|
24
24
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
25
25
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
26
26
|
#
|
|
27
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-shards.html
|
|
28
28
|
#
|
|
29
29
|
def shards(arguments = {})
|
|
30
30
|
headers = arguments.delete(:headers) || {}
|
|
@@ -21,7 +21,7 @@ module Elasticsearch
|
|
|
21
21
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
22
22
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
23
23
|
#
|
|
24
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-snapshots.html
|
|
25
25
|
#
|
|
26
26
|
def snapshots(arguments = {})
|
|
27
27
|
headers = arguments.delete(:headers) || {}
|
|
@@ -22,7 +22,7 @@ module Elasticsearch
|
|
|
22
22
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
23
23
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
24
24
|
#
|
|
25
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
25
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/tasks.html
|
|
26
26
|
#
|
|
27
27
|
def tasks(arguments = {})
|
|
28
28
|
headers = arguments.delete(:headers) || {}
|
|
@@ -18,7 +18,7 @@ module Elasticsearch
|
|
|
18
18
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
19
19
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
20
20
|
#
|
|
21
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
21
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-templates.html
|
|
22
22
|
#
|
|
23
23
|
def templates(arguments = {})
|
|
24
24
|
headers = arguments.delete(:headers) || {}
|
|
@@ -22,7 +22,7 @@ module Elasticsearch
|
|
|
22
22
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
|
23
23
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
24
24
|
#
|
|
25
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
25
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-thread-pool.html
|
|
26
26
|
#
|
|
27
27
|
def thread_pool(arguments = {})
|
|
28
28
|
headers = arguments.delete(:headers) || {}
|
|
@@ -16,7 +16,7 @@ module Elasticsearch
|
|
|
16
16
|
# Deprecated since version 7.0.0
|
|
17
17
|
#
|
|
18
18
|
#
|
|
19
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/search-request-body.html#_clear_scroll_api
|
|
20
20
|
#
|
|
21
21
|
def clear_scroll(arguments = {})
|
|
22
22
|
headers = arguments.delete(:headers) || {}
|
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
|
13
13
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
14
14
|
# @option arguments [Hash] :body The index, shard, and primary flag to explain. Empty means 'explain the first unassigned shard'
|
|
15
15
|
#
|
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-allocation-explain.html
|
|
17
17
|
#
|
|
18
18
|
def allocation_explain(arguments = {})
|
|
19
19
|
headers = arguments.delete(:headers) || {}
|
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
|
13
13
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
|
14
14
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
15
15
|
#
|
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-component-templates.html
|
|
17
17
|
#
|
|
18
18
|
def delete_component_template(arguments = {})
|
|
19
19
|
raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
|
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
|
13
13
|
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
|
|
14
14
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
15
15
|
#
|
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-component-templates.html
|
|
17
17
|
#
|
|
18
18
|
def get_component_template(arguments = {})
|
|
19
19
|
headers = arguments.delete(:headers) || {}
|
|
@@ -14,7 +14,7 @@ module Elasticsearch
|
|
|
14
14
|
# @option arguments [Boolean] :include_defaults Whether to return all default clusters setting.
|
|
15
15
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
16
16
|
#
|
|
17
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
17
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-update-settings.html
|
|
18
18
|
#
|
|
19
19
|
def get_settings(arguments = {})
|
|
20
20
|
headers = arguments.delete(:headers) || {}
|
|
@@ -30,7 +30,7 @@ module Elasticsearch
|
|
|
30
30
|
|
|
31
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
32
32
|
#
|
|
33
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
33
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-health.html
|
|
34
34
|
#
|
|
35
35
|
def health(arguments = {})
|
|
36
36
|
headers = arguments.delete(:headers) || {}
|
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
|
13
13
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
|
14
14
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
15
15
|
#
|
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-pending.html
|
|
17
17
|
#
|
|
18
18
|
def pending_tasks(arguments = {})
|
|
19
19
|
headers = arguments.delete(:headers) || {}
|
|
@@ -15,7 +15,7 @@ module Elasticsearch
|
|
|
15
15
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
16
16
|
# @option arguments [Hash] :body The template definition (*Required*)
|
|
17
17
|
#
|
|
18
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-component-templates.html
|
|
19
19
|
#
|
|
20
20
|
def put_component_template(arguments = {})
|
|
21
21
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
|
@@ -14,7 +14,7 @@ module Elasticsearch
|
|
|
14
14
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
15
15
|
# @option arguments [Hash] :body The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). (*Required*)
|
|
16
16
|
#
|
|
17
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
17
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-update-settings.html
|
|
18
18
|
#
|
|
19
19
|
def put_settings(arguments = {})
|
|
20
20
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
|
@@ -10,7 +10,7 @@ module Elasticsearch
|
|
|
10
10
|
#
|
|
11
11
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
12
12
|
#
|
|
13
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
13
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-remote-info.html
|
|
14
14
|
#
|
|
15
15
|
def remote_info(arguments = {})
|
|
16
16
|
headers = arguments.delete(:headers) || {}
|
|
@@ -19,7 +19,7 @@ module Elasticsearch
|
|
|
19
19
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
20
20
|
# @option arguments [Hash] :body The definition of `commands` to perform (`move`, `cancel`, `allocate`)
|
|
21
21
|
#
|
|
22
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-reroute.html
|
|
23
23
|
#
|
|
24
24
|
def reroute(arguments = {})
|
|
25
25
|
headers = arguments.delete(:headers) || {}
|
|
@@ -24,7 +24,7 @@ module Elasticsearch
|
|
|
24
24
|
|
|
25
25
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
26
26
|
#
|
|
27
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-state.html
|
|
28
28
|
#
|
|
29
29
|
def state(arguments = {})
|
|
30
30
|
headers = arguments.delete(:headers) || {}
|
|
@@ -13,7 +13,7 @@ module Elasticsearch
|
|
|
13
13
|
# @option arguments [Time] :timeout Explicit operation timeout
|
|
14
14
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
15
15
|
#
|
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cluster-stats.html
|
|
17
17
|
#
|
|
18
18
|
def stats(arguments = {})
|
|
19
19
|
headers = arguments.delete(:headers) || {}
|
|
@@ -35,7 +35,7 @@ module Elasticsearch
|
|
|
35
35
|
# Deprecated since version 7.0.0
|
|
36
36
|
#
|
|
37
37
|
#
|
|
38
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
38
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/search-count.html
|
|
39
39
|
#
|
|
40
40
|
def count(arguments = {})
|
|
41
41
|
headers = arguments.delete(:headers) || {}
|
|
@@ -31,7 +31,7 @@ module Elasticsearch
|
|
|
31
31
|
# Deprecated since version 7.0.0
|
|
32
32
|
#
|
|
33
33
|
#
|
|
34
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-index_.html
|
|
35
35
|
#
|
|
36
36
|
def create(arguments = {})
|
|
37
37
|
if arguments[:id]
|
|
@@ -29,7 +29,7 @@ module Elasticsearch
|
|
|
29
29
|
# Deprecated since version 7.0.0
|
|
30
30
|
#
|
|
31
31
|
#
|
|
32
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-delete.html
|
|
33
33
|
#
|
|
34
34
|
def delete(arguments = {})
|
|
35
35
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|
|
@@ -58,7 +58,7 @@ module Elasticsearch
|
|
|
58
58
|
# Deprecated since version 7.0.0
|
|
59
59
|
#
|
|
60
60
|
#
|
|
61
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
61
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-delete-by-query.html
|
|
62
62
|
#
|
|
63
63
|
def delete_by_query(arguments = {})
|
|
64
64
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
|
@@ -11,7 +11,7 @@ module Elasticsearch
|
|
|
11
11
|
# @option arguments [Number] :requests_per_second The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. (*Required*)
|
|
12
12
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
13
13
|
#
|
|
14
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
14
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-delete-by-query.html
|
|
15
15
|
#
|
|
16
16
|
def delete_by_query_rethrottle(arguments = {})
|
|
17
17
|
raise ArgumentError, "Required argument 'task_id' missing" unless arguments[:task_id]
|
|
@@ -12,7 +12,7 @@ module Elasticsearch
|
|
|
12
12
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
|
13
13
|
# @option arguments [Hash] :headers Custom HTTP headers
|
|
14
14
|
#
|
|
15
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
15
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/modules-scripting.html
|
|
16
16
|
#
|
|
17
17
|
def delete_script(arguments = {})
|
|
18
18
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
|
@@ -29,7 +29,7 @@ module Elasticsearch
|
|
|
29
29
|
# Deprecated since version 7.0.0
|
|
30
30
|
#
|
|
31
31
|
#
|
|
32
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/
|
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/docs-get.html
|
|
33
33
|
#
|
|
34
34
|
def exists(arguments = {})
|
|
35
35
|
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
|