elasticsearch-serverless 0.1.0.20231031.pre → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch-serverless/api/async_search/delete.rb +13 -2
- data/lib/elasticsearch-serverless/api/async_search/get.rb +19 -4
- data/lib/elasticsearch-serverless/api/async_search/status.rb +12 -2
- data/lib/elasticsearch-serverless/api/async_search/submit.rb +20 -5
- data/lib/elasticsearch-serverless/api/bulk.rb +19 -5
- data/lib/elasticsearch-serverless/api/cat/aliases.rb +24 -6
- data/lib/elasticsearch-serverless/api/cat/component_templates.rb +25 -6
- data/lib/elasticsearch-serverless/api/cat/count.rb +27 -7
- data/lib/elasticsearch-serverless/api/cat/help.rb +16 -6
- data/lib/elasticsearch-serverless/api/cat/indices.rb +34 -7
- data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +27 -7
- data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +35 -7
- data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +35 -7
- data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +28 -7
- data/lib/elasticsearch-serverless/api/cat/transforms.rb +30 -8
- data/lib/elasticsearch-serverless/api/clear_scroll.rb +13 -4
- data/lib/elasticsearch-serverless/api/close_point_in_time.rb +4 -2
- data/lib/elasticsearch-serverless/api/cluster/delete_component_template.rb +16 -4
- data/lib/elasticsearch-serverless/api/cluster/exists_component_template.rb +18 -5
- data/lib/elasticsearch-serverless/api/cluster/get_component_template.rb +17 -5
- data/lib/elasticsearch-serverless/api/cluster/info.rb +11 -2
- data/lib/elasticsearch-serverless/api/cluster/put_component_template.rb +28 -4
- data/lib/elasticsearch-serverless/api/connector/check_in.rb +65 -0
- data/lib/elasticsearch-serverless/api/connector/delete.rb +66 -0
- data/lib/elasticsearch-serverless/api/connector/get.rb +65 -0
- data/lib/elasticsearch-serverless/api/connector/list.rb +60 -0
- data/lib/elasticsearch-serverless/api/connector/post.rb +55 -0
- data/lib/elasticsearch-serverless/api/connector/put.rb +68 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_cancel.rb +66 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_delete.rb +66 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_get.rb +66 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_list.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_post.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/update_active_filtering.rb +65 -0
- data/lib/elasticsearch-serverless/api/connector/update_api_key_id.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_configuration.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_error.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_filtering.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_filtering_validation.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_index_name.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_name.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_native.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_pipeline.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_scheduling.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_service_type.rb +67 -0
- data/lib/elasticsearch-serverless/api/connector/update_status.rb +67 -0
- data/lib/elasticsearch-serverless/api/count.rb +30 -10
- data/lib/elasticsearch-serverless/api/create.rb +23 -8
- data/lib/elasticsearch-serverless/api/delete.rb +18 -6
- data/lib/elasticsearch-serverless/api/delete_by_query.rb +39 -12
- data/lib/elasticsearch-serverless/api/delete_script.rb +15 -4
- data/lib/elasticsearch-serverless/api/enrich/delete_policy.rb +10 -1
- data/lib/elasticsearch-serverless/api/enrich/execute_policy.rb +9 -1
- data/lib/elasticsearch-serverless/api/enrich/get_policy.rb +13 -3
- data/lib/elasticsearch-serverless/api/enrich/put_policy.rb +11 -2
- data/lib/elasticsearch-serverless/api/enrich/stats.rb +5 -2
- data/lib/elasticsearch-serverless/api/eql/delete.rb +14 -3
- data/lib/elasticsearch-serverless/api/eql/get.rb +14 -4
- data/lib/elasticsearch-serverless/api/eql/get_status.rb +10 -2
- data/lib/elasticsearch-serverless/api/eql/search.rb +9 -1
- data/lib/elasticsearch-serverless/api/esql/query.rb +57 -0
- data/lib/elasticsearch-serverless/api/exists.rb +20 -6
- data/lib/elasticsearch-serverless/api/exists_source.rb +17 -5
- data/lib/elasticsearch-serverless/api/explain.rb +17 -5
- data/lib/elasticsearch-serverless/api/field_caps.rb +16 -3
- data/lib/elasticsearch-serverless/api/get.rb +18 -4
- data/lib/elasticsearch-serverless/api/get_script.rb +11 -2
- data/lib/elasticsearch-serverless/api/get_source.rb +10 -1
- data/lib/elasticsearch-serverless/api/graph/explore.rb +13 -3
- data/lib/elasticsearch-serverless/api/index.rb +27 -7
- data/lib/elasticsearch-serverless/api/indices/add_block.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/analyze.rb +13 -3
- data/lib/elasticsearch-serverless/api/indices/create.rb +17 -5
- data/lib/elasticsearch-serverless/api/indices/create_data_stream.rb +18 -3
- data/lib/elasticsearch-serverless/api/indices/data_streams_stats.rb +16 -4
- data/lib/elasticsearch-serverless/api/indices/delete.rb +26 -8
- data/lib/elasticsearch-serverless/api/indices/delete_alias.rb +19 -6
- data/lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/delete_data_stream.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +13 -2
- data/lib/elasticsearch-serverless/api/indices/exists.rb +17 -4
- data/lib/elasticsearch-serverless/api/indices/exists_alias.rb +19 -5
- data/lib/elasticsearch-serverless/api/indices/exists_index_template.rb +9 -1
- data/lib/elasticsearch-serverless/api/indices/explain_data_lifecycle.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/get.rb +20 -5
- data/lib/elasticsearch-serverless/api/indices/get_alias.rb +23 -6
- data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +17 -4
- data/lib/elasticsearch-serverless/api/indices/get_data_stream.rb +15 -4
- data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +23 -6
- data/lib/elasticsearch-serverless/api/indices/get_settings.rb +28 -7
- data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +20 -2
- data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +5 -2
- data/lib/elasticsearch-serverless/api/indices/put_alias.rb +21 -6
- data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +22 -6
- data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +14 -2
- data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +23 -6
- data/lib/elasticsearch-serverless/api/indices/put_settings.rb +29 -7
- data/lib/elasticsearch-serverless/api/indices/put_template.rb +71 -0
- data/lib/elasticsearch-serverless/api/indices/refresh.rb +21 -5
- data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +17 -4
- data/lib/elasticsearch-serverless/api/indices/rollover.rb +20 -7
- data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +13 -6
- data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +14 -4
- data/lib/elasticsearch-serverless/api/indices/update_aliases.rb +9 -4
- data/lib/elasticsearch-serverless/api/indices/validate_query.rb +24 -7
- data/lib/elasticsearch-serverless/api/inference/delete.rb +74 -0
- data/lib/elasticsearch-serverless/api/inference/get.rb +72 -0
- data/lib/elasticsearch-serverless/api/inference/inference.rb +74 -0
- data/lib/elasticsearch-serverless/api/inference/put.rb +74 -0
- data/lib/elasticsearch-serverless/api/info.rb +4 -1
- data/lib/elasticsearch-serverless/api/ingest/delete_pipeline.rb +16 -5
- data/lib/elasticsearch-serverless/api/ingest/get_pipeline.rb +16 -4
- data/lib/elasticsearch-serverless/api/ingest/processor_grok.rb +6 -2
- data/lib/elasticsearch-serverless/api/ingest/put_pipeline.rb +11 -2
- data/lib/elasticsearch-serverless/api/ingest/simulate.rb +12 -3
- data/lib/elasticsearch-serverless/api/license/get.rb +8 -3
- data/lib/elasticsearch-serverless/api/logstash/delete_pipeline.rb +10 -2
- data/lib/elasticsearch-serverless/api/logstash/get_pipeline.rb +10 -2
- data/lib/elasticsearch-serverless/api/logstash/put_pipeline.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +18 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +11 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_event.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_job.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_datafeed.rb +16 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +12 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +23 -5
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +11 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +13 -2
- data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +7 -2
- data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +8 -2
- data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +27 -6
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendar_events.rb +9 -1
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendars.rb +9 -1
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +27 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics_stats.rb +21 -3
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +26 -3
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +28 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +10 -1
- data/lib/elasticsearch-serverless/api/machine_learning/get_job_stats.rb +21 -3
- data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +27 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +46 -7
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +29 -8
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +19 -4
- data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +71 -0
- data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +17 -2
- data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +21 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +14 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +25 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +11 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +11 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +15 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +28 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +12 -2
- data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +19 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +25 -3
- data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +35 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +26 -6
- data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +25 -4
- data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +21 -3
- data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +16 -4
- data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +13 -3
- data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +26 -5
- data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/update_job.rb +9 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_trained_model_deployment.rb +68 -0
- data/lib/elasticsearch-serverless/api/mget.rb +17 -3
- data/lib/elasticsearch-serverless/api/msearch.rb +15 -1
- data/lib/elasticsearch-serverless/api/msearch_template.rb +17 -5
- data/lib/elasticsearch-serverless/api/mtermvectors.rb +14 -8
- data/lib/elasticsearch-serverless/api/open_point_in_time.rb +20 -4
- data/lib/elasticsearch-serverless/api/ping.rb +4 -1
- data/lib/elasticsearch-serverless/api/put_script.rb +19 -6
- data/lib/elasticsearch-serverless/api/query_rules/delete_rule.rb +65 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/delete.rb → query_rules/delete_ruleset.rb} +11 -7
- data/lib/elasticsearch-serverless/api/query_rules/get_rule.rb +65 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/get.rb → query_rules/get_ruleset.rb} +12 -8
- data/lib/elasticsearch-serverless/api/{query_ruleset/list.rb → query_rules/list_rulesets.rb} +6 -8
- data/lib/elasticsearch-serverless/api/query_rules/put_rule.rb +67 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/put.rb → query_rules/put_ruleset.rb} +11 -7
- data/lib/elasticsearch-serverless/api/rank_eval.rb +12 -3
- data/lib/elasticsearch-serverless/api/reindex.rb +11 -7
- data/lib/elasticsearch-serverless/api/render_search_template.rb +12 -3
- data/lib/elasticsearch-serverless/api/scripts_painless_execute.rb +5 -2
- data/lib/elasticsearch-serverless/api/scroll.rb +9 -1
- data/lib/elasticsearch-serverless/api/search.rb +110 -30
- data/lib/elasticsearch-serverless/api/search_application/delete.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/delete_behavioral_analytics.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/get.rb +10 -2
- data/lib/elasticsearch-serverless/api/search_application/get_behavioral_analytics.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/list.rb +3 -1
- data/lib/elasticsearch-serverless/api/search_application/put.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/put_behavioral_analytics.rb +9 -1
- data/lib/elasticsearch-serverless/api/search_application/search.rb +12 -3
- data/lib/elasticsearch-serverless/api/search_mvt.rb +27 -7
- data/lib/elasticsearch-serverless/api/search_template.rb +23 -7
- data/lib/elasticsearch-serverless/api/security/authenticate.rb +8 -2
- data/lib/elasticsearch-serverless/api/security/create_api_key.rb +7 -1
- data/lib/elasticsearch-serverless/api/security/get_api_key.rb +23 -7
- data/lib/elasticsearch-serverless/api/security/has_privileges.rb +10 -1
- data/lib/elasticsearch-serverless/api/security/invalidate_api_key.rb +10 -1
- data/lib/elasticsearch-serverless/api/security/query_api_keys.rb +9 -3
- data/lib/elasticsearch-serverless/api/security/update_api_key.rb +75 -0
- data/lib/elasticsearch-serverless/api/sql/clear_cursor.rb +3 -1
- data/lib/elasticsearch-serverless/api/sql/delete_async.rb +9 -1
- data/lib/elasticsearch-serverless/api/sql/get_async.rb +15 -4
- data/lib/elasticsearch-serverless/api/sql/get_async_status.rb +9 -1
- data/lib/elasticsearch-serverless/api/sql/query.rb +3 -1
- data/lib/elasticsearch-serverless/api/sql/translate.rb +3 -1
- data/lib/elasticsearch-serverless/api/synonyms/delete_synonym.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/delete_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonym.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonyms_sets.rb +3 -1
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym.rb +10 -2
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/tasks/get.rb +67 -0
- data/lib/elasticsearch-serverless/api/terms_enum.rb +9 -1
- data/lib/elasticsearch-serverless/api/termvectors.rb +21 -9
- data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +15 -4
- data/lib/elasticsearch-serverless/api/transform/get_transform.rb +23 -4
- data/lib/elasticsearch-serverless/api/transform/get_transform_stats.rb +20 -3
- data/lib/elasticsearch-serverless/api/transform/preview_transform.rb +18 -4
- data/lib/elasticsearch-serverless/api/transform/put_transform.rb +34 -4
- data/lib/elasticsearch-serverless/api/transform/reset_transform.rb +17 -4
- data/lib/elasticsearch-serverless/api/transform/schedule_now_transform.rb +15 -2
- data/lib/elasticsearch-serverless/api/transform/start_transform.rb +24 -2
- data/lib/elasticsearch-serverless/api/transform/stop_transform.rb +23 -6
- data/lib/elasticsearch-serverless/api/transform/update_transform.rb +20 -3
- data/lib/elasticsearch-serverless/api/update.rb +23 -7
- data/lib/elasticsearch-serverless/api/update_by_query.rb +38 -11
- data/lib/elasticsearch-serverless/api.rb +9 -6
- data/lib/elasticsearch-serverless/version.rb +3 -3
- data/lib/elasticsearch-serverless.rb +16 -7
- metadata +46 -65
@@ -0,0 +1,66 @@
|
|
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 in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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 A flag indicating if associated sync jobs should be also removed. Defaults to false.
|
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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.delete" }
|
39
|
+
|
40
|
+
defined_params = [:connector_id].inject({}) do |set_variables, variable|
|
41
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
+
set_variables
|
43
|
+
end
|
44
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
|
+
|
46
|
+
raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
|
47
|
+
|
48
|
+
arguments = arguments.clone
|
49
|
+
headers = arguments.delete(:headers) || {}
|
50
|
+
|
51
|
+
body = nil
|
52
|
+
|
53
|
+
_connector_id = arguments.delete(:connector_id)
|
54
|
+
|
55
|
+
method = ElasticsearchServerless::API::HTTP_DELETE
|
56
|
+
path = "_connector/#{Utils.listify(_connector_id)}"
|
57
|
+
params = Utils.process_params(arguments)
|
58
|
+
|
59
|
+
ElasticsearchServerless::API::Response.new(
|
60
|
+
perform_request(method, path, params, body, headers, request_opts)
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,65 @@
|
|
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 in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.get" }
|
38
|
+
|
39
|
+
defined_params = [:connector_id].inject({}) do |set_variables, variable|
|
40
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
41
|
+
set_variables
|
42
|
+
end
|
43
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
44
|
+
|
45
|
+
raise ArgumentError, "Required argument 'connector_id' missing" unless arguments[:connector_id]
|
46
|
+
|
47
|
+
arguments = arguments.clone
|
48
|
+
headers = arguments.delete(:headers) || {}
|
49
|
+
|
50
|
+
body = nil
|
51
|
+
|
52
|
+
_connector_id = arguments.delete(:connector_id)
|
53
|
+
|
54
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
55
|
+
path = "_connector/#{Utils.listify(_connector_id)}"
|
56
|
+
params = {}
|
57
|
+
|
58
|
+
ElasticsearchServerless::API::Response.new(
|
59
|
+
perform_request(method, path, params, body, headers, request_opts)
|
60
|
+
)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -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
|
+
# Returns existing connectors.
|
26
|
+
# This functionality is in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.list" }
|
43
|
+
|
44
|
+
arguments = arguments.clone
|
45
|
+
headers = arguments.delete(:headers) || {}
|
46
|
+
|
47
|
+
body = nil
|
48
|
+
|
49
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
50
|
+
path = "_connector"
|
51
|
+
params = Utils.process_params(arguments)
|
52
|
+
|
53
|
+
ElasticsearchServerless::API::Response.new(
|
54
|
+
perform_request(method, path, params, body, headers, request_opts)
|
55
|
+
)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
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.
|
26
|
+
# This functionality is in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.post" }
|
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"
|
46
|
+
params = {}
|
47
|
+
|
48
|
+
ElasticsearchServerless::API::Response.new(
|
49
|
+
perform_request(method, path, params, body, headers, request_opts)
|
50
|
+
)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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 in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [String] :connector_id The unique identifier of the connector to be created or updated. ID is auto-generated if not provided.
|
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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.put" }
|
39
|
+
|
40
|
+
defined_params = [:connector_id].inject({}) do |set_variables, variable|
|
41
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
42
|
+
set_variables
|
43
|
+
end
|
44
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
45
|
+
|
46
|
+
arguments = arguments.clone
|
47
|
+
headers = arguments.delete(:headers) || {}
|
48
|
+
|
49
|
+
body = arguments.delete(:body)
|
50
|
+
|
51
|
+
_connector_id = arguments.delete(:connector_id)
|
52
|
+
|
53
|
+
method = ElasticsearchServerless::API::HTTP_PUT
|
54
|
+
path = if _connector_id
|
55
|
+
"_connector/#{Utils.listify(_connector_id)}"
|
56
|
+
else
|
57
|
+
"_connector"
|
58
|
+
end
|
59
|
+
params = {}
|
60
|
+
|
61
|
+
ElasticsearchServerless::API::Response.new(
|
62
|
+
perform_request(method, path, params, body, headers, request_opts)
|
63
|
+
)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,66 @@
|
|
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 in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.sync_job_cancel" }
|
38
|
+
|
39
|
+
defined_params = [:connector_sync_job_id].inject({}) do |set_variables, variable|
|
40
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
41
|
+
set_variables
|
42
|
+
end
|
43
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
44
|
+
|
45
|
+
raise ArgumentError,
|
46
|
+
"Required argument 'connector_sync_job_id' missing" unless arguments[:connector_sync_job_id]
|
47
|
+
|
48
|
+
arguments = arguments.clone
|
49
|
+
headers = arguments.delete(:headers) || {}
|
50
|
+
|
51
|
+
body = nil
|
52
|
+
|
53
|
+
_connector_sync_job_id = arguments.delete(:connector_sync_job_id)
|
54
|
+
|
55
|
+
method = ElasticsearchServerless::API::HTTP_PUT
|
56
|
+
path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}/_cancel"
|
57
|
+
params = {}
|
58
|
+
|
59
|
+
ElasticsearchServerless::API::Response.new(
|
60
|
+
perform_request(method, path, params, body, headers, request_opts)
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,66 @@
|
|
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 in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.sync_job_delete" }
|
38
|
+
|
39
|
+
defined_params = [:connector_sync_job_id].inject({}) do |set_variables, variable|
|
40
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
41
|
+
set_variables
|
42
|
+
end
|
43
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
44
|
+
|
45
|
+
raise ArgumentError,
|
46
|
+
"Required argument 'connector_sync_job_id' missing" unless arguments[:connector_sync_job_id]
|
47
|
+
|
48
|
+
arguments = arguments.clone
|
49
|
+
headers = arguments.delete(:headers) || {}
|
50
|
+
|
51
|
+
body = nil
|
52
|
+
|
53
|
+
_connector_sync_job_id = arguments.delete(:connector_sync_job_id)
|
54
|
+
|
55
|
+
method = ElasticsearchServerless::API::HTTP_DELETE
|
56
|
+
path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}"
|
57
|
+
params = {}
|
58
|
+
|
59
|
+
ElasticsearchServerless::API::Response.new(
|
60
|
+
perform_request(method, path, params, body, headers, request_opts)
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,66 @@
|
|
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 in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.sync_job_get" }
|
38
|
+
|
39
|
+
defined_params = [:connector_sync_job_id].inject({}) do |set_variables, variable|
|
40
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
41
|
+
set_variables
|
42
|
+
end
|
43
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
44
|
+
|
45
|
+
raise ArgumentError,
|
46
|
+
"Required argument 'connector_sync_job_id' missing" unless arguments[:connector_sync_job_id]
|
47
|
+
|
48
|
+
arguments = arguments.clone
|
49
|
+
headers = arguments.delete(:headers) || {}
|
50
|
+
|
51
|
+
body = nil
|
52
|
+
|
53
|
+
_connector_sync_job_id = arguments.delete(:connector_sync_job_id)
|
54
|
+
|
55
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
56
|
+
path = "_connector/_sync_job/#{Utils.listify(_connector_sync_job_id)}"
|
57
|
+
params = {}
|
58
|
+
|
59
|
+
ElasticsearchServerless::API::Response.new(
|
60
|
+
perform_request(method, path, params, body, headers, request_opts)
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
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
|
+
# Lists connector sync jobs.
|
26
|
+
# This functionality is in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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 [Syncjobtype] :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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.sync_job_list" }
|
42
|
+
|
43
|
+
arguments = arguments.clone
|
44
|
+
headers = arguments.delete(:headers) || {}
|
45
|
+
|
46
|
+
body = nil
|
47
|
+
|
48
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
49
|
+
path = "_connector/_sync_job"
|
50
|
+
params = Utils.process_params(arguments)
|
51
|
+
|
52
|
+
ElasticsearchServerless::API::Response.new(
|
53
|
+
perform_request(method, path, params, body, headers, request_opts)
|
54
|
+
)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
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
|
+
# Creates a connector sync job.
|
26
|
+
# This functionality is in Beta and is subject to change. The design and
|
27
|
+
# code is less mature than official GA features and is being provided
|
28
|
+
# as-is with no warranties. Beta features are not subject to the support
|
29
|
+
# 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
|
+
request_opts = { endpoint: arguments[:endpoint] || "connector.sync_job_post" }
|
38
|
+
|
39
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
40
|
+
|
41
|
+
arguments = arguments.clone
|
42
|
+
headers = arguments.delete(:headers) || {}
|
43
|
+
|
44
|
+
body = arguments.delete(:body)
|
45
|
+
|
46
|
+
method = ElasticsearchServerless::API::HTTP_POST
|
47
|
+
path = "_connector/_sync_job"
|
48
|
+
params = {}
|
49
|
+
|
50
|
+
ElasticsearchServerless::API::Response.new(
|
51
|
+
perform_request(method, path, params, body, headers, request_opts)
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|