elasticsearch-serverless 0.1.0.20231031.pre → 0.2.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 +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 +57 -0
- 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 +4 -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 +4 -5
- 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 +6 -4
- data/lib/elasticsearch-serverless/version.rb +3 -3
- data/lib/elasticsearch-serverless.rb +13 -5
- metadata +59 -7
@@ -0,0 +1,60 @@
|
|
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 or updates 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 created or 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/create-connector-api.html
|
36
|
+
#
|
37
|
+
def put(arguments = {})
|
38
|
+
arguments = arguments.clone
|
39
|
+
headers = arguments.delete(:headers) || {}
|
40
|
+
|
41
|
+
body = arguments.delete(:body)
|
42
|
+
|
43
|
+
_connector_id = arguments.delete(:connector_id)
|
44
|
+
|
45
|
+
method = ElasticsearchServerless::API::HTTP_PUT
|
46
|
+
path = if _connector_id
|
47
|
+
"_connector/#{Utils.listify(_connector_id)}"
|
48
|
+
else
|
49
|
+
"_connector"
|
50
|
+
end
|
51
|
+
params = {}
|
52
|
+
|
53
|
+
ElasticsearchServerless::API::Response.new(
|
54
|
+
perform_request(method, path, params, body, headers)
|
55
|
+
)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
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
|
+
# Cancels a connector sync job.
|
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_sync_job_id The unique identifier of the connector sync job (*Required*)
|
32
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
+
#
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cancel-connector-sync-job-api.html
|
35
|
+
#
|
36
|
+
def sync_job_cancel(arguments = {})
|
37
|
+
raise ArgumentError,
|
38
|
+
"Required argument 'connector_sync_job_id' missing" unless arguments[:connector_sync_job_id]
|
39
|
+
|
40
|
+
arguments = arguments.clone
|
41
|
+
headers = arguments.delete(:headers) || {}
|
42
|
+
|
43
|
+
body = nil
|
44
|
+
|
45
|
+
_connector_sync_job_id = arguments.delete(:connector_sync_job_id)
|
46
|
+
|
47
|
+
method = ElasticsearchServerless::API::HTTP_PUT
|
48
|
+
path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_cancel"
|
49
|
+
params = {}
|
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,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 sync job.
|
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_sync_job_id The unique identifier of the connector sync job to be deleted (*Required*)
|
32
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
+
#
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-connector-sync-job-api.html
|
35
|
+
#
|
36
|
+
def sync_job_delete(arguments = {})
|
37
|
+
raise ArgumentError,
|
38
|
+
"Required argument 'connector_sync_job_id' missing" unless arguments[:connector_sync_job_id]
|
39
|
+
|
40
|
+
arguments = arguments.clone
|
41
|
+
headers = arguments.delete(:headers) || {}
|
42
|
+
|
43
|
+
body = nil
|
44
|
+
|
45
|
+
_connector_sync_job_id = arguments.delete(:connector_sync_job_id)
|
46
|
+
|
47
|
+
method = ElasticsearchServerless::API::HTTP_DELETE
|
48
|
+
path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}"
|
49
|
+
params = {}
|
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,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
|
+
# Retrieves a connector sync job.
|
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_sync_job_id The unique identifier of the connector sync job (*Required*)
|
32
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
+
#
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-connector-sync-job-api.html
|
35
|
+
#
|
36
|
+
def sync_job_get(arguments = {})
|
37
|
+
raise ArgumentError,
|
38
|
+
"Required argument 'connector_sync_job_id' missing" unless arguments[:connector_sync_job_id]
|
39
|
+
|
40
|
+
arguments = arguments.clone
|
41
|
+
headers = arguments.delete(:headers) || {}
|
42
|
+
|
43
|
+
body = nil
|
44
|
+
|
45
|
+
_connector_sync_job_id = arguments.delete(:connector_sync_job_id)
|
46
|
+
|
47
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
48
|
+
path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}"
|
49
|
+
params = {}
|
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
|
+
# Lists connector sync jobs.
|
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] :status A sync job status to fetch connector sync jobs for
|
34
|
+
# @option arguments [String] :connector_id A connector id to fetch connector sync jobs for
|
35
|
+
# @option arguments [Array<String>] :job_type A comma-separated list of job types to fetch the sync jobs for
|
36
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
37
|
+
#
|
38
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/list-connector-sync-jobs-api.html
|
39
|
+
#
|
40
|
+
def sync_job_list(arguments = {})
|
41
|
+
arguments = arguments.clone
|
42
|
+
headers = arguments.delete(:headers) || {}
|
43
|
+
|
44
|
+
body = nil
|
45
|
+
|
46
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
47
|
+
path = "_connector/_sync_job"
|
48
|
+
params = Utils.process_params(arguments)
|
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,55 @@
|
|
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 sync job.
|
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-sync-job-api.html
|
35
|
+
#
|
36
|
+
def sync_job_post(arguments = {})
|
37
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
38
|
+
|
39
|
+
arguments = arguments.clone
|
40
|
+
headers = arguments.delete(:headers) || {}
|
41
|
+
|
42
|
+
body = arguments.delete(:body)
|
43
|
+
|
44
|
+
method = ElasticsearchServerless::API::HTTP_POST
|
45
|
+
path = "_connector/_sync_job"
|
46
|
+
params = {}
|
47
|
+
|
48
|
+
ElasticsearchServerless::API::Response.new(
|
49
|
+
perform_request(method, path, params, body, headers)
|
50
|
+
)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
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
|
+
# Activates the valid draft filtering for 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 updated (*Required*)
|
32
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
+
#
|
34
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-api.html
|
35
|
+
#
|
36
|
+
def update_active_filtering(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)}/_filtering/_activate"
|
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 the API key id 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-api-key-id-api.html
|
36
|
+
#
|
37
|
+
def update_api_key_id(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)}/_api_key_id"
|
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,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 the configuration field 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-configuration-api.html
|
36
|
+
#
|
37
|
+
def update_configuration(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)}/_configuration"
|
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,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 the filtering field 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-error-api.html
|
36
|
+
#
|
37
|
+
def update_error(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)}/_error"
|
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,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 the filtering field 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-filtering-api.html
|
36
|
+
#
|
37
|
+
def update_filtering(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)}/_filtering"
|
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
|