elasticsearch-serverless 0.1.0.20231031.pre → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch-serverless/api/async_search/delete.rb +13 -2
- data/lib/elasticsearch-serverless/api/async_search/get.rb +19 -4
- data/lib/elasticsearch-serverless/api/async_search/status.rb +12 -2
- data/lib/elasticsearch-serverless/api/async_search/submit.rb +20 -5
- data/lib/elasticsearch-serverless/api/bulk.rb +19 -5
- data/lib/elasticsearch-serverless/api/cat/aliases.rb +24 -6
- data/lib/elasticsearch-serverless/api/cat/component_templates.rb +25 -6
- data/lib/elasticsearch-serverless/api/cat/count.rb +27 -7
- data/lib/elasticsearch-serverless/api/cat/help.rb +16 -6
- data/lib/elasticsearch-serverless/api/cat/indices.rb +34 -7
- data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +27 -7
- data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +35 -7
- data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +35 -7
- data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +28 -7
- data/lib/elasticsearch-serverless/api/cat/transforms.rb +30 -8
- data/lib/elasticsearch-serverless/api/clear_scroll.rb +13 -4
- data/lib/elasticsearch-serverless/api/close_point_in_time.rb +4 -2
- data/lib/elasticsearch-serverless/api/cluster/delete_component_template.rb +16 -4
- data/lib/elasticsearch-serverless/api/cluster/exists_component_template.rb +18 -5
- data/lib/elasticsearch-serverless/api/cluster/get_component_template.rb +17 -5
- data/lib/elasticsearch-serverless/api/cluster/info.rb +11 -2
- data/lib/elasticsearch-serverless/api/cluster/put_component_template.rb +28 -4
- data/lib/elasticsearch-serverless/api/connector/check_in.rb +65 -0
- data/lib/elasticsearch-serverless/api/connector/delete.rb +66 -0
- data/lib/elasticsearch-serverless/api/connector/get.rb +65 -0
- data/lib/elasticsearch-serverless/api/connector/list.rb +60 -0
- data/lib/elasticsearch-serverless/api/connector/post.rb +55 -0
- data/lib/elasticsearch-serverless/api/connector/put.rb +68 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_cancel.rb +66 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_delete.rb +66 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_get.rb +66 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_list.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_post.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/update_active_filtering.rb +65 -0
- data/lib/elasticsearch-serverless/api/connector/update_api_key_id.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_configuration.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_error.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_filtering.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_filtering_validation.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_index_name.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_name.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_native.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_pipeline.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_scheduling.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_service_type.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_status.rb +67 -0
- data/lib/elasticsearch-serverless/api/count.rb +30 -10
- data/lib/elasticsearch-serverless/api/create.rb +23 -8
- data/lib/elasticsearch-serverless/api/delete.rb +18 -6
- data/lib/elasticsearch-serverless/api/delete_by_query.rb +39 -12
- data/lib/elasticsearch-serverless/api/delete_script.rb +15 -4
- data/lib/elasticsearch-serverless/api/enrich/delete_policy.rb +10 -1
- data/lib/elasticsearch-serverless/api/enrich/execute_policy.rb +9 -1
- data/lib/elasticsearch-serverless/api/enrich/get_policy.rb +13 -3
- data/lib/elasticsearch-serverless/api/enrich/put_policy.rb +11 -2
- data/lib/elasticsearch-serverless/api/enrich/stats.rb +5 -2
- data/lib/elasticsearch-serverless/api/eql/delete.rb +14 -3
- data/lib/elasticsearch-serverless/api/eql/get.rb +14 -4
- data/lib/elasticsearch-serverless/api/eql/get_status.rb +10 -2
- data/lib/elasticsearch-serverless/api/eql/search.rb +9 -1
- data/lib/elasticsearch-serverless/api/esql/query.rb +57 -0
- data/lib/elasticsearch-serverless/api/exists.rb +20 -6
- data/lib/elasticsearch-serverless/api/exists_source.rb +17 -5
- data/lib/elasticsearch-serverless/api/explain.rb +17 -5
- data/lib/elasticsearch-serverless/api/field_caps.rb +16 -3
- data/lib/elasticsearch-serverless/api/get.rb +18 -4
- data/lib/elasticsearch-serverless/api/get_script.rb +11 -2
- data/lib/elasticsearch-serverless/api/get_source.rb +10 -1
- data/lib/elasticsearch-serverless/api/graph/explore.rb +13 -3
- data/lib/elasticsearch-serverless/api/index.rb +27 -7
- data/lib/elasticsearch-serverless/api/indices/add_block.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/analyze.rb +13 -3
- data/lib/elasticsearch-serverless/api/indices/create.rb +17 -5
- data/lib/elasticsearch-serverless/api/indices/create_data_stream.rb +18 -3
- data/lib/elasticsearch-serverless/api/indices/data_streams_stats.rb +16 -4
- data/lib/elasticsearch-serverless/api/indices/delete.rb +26 -8
- data/lib/elasticsearch-serverless/api/indices/delete_alias.rb +19 -6
- data/lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/delete_data_stream.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +13 -2
- data/lib/elasticsearch-serverless/api/indices/exists.rb +17 -4
- data/lib/elasticsearch-serverless/api/indices/exists_alias.rb +19 -5
- data/lib/elasticsearch-serverless/api/indices/exists_index_template.rb +9 -1
- data/lib/elasticsearch-serverless/api/indices/explain_data_lifecycle.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/get.rb +20 -5
- data/lib/elasticsearch-serverless/api/indices/get_alias.rb +23 -6
- data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +17 -4
- data/lib/elasticsearch-serverless/api/indices/get_data_stream.rb +15 -4
- data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +23 -6
- data/lib/elasticsearch-serverless/api/indices/get_settings.rb +28 -7
- data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +20 -2
- data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +5 -2
- data/lib/elasticsearch-serverless/api/indices/put_alias.rb +21 -6
- data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +22 -6
- data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +14 -2
- data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +23 -6
- data/lib/elasticsearch-serverless/api/indices/put_settings.rb +29 -7
- data/lib/elasticsearch-serverless/api/indices/put_template.rb +71 -0
- data/lib/elasticsearch-serverless/api/indices/refresh.rb +21 -5
- data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +17 -4
- data/lib/elasticsearch-serverless/api/indices/rollover.rb +20 -7
- data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +13 -6
- data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +14 -4
- data/lib/elasticsearch-serverless/api/indices/update_aliases.rb +9 -4
- data/lib/elasticsearch-serverless/api/indices/validate_query.rb +24 -7
- data/lib/elasticsearch-serverless/api/inference/delete.rb +74 -0
- data/lib/elasticsearch-serverless/api/inference/get.rb +72 -0
- data/lib/elasticsearch-serverless/api/inference/inference.rb +74 -0
- data/lib/elasticsearch-serverless/api/inference/put.rb +74 -0
- data/lib/elasticsearch-serverless/api/info.rb +4 -1
- data/lib/elasticsearch-serverless/api/ingest/delete_pipeline.rb +16 -5
- data/lib/elasticsearch-serverless/api/ingest/get_pipeline.rb +16 -4
- data/lib/elasticsearch-serverless/api/ingest/processor_grok.rb +6 -2
- data/lib/elasticsearch-serverless/api/ingest/put_pipeline.rb +11 -2
- data/lib/elasticsearch-serverless/api/ingest/simulate.rb +12 -3
- data/lib/elasticsearch-serverless/api/license/get.rb +8 -3
- data/lib/elasticsearch-serverless/api/logstash/delete_pipeline.rb +10 -2
- data/lib/elasticsearch-serverless/api/logstash/get_pipeline.rb +10 -2
- data/lib/elasticsearch-serverless/api/logstash/put_pipeline.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +18 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +11 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_event.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_job.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_datafeed.rb +16 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +12 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +23 -5
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +11 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +13 -2
- data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +7 -2
- data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +8 -2
- data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +27 -6
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendar_events.rb +9 -1
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendars.rb +9 -1
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +27 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics_stats.rb +21 -3
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +26 -3
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +28 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +10 -1
- data/lib/elasticsearch-serverless/api/machine_learning/get_job_stats.rb +21 -3
- data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +27 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +46 -7
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +29 -8
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +19 -4
- data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +71 -0
- data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +17 -2
- data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +21 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +14 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +25 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +11 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +11 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +15 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +28 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +12 -2
- data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +19 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +25 -3
- data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +35 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +26 -6
- data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +25 -4
- data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +21 -3
- data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +16 -4
- data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +13 -3
- data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +26 -5
- data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/update_job.rb +9 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_trained_model_deployment.rb +68 -0
- data/lib/elasticsearch-serverless/api/mget.rb +17 -3
- data/lib/elasticsearch-serverless/api/msearch.rb +15 -1
- data/lib/elasticsearch-serverless/api/msearch_template.rb +17 -5
- data/lib/elasticsearch-serverless/api/mtermvectors.rb +14 -8
- data/lib/elasticsearch-serverless/api/open_point_in_time.rb +20 -4
- data/lib/elasticsearch-serverless/api/ping.rb +4 -1
- data/lib/elasticsearch-serverless/api/put_script.rb +19 -6
- data/lib/elasticsearch-serverless/api/query_rules/delete_rule.rb +65 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/delete.rb → query_rules/delete_ruleset.rb} +11 -7
- data/lib/elasticsearch-serverless/api/query_rules/get_rule.rb +65 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/get.rb → query_rules/get_ruleset.rb} +12 -8
- data/lib/elasticsearch-serverless/api/{query_ruleset/list.rb → query_rules/list_rulesets.rb} +6 -8
- data/lib/elasticsearch-serverless/api/query_rules/put_rule.rb +67 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/put.rb → query_rules/put_ruleset.rb} +11 -7
- data/lib/elasticsearch-serverless/api/rank_eval.rb +12 -3
- data/lib/elasticsearch-serverless/api/reindex.rb +11 -7
- data/lib/elasticsearch-serverless/api/render_search_template.rb +12 -3
- data/lib/elasticsearch-serverless/api/scripts_painless_execute.rb +5 -2
- data/lib/elasticsearch-serverless/api/scroll.rb +9 -1
- data/lib/elasticsearch-serverless/api/search.rb +110 -30
- data/lib/elasticsearch-serverless/api/search_application/delete.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/delete_behavioral_analytics.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/get.rb +10 -2
- data/lib/elasticsearch-serverless/api/search_application/get_behavioral_analytics.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/list.rb +3 -1
- data/lib/elasticsearch-serverless/api/search_application/put.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/put_behavioral_analytics.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/search.rb +12 -3
- data/lib/elasticsearch-serverless/api/search_mvt.rb +27 -7
- data/lib/elasticsearch-serverless/api/search_template.rb +23 -7
- data/lib/elasticsearch-serverless/api/security/authenticate.rb +8 -2
- data/lib/elasticsearch-serverless/api/security/create_api_key.rb +7 -1
- data/lib/elasticsearch-serverless/api/security/get_api_key.rb +23 -7
- data/lib/elasticsearch-serverless/api/security/has_privileges.rb +10 -1
- data/lib/elasticsearch-serverless/api/security/invalidate_api_key.rb +10 -1
- data/lib/elasticsearch-serverless/api/security/query_api_keys.rb +9 -3
- data/lib/elasticsearch-serverless/api/security/update_api_key.rb +75 -0
- data/lib/elasticsearch-serverless/api/sql/clear_cursor.rb +3 -1
- data/lib/elasticsearch-serverless/api/sql/delete_async.rb +9 -1
- data/lib/elasticsearch-serverless/api/sql/get_async.rb +15 -4
- data/lib/elasticsearch-serverless/api/sql/get_async_status.rb +9 -1
- data/lib/elasticsearch-serverless/api/sql/query.rb +3 -1
- data/lib/elasticsearch-serverless/api/sql/translate.rb +3 -1
- data/lib/elasticsearch-serverless/api/synonyms/delete_synonym.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/delete_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonym.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonyms_sets.rb +3 -1
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym.rb +10 -2
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/tasks/get.rb +67 -0
- data/lib/elasticsearch-serverless/api/terms_enum.rb +9 -1
- data/lib/elasticsearch-serverless/api/termvectors.rb +21 -9
- data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +15 -4
- data/lib/elasticsearch-serverless/api/transform/get_transform.rb +23 -4
- data/lib/elasticsearch-serverless/api/transform/get_transform_stats.rb +20 -3
- data/lib/elasticsearch-serverless/api/transform/preview_transform.rb +18 -4
- data/lib/elasticsearch-serverless/api/transform/put_transform.rb +34 -4
- data/lib/elasticsearch-serverless/api/transform/reset_transform.rb +17 -4
- data/lib/elasticsearch-serverless/api/transform/schedule_now_transform.rb +15 -2
- data/lib/elasticsearch-serverless/api/transform/start_transform.rb +24 -2
- data/lib/elasticsearch-serverless/api/transform/stop_transform.rb +23 -6
- data/lib/elasticsearch-serverless/api/transform/update_transform.rb +20 -3
- data/lib/elasticsearch-serverless/api/update.rb +23 -7
- data/lib/elasticsearch-serverless/api/update_by_query.rb +38 -11
- data/lib/elasticsearch-serverless/api.rb +9 -6
- data/lib/elasticsearch-serverless/version.rb +3 -3
- data/lib/elasticsearch-serverless.rb +16 -7
- metadata +46 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f65fea7b65dd1eae81bcd4369221d71d2809895df40f168196005179f10a6c05
|
4
|
+
data.tar.gz: 4a958e6a4bf23122ba8709c89fa82e932ec240f18146a07f5dc8cde39c0dffa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f913a7e87f209fc6190a2fa18fd59036ddff358b08a05a333f530cb55134c6b2a067463311948cda968118b99c03bb72c5d3b4550e8c4e6f18c2a337e439acc2
|
7
|
+
data.tar.gz: d274e0623ae7970d614631f0a57ea518fdbb108f340557d5e9faac7621516c4d6e2247cd700837a00452577a8632022485101cafe4140217b6117814ef410c4e
|
@@ -22,7 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
# Deletes an async search by
|
25
|
+
# Deletes an async search by identifier.
|
26
|
+
# If the search is still running, the search request will be cancelled.
|
27
|
+
# Otherwise, the saved search results are deleted.
|
28
|
+
# If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the +cancel_task+ cluster privilege.
|
26
29
|
#
|
27
30
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
28
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -30,6 +33,14 @@ module ElasticsearchServerless
|
|
30
33
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
31
34
|
#
|
32
35
|
def delete(arguments = {})
|
36
|
+
request_opts = { endpoint: arguments[:endpoint] || "async_search.delete" }
|
37
|
+
|
38
|
+
defined_params = [:id].inject({}) do |set_variables, variable|
|
39
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
40
|
+
set_variables
|
41
|
+
end
|
42
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
43
|
+
|
33
44
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
34
45
|
|
35
46
|
arguments = arguments.clone
|
@@ -44,7 +55,7 @@ module ElasticsearchServerless
|
|
44
55
|
params = {}
|
45
56
|
|
46
57
|
ElasticsearchServerless::API::Response.new(
|
47
|
-
perform_request(method, path, params, body, headers)
|
58
|
+
perform_request(method, path, params, body, headers, request_opts)
|
48
59
|
)
|
49
60
|
end
|
50
61
|
end
|
@@ -22,17 +22,32 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
# Retrieves the results of a previously submitted async search request given its
|
25
|
+
# Retrieves the results of a previously submitted async search request given its identifier.
|
26
|
+
# If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
|
26
27
|
#
|
27
28
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
28
|
-
# @option arguments [Time] :keep_alive Specifies how long the async search should be available in the cluster.
|
29
|
+
# @option arguments [Time] :keep_alive Specifies how long the async search should be available in the cluster.
|
30
|
+
# When not specified, the +keep_alive+ set with the corresponding submit async request will be used.
|
31
|
+
# Otherwise, it is possible to override the value and extend the validity of the request.
|
32
|
+
# When this period expires, the search, if still running, is cancelled.
|
33
|
+
# If the search is completed, its saved results are deleted.
|
29
34
|
# @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response
|
30
|
-
# @option arguments [Time] :wait_for_completion_timeout Specifies to wait for the search to be completed up until the provided timeout.
|
35
|
+
# @option arguments [Time] :wait_for_completion_timeout Specifies to wait for the search to be completed up until the provided timeout.
|
36
|
+
# Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.
|
37
|
+
# By default no timeout is set meaning that the currently available results will be returned without any additional wait.
|
31
38
|
# @option arguments [Hash] :headers Custom HTTP headers
|
32
39
|
#
|
33
40
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
34
41
|
#
|
35
42
|
def get(arguments = {})
|
43
|
+
request_opts = { endpoint: arguments[:endpoint] || "async_search.get" }
|
44
|
+
|
45
|
+
defined_params = [:id].inject({}) do |set_variables, variable|
|
46
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
47
|
+
set_variables
|
48
|
+
end
|
49
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
50
|
+
|
36
51
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
37
52
|
|
38
53
|
arguments = arguments.clone
|
@@ -47,7 +62,7 @@ module ElasticsearchServerless
|
|
47
62
|
params = Utils.process_params(arguments)
|
48
63
|
|
49
64
|
ElasticsearchServerless::API::Response.new(
|
50
|
-
perform_request(method, path, params, body, headers)
|
65
|
+
perform_request(method, path, params, body, headers, request_opts)
|
51
66
|
)
|
52
67
|
end
|
53
68
|
end
|
@@ -22,7 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get async search status
|
26
|
+
# Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results.
|
27
|
+
# If the Elasticsearch security features are enabled, use of this API is restricted to the +monitoring_user+ role.
|
26
28
|
#
|
27
29
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -30,6 +32,14 @@ module ElasticsearchServerless
|
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
31
33
|
#
|
32
34
|
def status(arguments = {})
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || "async_search.status" }
|
36
|
+
|
37
|
+
defined_params = [:id].inject({}) do |set_variables, variable|
|
38
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
+
set_variables
|
40
|
+
end
|
41
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
42
|
+
|
33
43
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
34
44
|
|
35
45
|
arguments = arguments.clone
|
@@ -44,7 +54,7 @@ module ElasticsearchServerless
|
|
44
54
|
params = {}
|
45
55
|
|
46
56
|
ElasticsearchServerless::API::Response.new(
|
47
|
-
perform_request(method, path, params, body, headers)
|
57
|
+
perform_request(method, path, params, body, headers, request_opts)
|
48
58
|
)
|
49
59
|
end
|
50
60
|
end
|
@@ -22,17 +22,24 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Runs a search request asynchronously.
|
26
|
+
# When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested.
|
27
|
+
# Warning: Async search does not support scroll nor search requests that only include the suggest section.
|
28
|
+
# By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
|
29
|
+
# The maximum allowed size for a stored async search response can be set by changing the +search.max_async_search_response_size+ cluster level setting.
|
26
30
|
#
|
27
31
|
# @option arguments [String, Array] :index A comma-separated list of index names to search; use +_all+ or empty string to perform the operation on all indices
|
28
|
-
# @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout.
|
32
|
+
# @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout.
|
33
|
+
# When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. Server default: 1s.
|
29
34
|
# @option arguments [Boolean] :keep_on_completion If +true+, results are stored for later retrieval when the search completes within the +wait_for_completion_timeout+.
|
30
|
-
# @option arguments [Time] :keep_alive Specifies how long the async search needs to be available.
|
35
|
+
# @option arguments [Time] :keep_alive Specifies how long the async search needs to be available.
|
36
|
+
# Ongoing async searches and any saved search results are deleted after this period. Server default: 5d.
|
31
37
|
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified)
|
32
38
|
# @option arguments [Boolean] :allow_partial_search_results Indicate if an error should be returned if there is a partial search failure or timeout
|
33
39
|
# @option arguments [String] :analyzer The analyzer to use for the query string
|
34
40
|
# @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false)
|
35
|
-
# @option arguments [Integer] :batched_reduce_size Affects how often partial results become available, which happens whenever shard results are reduced.
|
41
|
+
# @option arguments [Integer] :batched_reduce_size Affects how often partial results become available, which happens whenever shard results are reduced.
|
42
|
+
# A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default). Server default: 5.
|
36
43
|
# @option arguments [Boolean] :ccs_minimize_roundtrips The default value is the only supported value.
|
37
44
|
# @option arguments [String] :default_operator The default operator for query string query (AND or OR)
|
38
45
|
# @option arguments [String] :df The field to use as default where no field prefix is given in the query string
|
@@ -77,6 +84,14 @@ module ElasticsearchServerless
|
|
77
84
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
78
85
|
#
|
79
86
|
def submit(arguments = {})
|
87
|
+
request_opts = { endpoint: arguments[:endpoint] || "async_search.submit" }
|
88
|
+
|
89
|
+
defined_params = [:index].inject({}) do |set_variables, variable|
|
90
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
91
|
+
set_variables
|
92
|
+
end
|
93
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
94
|
+
|
80
95
|
arguments = arguments.clone
|
81
96
|
headers = arguments.delete(:headers) || {}
|
82
97
|
|
@@ -93,7 +108,7 @@ module ElasticsearchServerless
|
|
93
108
|
params = Utils.process_params(arguments)
|
94
109
|
|
95
110
|
ElasticsearchServerless::API::Response.new(
|
96
|
-
perform_request(method, path, params, body, headers)
|
111
|
+
perform_request(method, path, params, body, headers, request_opts)
|
97
112
|
)
|
98
113
|
end
|
99
114
|
end
|
@@ -21,17 +21,23 @@
|
|
21
21
|
module ElasticsearchServerless
|
22
22
|
module API
|
23
23
|
module Actions
|
24
|
-
#
|
24
|
+
# Bulk index or delete documents.
|
25
|
+
# Performs multiple indexing or delete operations in a single API call.
|
26
|
+
# This reduces overhead and can greatly increase indexing speed.
|
25
27
|
#
|
26
28
|
# @option arguments [String] :index Name of the data stream, index, or index alias to perform bulk actions on.
|
27
|
-
# @option arguments [String] :pipeline ID of the pipeline to use to preprocess incoming documents.
|
28
|
-
#
|
29
|
+
# @option arguments [String] :pipeline ID of the pipeline to use to preprocess incoming documents.
|
30
|
+
# If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request.
|
31
|
+
# If a final pipeline is configured it will always run, regardless of the value of this parameter.
|
32
|
+
# @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ do nothing with refreshes.
|
33
|
+
# Valid values: +true+, +false+, +wait_for+. Server default: false.
|
29
34
|
# @option arguments [String] :routing Custom value used to route operations to a specific shard.
|
30
35
|
# @option arguments [Boolean, String, Array<String>] :_source +true+ or +false+ to return the +_source+ field or not, or a list of fields to return.
|
31
36
|
# @option arguments [String, Array<String>] :_source_excludes A comma-separated list of source fields to exclude from the response.
|
32
37
|
# @option arguments [String, Array<String>] :_source_includes A comma-separated list of source fields to include in the response.
|
33
38
|
# @option arguments [Time] :timeout Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. Server default: 1m.
|
34
|
-
# @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation.
|
39
|
+
# @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation.
|
40
|
+
# Set to all or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1.
|
35
41
|
# @option arguments [Boolean] :require_alias If +true+, the request’s actions must target an index alias.
|
36
42
|
# @option arguments [Hash] :headers Custom HTTP headers
|
37
43
|
# @option arguments [String|Array] :body operations. Array of Strings, Header/Data pairs, or the conveniency "combined" format can be passed, refer to ElasticsearchServerless::API::Utils.bulkify documentation.
|
@@ -39,6 +45,14 @@ module ElasticsearchServerless
|
|
39
45
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
|
40
46
|
#
|
41
47
|
def bulk(arguments = {})
|
48
|
+
request_opts = { endpoint: arguments[:endpoint] || "bulk" }
|
49
|
+
|
50
|
+
defined_params = [:index].inject({}) do |set_variables, variable|
|
51
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
52
|
+
set_variables
|
53
|
+
end
|
54
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
55
|
+
|
42
56
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
43
57
|
|
44
58
|
arguments = arguments.clone
|
@@ -64,7 +78,7 @@ module ElasticsearchServerless
|
|
64
78
|
|
65
79
|
headers.merge!("Content-Type" => "application/x-ndjson")
|
66
80
|
ElasticsearchServerless::API::Response.new(
|
67
|
-
perform_request(method, path, params, payload, headers)
|
81
|
+
perform_request(method, path, params, payload, headers, request_opts)
|
68
82
|
)
|
69
83
|
end
|
70
84
|
end
|
@@ -22,22 +22,40 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get aliases.
|
26
|
+
# Retrieves the cluster’s index aliases, including filter and routing information.
|
27
|
+
# The API does not return data stream aliases.
|
28
|
+
# CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
|
26
29
|
#
|
27
30
|
# @option arguments [String, Array<String>] :name A comma-separated list of aliases to retrieve. Supports wildcards (+*+). To retrieve all aliases, omit this parameter or use +*+ or +_all+.
|
28
31
|
# @option arguments [String, Array<String>] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
29
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
32
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
33
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
30
34
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
31
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
32
|
-
#
|
35
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
36
|
+
# can't be combined with any other query string option.
|
37
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
38
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
39
|
+
# from the cluster state of the master node. In both cases the coordinating
|
40
|
+
# node will send requests for further information to each selected node.
|
33
41
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
34
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
42
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
43
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
44
|
+
# or +:desc+ as a suffix to the column name.
|
35
45
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
36
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
37
47
|
#
|
38
48
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html
|
39
49
|
#
|
40
50
|
def aliases(arguments = {})
|
51
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.aliases" }
|
52
|
+
|
53
|
+
defined_params = [:name].inject({}) do |set_variables, variable|
|
54
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
55
|
+
set_variables
|
56
|
+
end
|
57
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
58
|
+
|
41
59
|
arguments = arguments.clone
|
42
60
|
headers = arguments.delete(:headers) || {}
|
43
61
|
|
@@ -55,7 +73,7 @@ module ElasticsearchServerless
|
|
55
73
|
params[:h] = Utils.listify(params[:h]) if params[:h]
|
56
74
|
|
57
75
|
ElasticsearchServerless::API::Response.new(
|
58
|
-
perform_request(method, path, params, body, headers)
|
76
|
+
perform_request(method, path, params, body, headers, request_opts)
|
59
77
|
)
|
60
78
|
end
|
61
79
|
end
|
@@ -22,21 +22,40 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get component templates.
|
26
|
+
# Returns information about component templates in a cluster.
|
27
|
+
# Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
|
28
|
+
# CAT APIs are only intended for human consumption using the command line or Kibana console.
|
29
|
+
# They are not intended for use by applications. For application consumption, use the get component template API.
|
26
30
|
#
|
27
31
|
# @option arguments [String] :name The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned.
|
28
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
32
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
33
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
29
34
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
30
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
31
|
-
#
|
35
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
36
|
+
# can't be combined with any other query string option.
|
37
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
38
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
39
|
+
# from the cluster state of the master node. In both cases the coordinating
|
40
|
+
# node will send requests for further information to each selected node.
|
32
41
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
33
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
42
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
43
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
44
|
+
# or +:desc+ as a suffix to the column name.
|
34
45
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
35
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
36
47
|
#
|
37
48
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html
|
38
49
|
#
|
39
50
|
def component_templates(arguments = {})
|
51
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.component_templates" }
|
52
|
+
|
53
|
+
defined_params = [:name].inject({}) do |set_variables, variable|
|
54
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
55
|
+
set_variables
|
56
|
+
end
|
57
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
58
|
+
|
40
59
|
arguments = arguments.clone
|
41
60
|
headers = arguments.delete(:headers) || {}
|
42
61
|
|
@@ -53,7 +72,7 @@ module ElasticsearchServerless
|
|
53
72
|
params = Utils.process_params(arguments)
|
54
73
|
|
55
74
|
ElasticsearchServerless::API::Response.new(
|
56
|
-
perform_request(method, path, params, body, headers)
|
75
|
+
perform_request(method, path, params, body, headers, request_opts)
|
57
76
|
)
|
58
77
|
end
|
59
78
|
end
|
@@ -22,21 +22,41 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get a document count.
|
26
|
+
# Provides quick access to a document count for a data stream, an index, or an entire cluster.
|
27
|
+
# The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
|
28
|
+
# CAT APIs are only intended for human consumption using the command line or Kibana console.
|
29
|
+
# They are not intended for use by applications. For application consumption, use the count API.
|
26
30
|
#
|
27
|
-
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
|
28
|
-
#
|
31
|
+
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
|
32
|
+
# Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
|
33
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
34
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
29
35
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
30
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
31
|
-
#
|
36
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
37
|
+
# can't be combined with any other query string option.
|
38
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
39
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
40
|
+
# from the cluster state of the master node. In both cases the coordinating
|
41
|
+
# node will send requests for further information to each selected node.
|
32
42
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
33
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
43
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
44
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
45
|
+
# or +:desc+ as a suffix to the column name.
|
34
46
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
35
47
|
# @option arguments [Hash] :headers Custom HTTP headers
|
36
48
|
#
|
37
49
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-count.html
|
38
50
|
#
|
39
51
|
def count(arguments = {})
|
52
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.count" }
|
53
|
+
|
54
|
+
defined_params = [:index].inject({}) do |set_variables, variable|
|
55
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
56
|
+
set_variables
|
57
|
+
end
|
58
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
59
|
+
|
40
60
|
arguments = arguments.clone
|
41
61
|
headers = arguments.delete(:headers) || {}
|
42
62
|
|
@@ -54,7 +74,7 @@ module ElasticsearchServerless
|
|
54
74
|
params[:h] = Utils.listify(params[:h]) if params[:h]
|
55
75
|
|
56
76
|
ElasticsearchServerless::API::Response.new(
|
57
|
-
perform_request(method, path, params, body, headers)
|
77
|
+
perform_request(method, path, params, body, headers, request_opts)
|
58
78
|
)
|
59
79
|
end
|
60
80
|
end
|
@@ -22,20 +22,30 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get CAT help.
|
26
|
+
# Returns help for the CAT APIs.
|
26
27
|
#
|
27
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
28
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
29
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
28
30
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
29
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
30
|
-
#
|
31
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
32
|
+
# can't be combined with any other query string option.
|
33
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
34
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
35
|
+
# from the cluster state of the master node. In both cases the coordinating
|
36
|
+
# node will send requests for further information to each selected node.
|
31
37
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
32
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
38
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
39
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
40
|
+
# or +:desc+ as a suffix to the column name.
|
33
41
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
34
42
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
43
|
#
|
36
44
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
|
37
45
|
#
|
38
46
|
def help(arguments = {})
|
47
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.help" }
|
48
|
+
|
39
49
|
arguments = arguments.clone
|
40
50
|
headers = arguments.delete(:headers) || {}
|
41
51
|
|
@@ -46,7 +56,7 @@ module ElasticsearchServerless
|
|
46
56
|
params = Utils.process_params(arguments)
|
47
57
|
|
48
58
|
ElasticsearchServerless::API::Response.new(
|
49
|
-
perform_request(method, path, params, body, headers)
|
59
|
+
perform_request(method, path, params, body, headers, request_opts)
|
50
60
|
)
|
51
61
|
end
|
52
62
|
end
|
@@ -22,27 +22,54 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get index information.
|
26
|
+
# Returns high-level information about indices in a cluster, including backing indices for data streams.
|
27
|
+
# Use this request to get the following information for each index in a cluster:
|
28
|
+
# - shard count
|
29
|
+
# - document count
|
30
|
+
# - deleted document count
|
31
|
+
# - primary store size
|
32
|
+
# - total store size of all shards, including shard replicas
|
33
|
+
# These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents.
|
34
|
+
# To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
|
35
|
+
# CAT APIs are only intended for human consumption using the command line or Kibana console.
|
36
|
+
# They are not intended for use by applications. For application consumption, use an index endpoint.
|
26
37
|
#
|
27
|
-
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
|
38
|
+
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
|
39
|
+
# Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
|
28
40
|
# @option arguments [String] :bytes The unit used to display byte values.
|
29
41
|
# @option arguments [String, Array<String>] :expand_wildcards The type of index that wildcard patterns can match.
|
30
42
|
# @option arguments [String] :health The health status used to limit returned indices. By default, the response includes indices of any health status.
|
31
43
|
# @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory.
|
32
44
|
# @option arguments [Boolean] :pri If true, the response only includes information from primary shards.
|
33
45
|
# @option arguments [String] :time The unit used to display time values.
|
34
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
46
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
47
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
35
48
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
36
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
37
|
-
#
|
49
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
50
|
+
# can't be combined with any other query string option.
|
51
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
52
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
53
|
+
# from the cluster state of the master node. In both cases the coordinating
|
54
|
+
# node will send requests for further information to each selected node.
|
38
55
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
39
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
56
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
57
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
58
|
+
# or +:desc+ as a suffix to the column name.
|
40
59
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
41
60
|
# @option arguments [Hash] :headers Custom HTTP headers
|
42
61
|
#
|
43
62
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html
|
44
63
|
#
|
45
64
|
def indices(arguments = {})
|
65
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.indices" }
|
66
|
+
|
67
|
+
defined_params = [:index].inject({}) do |set_variables, variable|
|
68
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
69
|
+
set_variables
|
70
|
+
end
|
71
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
72
|
+
|
46
73
|
arguments = arguments.clone
|
47
74
|
headers = arguments.delete(:headers) || {}
|
48
75
|
|
@@ -60,7 +87,7 @@ module ElasticsearchServerless
|
|
60
87
|
params[:h] = Utils.listify(params[:h]) if params[:h]
|
61
88
|
|
62
89
|
ElasticsearchServerless::API::Response.new(
|
63
|
-
perform_request(method, path, params, body, headers)
|
90
|
+
perform_request(method, path, params, body, headers, request_opts)
|
64
91
|
)
|
65
92
|
end
|
66
93
|
end
|
@@ -22,26 +22,46 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get data frame analytics jobs.
|
26
|
+
# Returns configuration and usage information about data frame analytics jobs.
|
27
|
+
# CAT APIs are only intended for human consumption using the Kibana
|
28
|
+
# console or command line. They are not intended for use by applications. For
|
29
|
+
# application consumption, use the get data frame analytics jobs statistics API.
|
26
30
|
#
|
27
31
|
# @option arguments [String] :id The ID of the data frame analytics to fetch
|
28
32
|
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no configs. (This includes +_all+ string or when no configs have been specified)
|
29
33
|
# @option arguments [String] :bytes The unit in which to display byte values
|
30
34
|
# @option arguments [String, Array<String>] :h Comma-separated list of column names to display. Server default: create_time,id,state,type.
|
31
|
-
# @option arguments [String, Array<String>] :s Comma-separated list of column names or column aliases used to sort the
|
35
|
+
# @option arguments [String, Array<String>] :s Comma-separated list of column names or column aliases used to sort the
|
36
|
+
# response.
|
32
37
|
# @option arguments [Time] :time Unit used to display time values.
|
33
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
38
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
39
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
34
40
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
35
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
36
|
-
#
|
41
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
42
|
+
# can't be combined with any other query string option.
|
43
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
44
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
45
|
+
# from the cluster state of the master node. In both cases the coordinating
|
46
|
+
# node will send requests for further information to each selected node.
|
37
47
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
38
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
48
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
49
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
50
|
+
# or +:desc+ as a suffix to the column name.
|
39
51
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
40
52
|
# @option arguments [Hash] :headers Custom HTTP headers
|
41
53
|
#
|
42
54
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html
|
43
55
|
#
|
44
56
|
def ml_data_frame_analytics(arguments = {})
|
57
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.ml_data_frame_analytics" }
|
58
|
+
|
59
|
+
defined_params = [:id].inject({}) do |set_variables, variable|
|
60
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
61
|
+
set_variables
|
62
|
+
end
|
63
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
64
|
+
|
45
65
|
arguments = arguments.clone
|
46
66
|
headers = arguments.delete(:headers) || {}
|
47
67
|
|
@@ -58,7 +78,7 @@ module ElasticsearchServerless
|
|
58
78
|
params = Utils.process_params(arguments)
|
59
79
|
|
60
80
|
ElasticsearchServerless::API::Response.new(
|
61
|
-
perform_request(method, path, params, body, headers)
|
81
|
+
perform_request(method, path, params, body, headers, request_opts)
|
62
82
|
)
|
63
83
|
end
|
64
84
|
end
|