elasticsearch-serverless 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch-serverless/api/async_search/delete.rb +4 -1
- data/lib/elasticsearch-serverless/api/async_search/get.rb +2 -1
- data/lib/elasticsearch-serverless/api/async_search/status.rb +3 -1
- data/lib/elasticsearch-serverless/api/async_search/submit.rb +5 -1
- data/lib/elasticsearch-serverless/api/bulk.rb +2 -1
- data/lib/elasticsearch-serverless/api/cat/aliases.rb +3 -1
- data/lib/elasticsearch-serverless/api/cat/component_templates.rb +4 -1
- data/lib/elasticsearch-serverless/api/cat/count.rb +4 -1
- data/lib/elasticsearch-serverless/api/cat/indices.rb +6 -1
- data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +5 -1
- data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +8 -1
- data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +8 -1
- data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +5 -1
- data/lib/elasticsearch-serverless/api/cat/transforms.rb +5 -1
- data/lib/elasticsearch-serverless/api/clear_scroll.rb +1 -1
- data/lib/elasticsearch-serverless/api/close_point_in_time.rb +1 -1
- data/lib/elasticsearch-serverless/api/cluster/delete_component_template.rb +2 -1
- data/lib/elasticsearch-serverless/api/cluster/get_component_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/cluster/put_component_template.rb +15 -1
- data/lib/elasticsearch-serverless/api/connector/check_in.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/delete.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/get.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/last_sync.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/list.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/post.rb +53 -0
- data/lib/elasticsearch-serverless/api/connector/put.rb +60 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_cancel.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_delete.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_get.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_list.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_post.rb +55 -0
- data/lib/elasticsearch-serverless/api/connector/update_active_filtering.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/update_api_key_id.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_configuration.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_error.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_filtering.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_filtering_validation.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_index_name.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_name.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_native.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_pipeline.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_scheduling.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_service_type.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_status.rb +59 -0
- data/lib/elasticsearch-serverless/api/create.rb +2 -3
- data/lib/elasticsearch-serverless/api/delete.rb +1 -1
- data/lib/elasticsearch-serverless/api/delete_by_query.rb +1 -1
- data/lib/elasticsearch-serverless/api/delete_script.rb +1 -1
- data/lib/elasticsearch-serverless/api/enrich/get_policy.rb +1 -1
- data/lib/elasticsearch-serverless/api/enrich/put_policy.rb +1 -1
- data/lib/elasticsearch-serverless/api/enrich/stats.rb +1 -1
- data/lib/elasticsearch-serverless/api/eql/delete.rb +2 -1
- data/lib/elasticsearch-serverless/api/eql/get.rb +1 -1
- data/lib/elasticsearch-serverless/api/eql/get_status.rb +1 -1
- data/lib/elasticsearch-serverless/api/esql/query.rb +1 -1
- data/lib/elasticsearch-serverless/api/exists.rb +1 -1
- data/lib/elasticsearch-serverless/api/exists_source.rb +1 -1
- data/lib/elasticsearch-serverless/api/explain.rb +1 -1
- data/lib/elasticsearch-serverless/api/field_caps.rb +4 -1
- data/lib/elasticsearch-serverless/api/get.rb +1 -0
- data/lib/elasticsearch-serverless/api/get_script.rb +1 -1
- data/lib/elasticsearch-serverless/api/graph/explore.rb +1 -1
- data/lib/elasticsearch-serverless/api/index.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/analyze.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/create.rb +2 -2
- data/lib/elasticsearch-serverless/api/indices/create_data_stream.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/data_streams_stats.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_alias.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_data_stream.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +4 -1
- data/lib/elasticsearch-serverless/api/indices/exists.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/exists_alias.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/get.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/get_alias.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/get_data_stream.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/get_settings.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +10 -1
- data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/put_alias.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +3 -1
- data/lib/elasticsearch-serverless/api/indices/put_settings.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/put_template.rb +60 -0
- data/lib/elasticsearch-serverless/api/indices/refresh.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/rollover.rb +1 -2
- data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +3 -2
- data/lib/elasticsearch-serverless/api/indices/update_aliases.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/validate_query.rb +1 -1
- data/lib/elasticsearch-serverless/api/inference/delete.rb +66 -0
- data/lib/elasticsearch-serverless/api/inference/get.rb +64 -0
- data/lib/elasticsearch-serverless/api/inference/inference.rb +66 -0
- data/lib/elasticsearch-serverless/api/inference/put.rb +66 -0
- data/lib/elasticsearch-serverless/api/ingest/delete_pipeline.rb +1 -1
- data/lib/elasticsearch-serverless/api/ingest/get_pipeline.rb +2 -1
- data/lib/elasticsearch-serverless/api/ingest/processor_grok.rb +3 -1
- data/lib/elasticsearch-serverless/api/ingest/put_pipeline.rb +2 -1
- data/lib/elasticsearch-serverless/api/ingest/simulate.rb +1 -1
- data/lib/elasticsearch-serverless/api/license/get.rb +2 -1
- data/lib/elasticsearch-serverless/api/logstash/delete_pipeline.rb +1 -1
- data/lib/elasticsearch-serverless/api/logstash/get_pipeline.rb +1 -1
- data/lib/elasticsearch-serverless/api/logstash/put_pipeline.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +5 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +8 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +2 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +4 -1
- data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +3 -1
- data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +4 -0
- data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +8 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +3 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +6 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +5 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +1 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +4 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +17 -1
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +2 -2
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +2 -1
- data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +63 -0
- data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +7 -0
- data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +8 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +9 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +2 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +16 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +3 -1
- data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +5 -1
- data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +11 -0
- data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +12 -0
- data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +5 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_trained_model_deployment.rb +55 -0
- data/lib/elasticsearch-serverless/api/mget.rb +1 -0
- data/lib/elasticsearch-serverless/api/msearch_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/open_point_in_time.rb +6 -1
- data/lib/elasticsearch-serverless/api/put_script.rb +1 -1
- data/lib/elasticsearch-serverless/api/query_rules/delete_rule.rb +57 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/delete.rb → query_rules/delete_ruleset.rb} +2 -6
- data/lib/elasticsearch-serverless/api/query_rules/get_rule.rb +57 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/get.rb → query_rules/get_ruleset.rb} +3 -7
- data/lib/elasticsearch-serverless/api/{query_ruleset/list.rb → query_rules/list_rulesets.rb} +3 -7
- data/lib/elasticsearch-serverless/api/query_rules/put_rule.rb +59 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/put.rb → query_rules/put_ruleset.rb} +2 -6
- data/lib/elasticsearch-serverless/api/rank_eval.rb +1 -1
- data/lib/elasticsearch-serverless/api/render_search_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/scripts_painless_execute.rb +1 -1
- data/lib/elasticsearch-serverless/api/search.rb +4 -1
- data/lib/elasticsearch-serverless/api/search_application/get.rb +1 -1
- data/lib/elasticsearch-serverless/api/search_application/search.rb +3 -2
- data/lib/elasticsearch-serverless/api/search_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/security/authenticate.rb +3 -1
- data/lib/elasticsearch-serverless/api/security/create_api_key.rb +3 -0
- data/lib/elasticsearch-serverless/api/security/get_api_key.rb +4 -0
- data/lib/elasticsearch-serverless/api/security/invalidate_api_key.rb +6 -0
- data/lib/elasticsearch-serverless/api/security/query_api_keys.rb +4 -2
- data/lib/elasticsearch-serverless/api/security/update_api_key.rb +66 -0
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym.rb +1 -1
- data/lib/elasticsearch-serverless/api/tasks/get.rb +57 -0
- data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +1 -1
- data/lib/elasticsearch-serverless/api/transform/preview_transform.rb +4 -0
- data/lib/elasticsearch-serverless/api/transform/put_transform.rb +21 -1
- data/lib/elasticsearch-serverless/api/transform/reset_transform.rb +3 -1
- data/lib/elasticsearch-serverless/api/transform/schedule_now_transform.rb +5 -0
- data/lib/elasticsearch-serverless/api/transform/start_transform.rb +16 -1
- data/lib/elasticsearch-serverless/api/transform/update_transform.rb +6 -0
- data/lib/elasticsearch-serverless/api/update_by_query.rb +2 -2
- data/lib/elasticsearch-serverless/api.rb +2 -1
- data/lib/elasticsearch-serverless/version.rb +1 -1
- data/lib/elasticsearch-serverless.rb +12 -4
- metadata +58 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f39ec61d8f616ba72ee40490819cf6db4ead4f658f404f7c376757f4b41c1bcb
|
4
|
+
data.tar.gz: caab7748047b2dc329dba48297a8b5cc8999ec2b0ebed705766a4f73a1506060
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9c0bc7a1bc9b768e99b34f2319b79415cf5ffa3247df6d284b31280fbd2d8c24101ed01956492759beeb4f08bfb5f7f86ed3eb629b5f60773e2ac39caae9c69
|
7
|
+
data.tar.gz: 0ad8a1c51a4ad84d941b5c72dd561c49354eda3e3412e1a040168da554a8cd4c51aa2852e413b08a3d5480bc7bcc64f567c2f0ba5580cc8cc9eb63553b938cbc
|
@@ -22,7 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
# Deletes an async search by
|
25
|
+
# Deletes an async search by identifier.
|
26
|
+
# If the search is still running, the search request will be cancelled.
|
27
|
+
# Otherwise, the saved search results are deleted.
|
28
|
+
# If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the +cancel_task+ cluster privilege.
|
26
29
|
#
|
27
30
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
28
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
# Retrieves the results of a previously submitted async search request given its
|
25
|
+
# Retrieves the results of a previously submitted async search request given its identifier.
|
26
|
+
# If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
|
26
27
|
#
|
27
28
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
28
29
|
# @option arguments [Time] :keep_alive Specifies how long the async search should be available in the cluster. When not specified, the +keep_alive+ set with the corresponding submit async request will be used. Otherwise, it is possible to override the value and extend the validity of the request. When this period expires, the search, if still running, is cancelled. If the search is completed, its saved results are deleted.
|
@@ -22,7 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get async search status
|
26
|
+
# Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results.
|
27
|
+
# If the Elasticsearch security features are enabled, use of this API is restricted to the +monitoring_user+ role.
|
26
28
|
#
|
27
29
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -22,7 +22,11 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module AsyncSearch
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Runs a search request asynchronously.
|
26
|
+
# When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested.
|
27
|
+
# Warning: Async search does not support scroll nor search requests that only include the suggest section.
|
28
|
+
# By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
|
29
|
+
# The maximum allowed size for a stored async search response can be set by changing the +search.max_async_search_response_size+ cluster level setting.
|
26
30
|
#
|
27
31
|
# @option arguments [String, Array] :index A comma-separated list of index names to search; use +_all+ or empty string to perform the operation on all indices
|
28
32
|
# @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout. When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. Server default: 1s.
|
@@ -21,7 +21,8 @@
|
|
21
21
|
module ElasticsearchServerless
|
22
22
|
module API
|
23
23
|
module Actions
|
24
|
-
#
|
24
|
+
# Performs multiple indexing or delete operations in a single API call.
|
25
|
+
# This reduces overhead and can greatly increase indexing speed.
|
25
26
|
#
|
26
27
|
# @option arguments [String] :index Name of the data stream, index, or index alias to perform bulk actions on.
|
27
28
|
# @option arguments [String] :pipeline ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter.
|
@@ -22,7 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Retrieves the cluster’s index aliases, including filter and routing information.
|
26
|
+
# The API does not return data stream aliases.
|
27
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
|
26
28
|
#
|
27
29
|
# @option arguments [String, Array<String>] :name A comma-separated list of aliases to retrieve. Supports wildcards (+*+). To retrieve all aliases, omit this parameter or use +*+ or +_all+.
|
28
30
|
# @option arguments [String, Array<String>] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
@@ -22,7 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
# Returns information about
|
25
|
+
# Returns information about component templates in a cluster.
|
26
|
+
# Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
|
27
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
|
28
|
+
# They are not intended for use by applications. For application consumption, use the get component template API.
|
26
29
|
#
|
27
30
|
# @option arguments [String] :name The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned.
|
28
31
|
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
@@ -22,7 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
# Provides quick access to
|
25
|
+
# Provides quick access to a document count for a data stream, an index, or an entire cluster.
|
26
|
+
# NOTE: The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
|
27
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
|
28
|
+
# They are not intended for use by applications. For application consumption, use the count API.
|
26
29
|
#
|
27
30
|
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
|
28
31
|
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
@@ -22,7 +22,12 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
# Returns information about indices
|
25
|
+
# Returns high-level information about indices in a cluster, including backing indices for data streams.
|
26
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
|
27
|
+
# They are not intended for use by applications. For application consumption, use the get index API.
|
28
|
+
# Use the cat indices API to get the following information for each index in a cluster: shard count; document count; deleted document count; primary store size; total store size of all shards, including shard replicas.
|
29
|
+
# These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents.
|
30
|
+
# To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
|
26
31
|
#
|
27
32
|
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
|
28
33
|
# @option arguments [String] :bytes The unit used to display byte values.
|
@@ -22,7 +22,11 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Returns configuration and usage information about data frame analytics jobs.
|
26
|
+
#
|
27
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the Kibana
|
28
|
+
# console or command line. They are not intended for use by applications. For
|
29
|
+
# application consumption, use the get data frame analytics jobs statistics API.
|
26
30
|
#
|
27
31
|
# @option arguments [String] :id The ID of the data frame analytics to fetch
|
28
32
|
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no configs. (This includes +_all+ string or when no configs have been specified)
|
@@ -22,7 +22,14 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Returns configuration and usage information about datafeeds.
|
26
|
+
# This API returns a maximum of 10,000 datafeeds.
|
27
|
+
# If the Elasticsearch security features are enabled, you must have +monitor_ml+, +monitor+, +manage_ml+, or +manage+
|
28
|
+
# cluster privileges to use this API.
|
29
|
+
#
|
30
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the Kibana
|
31
|
+
# console or command line. They are not intended for use by applications. For
|
32
|
+
# application consumption, use the get datafeed statistics API.
|
26
33
|
#
|
27
34
|
# @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed.
|
28
35
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: * Contains wildcard expressions and there are no datafeeds that match. * Contains the +_all+ string or no identifiers and there are no matches. * Contains wildcard expressions and there are only partial matches. If +true+, the API returns an empty datafeeds array when there are no matches and the subset of results when there are partial matches. If +false+, the API returns a 404 status code when there are no matches or only partial matches. Server default: true.
|
@@ -22,7 +22,14 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Returns configuration and usage information for anomaly detection jobs.
|
26
|
+
# This API returns a maximum of 10,000 jobs.
|
27
|
+
# If the Elasticsearch security features are enabled, you must have +monitor_ml+,
|
28
|
+
# +monitor+, +manage_ml+, or +manage+ cluster privileges to use this API.
|
29
|
+
#
|
30
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the Kibana
|
31
|
+
# console or command line. They are not intended for use by applications. For
|
32
|
+
# application consumption, use the get anomaly detection job statistics API.
|
26
33
|
#
|
27
34
|
# @option arguments [String] :job_id Identifier for the anomaly detection job.
|
28
35
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: * Contains wildcard expressions and there are no jobs that match. * Contains the +_all+ string or no identifiers and there are no matches. * Contains wildcard expressions and there are only partial matches. If +true+, the API returns an empty jobs array when there are no matches and the subset of results when there are partial matches. If +false+, the API returns a 404 status code when there are no matches or only partial matches. Server default: true.
|
@@ -22,7 +22,11 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Returns configuration and usage information about inference trained models.
|
26
|
+
#
|
27
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the Kibana
|
28
|
+
# console or command line. They are not intended for use by applications. For
|
29
|
+
# application consumption, use the get trained models statistics API.
|
26
30
|
#
|
27
31
|
# @option arguments [String] :model_id A unique identifier for the trained model.
|
28
32
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no models that match; contains the +_all+ string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. If +true+, the API returns an empty array when there are no matches and the subset of results when there are partial matches. If +false+, the API returns a 404 status code when there are no matches or only partial matches. Server default: true.
|
@@ -22,7 +22,11 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Returns configuration and usage information about transforms.
|
26
|
+
#
|
27
|
+
# IMPORTANT: cat APIs are only intended for human consumption using the Kibana
|
28
|
+
# console or command line. They are not intended for use by applications. For
|
29
|
+
# application consumption, use the get transform statistics API.
|
26
30
|
#
|
27
31
|
# @option arguments [String] :transform_id A transform identifier or a wildcard expression. If you do not specify one of these options, the API returns information for all transforms.
|
28
32
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no transforms that match; contains the +_all+ string or no identifiers and there are no matches; contains wildcard expressions and there are only partial matches. If +true+, it returns an empty transforms array when there are no matches and the subset of results when there are partial matches. If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true.
|
@@ -21,7 +21,7 @@
|
|
21
21
|
module ElasticsearchServerless
|
22
22
|
module API
|
23
23
|
module Actions
|
24
|
-
#
|
24
|
+
# Clears the search context and results for a scrolling search.
|
25
25
|
#
|
26
26
|
# @option arguments [String, Array] :scroll_id Comma-separated list of scroll IDs to clear. To clear all scroll IDs, use +_all+.
|
27
27
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cluster
|
24
24
|
module Actions
|
25
|
-
# Deletes
|
25
|
+
# Deletes component templates.
|
26
|
+
# Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
|
26
27
|
#
|
27
28
|
# @option arguments [String, Array<String>] :name Comma-separated list or wildcard expression of component template names used to limit the request. (*Required*)
|
28
29
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cluster
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Retrieves information about component templates.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :name Comma-separated list of component template names used to limit the request. Wildcard (+*+) expressions are supported.
|
28
28
|
# @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format.
|
@@ -22,7 +22,21 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cluster
|
24
24
|
module Actions
|
25
|
-
# Creates or updates a component template
|
25
|
+
# Creates or updates a component template.
|
26
|
+
# Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
|
27
|
+
#
|
28
|
+
# An index template can be composed of multiple component templates.
|
29
|
+
# To use a component template, specify it in an index template’s +composed_of+ list.
|
30
|
+
# Component templates are only applied to new data streams and indices as part of a matching index template.
|
31
|
+
#
|
32
|
+
# Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template.
|
33
|
+
#
|
34
|
+
# Component templates are only used during index creation.
|
35
|
+
# For data streams, this includes data stream creation and the creation of a stream’s backing indices.
|
36
|
+
# Changes to component templates do not affect existing indices, including a stream’s backing indices.
|
37
|
+
#
|
38
|
+
# You can use C-style +/* *\/+ block comments in component templates.
|
39
|
+
# You can include comments anywhere in the request body except before the opening curly bracket.
|
26
40
|
#
|
27
41
|
# @option arguments [String] :name Name of the component template to create. Elasticsearch includes the following built-in component templates: +logs-mappings+; 'logs-settings+; +metrics-mappings+; +metrics-settings+;+synthetics-mapping+; +synthetics-settings+. Elastic Agent uses these templates to configure backing indices for its data streams. If you use Elastic Agent and want to overwrite one of these templates, set the +version+ for your replacement template higher than the current version. If you don’t use Elastic Agent and want to disable all built-in component and index templates, set +stack.templates.enabled+ to +false+ using the cluster update settings API. (*Required*)
|
28
42
|
# @option arguments [Boolean] :create If +true+, this request cannot replace or update existing component templates.
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Connector
|
24
|
+
module Actions
|
25
|
+
# Updates the last_seen field in the connector, and sets it to current timestamp
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [String] :connector_id The unique identifier of the connector to be checked in (*Required*)
|
32
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
+
#
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/check-in-connector-api.html
|
35
|
+
#
|
36
|
+
def check_in(arguments = {})
|
37
|
+
raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
|
38
|
+
|
39
|
+
arguments = arguments.clone
|
40
|
+
headers = arguments.delete(:headers) || {}
|
41
|
+
|
42
|
+
body = nil
|
43
|
+
|
44
|
+
_connector_id = arguments.delete(:connector_id)
|
45
|
+
|
46
|
+
method = ElasticsearchServerless::API::HTTP_PUT
|
47
|
+
path = "_connector/#{Utils.listify(_connector_id)}/_check_in"
|
48
|
+
params = {}
|
49
|
+
|
50
|
+
ElasticsearchServerless::API::Response.new(
|
51
|
+
perform_request(method, path, params, body, headers)
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Connector
|
24
|
+
module Actions
|
25
|
+
# Deletes a connector.
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [String] :connector_id The unique identifier of the connector to be deleted (*Required*)
|
32
|
+
# @option arguments [Boolean] :delete_sync_jobs Determines whether associated sync jobs are also deleted. (*Required*)
|
33
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
34
|
+
#
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-api.html
|
36
|
+
#
|
37
|
+
def delete(arguments = {})
|
38
|
+
raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
|
39
|
+
|
40
|
+
arguments = arguments.clone
|
41
|
+
headers = arguments.delete(:headers) || {}
|
42
|
+
|
43
|
+
body = nil
|
44
|
+
|
45
|
+
_connector_id = arguments.delete(:connector_id)
|
46
|
+
|
47
|
+
method = ElasticsearchServerless::API::HTTP_DELETE
|
48
|
+
path = "_connector/#{Utils.listify(_connector_id)}"
|
49
|
+
params = Utils.process_params(arguments)
|
50
|
+
|
51
|
+
ElasticsearchServerless::API::Response.new(
|
52
|
+
perform_request(method, path, params, body, headers)
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Connector
|
24
|
+
module Actions
|
25
|
+
# Retrieves a connector.
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [String] :connector_id The unique identifier of the connector (*Required*)
|
32
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
+
#
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-api.html
|
35
|
+
#
|
36
|
+
def get(arguments = {})
|
37
|
+
raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
|
38
|
+
|
39
|
+
arguments = arguments.clone
|
40
|
+
headers = arguments.delete(:headers) || {}
|
41
|
+
|
42
|
+
body = nil
|
43
|
+
|
44
|
+
_connector_id = arguments.delete(:connector_id)
|
45
|
+
|
46
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
47
|
+
path = "_connector/#{Utils.listify(_connector_id)}"
|
48
|
+
params = {}
|
49
|
+
|
50
|
+
ElasticsearchServerless::API::Response.new(
|
51
|
+
perform_request(method, path, params, body, headers)
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Connector
|
24
|
+
module Actions
|
25
|
+
# Updates last sync stats in the connector document
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [String] :connector_id The unique identifier of the connector to be updated (*Required*)
|
32
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
+
# @option arguments [Hash] :body request body
|
34
|
+
#
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-last-sync-api.html
|
36
|
+
#
|
37
|
+
def last_sync(arguments = {})
|
38
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
39
|
+
raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
|
40
|
+
|
41
|
+
arguments = arguments.clone
|
42
|
+
headers = arguments.delete(:headers) || {}
|
43
|
+
|
44
|
+
body = arguments.delete(:body)
|
45
|
+
|
46
|
+
_connector_id = arguments.delete(:connector_id)
|
47
|
+
|
48
|
+
method = ElasticsearchServerless::API::HTTP_PUT
|
49
|
+
path = "_connector/#{Utils.listify(_connector_id)}/_last_sync"
|
50
|
+
params = {}
|
51
|
+
|
52
|
+
ElasticsearchServerless::API::Response.new(
|
53
|
+
perform_request(method, path, params, body, headers)
|
54
|
+
)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Connector
|
24
|
+
module Actions
|
25
|
+
# Returns existing connectors.
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [Integer] :from Starting offset (default: 0)
|
32
|
+
# @option arguments [Integer] :size Specifies a max number of results to get
|
33
|
+
# @option arguments [String, Array] :index_name A comma-separated list of connector index names to fetch connector documents for
|
34
|
+
# @option arguments [String, Array<String>] :connector_name A comma-separated list of connector names to fetch connector documents for
|
35
|
+
# @option arguments [String, Array<String>] :service_type A comma-separated list of connector service types to fetch connector documents for
|
36
|
+
# @option arguments [String] :query A wildcard query string that filters connectors with matching name, description or index name
|
37
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
38
|
+
#
|
39
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-api.html
|
40
|
+
#
|
41
|
+
def list(arguments = {})
|
42
|
+
arguments = arguments.clone
|
43
|
+
headers = arguments.delete(:headers) || {}
|
44
|
+
|
45
|
+
body = nil
|
46
|
+
|
47
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
48
|
+
path = "_connector"
|
49
|
+
params = Utils.process_params(arguments)
|
50
|
+
|
51
|
+
ElasticsearchServerless::API::Response.new(
|
52
|
+
perform_request(method, path, params, body, headers)
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Connector
|
24
|
+
module Actions
|
25
|
+
# Creates a connector.
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
32
|
+
# @option arguments [Hash] :body request body
|
33
|
+
#
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html
|
35
|
+
#
|
36
|
+
def post(arguments = {})
|
37
|
+
arguments = arguments.clone
|
38
|
+
headers = arguments.delete(:headers) || {}
|
39
|
+
|
40
|
+
body = arguments.delete(:body)
|
41
|
+
|
42
|
+
method = ElasticsearchServerless::API::HTTP_POST
|
43
|
+
path = "_connector"
|
44
|
+
params = {}
|
45
|
+
|
46
|
+
ElasticsearchServerless::API::Response.new(
|
47
|
+
perform_request(method, path, params, body, headers)
|
48
|
+
)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|