elasticsearch-serverless 0.6.0 → 0.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/lib/elasticsearch-serverless/api/async_search/delete.rb +3 -4
- data/lib/elasticsearch-serverless/api/async_search/get.rb +4 -5
- data/lib/elasticsearch-serverless/api/async_search/status.rb +7 -6
- data/lib/elasticsearch-serverless/api/async_search/submit.rb +5 -7
- data/lib/elasticsearch-serverless/api/bulk.rb +109 -22
- data/lib/elasticsearch-serverless/api/cat/aliases.rb +17 -14
- data/lib/elasticsearch-serverless/api/cat/component_templates.rb +14 -13
- data/lib/elasticsearch-serverless/api/cat/count.rb +13 -14
- data/lib/elasticsearch-serverless/api/cat/help.rb +5 -15
- data/lib/elasticsearch-serverless/api/cat/indices.rb +10 -11
- data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +7 -13
- data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +6 -12
- data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +6 -12
- data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +7 -12
- data/lib/elasticsearch-serverless/api/cat/transforms.rb +6 -12
- data/lib/elasticsearch-serverless/api/clear_scroll.rb +7 -6
- data/lib/elasticsearch-serverless/api/close_point_in_time.rb +3 -3
- data/lib/elasticsearch-serverless/api/cluster/delete_component_template.rb +3 -5
- data/lib/elasticsearch-serverless/api/cluster/exists_component_template.rb +4 -5
- data/lib/elasticsearch-serverless/api/cluster/get_component_template.rb +5 -6
- data/lib/elasticsearch-serverless/api/cluster/info.rb +3 -4
- data/lib/elasticsearch-serverless/api/cluster/put_component_template.rb +6 -5
- data/lib/elasticsearch-serverless/api/connector/check_in.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/delete.rb +4 -4
- data/lib/elasticsearch-serverless/api/connector/get.rb +5 -5
- data/lib/elasticsearch-serverless/api/connector/list.rb +4 -3
- data/lib/elasticsearch-serverless/api/connector/post.rb +3 -3
- data/lib/elasticsearch-serverless/api/connector/put.rb +4 -5
- data/lib/elasticsearch-serverless/api/connector/sync_job_cancel.rb +7 -6
- data/lib/elasticsearch-serverless/api/connector/sync_job_delete.rb +7 -6
- data/lib/elasticsearch-serverless/api/connector/sync_job_get.rb +7 -6
- data/lib/elasticsearch-serverless/api/connector/sync_job_list.rb +3 -3
- data/lib/elasticsearch-serverless/api/connector/sync_job_post.rb +3 -3
- data/lib/elasticsearch-serverless/api/connector/update_active_filtering.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_api_key_id.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_configuration.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_error.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_filtering.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_filtering_validation.rb +2 -3
- data/lib/elasticsearch-serverless/api/connector/update_index_name.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_name.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_native.rb +2 -3
- data/lib/elasticsearch-serverless/api/connector/update_pipeline.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_scheduling.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_service_type.rb +3 -4
- data/lib/elasticsearch-serverless/api/connector/update_status.rb +3 -4
- data/lib/elasticsearch-serverless/api/count.rb +36 -25
- data/lib/elasticsearch-serverless/api/create.rb +77 -22
- data/lib/elasticsearch-serverless/api/delete.rb +44 -18
- data/lib/elasticsearch-serverless/api/delete_by_query.rb +91 -29
- data/lib/elasticsearch-serverless/api/delete_script.rb +10 -9
- data/lib/elasticsearch-serverless/api/enrich/delete_policy.rb +5 -5
- data/lib/elasticsearch-serverless/api/enrich/execute_policy.rb +6 -5
- data/lib/elasticsearch-serverless/api/enrich/get_policy.rb +6 -6
- data/lib/elasticsearch-serverless/api/enrich/put_policy.rb +5 -5
- data/lib/elasticsearch-serverless/api/eql/delete.rb +5 -5
- data/lib/elasticsearch-serverless/api/eql/get.rb +5 -5
- data/lib/elasticsearch-serverless/api/eql/get_status.rb +5 -5
- data/lib/elasticsearch-serverless/api/eql/search.rb +9 -5
- data/lib/elasticsearch-serverless/api/exists.rb +38 -19
- data/lib/elasticsearch-serverless/api/exists_source.rb +23 -18
- data/lib/elasticsearch-serverless/api/explain.rb +25 -16
- data/lib/elasticsearch-serverless/api/field_caps.rb +11 -10
- data/lib/elasticsearch-serverless/api/get.rb +71 -21
- data/lib/elasticsearch-serverless/api/get_script.rb +7 -6
- data/lib/elasticsearch-serverless/api/get_source.rb +25 -15
- data/lib/elasticsearch-serverless/api/graph/explore.rb +9 -5
- data/lib/elasticsearch-serverless/api/index.rb +110 -21
- data/lib/elasticsearch-serverless/api/indices/add_block.rb +23 -12
- data/lib/elasticsearch-serverless/api/indices/analyze.rb +9 -6
- data/lib/elasticsearch-serverless/api/indices/create.rb +19 -6
- data/lib/elasticsearch-serverless/api/indices/create_data_stream.rb +3 -5
- data/lib/elasticsearch-serverless/api/indices/delete.rb +11 -8
- data/lib/elasticsearch-serverless/api/indices/delete_alias.rb +4 -7
- data/lib/elasticsearch-serverless/api/indices/delete_data_stream.rb +3 -4
- data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +3 -4
- data/lib/elasticsearch-serverless/api/indices/exists.rb +7 -8
- data/lib/elasticsearch-serverless/api/indices/exists_alias.rb +8 -7
- data/lib/elasticsearch-serverless/api/indices/exists_index_template.rb +6 -6
- data/lib/elasticsearch-serverless/api/indices/explain_data_lifecycle.rb +4 -5
- data/lib/elasticsearch-serverless/api/indices/get.rb +5 -6
- data/lib/elasticsearch-serverless/api/indices/get_alias.rb +6 -5
- data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +4 -5
- data/lib/elasticsearch-serverless/api/indices/get_data_stream.rb +5 -6
- data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +5 -6
- data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +4 -6
- data/lib/elasticsearch-serverless/api/indices/get_settings.rb +6 -7
- data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +3 -4
- data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +3 -3
- data/lib/elasticsearch-serverless/api/indices/put_alias.rb +4 -7
- data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +4 -6
- data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +22 -4
- data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +21 -6
- data/lib/elasticsearch-serverless/api/indices/put_settings.rb +17 -7
- data/lib/elasticsearch-serverless/api/indices/refresh.rb +11 -5
- data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +5 -5
- data/lib/elasticsearch-serverless/api/indices/rollover.rb +28 -5
- data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +4 -5
- data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +5 -6
- data/lib/elasticsearch-serverless/api/indices/update_aliases.rb +3 -3
- data/lib/elasticsearch-serverless/api/indices/validate_query.rb +4 -5
- data/lib/elasticsearch-serverless/api/inference/chat_completion_unified.rb +62 -0
- data/lib/elasticsearch-serverless/api/inference/completion.rb +62 -0
- data/lib/elasticsearch-serverless/api/inference/delete.rb +6 -7
- data/lib/elasticsearch-serverless/api/inference/get.rb +4 -5
- data/lib/elasticsearch-serverless/api/inference/put.rb +12 -5
- data/lib/elasticsearch-serverless/api/inference/put_watsonx.rb +78 -0
- data/lib/elasticsearch-serverless/api/inference/rerank.rb +62 -0
- data/lib/elasticsearch-serverless/api/inference/sparse_embedding.rb +62 -0
- data/lib/elasticsearch-serverless/api/inference/text_embedding.rb +62 -0
- data/lib/elasticsearch-serverless/api/info.rb +4 -4
- data/lib/elasticsearch-serverless/api/ingest/delete_pipeline.rb +5 -5
- data/lib/elasticsearch-serverless/api/ingest/get_pipeline.rb +6 -6
- data/lib/elasticsearch-serverless/api/ingest/processor_grok.rb +5 -4
- data/lib/elasticsearch-serverless/api/ingest/put_pipeline.rb +3 -4
- data/lib/elasticsearch-serverless/api/ingest/simulate.rb +9 -8
- data/lib/elasticsearch-serverless/api/license/get.rb +4 -5
- data/lib/elasticsearch-serverless/api/logstash/delete_pipeline.rb +7 -6
- data/lib/elasticsearch-serverless/api/logstash/get_pipeline.rb +7 -7
- data/lib/elasticsearch-serverless/api/logstash/put_pipeline.rb +7 -6
- data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_event.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_job.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_datafeed.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +4 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +5 -5
- data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +3 -3
- data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendar_events.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendars.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics_stats.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_job_stats.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +3 -9
- data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +5 -6
- data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +4 -5
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +6 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +6 -6
- data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +16 -5
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +7 -6
- data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/update_job.rb +3 -4
- data/lib/elasticsearch-serverless/api/machine_learning/update_trained_model_deployment.rb +3 -4
- data/lib/elasticsearch-serverless/api/mget.rb +12 -5
- data/lib/elasticsearch-serverless/api/msearch.rb +16 -17
- data/lib/elasticsearch-serverless/api/msearch_template.rb +22 -15
- data/lib/elasticsearch-serverless/api/mtermvectors.rb +15 -12
- data/lib/elasticsearch-serverless/api/open_point_in_time.rb +29 -12
- data/lib/elasticsearch-serverless/api/ping.rb +8 -10
- data/lib/elasticsearch-serverless/api/put_script.rb +12 -11
- data/lib/elasticsearch-serverless/api/query_rules/delete_rule.rb +6 -5
- data/lib/elasticsearch-serverless/api/query_rules/delete_ruleset.rb +6 -5
- data/lib/elasticsearch-serverless/api/query_rules/get_rule.rb +5 -5
- data/lib/elasticsearch-serverless/api/query_rules/get_ruleset.rb +5 -5
- data/lib/elasticsearch-serverless/api/query_rules/list_rulesets.rb +7 -6
- data/lib/elasticsearch-serverless/api/query_rules/put_rule.rb +11 -7
- data/lib/elasticsearch-serverless/api/query_rules/put_ruleset.rb +11 -6
- data/lib/elasticsearch-serverless/api/query_rules/test.rb +5 -5
- data/lib/elasticsearch-serverless/api/rank_eval.rb +6 -6
- data/lib/elasticsearch-serverless/api/reindex.rb +146 -9
- data/lib/elasticsearch-serverless/api/render_search_template.rb +5 -6
- data/lib/elasticsearch-serverless/api/response.rb +1 -1
- data/lib/elasticsearch-serverless/api/scripts_painless_execute.rb +7 -3
- data/lib/elasticsearch-serverless/api/scroll.rb +4 -4
- data/lib/elasticsearch-serverless/api/search.rb +77 -69
- data/lib/elasticsearch-serverless/api/search_application/delete.rb +4 -5
- data/lib/elasticsearch-serverless/api/search_application/delete_behavioral_analytics.rb +3 -4
- data/lib/elasticsearch-serverless/api/search_application/get.rb +3 -4
- data/lib/elasticsearch-serverless/api/search_application/get_behavioral_analytics.rb +4 -5
- data/lib/elasticsearch-serverless/api/search_application/list.rb +5 -4
- data/lib/elasticsearch-serverless/api/search_application/put.rb +3 -4
- data/lib/elasticsearch-serverless/api/search_application/put_behavioral_analytics.rb +3 -4
- data/lib/elasticsearch-serverless/api/search_application/search.rb +3 -4
- data/lib/elasticsearch-serverless/api/search_mvt.rb +131 -9
- data/lib/elasticsearch-serverless/api/search_template.rb +12 -12
- data/lib/elasticsearch-serverless/api/security/authenticate.rb +3 -3
- data/lib/elasticsearch-serverless/api/security/create_api_key.rb +7 -3
- data/lib/elasticsearch-serverless/api/security/delete_role.rb +6 -5
- data/lib/elasticsearch-serverless/api/security/get_api_key.rb +3 -3
- data/lib/elasticsearch-serverless/api/security/get_builtin_privileges.rb +3 -3
- data/lib/elasticsearch-serverless/api/security/get_role.rb +11 -8
- data/lib/elasticsearch-serverless/api/security/has_privileges.rb +6 -5
- data/lib/elasticsearch-serverless/api/security/invalidate_api_key.rb +8 -6
- data/lib/elasticsearch-serverless/api/security/put_role.rb +3 -4
- data/lib/elasticsearch-serverless/api/security/query_api_keys.rb +12 -6
- data/lib/elasticsearch-serverless/api/security/query_role.rb +61 -0
- data/lib/elasticsearch-serverless/api/security/update_api_key.rb +74 -0
- data/lib/elasticsearch-serverless/api/sql/clear_cursor.rb +4 -4
- data/lib/elasticsearch-serverless/api/sql/delete_async.rb +10 -6
- data/lib/elasticsearch-serverless/api/sql/get_async.rb +16 -13
- data/lib/elasticsearch-serverless/api/sql/get_async_status.rb +6 -6
- data/lib/elasticsearch-serverless/api/sql/query.rb +8 -5
- data/lib/elasticsearch-serverless/api/sql/translate.rb +6 -4
- data/lib/elasticsearch-serverless/api/synonyms/delete_synonym.rb +17 -6
- data/lib/elasticsearch-serverless/api/synonyms/delete_synonym_rule.rb +7 -7
- data/lib/elasticsearch-serverless/api/synonyms/get_synonym.rb +7 -8
- data/lib/elasticsearch-serverless/api/synonyms/get_synonym_rule.rb +7 -7
- data/lib/elasticsearch-serverless/api/synonyms/get_synonyms_sets.rb +7 -6
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym.rb +9 -6
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym_rule.rb +9 -7
- data/lib/elasticsearch-serverless/api/tasks/get.rb +9 -7
- data/lib/elasticsearch-serverless/api/terms_enum.rb +7 -9
- data/lib/elasticsearch-serverless/api/termvectors.rb +39 -16
- data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +3 -5
- data/lib/elasticsearch-serverless/api/transform/get_transform.rb +5 -6
- data/lib/elasticsearch-serverless/api/transform/get_transform_stats.rb +4 -5
- data/lib/elasticsearch-serverless/api/transform/preview_transform.rb +4 -5
- data/lib/elasticsearch-serverless/api/transform/put_transform.rb +3 -4
- data/lib/elasticsearch-serverless/api/transform/reset_transform.rb +4 -5
- data/lib/elasticsearch-serverless/api/transform/schedule_now_transform.rb +7 -8
- data/lib/elasticsearch-serverless/api/transform/start_transform.rb +3 -5
- data/lib/elasticsearch-serverless/api/transform/stop_transform.rb +3 -4
- data/lib/elasticsearch-serverless/api/transform/update_transform.rb +3 -4
- data/lib/elasticsearch-serverless/api/update.rb +36 -24
- data/lib/elasticsearch-serverless/api/update_by_query.rb +102 -31
- data/lib/elasticsearch-serverless/api.rb +22 -25
- data/lib/elasticsearch-serverless/version.rb +1 -1
- data/lib/elasticsearch-serverless.rb +7 -0
- metadata +18 -7
@@ -22,19 +22,19 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module SQL
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get the async SQL search status.
|
26
|
+
# Get the current status of an async SQL search or a stored synchronous SQL search.
|
26
27
|
#
|
27
|
-
# @option arguments [String] :id
|
28
|
+
# @option arguments [String] :id The identifier for the search. (*Required*)
|
28
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
30
|
#
|
30
|
-
# @see https://www.elastic.co/
|
31
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-get-async-status
|
31
32
|
#
|
32
33
|
def get_async_status(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'sql.get_async_status' }
|
34
35
|
|
35
|
-
defined_params = [:id].
|
36
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
36
37
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
-
set_variables
|
38
38
|
end
|
39
39
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
40
40
|
|
@@ -22,16 +22,19 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module SQL
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get SQL search results.
|
26
|
+
# Run an SQL request.
|
26
27
|
#
|
27
|
-
# @option arguments [String] :format
|
28
|
+
# @option arguments [String] :format The format for the response.
|
29
|
+
# You can also specify a format using the +Accept+ HTTP header.
|
30
|
+
# If you specify both this parameter and the +Accept+ HTTP header, this parameter takes precedence.
|
28
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
32
|
# @option arguments [Hash] :body request body
|
30
33
|
#
|
31
|
-
# @see https://www.elastic.co/
|
34
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-query
|
32
35
|
#
|
33
36
|
def query(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
37
|
+
request_opts = { endpoint: arguments[:endpoint] || 'sql.query' }
|
35
38
|
|
36
39
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
37
40
|
|
@@ -41,7 +44,7 @@ module ElasticsearchServerless
|
|
41
44
|
body = arguments.delete(:body)
|
42
45
|
|
43
46
|
method = ElasticsearchServerless::API::HTTP_POST
|
44
|
-
path =
|
47
|
+
path = '_sql'
|
45
48
|
params = Utils.process_params(arguments)
|
46
49
|
|
47
50
|
ElasticsearchServerless::API::Response.new(
|
@@ -22,15 +22,17 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module SQL
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Translate SQL into Elasticsearch queries.
|
26
|
+
# Translate an SQL search into a search API request containing Query DSL.
|
27
|
+
# It accepts the same request body parameters as the SQL search API, excluding +cursor+.
|
26
28
|
#
|
27
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
30
|
# @option arguments [Hash] :body request body
|
29
31
|
#
|
30
|
-
# @see https://www.elastic.co/
|
32
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-sql-translate
|
31
33
|
#
|
32
34
|
def translate(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'sql.translate' }
|
34
36
|
|
35
37
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
38
|
|
@@ -40,7 +42,7 @@ module ElasticsearchServerless
|
|
40
42
|
body = arguments.delete(:body)
|
41
43
|
|
42
44
|
method = ElasticsearchServerless::API::HTTP_POST
|
43
|
-
path =
|
45
|
+
path = '_sql/translate'
|
44
46
|
params = {}
|
45
47
|
|
46
48
|
ElasticsearchServerless::API::Response.new(
|
@@ -22,19 +22,30 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Synonyms
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Delete a synonym set.
|
26
|
+
# You can only delete a synonyms set that is not in use by any index analyzer.
|
27
|
+
# Synonyms sets can be used in synonym graph token filters and synonym token filters.
|
28
|
+
# These synonym filters can be used as part of search analyzers.
|
29
|
+
# Analyzers need to be loaded when an index is restored (such as when a node starts, or the index becomes open).
|
30
|
+
# Even if the analyzer is not used on any field mapping, it still needs to be loaded on the index recovery phase.
|
31
|
+
# If any analyzers cannot be loaded, the index becomes unavailable and the cluster status becomes red or yellow as index shards are not available.
|
32
|
+
# To prevent that, synonyms sets that are used in analyzers can't be deleted.
|
33
|
+
# A delete request in this case will return a 400 response code.
|
34
|
+
# To remove a synonyms set, you must first remove all indices that contain analyzers using it.
|
35
|
+
# You can migrate an index by creating a new index that does not contain the token filter with the synonyms set, and use the reindex API in order to copy over the index data.
|
36
|
+
# Once finished, you can delete the index.
|
37
|
+
# When the synonyms set is not used in analyzers, you will be able to delete it.
|
26
38
|
#
|
27
|
-
# @option arguments [String] :id The
|
39
|
+
# @option arguments [String] :id The synonyms set identifier to delete. (*Required*)
|
28
40
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
41
|
#
|
30
|
-
# @see https://www.elastic.co/
|
42
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym
|
31
43
|
#
|
32
44
|
def delete_synonym(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
45
|
+
request_opts = { endpoint: arguments[:endpoint] || 'synonyms.delete_synonym' }
|
34
46
|
|
35
|
-
defined_params = [:id].
|
47
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
36
48
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
-
set_variables
|
38
49
|
end
|
39
50
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
40
51
|
|
@@ -22,20 +22,20 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Synonyms
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Delete a synonym rule.
|
26
|
+
# Delete a synonym rule from a synonym set.
|
26
27
|
#
|
27
|
-
# @option arguments [String] :set_id The
|
28
|
-
# @option arguments [String] :rule_id The
|
28
|
+
# @option arguments [String] :set_id The ID of the synonym set to update. (*Required*)
|
29
|
+
# @option arguments [String] :rule_id The ID of the synonym rule to delete. (*Required*)
|
29
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
31
|
#
|
31
|
-
# @see https://www.elastic.co/
|
32
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-delete-synonym-rule
|
32
33
|
#
|
33
34
|
def delete_synonym_rule(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'synonyms.delete_synonym_rule' }
|
35
36
|
|
36
|
-
defined_params = [:set_id, :rule_id].
|
37
|
+
defined_params = [:set_id, :rule_id].each_with_object({}) do |variable, set_variables|
|
37
38
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
39
|
end
|
40
40
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
41
|
|
@@ -22,21 +22,20 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Synonyms
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get a synonym set.
|
26
26
|
#
|
27
|
-
# @option arguments [String] :id
|
28
|
-
# @option arguments [Integer] :from
|
29
|
-
# @option arguments [Integer] :size
|
27
|
+
# @option arguments [String] :id The synonyms set identifier to retrieve. (*Required*)
|
28
|
+
# @option arguments [Integer] :from The starting offset for query rules to retrieve. Server default: 0.
|
29
|
+
# @option arguments [Integer] :size The max number of query rules to retrieve. Server default: 10.
|
30
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
31
31
|
#
|
32
|
-
# @see https://www.elastic.co/
|
32
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym
|
33
33
|
#
|
34
34
|
def get_synonym(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonym' }
|
36
36
|
|
37
|
-
defined_params = [:id].
|
37
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
38
38
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
-
set_variables
|
40
39
|
end
|
41
40
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
42
41
|
|
@@ -22,20 +22,20 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Synonyms
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get a synonym rule.
|
26
|
+
# Get a synonym rule from a synonym set.
|
26
27
|
#
|
27
|
-
# @option arguments [String] :set_id The
|
28
|
-
# @option arguments [String] :rule_id The
|
28
|
+
# @option arguments [String] :set_id The ID of the synonym set to retrieve the synonym rule from. (*Required*)
|
29
|
+
# @option arguments [String] :rule_id The ID of the synonym rule to retrieve. (*Required*)
|
29
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
31
|
#
|
31
|
-
# @see https://www.elastic.co/
|
32
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym-rule
|
32
33
|
#
|
33
34
|
def get_synonym_rule(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonym_rule' }
|
35
36
|
|
36
|
-
defined_params = [:set_id, :rule_id].
|
37
|
+
defined_params = [:set_id, :rule_id].each_with_object({}) do |variable, set_variables|
|
37
38
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
39
|
end
|
40
40
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
41
|
|
@@ -22,16 +22,17 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Synonyms
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get all synonym sets.
|
26
|
+
# Get a summary of all defined synonym sets.
|
26
27
|
#
|
27
|
-
# @option arguments [Integer] :from
|
28
|
-
# @option arguments [Integer] :size
|
28
|
+
# @option arguments [Integer] :from The starting offset for synonyms sets to retrieve. Server default: 0.
|
29
|
+
# @option arguments [Integer] :size The maximum number of synonyms sets to retrieve. Server default: 10.
|
29
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
31
|
#
|
31
|
-
# @see https://www.elastic.co/
|
32
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-get-synonym
|
32
33
|
#
|
33
34
|
def get_synonyms_sets(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'synonyms.get_synonyms_sets' }
|
35
36
|
|
36
37
|
arguments = arguments.clone
|
37
38
|
headers = arguments.delete(:headers) || {}
|
@@ -39,7 +40,7 @@ module ElasticsearchServerless
|
|
39
40
|
body = nil
|
40
41
|
|
41
42
|
method = ElasticsearchServerless::API::HTTP_GET
|
42
|
-
path =
|
43
|
+
path = '_synonyms'
|
43
44
|
params = Utils.process_params(arguments)
|
44
45
|
|
45
46
|
ElasticsearchServerless::API::Response.new(
|
@@ -22,20 +22,23 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Synonyms
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create or update a synonym set.
|
26
|
+
# Synonyms sets are limited to a maximum of 10,000 synonym rules per set.
|
27
|
+
# If you need to manage more synonym rules, you can create multiple synonym sets.
|
28
|
+
# When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices.
|
29
|
+
# This is equivalent to invoking the reload search analyzers API for all indices that use the synonyms set.
|
26
30
|
#
|
27
|
-
# @option arguments [String] :id The
|
31
|
+
# @option arguments [String] :id The ID of the synonyms set to be created or updated. (*Required*)
|
28
32
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
33
|
# @option arguments [Hash] :body request body
|
30
34
|
#
|
31
|
-
# @see https://www.elastic.co/
|
35
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym
|
32
36
|
#
|
33
37
|
def put_synonym(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'synonyms.put_synonym' }
|
35
39
|
|
36
|
-
defined_params = [:id].
|
40
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
37
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
42
|
end
|
40
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
44
|
|
@@ -22,21 +22,23 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Synonyms
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create or update a synonym rule.
|
26
|
+
# Create or update a synonym rule in a synonym set.
|
27
|
+
# If any of the synonym rules included is invalid, the API returns an error.
|
28
|
+
# When you update a synonym rule, all analyzers using the synonyms set will be reloaded automatically to reflect the new rule.
|
26
29
|
#
|
27
|
-
# @option arguments [String] :set_id The
|
28
|
-
# @option arguments [String] :rule_id The
|
30
|
+
# @option arguments [String] :set_id The ID of the synonym set. (*Required*)
|
31
|
+
# @option arguments [String] :rule_id The ID of the synonym rule to be updated or created. (*Required*)
|
29
32
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
33
|
# @option arguments [Hash] :body request body
|
31
34
|
#
|
32
|
-
# @see https://www.elastic.co/
|
35
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-synonyms-put-synonym-rule
|
33
36
|
#
|
34
37
|
def put_synonym_rule(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'synonyms.put_synonym_rule' }
|
36
39
|
|
37
|
-
defined_params = [:set_id, :rule_id].
|
40
|
+
defined_params = [:set_id, :rule_id].each_with_object({}) do |variable, set_variables|
|
38
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
-
set_variables
|
40
42
|
end
|
41
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
42
44
|
|
@@ -23,26 +23,28 @@ module ElasticsearchServerless
|
|
23
23
|
module Tasks
|
24
24
|
module Actions
|
25
25
|
# Get task information.
|
26
|
-
#
|
26
|
+
# Get information about a task currently running in the cluster.
|
27
|
+
# WARNING: The task management API is new and should still be considered a beta feature.
|
28
|
+
# The API may change in ways that are not backwards compatible.
|
29
|
+
# If the task identifier is not found, a 404 response code indicates that there are no resources that match the request.
|
27
30
|
# This functionality is Experimental and may be changed or removed
|
28
31
|
# completely in a future release. Elastic will take a best effort approach
|
29
32
|
# to fix any issues, but experimental features are not subject to the
|
30
33
|
# support SLA of official GA features.
|
31
34
|
#
|
32
|
-
# @option arguments [String] :task_id
|
33
|
-
# @option arguments [Time] :timeout
|
35
|
+
# @option arguments [String] :task_id The task identifier. (*Required*)
|
36
|
+
# @option arguments [Time] :timeout The period to wait for a response.
|
34
37
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
35
38
|
# @option arguments [Boolean] :wait_for_completion If +true+, the request blocks until the task has completed.
|
36
39
|
# @option arguments [Hash] :headers Custom HTTP headers
|
37
40
|
#
|
38
|
-
# @see https://www.elastic.co/
|
41
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-tasks
|
39
42
|
#
|
40
43
|
def get(arguments = {})
|
41
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
44
|
+
request_opts = { endpoint: arguments[:endpoint] || 'tasks.get' }
|
42
45
|
|
43
|
-
defined_params = [:task_id].
|
46
|
+
defined_params = [:task_id].each_with_object({}) do |variable, set_variables|
|
44
47
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
45
|
-
set_variables
|
46
48
|
end
|
47
49
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
48
50
|
|
@@ -23,23 +23,21 @@ module ElasticsearchServerless
|
|
23
23
|
module Actions
|
24
24
|
# Get terms in an index.
|
25
25
|
# Discover terms that match a partial string in an index.
|
26
|
-
# This
|
27
|
-
# If the +complete+ property in the response is false, the returned terms set may be incomplete and should be treated as approximate.
|
28
|
-
# This can occur due to a few reasons, such as a request timeout or a node error.
|
29
|
-
# NOTE: The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents.
|
26
|
+
# This API is designed for low-latency look-ups used in auto-complete scenarios.
|
30
27
|
#
|
31
|
-
# @option arguments [String] :index
|
28
|
+
# @option arguments [String] :index A comma-separated list of data streams, indices, and index aliases to search.
|
29
|
+
# Wildcard (+*+) expressions are supported.
|
30
|
+
# To search all data streams or indices, omit this parameter or use +*+ or +_all+. (*Required*)
|
32
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
33
32
|
# @option arguments [Hash] :body request body
|
34
33
|
#
|
35
|
-
# @see https://www.elastic.co/
|
34
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-terms-enum
|
36
35
|
#
|
37
36
|
def terms_enum(arguments = {})
|
38
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
37
|
+
request_opts = { endpoint: arguments[:endpoint] || 'terms_enum' }
|
39
38
|
|
40
|
-
defined_params = [:index].
|
39
|
+
defined_params = [:index].each_with_object({}) do |variable, set_variables|
|
41
40
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
-
set_variables
|
43
41
|
end
|
44
42
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
43
|
|
@@ -23,33 +23,56 @@ module ElasticsearchServerless
|
|
23
23
|
module Actions
|
24
24
|
# Get term vector information.
|
25
25
|
# Get information and statistics about terms in the fields of a particular document.
|
26
|
+
# You can retrieve term vectors for documents stored in the index or for artificial documents passed in the body of the request.
|
27
|
+
# You can specify the fields you are interested in through the +fields+ parameter or by adding the fields to the request body.
|
28
|
+
# For example:
|
29
|
+
# +
|
30
|
+
# GET /my-index-000001/_termvectors/1?fields=message
|
31
|
+
# +
|
32
|
+
# Fields can be specified using wildcards, similar to the multi match query.
|
33
|
+
# Term vectors are real-time by default, not near real-time.
|
34
|
+
# This can be changed by setting +realtime+ parameter to +false+.
|
35
|
+
# You can request three types of values: _term information_, _term statistics_, and _field statistics_.
|
36
|
+
# By default, all term information and field statistics are returned for all fields but term statistics are excluded.
|
37
|
+
# **Term information**
|
38
|
+
# * term frequency in the field (always returned)
|
39
|
+
# * term positions (+positions: true+)
|
40
|
+
# * start and end offsets (+offsets: true+)
|
41
|
+
# * term payloads (+payloads: true+), as base64 encoded bytes
|
42
|
+
# If the requested information wasn't stored in the index, it will be computed on the fly if possible.
|
43
|
+
# Additionally, term vectors could be computed for documents not even existing in the index, but instead provided by the user.
|
26
44
|
#
|
27
|
-
# @option arguments [String] :index
|
28
|
-
# @option arguments [String] :id
|
29
|
-
# @option arguments [String, Array<String>] :fields
|
30
|
-
#
|
31
|
-
# @option arguments [Boolean] :field_statistics If +true+, the response includes
|
45
|
+
# @option arguments [String] :index The name of the index that contains the document. (*Required*)
|
46
|
+
# @option arguments [String] :id A unique identifier for the document.
|
47
|
+
# @option arguments [String, Array<String>] :fields A comma-separated list or wildcard expressions of fields to include in the statistics.
|
48
|
+
# It is used as the default list unless a specific field list is provided in the +completion_fields+ or +fielddata_fields+ parameters.
|
49
|
+
# @option arguments [Boolean] :field_statistics If +true+, the response includes:
|
50
|
+
# - The document count (how many documents contain this field).
|
51
|
+
# - The sum of document frequencies (the sum of document frequencies for all terms in this field).
|
52
|
+
# - The sum of total term frequencies (the sum of total term frequencies of each term in this field). Server default: true.
|
32
53
|
# @option arguments [Boolean] :offsets If +true+, the response includes term offsets. Server default: true.
|
33
54
|
# @option arguments [Boolean] :payloads If +true+, the response includes term payloads. Server default: true.
|
34
55
|
# @option arguments [Boolean] :positions If +true+, the response includes term positions. Server default: true.
|
35
|
-
# @option arguments [String] :preference
|
36
|
-
#
|
56
|
+
# @option arguments [String] :preference The node or shard the operation should be performed on.
|
57
|
+
# It is random by default.
|
37
58
|
# @option arguments [Boolean] :realtime If true, the request is real-time as opposed to near-real-time. Server default: true.
|
38
|
-
# @option arguments [String] :routing
|
39
|
-
# @option arguments [Boolean] :term_statistics If +true+, the response includes
|
59
|
+
# @option arguments [String] :routing A custom value that is used to route operations to a specific shard.
|
60
|
+
# @option arguments [Boolean] :term_statistics If +true+, the response includes:
|
61
|
+
# - The total term frequency (how often a term occurs in all documents).
|
62
|
+
# - The document frequency (the number of documents containing the current term).
|
63
|
+
# By default these values are not returned since term statistics can have a serious performance impact.
|
40
64
|
# @option arguments [Integer] :version If +true+, returns the document version as part of a hit.
|
41
|
-
# @option arguments [String] :version_type
|
65
|
+
# @option arguments [String] :version_type The version type.
|
42
66
|
# @option arguments [Hash] :headers Custom HTTP headers
|
43
67
|
# @option arguments [Hash] :body request body
|
44
68
|
#
|
45
|
-
# @see https://www.elastic.co/
|
69
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-termvectors
|
46
70
|
#
|
47
71
|
def termvectors(arguments = {})
|
48
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
72
|
+
request_opts = { endpoint: arguments[:endpoint] || 'termvectors' }
|
49
73
|
|
50
|
-
defined_params = [:index, :id].
|
74
|
+
defined_params = [:index, :id].each_with_object({}) do |variable, set_variables|
|
51
75
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
52
|
-
set_variables
|
53
76
|
end
|
54
77
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
55
78
|
|
@@ -86,8 +109,8 @@ module ElasticsearchServerless
|
|
86
109
|
# Deprecated: Use the plural version, {#termvectors}
|
87
110
|
#
|
88
111
|
def termvector(arguments = {})
|
89
|
-
warn
|
90
|
-
termvectors(arguments.merge
|
112
|
+
warn '[DEPRECATION] `termvector` is deprecated. Please use the plural version, `termvectors` instead.'
|
113
|
+
termvectors(arguments.merge(endpoint: '_termvector'))
|
91
114
|
end
|
92
115
|
end
|
93
116
|
end
|
@@ -23,7 +23,6 @@ module ElasticsearchServerless
|
|
23
23
|
module Transform
|
24
24
|
module Actions
|
25
25
|
# Delete a transform.
|
26
|
-
# Deletes a transform.
|
27
26
|
#
|
28
27
|
# @option arguments [String] :transform_id Identifier for the transform. (*Required*)
|
29
28
|
# @option arguments [Boolean] :force If this value is false, the transform must be stopped before it can be deleted. If true, the transform is
|
@@ -33,14 +32,13 @@ module ElasticsearchServerless
|
|
33
32
|
# @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
34
33
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
34
|
#
|
36
|
-
# @see https://www.elastic.co/
|
35
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-delete-transform
|
37
36
|
#
|
38
37
|
def delete_transform(arguments = {})
|
39
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'transform.delete_transform' }
|
40
39
|
|
41
|
-
defined_params = [:transform_id].
|
40
|
+
defined_params = [:transform_id].each_with_object({}) do |variable, set_variables|
|
42
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
43
|
-
set_variables
|
44
42
|
end
|
45
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
46
44
|
|
@@ -23,7 +23,7 @@ module ElasticsearchServerless
|
|
23
23
|
module Transform
|
24
24
|
module Actions
|
25
25
|
# Get transforms.
|
26
|
-
#
|
26
|
+
# Get configuration information for transforms.
|
27
27
|
#
|
28
28
|
# @option arguments [String, Array<String>] :transform_id Identifier for the transform. It can be a transform identifier or a
|
29
29
|
# wildcard expression. You can get information for all transforms by using
|
@@ -42,14 +42,13 @@ module ElasticsearchServerless
|
|
42
42
|
# be retrieved and then added to another cluster.
|
43
43
|
# @option arguments [Hash] :headers Custom HTTP headers
|
44
44
|
#
|
45
|
-
# @see https://www.elastic.co/
|
45
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform
|
46
46
|
#
|
47
47
|
def get_transform(arguments = {})
|
48
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
48
|
+
request_opts = { endpoint: arguments[:endpoint] || 'transform.get_transform' }
|
49
49
|
|
50
|
-
defined_params = [:transform_id].
|
50
|
+
defined_params = [:transform_id].each_with_object({}) do |variable, set_variables|
|
51
51
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
52
|
-
set_variables
|
53
52
|
end
|
54
53
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
55
54
|
|
@@ -64,7 +63,7 @@ module ElasticsearchServerless
|
|
64
63
|
path = if _transform_id
|
65
64
|
"_transform/#{Utils.listify(_transform_id)}"
|
66
65
|
else
|
67
|
-
|
66
|
+
'_transform'
|
68
67
|
end
|
69
68
|
params = Utils.process_params(arguments)
|
70
69
|
|
@@ -23,7 +23,7 @@ module ElasticsearchServerless
|
|
23
23
|
module Transform
|
24
24
|
module Actions
|
25
25
|
# Get transform stats.
|
26
|
-
#
|
26
|
+
# Get usage information for transforms.
|
27
27
|
#
|
28
28
|
# @option arguments [String, Array<String>] :transform_id Identifier for the transform. It can be a transform identifier or a
|
29
29
|
# wildcard expression. You can get information for all transforms by using
|
@@ -40,14 +40,13 @@ module ElasticsearchServerless
|
|
40
40
|
# @option arguments [Time] :timeout Controls the time to wait for the stats
|
41
41
|
# @option arguments [Hash] :headers Custom HTTP headers
|
42
42
|
#
|
43
|
-
# @see https://www.elastic.co/
|
43
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-get-transform-stats
|
44
44
|
#
|
45
45
|
def get_transform_stats(arguments = {})
|
46
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
46
|
+
request_opts = { endpoint: arguments[:endpoint] || 'transform.get_transform_stats' }
|
47
47
|
|
48
|
-
defined_params = [:transform_id].
|
48
|
+
defined_params = [:transform_id].each_with_object({}) do |variable, set_variables|
|
49
49
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
50
|
-
set_variables
|
51
50
|
end
|
52
51
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
53
52
|
|
@@ -35,14 +35,13 @@ module ElasticsearchServerless
|
|
35
35
|
# @option arguments [Hash] :headers Custom HTTP headers
|
36
36
|
# @option arguments [Hash] :body request body
|
37
37
|
#
|
38
|
-
# @see https://www.elastic.co/
|
38
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-preview-transform
|
39
39
|
#
|
40
40
|
def preview_transform(arguments = {})
|
41
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
41
|
+
request_opts = { endpoint: arguments[:endpoint] || 'transform.preview_transform' }
|
42
42
|
|
43
|
-
defined_params = [:transform_id].
|
43
|
+
defined_params = [:transform_id].each_with_object({}) do |variable, set_variables|
|
44
44
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
45
|
-
set_variables
|
46
45
|
end
|
47
46
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
48
47
|
|
@@ -62,7 +61,7 @@ module ElasticsearchServerless
|
|
62
61
|
path = if _transform_id
|
63
62
|
"_transform/#{Utils.listify(_transform_id)}/_preview"
|
64
63
|
else
|
65
|
-
|
64
|
+
'_transform/_preview'
|
66
65
|
end
|
67
66
|
params = Utils.process_params(arguments)
|
68
67
|
|
@@ -52,14 +52,13 @@ module ElasticsearchServerless
|
|
52
52
|
# @option arguments [Hash] :headers Custom HTTP headers
|
53
53
|
# @option arguments [Hash] :body request body
|
54
54
|
#
|
55
|
-
# @see https://www.elastic.co/
|
55
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-transform-put-transform
|
56
56
|
#
|
57
57
|
def put_transform(arguments = {})
|
58
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
58
|
+
request_opts = { endpoint: arguments[:endpoint] || 'transform.put_transform' }
|
59
59
|
|
60
|
-
defined_params = [:transform_id].
|
60
|
+
defined_params = [:transform_id].each_with_object({}) do |variable, set_variables|
|
61
61
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
62
|
-
set_variables
|
63
62
|
end
|
64
63
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
65
64
|
|