elasticsearch-api 7.6.0 → 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 +6 -3
- data/lib/elasticsearch/api/actions/cat/aliases.rb +10 -4
- data/lib/elasticsearch/api/actions/cat/allocation.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/count.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/fielddata.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/health.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/help.rb +5 -3
- data/lib/elasticsearch/api/actions/cat/indices.rb +11 -5
- data/lib/elasticsearch/api/actions/cat/master.rb +5 -3
- data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +5 -3
- data/lib/elasticsearch/api/actions/cat/nodes.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/plugins.rb +5 -3
- data/lib/elasticsearch/api/actions/cat/recovery.rb +7 -5
- data/lib/elasticsearch/api/actions/cat/repositories.rb +5 -3
- data/lib/elasticsearch/api/actions/cat/segments.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/shards.rb +7 -5
- data/lib/elasticsearch/api/actions/cat/snapshots.rb +7 -5
- data/lib/elasticsearch/api/actions/cat/tasks.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/templates.rb +6 -4
- data/lib/elasticsearch/api/actions/cat/thread_pool.rb +6 -4
- data/lib/elasticsearch/api/actions/clear_scroll.rb +6 -4
- data/lib/elasticsearch/api/actions/cluster/allocation_explain.rb +5 -3
- data/lib/elasticsearch/api/actions/cluster/delete_component_template.rb +45 -0
- data/lib/elasticsearch/api/actions/cluster/get_component_template.rb +47 -0
- data/lib/elasticsearch/api/actions/cluster/get_settings.rb +5 -3
- data/lib/elasticsearch/api/actions/cluster/health.rb +7 -4
- data/lib/elasticsearch/api/actions/cluster/pending_tasks.rb +5 -3
- data/lib/elasticsearch/api/actions/cluster/put_component_template.rb +49 -0
- data/lib/elasticsearch/api/actions/cluster/put_settings.rb +5 -3
- data/lib/elasticsearch/api/actions/cluster/remote_info.rb +5 -3
- data/lib/elasticsearch/api/actions/cluster/reroute.rb +5 -3
- data/lib/elasticsearch/api/actions/cluster/state.rb +7 -4
- data/lib/elasticsearch/api/actions/cluster/stats.rb +6 -4
- data/lib/elasticsearch/api/actions/count.rb +8 -6
- data/lib/elasticsearch/api/actions/create.rb +2 -2
- data/lib/elasticsearch/api/actions/delete.rb +6 -3
- data/lib/elasticsearch/api/actions/delete_by_query.rb +7 -5
- data/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb +5 -3
- data/lib/elasticsearch/api/actions/delete_script.rb +5 -3
- data/lib/elasticsearch/api/actions/exists.rb +5 -2
- data/lib/elasticsearch/api/actions/exists_source.rb +5 -2
- data/lib/elasticsearch/api/actions/explain.rb +5 -3
- data/lib/elasticsearch/api/actions/field_caps.rb +7 -5
- data/lib/elasticsearch/api/actions/get.rb +6 -3
- data/lib/elasticsearch/api/actions/get_script.rb +5 -3
- data/lib/elasticsearch/api/actions/get_script_context.rb +5 -3
- data/lib/elasticsearch/api/actions/get_script_languages.rb +5 -3
- data/lib/elasticsearch/api/actions/get_source.rb +5 -2
- data/lib/elasticsearch/api/actions/index.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/analyze.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/clear_cache.rb +7 -5
- data/lib/elasticsearch/api/actions/indices/clone.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/close.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/create.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/create_data_stream.rb +37 -0
- data/lib/elasticsearch/api/actions/indices/delete.rb +7 -4
- data/lib/elasticsearch/api/actions/indices/delete_alias.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/delete_data_stream.rb +35 -0
- data/lib/elasticsearch/api/actions/indices/delete_template.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/exists.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/exists_alias.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/exists_template.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/exists_type.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/flush.rb +7 -4
- data/lib/elasticsearch/api/actions/indices/flush_synced.rb +7 -4
- data/lib/elasticsearch/api/actions/indices/forcemerge.rb +7 -5
- data/lib/elasticsearch/api/actions/indices/freeze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/get.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/get_alias.rb +7 -5
- data/lib/elasticsearch/api/actions/indices/get_data_streams.rb +37 -0
- data/lib/elasticsearch/api/actions/indices/get_field_mapping.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/get_mapping.rb +7 -5
- data/lib/elasticsearch/api/actions/indices/get_settings.rb +7 -5
- data/lib/elasticsearch/api/actions/indices/get_template.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/get_upgrade.rb +7 -4
- data/lib/elasticsearch/api/actions/indices/open.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/put_alias.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/put_mapping.rb +6 -3
- data/lib/elasticsearch/api/actions/indices/put_settings.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/put_template.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/recovery.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/refresh.rb +7 -4
- data/lib/elasticsearch/api/actions/indices/rollover.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/segments.rb +7 -5
- data/lib/elasticsearch/api/actions/indices/shard_stores.rb +7 -4
- data/lib/elasticsearch/api/actions/indices/shrink.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/split.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/stats.rb +6 -4
- data/lib/elasticsearch/api/actions/indices/unfreeze.rb +4 -0
- data/lib/elasticsearch/api/actions/indices/update_aliases.rb +5 -3
- data/lib/elasticsearch/api/actions/indices/upgrade.rb +7 -5
- data/lib/elasticsearch/api/actions/indices/validate_query.rb +7 -5
- data/lib/elasticsearch/api/actions/info.rb +5 -3
- data/lib/elasticsearch/api/actions/ingest/delete_pipeline.rb +5 -3
- data/lib/elasticsearch/api/actions/ingest/get_pipeline.rb +6 -4
- data/lib/elasticsearch/api/actions/ingest/processor_grok.rb +5 -3
- data/lib/elasticsearch/api/actions/ingest/put_pipeline.rb +5 -3
- data/lib/elasticsearch/api/actions/ingest/simulate.rb +5 -3
- data/lib/elasticsearch/api/actions/mget.rb +5 -3
- data/lib/elasticsearch/api/actions/msearch.rb +7 -4
- data/lib/elasticsearch/api/actions/msearch_template.rb +6 -3
- data/lib/elasticsearch/api/actions/mtermvectors.rb +6 -3
- data/lib/elasticsearch/api/actions/nodes/hot_threads.rb +6 -4
- data/lib/elasticsearch/api/actions/nodes/info.rb +6 -4
- data/lib/elasticsearch/api/actions/nodes/reload_secure_settings.rb +8 -5
- data/lib/elasticsearch/api/actions/nodes/stats.rb +6 -4
- data/lib/elasticsearch/api/actions/nodes/usage.rb +6 -4
- data/lib/elasticsearch/api/actions/ping.rb +5 -3
- data/lib/elasticsearch/api/actions/put_script.rb +5 -3
- data/lib/elasticsearch/api/actions/rank_eval.rb +6 -3
- data/lib/elasticsearch/api/actions/reindex.rb +6 -4
- data/lib/elasticsearch/api/actions/reindex_rethrottle.rb +5 -3
- data/lib/elasticsearch/api/actions/render_search_template.rb +6 -4
- data/lib/elasticsearch/api/actions/scripts_painless_execute.rb +5 -3
- data/lib/elasticsearch/api/actions/scroll.rb +6 -4
- data/lib/elasticsearch/api/actions/search.rb +8 -6
- data/lib/elasticsearch/api/actions/search_shards.rb +7 -4
- data/lib/elasticsearch/api/actions/search_template.rb +6 -4
- data/lib/elasticsearch/api/actions/snapshot/cleanup_repository.rb +6 -5
- data/lib/elasticsearch/api/actions/snapshot/create.rb +5 -3
- data/lib/elasticsearch/api/actions/snapshot/create_repository.rb +5 -3
- data/lib/elasticsearch/api/actions/snapshot/delete.rb +6 -4
- data/lib/elasticsearch/api/actions/snapshot/delete_repository.rb +6 -4
- data/lib/elasticsearch/api/actions/snapshot/get.rb +6 -4
- data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +7 -5
- data/lib/elasticsearch/api/actions/snapshot/restore.rb +5 -3
- data/lib/elasticsearch/api/actions/snapshot/status.rb +7 -5
- data/lib/elasticsearch/api/actions/snapshot/verify_repository.rb +5 -3
- data/lib/elasticsearch/api/actions/tasks/cancel.rb +6 -4
- data/lib/elasticsearch/api/actions/tasks/get.rb +5 -3
- data/lib/elasticsearch/api/actions/tasks/list.rb +5 -3
- data/lib/elasticsearch/api/actions/termvectors.rb +5 -2
- data/lib/elasticsearch/api/actions/update.rb +6 -4
- data/lib/elasticsearch/api/actions/update_by_query.rb +7 -5
- data/lib/elasticsearch/api/actions/update_by_query_rethrottle.rb +5 -3
- data/lib/elasticsearch/api/version.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/aliases_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/allocation_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/count_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/fielddata_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/cat/health_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/help_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/indices_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/master_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/nodeattrs_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/nodes_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/pending_tasks_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/plugins_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/recovery_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/repositories_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/segments_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/shards_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/snapshot_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/tasks_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/templates_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cat/thread_pool_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/clear_scroll_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/cluster/allocation_explain_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cluster/get_settings_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cluster/health_spec.rb +3 -3
- data/spec/elasticsearch/api/actions/cluster/pending_tasks_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cluster/put_settings_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cluster/remote_info_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/cluster/reroute_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/cluster/state_spec.rb +2 -2
- data/spec/elasticsearch/api/actions/cluster/stats_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/count_spec.rb +6 -3
- data/spec/elasticsearch/api/actions/create_document_spec.rb +8 -4
- data/spec/elasticsearch/api/actions/delete_by_query_spec.rb +6 -3
- data/spec/elasticsearch/api/actions/delete_document_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/delete_script_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/exists_document_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/explain_document_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/field_caps_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/get_document_source_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/get_document_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/get_script_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/index_document_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/indices/analyze_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/clear_cache_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/clone_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/close_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/create_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/delete_alias_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/delete_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/delete_template_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/exists_alias_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/exists_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/exists_template_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/exists_type_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/flush_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/flush_synced_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/forcemerge_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/freeze_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/get_alias_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/get_mapping_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/get_settings_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/get_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/open_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/put_alias_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/put_mapping_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/put_settings_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/put_template_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/recovery_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/refresh_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/rollover_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/segments_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/shard_stores_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/shrink_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/split_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/stats_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/unfreeze_spec.rb +4 -0
- data/spec/elasticsearch/api/actions/indices/update_aliases_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/upgrade_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/indices/validate_query_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/info_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/ingest/delete_pipeline_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/ingest/get_pipeline_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/ingest/put_pipeline_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/ingest/simulate_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/json_builders_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/mget_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/mtermvectors_spec.rb +3 -2
- data/spec/elasticsearch/api/actions/nodes/hot_threads_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/nodes/info_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb +13 -8
- data/spec/elasticsearch/api/actions/nodes/stats_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/ping_spec.rb +3 -2
- data/spec/elasticsearch/api/actions/put_script_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/reindex_spec.rb +3 -2
- data/spec/elasticsearch/api/actions/render_search_template_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/scroll_spec.rb +4 -2
- data/spec/elasticsearch/api/actions/search_shards_spec.rb +3 -2
- data/spec/elasticsearch/api/actions/search_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/search_template_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/snapshot/create_repository_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/snapshot/create_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/snapshot/delete_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/snapshot/get_repository_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/snapshot/get_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/snapshot/restore_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/snapshot/status_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/snapshot/verify_repository_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/tasks/cancel_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/tasks/get_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/tasks/list_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/termvectors_spec.rb +2 -1
- data/spec/elasticsearch/api/actions/update_by_query_spec.rb +3 -2
- data/spec/elasticsearch/api/actions/update_document_spec.rb +2 -1
- data/spec/rest_yaml_tests_helper.rb +4 -0
- data/utils/thor/generator/endpoint_specifics.rb +1 -3
- data/utils/thor/generator/files_helper.rb +10 -0
- data/utils/thor/templates/_documentation_top.erb +3 -2
- data/utils/thor/templates/_perform_request.erb +6 -5
- data/utils/thor/templates/method.erb +2 -1
- metadata +14 -17
- data/lib/elasticsearch/api/actions/abort_benchmark.rb +0 -28
- data/lib/elasticsearch/api/actions/benchmark.rb +0 -68
- data/lib/elasticsearch/api/actions/delete_by_rethrottle.rb +0 -34
- data/lib/elasticsearch/api/actions/nodes/shutdown.rb +0 -43
- data/lib/elasticsearch/api/actions/remote/info.rb +0 -24
- data/spec/elasticsearch/api/actions/abort_benchmark_spec.rb +0 -21
- data/spec/elasticsearch/api/actions/benchmark_spec.rb +0 -21
- data/spec/elasticsearch/api/actions/nodes/shutdown_spec.rb +0 -63
- data/spec/elasticsearch/api/actions/remote/info_spec.rb +0 -22
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)/})
|
@@ -20,14 +20,16 @@ module Elasticsearch
|
|
20
20
|
# @option arguments [List] :_source_excludes Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
|
21
21
|
# @option arguments [List] :_source_includes Default list of fields to extract and return from the _source field, can be overridden on each sub-request
|
22
22
|
# @option arguments [String] :pipeline The pipeline id to preprocess incoming documents with
|
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/7.
|
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]
|
30
30
|
|
31
|
+
headers = arguments.delete(:headers) || {}
|
32
|
+
|
31
33
|
arguments = arguments.clone
|
32
34
|
|
33
35
|
_index = arguments.delete(:index)
|
@@ -51,7 +53,8 @@ module Elasticsearch
|
|
51
53
|
payload = body
|
52
54
|
end
|
53
55
|
|
54
|
-
|
56
|
+
headers.merge!("Content-Type" => "application/x-ndjson")
|
57
|
+
perform_request(method, path, params, payload, headers).body
|
55
58
|
end
|
56
59
|
|
57
60
|
# Register this action with its valid params when the module is loaded.
|
@@ -15,11 +15,16 @@ module Elasticsearch
|
|
15
15
|
# @option arguments [Boolean] :help Return help information
|
16
16
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
17
17
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
18
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
19
|
+
# (options: open,closed,hidden,none,all)
|
18
20
|
|
21
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
19
22
|
#
|
20
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-alias.html
|
21
24
|
#
|
22
25
|
def aliases(arguments = {})
|
26
|
+
headers = arguments.delete(:headers) || {}
|
27
|
+
|
23
28
|
arguments = arguments.clone
|
24
29
|
|
25
30
|
_name = arguments.delete(:name)
|
@@ -29,12 +34,12 @@ module Elasticsearch
|
|
29
34
|
"_cat/aliases/#{Utils.__listify(_name)}"
|
30
35
|
else
|
31
36
|
"_cat/aliases"
|
32
|
-
end
|
37
|
+
end
|
33
38
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
34
39
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
35
40
|
|
36
41
|
body = nil
|
37
|
-
perform_request(method, path, params, body).body
|
42
|
+
perform_request(method, path, params, body, headers).body
|
38
43
|
end
|
39
44
|
|
40
45
|
# Register this action with its valid params when the module is loaded.
|
@@ -46,7 +51,8 @@ end
|
|
46
51
|
:h,
|
47
52
|
:help,
|
48
53
|
:s,
|
49
|
-
:v
|
54
|
+
:v,
|
55
|
+
:expand_wildcards
|
50
56
|
].freeze)
|
51
57
|
end
|
52
58
|
end
|
@@ -19,11 +19,13 @@ module Elasticsearch
|
|
19
19
|
# @option arguments [Boolean] :help Return help information
|
20
20
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
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/7.
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-allocation.html
|
25
25
|
#
|
26
26
|
def allocation(arguments = {})
|
27
|
+
headers = arguments.delete(:headers) || {}
|
28
|
+
|
27
29
|
arguments = arguments.clone
|
28
30
|
|
29
31
|
_node_id = arguments.delete(:node_id)
|
@@ -33,12 +35,12 @@ module Elasticsearch
|
|
33
35
|
"_cat/allocation/#{Utils.__listify(_node_id)}"
|
34
36
|
else
|
35
37
|
"_cat/allocation"
|
36
|
-
end
|
38
|
+
end
|
37
39
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
38
40
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
39
41
|
|
40
42
|
body = nil
|
41
|
-
perform_request(method, path, params, body).body
|
43
|
+
perform_request(method, path, params, body, headers).body
|
42
44
|
end
|
43
45
|
|
44
46
|
# Register this action with its valid params when the module is loaded.
|
@@ -14,11 +14,13 @@ module Elasticsearch
|
|
14
14
|
# @option arguments [Boolean] :help Return help information
|
15
15
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
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/7.
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-count.html
|
20
20
|
#
|
21
21
|
def count(arguments = {})
|
22
|
+
headers = arguments.delete(:headers) || {}
|
23
|
+
|
22
24
|
arguments = arguments.clone
|
23
25
|
|
24
26
|
_index = arguments.delete(:index)
|
@@ -28,12 +30,12 @@ module Elasticsearch
|
|
28
30
|
"_cat/count/#{Utils.__listify(_index)}"
|
29
31
|
else
|
30
32
|
"_cat/count"
|
31
|
-
end
|
33
|
+
end
|
32
34
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
33
35
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
34
36
|
|
35
37
|
body = nil
|
36
|
-
perform_request(method, path, params, body).body
|
38
|
+
perform_request(method, path, params, body, headers).body
|
37
39
|
end
|
38
40
|
|
39
41
|
# Register this action with its valid params when the module is loaded.
|
@@ -18,11 +18,13 @@ module Elasticsearch
|
|
18
18
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
19
19
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
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/7.
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-fielddata.html
|
24
24
|
#
|
25
25
|
def fielddata(arguments = {})
|
26
|
+
headers = arguments.delete(:headers) || {}
|
27
|
+
|
26
28
|
arguments = arguments.clone
|
27
29
|
|
28
30
|
_fields = arguments.delete(:fields)
|
@@ -32,11 +34,11 @@ module Elasticsearch
|
|
32
34
|
"_cat/fielddata/#{Utils.__listify(_fields)}"
|
33
35
|
else
|
34
36
|
"_cat/fielddata"
|
35
|
-
end
|
37
|
+
end
|
36
38
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
37
39
|
|
38
40
|
body = nil
|
39
|
-
perform_request(method, path, params, body).body
|
41
|
+
perform_request(method, path, params, body, headers).body
|
40
42
|
end
|
41
43
|
|
42
44
|
# Register this action with its valid params when the module is loaded.
|
@@ -13,15 +13,17 @@ module Elasticsearch
|
|
13
13
|
# @option arguments [Boolean] :help Return help information
|
14
14
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
15
15
|
# @option arguments [String] :time The unit in which to display time values
|
16
|
-
# (options: d
|
16
|
+
# (options: d,h,m,s,ms,micros,nanos)
|
17
17
|
|
18
18
|
# @option arguments [Boolean] :ts Set to false to disable timestamping
|
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/7.
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-health.html
|
23
23
|
#
|
24
24
|
def health(arguments = {})
|
25
|
+
headers = arguments.delete(:headers) || {}
|
26
|
+
|
25
27
|
arguments = arguments.clone
|
26
28
|
|
27
29
|
method = Elasticsearch::API::HTTP_GET
|
@@ -30,7 +32,7 @@ module Elasticsearch
|
|
30
32
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
31
33
|
|
32
34
|
body = nil
|
33
|
-
perform_request(method, path, params, body).body
|
35
|
+
perform_request(method, path, params, body, headers).body
|
34
36
|
end
|
35
37
|
|
36
38
|
# Register this action with its valid params when the module is loaded.
|
@@ -10,11 +10,13 @@ module Elasticsearch
|
|
10
10
|
#
|
11
11
|
# @option arguments [Boolean] :help Return help information
|
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/7.
|
15
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat.html
|
16
16
|
#
|
17
17
|
def help(arguments = {})
|
18
|
+
headers = arguments.delete(:headers) || {}
|
19
|
+
|
18
20
|
arguments = arguments.clone
|
19
21
|
|
20
22
|
method = Elasticsearch::API::HTTP_GET
|
@@ -22,7 +24,7 @@ module Elasticsearch
|
|
22
24
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
23
25
|
|
24
26
|
body = nil
|
25
|
-
perform_request(method, path, params, body).body
|
27
|
+
perform_request(method, path, params, body, headers).body
|
26
28
|
end
|
27
29
|
|
28
30
|
# Register this action with its valid params when the module is loaded.
|
@@ -23,15 +23,20 @@ module Elasticsearch
|
|
23
23
|
# @option arguments [Boolean] :pri Set to true to return stats only for primary shards
|
24
24
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
25
25
|
# @option arguments [String] :time The unit in which to display time values
|
26
|
-
# (options: d
|
26
|
+
# (options: d,h,m,s,ms,micros,nanos)
|
27
27
|
|
28
28
|
# @option arguments [Boolean] :v Verbose mode. Display column headers
|
29
29
|
# @option arguments [Boolean] :include_unloaded_segments If set to true segment stats will include stats for segments that are not currently loaded into memory
|
30
|
+
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
31
|
+
# (options: open,closed,hidden,none,all)
|
30
32
|
|
33
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
31
34
|
#
|
32
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-indices.html
|
33
36
|
#
|
34
37
|
def indices(arguments = {})
|
38
|
+
headers = arguments.delete(:headers) || {}
|
39
|
+
|
35
40
|
arguments = arguments.clone
|
36
41
|
|
37
42
|
_index = arguments.delete(:index)
|
@@ -41,12 +46,12 @@ module Elasticsearch
|
|
41
46
|
"_cat/indices/#{Utils.__listify(_index)}"
|
42
47
|
else
|
43
48
|
"_cat/indices"
|
44
|
-
end
|
49
|
+
end
|
45
50
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
46
51
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
47
52
|
|
48
53
|
body = nil
|
49
|
-
perform_request(method, path, params, body).body
|
54
|
+
perform_request(method, path, params, body, headers).body
|
50
55
|
end
|
51
56
|
|
52
57
|
# Register this action with its valid params when the module is loaded.
|
@@ -64,7 +69,8 @@ end
|
|
64
69
|
:s,
|
65
70
|
:time,
|
66
71
|
:v,
|
67
|
-
:include_unloaded_segments
|
72
|
+
:include_unloaded_segments,
|
73
|
+
:expand_wildcards
|
68
74
|
].freeze)
|
69
75
|
end
|
70
76
|
end
|
@@ -15,11 +15,13 @@ module Elasticsearch
|
|
15
15
|
# @option arguments [Boolean] :help Return help information
|
16
16
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
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/7.
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-master.html
|
21
21
|
#
|
22
22
|
def master(arguments = {})
|
23
|
+
headers = arguments.delete(:headers) || {}
|
24
|
+
|
23
25
|
arguments = arguments.clone
|
24
26
|
|
25
27
|
method = Elasticsearch::API::HTTP_GET
|
@@ -27,7 +29,7 @@ module Elasticsearch
|
|
27
29
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
28
30
|
|
29
31
|
body = nil
|
30
|
-
perform_request(method, path, params, body).body
|
32
|
+
perform_request(method, path, params, body, headers).body
|
31
33
|
end
|
32
34
|
|
33
35
|
# Register this action with its valid params when the module is loaded.
|
@@ -15,11 +15,13 @@ module Elasticsearch
|
|
15
15
|
# @option arguments [Boolean] :help Return help information
|
16
16
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
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/7.
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-nodeattrs.html
|
21
21
|
#
|
22
22
|
def nodeattrs(arguments = {})
|
23
|
+
headers = arguments.delete(:headers) || {}
|
24
|
+
|
23
25
|
arguments = arguments.clone
|
24
26
|
|
25
27
|
method = Elasticsearch::API::HTTP_GET
|
@@ -27,7 +29,7 @@ module Elasticsearch
|
|
27
29
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
28
30
|
|
29
31
|
body = nil
|
30
|
-
perform_request(method, path, params, body).body
|
32
|
+
perform_request(method, path, params, body, headers).body
|
31
33
|
end
|
32
34
|
|
33
35
|
# Register this action with its valid params when the module is loaded.
|
@@ -19,14 +19,16 @@ module Elasticsearch
|
|
19
19
|
# @option arguments [Boolean] :help Return help information
|
20
20
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
21
21
|
# @option arguments [String] :time The unit in which to display time values
|
22
|
-
# (options: d
|
22
|
+
# (options: d,h,m,s,ms,micros,nanos)
|
23
23
|
|
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/7.
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-nodes.html
|
28
28
|
#
|
29
29
|
def nodes(arguments = {})
|
30
|
+
headers = arguments.delete(:headers) || {}
|
31
|
+
|
30
32
|
arguments = arguments.clone
|
31
33
|
|
32
34
|
method = Elasticsearch::API::HTTP_GET
|
@@ -35,7 +37,7 @@ module Elasticsearch
|
|
35
37
|
params[:h] = Utils.__listify(params[:h], escape: false) if params[:h]
|
36
38
|
|
37
39
|
body = nil
|
38
|
-
perform_request(method, path, params, body).body
|
40
|
+
perform_request(method, path, params, body, headers).body
|
39
41
|
end
|
40
42
|
|
41
43
|
# Register this action with its valid params when the module is loaded.
|
@@ -15,14 +15,16 @@ module Elasticsearch
|
|
15
15
|
# @option arguments [Boolean] :help Return help information
|
16
16
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
17
17
|
# @option arguments [String] :time The unit in which to display time values
|
18
|
-
# (options: d
|
18
|
+
# (options: d,h,m,s,ms,micros,nanos)
|
19
19
|
|
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/7.
|
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
|
+
headers = arguments.delete(:headers) || {}
|
27
|
+
|
26
28
|
arguments = arguments.clone
|
27
29
|
|
28
30
|
method = Elasticsearch::API::HTTP_GET
|
@@ -31,7 +33,7 @@ module Elasticsearch
|
|
31
33
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
32
34
|
|
33
35
|
body = nil
|
34
|
-
perform_request(method, path, params, body).body
|
36
|
+
perform_request(method, path, params, body, headers).body
|
35
37
|
end
|
36
38
|
|
37
39
|
# Register this action with its valid params when the module is loaded.
|
@@ -15,11 +15,13 @@ module Elasticsearch
|
|
15
15
|
# @option arguments [Boolean] :help Return help information
|
16
16
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
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/7.
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-plugins.html
|
21
21
|
#
|
22
22
|
def plugins(arguments = {})
|
23
|
+
headers = arguments.delete(:headers) || {}
|
24
|
+
|
23
25
|
arguments = arguments.clone
|
24
26
|
|
25
27
|
method = Elasticsearch::API::HTTP_GET
|
@@ -27,7 +29,7 @@ module Elasticsearch
|
|
27
29
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
28
30
|
|
29
31
|
body = nil
|
30
|
-
perform_request(method, path, params, body).body
|
32
|
+
perform_request(method, path, params, body, headers).body
|
31
33
|
end
|
32
34
|
|
33
35
|
# Register this action with its valid params when the module is loaded.
|
@@ -20,14 +20,16 @@ module Elasticsearch
|
|
20
20
|
# @option arguments [List] :index Comma-separated list or wildcard expression of index names to limit the returned information
|
21
21
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
22
22
|
# @option arguments [String] :time The unit in which to display time values
|
23
|
-
# (options: d
|
23
|
+
# (options: d,h,m,s,ms,micros,nanos)
|
24
24
|
|
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/7.
|
28
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-recovery.html
|
29
29
|
#
|
30
30
|
def recovery(arguments = {})
|
31
|
+
headers = arguments.delete(:headers) || {}
|
32
|
+
|
31
33
|
arguments = arguments.clone
|
32
34
|
|
33
35
|
_index = arguments.delete(:index)
|
@@ -37,12 +39,12 @@ module Elasticsearch
|
|
37
39
|
"_cat/recovery/#{Utils.__listify(_index)}"
|
38
40
|
else
|
39
41
|
"_cat/recovery"
|
40
|
-
end
|
42
|
+
end
|
41
43
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
42
44
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
43
45
|
|
44
46
|
body = nil
|
45
|
-
perform_request(method, path, params, body).body
|
47
|
+
perform_request(method, path, params, body, headers).body
|
46
48
|
end
|
47
49
|
|
48
50
|
# Register this action with its valid params when the module is loaded.
|
@@ -15,11 +15,13 @@ module Elasticsearch
|
|
15
15
|
# @option arguments [Boolean] :help Return help information
|
16
16
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
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/7.
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-repositories.html
|
21
21
|
#
|
22
22
|
def repositories(arguments = {})
|
23
|
+
headers = arguments.delete(:headers) || {}
|
24
|
+
|
23
25
|
arguments = arguments.clone
|
24
26
|
|
25
27
|
method = Elasticsearch::API::HTTP_GET
|
@@ -27,7 +29,7 @@ module Elasticsearch
|
|
27
29
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
28
30
|
|
29
31
|
body = nil
|
30
|
-
perform_request(method, path, params, body).body
|
32
|
+
perform_request(method, path, params, body, headers).body
|
31
33
|
end
|
32
34
|
|
33
35
|
# Register this action with its valid params when the module is loaded.
|
@@ -17,11 +17,13 @@ module Elasticsearch
|
|
17
17
|
# @option arguments [Boolean] :help Return help information
|
18
18
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
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/7.
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-segments.html
|
23
23
|
#
|
24
24
|
def segments(arguments = {})
|
25
|
+
headers = arguments.delete(:headers) || {}
|
26
|
+
|
25
27
|
arguments = arguments.clone
|
26
28
|
|
27
29
|
_index = arguments.delete(:index)
|
@@ -31,11 +33,11 @@ module Elasticsearch
|
|
31
33
|
"_cat/segments/#{Utils.__listify(_index)}"
|
32
34
|
else
|
33
35
|
"_cat/segments"
|
34
|
-
end
|
36
|
+
end
|
35
37
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
36
38
|
|
37
39
|
body = nil
|
38
|
-
perform_request(method, path, params, body).body
|
40
|
+
perform_request(method, path, params, body, headers).body
|
39
41
|
end
|
40
42
|
|
41
43
|
# Register this action with its valid params when the module is loaded.
|
@@ -19,14 +19,16 @@ module Elasticsearch
|
|
19
19
|
# @option arguments [Boolean] :help Return help information
|
20
20
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
21
21
|
# @option arguments [String] :time The unit in which to display time values
|
22
|
-
# (options: d
|
22
|
+
# (options: d,h,m,s,ms,micros,nanos)
|
23
23
|
|
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/7.
|
27
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-shards.html
|
28
28
|
#
|
29
29
|
def shards(arguments = {})
|
30
|
+
headers = arguments.delete(:headers) || {}
|
31
|
+
|
30
32
|
arguments = arguments.clone
|
31
33
|
|
32
34
|
_index = arguments.delete(:index)
|
@@ -36,12 +38,12 @@ module Elasticsearch
|
|
36
38
|
"_cat/shards/#{Utils.__listify(_index)}"
|
37
39
|
else
|
38
40
|
"_cat/shards"
|
39
|
-
end
|
41
|
+
end
|
40
42
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
41
43
|
params[:h] = Utils.__listify(params[:h]) if params[:h]
|
42
44
|
|
43
45
|
body = nil
|
44
|
-
perform_request(method, path, params, body).body
|
46
|
+
perform_request(method, path, params, body, headers).body
|
45
47
|
end
|
46
48
|
|
47
49
|
# Register this action with its valid params when the module is loaded.
|
@@ -16,14 +16,16 @@ module Elasticsearch
|
|
16
16
|
# @option arguments [Boolean] :help Return help information
|
17
17
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
18
18
|
# @option arguments [String] :time The unit in which to display time values
|
19
|
-
# (options: d
|
19
|
+
# (options: d,h,m,s,ms,micros,nanos)
|
20
20
|
|
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/7.
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/cat-snapshots.html
|
25
25
|
#
|
26
26
|
def snapshots(arguments = {})
|
27
|
+
headers = arguments.delete(:headers) || {}
|
28
|
+
|
27
29
|
arguments = arguments.clone
|
28
30
|
|
29
31
|
_repository = arguments.delete(:repository)
|
@@ -33,11 +35,11 @@ module Elasticsearch
|
|
33
35
|
"_cat/snapshots/#{Utils.__listify(_repository)}"
|
34
36
|
else
|
35
37
|
"_cat/snapshots"
|
36
|
-
end
|
38
|
+
end
|
37
39
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
38
40
|
|
39
41
|
body = nil
|
40
|
-
perform_request(method, path, params, body).body
|
42
|
+
perform_request(method, path, params, body, headers).body
|
41
43
|
end
|
42
44
|
|
43
45
|
# Register this action with its valid params when the module is loaded.
|
@@ -17,14 +17,16 @@ module Elasticsearch
|
|
17
17
|
# @option arguments [Boolean] :help Return help information
|
18
18
|
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
|
19
19
|
# @option arguments [String] :time The unit in which to display time values
|
20
|
-
# (options: d
|
20
|
+
# (options: d,h,m,s,ms,micros,nanos)
|
21
21
|
|
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/7.
|
25
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.7/tasks.html
|
26
26
|
#
|
27
27
|
def tasks(arguments = {})
|
28
|
+
headers = arguments.delete(:headers) || {}
|
29
|
+
|
28
30
|
arguments = arguments.clone
|
29
31
|
|
30
32
|
method = Elasticsearch::API::HTTP_GET
|
@@ -32,7 +34,7 @@ module Elasticsearch
|
|
32
34
|
params = Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
33
35
|
|
34
36
|
body = nil
|
35
|
-
perform_request(method, path, params, body).body
|
37
|
+
perform_request(method, path, params, body, headers).body
|
36
38
|
end
|
37
39
|
|
38
40
|
# Register this action with its valid params when the module is loaded.
|