elasticsearch-serverless 0.5.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 +11 -8
- data/lib/elasticsearch-serverless/api/async_search/submit.rb +6 -10
- data/lib/elasticsearch-serverless/api/bulk.rb +109 -22
- data/lib/elasticsearch-serverless/api/cat/aliases.rb +17 -18
- data/lib/elasticsearch-serverless/api/cat/component_templates.rb +17 -16
- data/lib/elasticsearch-serverless/api/cat/count.rb +13 -18
- data/lib/elasticsearch-serverless/api/cat/help.rb +5 -19
- data/lib/elasticsearch-serverless/api/cat/indices.rb +10 -15
- data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +7 -17
- data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +6 -16
- data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +6 -16
- data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +7 -16
- data/lib/elasticsearch-serverless/api/cat/transforms.rb +6 -16
- data/lib/elasticsearch-serverless/api/clear_scroll.rb +9 -7
- data/lib/elasticsearch-serverless/api/close_point_in_time.rb +8 -4
- 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 +16 -13
- 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 -8
- 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 -6
- 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 -11
- data/lib/elasticsearch-serverless/api/inference/get.rb +4 -9
- data/lib/elasticsearch-serverless/api/inference/inference.rb +0 -4
- data/lib/elasticsearch-serverless/api/inference/put.rb +12 -9
- 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 +23 -16
- data/lib/elasticsearch-serverless/api/mtermvectors.rb +15 -12
- data/lib/elasticsearch-serverless/api/open_point_in_time.rb +33 -11
- 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 +8 -7
- data/lib/elasticsearch-serverless/api/reindex.rb +146 -9
- data/lib/elasticsearch-serverless/api/render_search_template.rb +7 -7
- 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 +79 -72
- 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 +132 -10
- data/lib/elasticsearch-serverless/api/search_template.rb +13 -13
- 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 +40 -17
- 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,14 +22,14 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Actions
|
24
24
|
# Get cluster info.
|
25
|
-
#
|
25
|
+
# Get basic build, version, and cluster information.
|
26
26
|
#
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
28
|
#
|
29
|
-
# @see https://www.elastic.co/
|
29
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/group/endpoint-info
|
30
30
|
#
|
31
31
|
def info(arguments = {})
|
32
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
32
|
+
request_opts = { endpoint: arguments[:endpoint] || 'info' }
|
33
33
|
|
34
34
|
arguments = arguments.clone
|
35
35
|
headers = arguments.delete(:headers) || {}
|
@@ -37,7 +37,7 @@ module ElasticsearchServerless
|
|
37
37
|
body = nil
|
38
38
|
|
39
39
|
method = ElasticsearchServerless::API::HTTP_GET
|
40
|
-
path =
|
40
|
+
path = ''
|
41
41
|
params = {}
|
42
42
|
|
43
43
|
ElasticsearchServerless::API::Response.new(
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Delete pipelines.
|
26
|
+
# Delete one or more ingest pipelines.
|
26
27
|
#
|
27
28
|
# @option arguments [String] :id Pipeline ID or wildcard expression of pipeline IDs used to limit the request.
|
28
29
|
# To delete all ingest pipelines in a cluster, use a value of +*+. (*Required*)
|
@@ -32,14 +33,13 @@ module ElasticsearchServerless
|
|
32
33
|
# If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
33
34
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
35
|
#
|
35
|
-
# @see https://www.elastic.co/
|
36
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-delete-pipeline
|
36
37
|
#
|
37
38
|
def delete_pipeline(arguments = {})
|
38
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
39
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ingest.delete_pipeline' }
|
39
40
|
|
40
|
-
defined_params = [:id].
|
41
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
41
42
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
-
set_variables
|
43
43
|
end
|
44
44
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
45
|
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get pipelines.
|
26
|
+
# Get information about one or more ingest pipelines.
|
26
27
|
# This API returns a local reference of the pipeline.
|
27
28
|
#
|
28
29
|
# @option arguments [String] :id Comma-separated list of pipeline IDs to retrieve.
|
@@ -33,14 +34,13 @@ module ElasticsearchServerless
|
|
33
34
|
# @option arguments [Boolean] :summary Return pipelines without their definitions (default: false)
|
34
35
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
36
|
#
|
36
|
-
# @see https://www.elastic.co/
|
37
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-get-pipeline
|
37
38
|
#
|
38
39
|
def get_pipeline(arguments = {})
|
39
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
40
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ingest.get_pipeline' }
|
40
41
|
|
41
|
-
defined_params = [:id].
|
42
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
42
43
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
43
|
-
set_variables
|
44
44
|
end
|
45
45
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
46
46
|
|
@@ -55,7 +55,7 @@ module ElasticsearchServerless
|
|
55
55
|
path = if _id
|
56
56
|
"_ingest/pipeline/#{Utils.listify(_id)}"
|
57
57
|
else
|
58
|
-
|
58
|
+
'_ingest/pipeline'
|
59
59
|
end
|
60
60
|
params = Utils.process_params(arguments)
|
61
61
|
|
@@ -22,8 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
#
|
26
|
-
#
|
25
|
+
# Run a grok processor.
|
26
|
+
# Extract structured fields out of a single text field within a document.
|
27
|
+
# You must choose which field to extract matched fields from, as well as the grok pattern you expect will match.
|
27
28
|
# A grok pattern is like a regular expression that supports aliased expressions that can be reused.
|
28
29
|
#
|
29
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -31,7 +32,7 @@ module ElasticsearchServerless
|
|
31
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html
|
32
33
|
#
|
33
34
|
def processor_grok(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ingest.processor_grok' }
|
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 = '_ingest/processor/grok'
|
43
44
|
params = {}
|
44
45
|
|
45
46
|
ElasticsearchServerless::API::Response.new(
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create or update a pipeline.
|
26
26
|
# Changes made using this API take effect immediately.
|
27
27
|
#
|
28
28
|
# @option arguments [String] :id ID of the ingest pipeline to create or update. (*Required*)
|
@@ -35,11 +35,10 @@ module ElasticsearchServerless
|
|
35
35
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ingest.html
|
36
36
|
#
|
37
37
|
def put_pipeline(arguments = {})
|
38
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ingest.put_pipeline' }
|
39
39
|
|
40
|
-
defined_params = [:id].
|
40
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
41
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
-
set_variables
|
43
42
|
end
|
44
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
44
|
|
@@ -22,22 +22,23 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Simulate a pipeline.
|
26
|
+
# Run an ingest pipeline against a set of provided documents.
|
27
|
+
# You can either specify an existing pipeline to use with the provided documents or supply a pipeline definition in the body of the request.
|
26
28
|
#
|
27
|
-
# @option arguments [String] :id
|
28
|
-
# If you don
|
29
|
+
# @option arguments [String] :id The pipeline to test.
|
30
|
+
# If you don't specify a +pipeline+ in the request body, this parameter is required.
|
29
31
|
# @option arguments [Boolean] :verbose If +true+, the response includes output data for each processor in the executed pipeline.
|
30
32
|
# @option arguments [Hash] :headers Custom HTTP headers
|
31
33
|
# @option arguments [Hash] :body request body
|
32
34
|
#
|
33
|
-
# @see https://www.elastic.co/
|
35
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ingest-simulate
|
34
36
|
#
|
35
37
|
def simulate(arguments = {})
|
36
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ingest.simulate' }
|
37
39
|
|
38
|
-
defined_params = [:id].
|
40
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
39
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
40
|
-
set_variables
|
41
42
|
end
|
42
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
43
44
|
|
@@ -54,7 +55,7 @@ module ElasticsearchServerless
|
|
54
55
|
path = if _id
|
55
56
|
"_ingest/pipeline/#{Utils.listify(_id)}/_simulate"
|
56
57
|
else
|
57
|
-
|
58
|
+
'_ingest/pipeline/_simulate'
|
58
59
|
end
|
59
60
|
params = Utils.process_params(arguments)
|
60
61
|
|
@@ -23,18 +23,17 @@ module ElasticsearchServerless
|
|
23
23
|
module License
|
24
24
|
module Actions
|
25
25
|
# Get license information.
|
26
|
-
#
|
27
|
-
# For more information about the different types of licenses, refer to {https://www.elastic.co/subscriptions Elastic Stack subscriptions}.
|
26
|
+
# Get information about your Elastic license including its type, its status, when it was issued, and when it expires.
|
28
27
|
#
|
29
28
|
# @option arguments [Boolean] :accept_enterprise If +true+, this parameter returns enterprise for Enterprise license types. If +false+, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility.
|
30
29
|
# This parameter is deprecated and will always be set to true in 8.x. Server default: true.
|
31
30
|
# @option arguments [Boolean] :local Specifies whether to retrieve local information. The default value is +false+, which means the information is retrieved from the master node.
|
32
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
33
32
|
#
|
34
|
-
# @see https://www.elastic.co/
|
33
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-license-get
|
35
34
|
#
|
36
35
|
def get(arguments = {})
|
37
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
36
|
+
request_opts = { endpoint: arguments[:endpoint] || 'license.get' }
|
38
37
|
|
39
38
|
arguments = arguments.clone
|
40
39
|
headers = arguments.delete(:headers) || {}
|
@@ -42,7 +41,7 @@ module ElasticsearchServerless
|
|
42
41
|
body = nil
|
43
42
|
|
44
43
|
method = ElasticsearchServerless::API::HTTP_GET
|
45
|
-
path =
|
44
|
+
path = '_license'
|
46
45
|
params = Utils.process_params(arguments)
|
47
46
|
|
48
47
|
ElasticsearchServerless::API::Response.new(
|
@@ -22,19 +22,20 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Logstash
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Delete a Logstash pipeline.
|
26
|
+
# Delete a pipeline that is used for Logstash Central Management.
|
27
|
+
# If the request succeeds, you receive an empty response with an appropriate status code.
|
26
28
|
#
|
27
|
-
# @option arguments [String] :id
|
29
|
+
# @option arguments [String] :id An identifier for the pipeline. (*Required*)
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
|
-
# @see https://www.elastic.co/
|
32
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-delete-pipeline
|
31
33
|
#
|
32
34
|
def delete_pipeline(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'logstash.delete_pipeline' }
|
34
36
|
|
35
|
-
defined_params = [:id].
|
37
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
36
38
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
-
set_variables
|
38
39
|
end
|
39
40
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
40
41
|
|
@@ -22,19 +22,19 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Logstash
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get Logstash pipelines.
|
26
|
+
# Get pipelines that are used for Logstash Central Management.
|
26
27
|
#
|
27
|
-
# @option arguments [String, Array] :id
|
28
|
+
# @option arguments [String, Array] :id A comma-separated list of pipeline identifiers.
|
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-logstash-get-pipeline
|
31
32
|
#
|
32
33
|
def get_pipeline(arguments = {})
|
33
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'logstash.get_pipeline' }
|
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
|
|
@@ -49,7 +49,7 @@ module ElasticsearchServerless
|
|
49
49
|
path = if _id
|
50
50
|
"_logstash/pipeline/#{Utils.listify(_id)}"
|
51
51
|
else
|
52
|
-
|
52
|
+
'_logstash/pipeline'
|
53
53
|
end
|
54
54
|
params = {}
|
55
55
|
|
@@ -22,20 +22,21 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Logstash
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Create or update a Logstash pipeline.
|
26
|
+
# Create a pipeline that is used for Logstash Central Management.
|
27
|
+
# If the specified pipeline exists, it is replaced.
|
26
28
|
#
|
27
|
-
# @option arguments [String] :id
|
29
|
+
# @option arguments [String] :id An identifier for the pipeline. (*Required*)
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
# @option arguments [Hash] :body pipeline
|
30
32
|
#
|
31
|
-
# @see https://www.elastic.co/
|
33
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-logstash-put-pipeline
|
32
34
|
#
|
33
35
|
def put_pipeline(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
36
|
+
request_opts = { endpoint: arguments[:endpoint] || 'logstash.put_pipeline' }
|
35
37
|
|
36
|
-
defined_params = [:id].
|
38
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
37
39
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
40
|
end
|
40
41
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
42
|
|
@@ -37,14 +37,13 @@ module ElasticsearchServerless
|
|
37
37
|
# @option arguments [Hash] :headers Custom HTTP headers
|
38
38
|
# @option arguments [Hash] :body request body
|
39
39
|
#
|
40
|
-
# @see https://www.elastic.co/
|
40
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-close-job
|
41
41
|
#
|
42
42
|
def close_job(arguments = {})
|
43
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
43
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.close_job' }
|
44
44
|
|
45
|
-
defined_params = [:job_id].
|
45
|
+
defined_params = [:job_id].each_with_object({}) do |variable, set_variables|
|
46
46
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
47
|
-
set_variables
|
48
47
|
end
|
49
48
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
50
49
|
|
@@ -23,19 +23,18 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Delete a calendar.
|
26
|
-
#
|
26
|
+
# Remove all scheduled events from a calendar, then delete it.
|
27
27
|
#
|
28
28
|
# @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
|
29
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
30
30
|
#
|
31
|
-
# @see https://www.elastic.co/
|
31
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-calendar
|
32
32
|
#
|
33
33
|
def delete_calendar(arguments = {})
|
34
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
34
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar' }
|
35
35
|
|
36
|
-
defined_params = [:calendar_id].
|
36
|
+
defined_params = [:calendar_id].each_with_object({}) do |variable, set_variables|
|
37
37
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
38
|
-
set_variables
|
39
38
|
end
|
40
39
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
40
|
|
@@ -29,14 +29,13 @@ module ElasticsearchServerless
|
|
29
29
|
# You can obtain this identifier by using the get calendar events API. (*Required*)
|
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-ml-delete-calendar-event
|
33
33
|
#
|
34
34
|
def delete_calendar_event(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar_event' }
|
36
36
|
|
37
|
-
defined_params = [:calendar_id, :event_id].
|
37
|
+
defined_params = [:calendar_id, :event_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
|
|
@@ -29,14 +29,13 @@ module ElasticsearchServerless
|
|
29
29
|
# comma-separated list of jobs or groups. (*Required*)
|
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-ml-delete-calendar-job
|
33
33
|
#
|
34
34
|
def delete_calendar_job(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_calendar_job' }
|
36
36
|
|
37
|
-
defined_params = [:calendar_id, :job_id].
|
37
|
+
defined_params = [:calendar_id, :job_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
|
|
@@ -29,14 +29,13 @@ module ElasticsearchServerless
|
|
29
29
|
# @option arguments [Time] :timeout The time to wait for the job to be deleted. Server default: 1m.
|
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-ml-delete-data-frame-analytics
|
33
33
|
#
|
34
34
|
def delete_data_frame_analytics(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_data_frame_analytics' }
|
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
|
|
@@ -32,14 +32,13 @@ module ElasticsearchServerless
|
|
32
32
|
# stopping and deleting the datafeed.
|
33
33
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
34
|
#
|
35
|
-
# @see https://www.elastic.co/
|
35
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-datafeed
|
36
36
|
#
|
37
37
|
def delete_datafeed(arguments = {})
|
38
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_datafeed' }
|
39
39
|
|
40
|
-
defined_params = [:datafeed_id].
|
40
|
+
defined_params = [:datafeed_id].each_with_object({}) do |variable, set_variables|
|
41
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
-
set_variables
|
43
42
|
end
|
44
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
44
|
|
@@ -29,14 +29,13 @@ module ElasticsearchServerless
|
|
29
29
|
# @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*)
|
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-ml-delete-filter
|
33
33
|
#
|
34
34
|
def delete_filter(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_filter' }
|
36
36
|
|
37
|
-
defined_params = [:filter_id].
|
37
|
+
defined_params = [:filter_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
|
|
@@ -40,14 +40,13 @@ module ElasticsearchServerless
|
|
40
40
|
# job deletion completes. Server default: true.
|
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-ml-delete-job
|
44
44
|
#
|
45
45
|
def delete_job(arguments = {})
|
46
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
46
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_job' }
|
47
47
|
|
48
|
-
defined_params = [:job_id].
|
48
|
+
defined_params = [:job_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
|
|
@@ -27,16 +27,16 @@ module ElasticsearchServerless
|
|
27
27
|
#
|
28
28
|
# @option arguments [String] :model_id The unique identifier of the trained model. (*Required*)
|
29
29
|
# @option arguments [Boolean] :force Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment.
|
30
|
+
# @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.
|
30
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
31
32
|
#
|
32
|
-
# @see https://www.elastic.co/
|
33
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-trained-model
|
33
34
|
#
|
34
35
|
def delete_trained_model(arguments = {})
|
35
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
36
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_trained_model' }
|
36
37
|
|
37
|
-
defined_params = [:model_id].
|
38
|
+
defined_params = [:model_id].each_with_object({}) do |variable, set_variables|
|
38
39
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
-
set_variables
|
40
40
|
end
|
41
41
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
42
42
|
|
@@ -31,14 +31,13 @@ module ElasticsearchServerless
|
|
31
31
|
# @option arguments [String] :model_id The trained model ID to which the model alias refers. (*Required*)
|
32
32
|
# @option arguments [Hash] :headers Custom HTTP headers
|
33
33
|
#
|
34
|
-
# @see https://www.elastic.co/
|
34
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-delete-trained-model-alias
|
35
35
|
#
|
36
36
|
def delete_trained_model_alias(arguments = {})
|
37
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
37
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.delete_trained_model_alias' }
|
38
38
|
|
39
|
-
defined_params = [:model_id, :model_alias].
|
39
|
+
defined_params = [:model_id, :model_alias].each_with_object({}) do |variable, set_variables|
|
40
40
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
41
|
-
set_variables
|
42
41
|
end
|
43
42
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
44
43
|
|
@@ -23,17 +23,17 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Estimate job model memory usage.
|
26
|
-
#
|
27
|
-
#
|
26
|
+
# Make an estimation of the memory usage for an anomaly detection job model.
|
27
|
+
# The estimate is based on analysis configuration details for the job and cardinality
|
28
28
|
# estimates for the fields it references.
|
29
29
|
#
|
30
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
31
31
|
# @option arguments [Hash] :body request body
|
32
32
|
#
|
33
|
-
# @see https://www.elastic.co/
|
33
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-estimate-model-memory
|
34
34
|
#
|
35
35
|
def estimate_model_memory(arguments = {})
|
36
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
36
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.estimate_model_memory' }
|
37
37
|
|
38
38
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
39
39
|
|
@@ -43,7 +43,7 @@ module ElasticsearchServerless
|
|
43
43
|
body = arguments.delete(:body)
|
44
44
|
|
45
45
|
method = ElasticsearchServerless::API::HTTP_POST
|
46
|
-
path =
|
46
|
+
path = '_ml/anomaly_detectors/_estimate_model_memory'
|
47
47
|
params = {}
|
48
48
|
|
49
49
|
ElasticsearchServerless::API::Response.new(
|
@@ -31,10 +31,10 @@ module ElasticsearchServerless
|
|
31
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
32
32
|
# @option arguments [Hash] :body request body
|
33
33
|
#
|
34
|
-
# @see https://www.elastic.co/
|
34
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-evaluate-data-frame
|
35
35
|
#
|
36
36
|
def evaluate_data_frame(arguments = {})
|
37
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
37
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.evaluate_data_frame' }
|
38
38
|
|
39
39
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
40
40
|
|
@@ -44,7 +44,7 @@ module ElasticsearchServerless
|
|
44
44
|
body = arguments.delete(:body)
|
45
45
|
|
46
46
|
method = ElasticsearchServerless::API::HTTP_POST
|
47
|
-
path =
|
47
|
+
path = '_ml/data_frame/_evaluate'
|
48
48
|
params = {}
|
49
49
|
|
50
50
|
ElasticsearchServerless::API::Response.new(
|
@@ -46,14 +46,13 @@ module ElasticsearchServerless
|
|
46
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
47
47
|
# @option arguments [Hash] :body request body
|
48
48
|
#
|
49
|
-
# @see https://www.elastic.co/
|
49
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-flush-job
|
50
50
|
#
|
51
51
|
def flush_job(arguments = {})
|
52
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
52
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.flush_job' }
|
53
53
|
|
54
|
-
defined_params = [:job_id].
|
54
|
+
defined_params = [:job_id].each_with_object({}) do |variable, set_variables|
|
55
55
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
56
|
-
set_variables
|
57
56
|
end
|
58
57
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
59
58
|
|
@@ -32,14 +32,13 @@ module ElasticsearchServerless
|
|
32
32
|
# @option arguments [String, Time] :start Specifies to get events with timestamps after this time.
|
33
33
|
# @option arguments [Hash] :headers Custom HTTP headers
|
34
34
|
#
|
35
|
-
# @see https://www.elastic.co/
|
35
|
+
# @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ml-get-calendar-events
|
36
36
|
#
|
37
37
|
def get_calendar_events(arguments = {})
|
38
|
-
request_opts = { endpoint: arguments[:endpoint] ||
|
38
|
+
request_opts = { endpoint: arguments[:endpoint] || 'ml.get_calendar_events' }
|
39
39
|
|
40
|
-
defined_params = [:calendar_id].
|
40
|
+
defined_params = [:calendar_id].each_with_object({}) do |variable, set_variables|
|
41
41
|
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
-
set_variables
|
43
42
|
end
|
44
43
|
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
44
|
|