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.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/lib/elasticsearch-serverless/api/async_search/delete.rb +4 -1
  3. data/lib/elasticsearch-serverless/api/async_search/get.rb +2 -1
  4. data/lib/elasticsearch-serverless/api/async_search/status.rb +3 -1
  5. data/lib/elasticsearch-serverless/api/async_search/submit.rb +5 -1
  6. data/lib/elasticsearch-serverless/api/bulk.rb +2 -1
  7. data/lib/elasticsearch-serverless/api/cat/aliases.rb +3 -1
  8. data/lib/elasticsearch-serverless/api/cat/component_templates.rb +4 -1
  9. data/lib/elasticsearch-serverless/api/cat/count.rb +4 -1
  10. data/lib/elasticsearch-serverless/api/cat/indices.rb +6 -1
  11. data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +5 -1
  12. data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +8 -1
  13. data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +8 -1
  14. data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +5 -1
  15. data/lib/elasticsearch-serverless/api/cat/transforms.rb +5 -1
  16. data/lib/elasticsearch-serverless/api/clear_scroll.rb +1 -1
  17. data/lib/elasticsearch-serverless/api/close_point_in_time.rb +1 -1
  18. data/lib/elasticsearch-serverless/api/cluster/delete_component_template.rb +2 -1
  19. data/lib/elasticsearch-serverless/api/cluster/get_component_template.rb +1 -1
  20. data/lib/elasticsearch-serverless/api/cluster/put_component_template.rb +15 -1
  21. data/lib/elasticsearch-serverless/api/connector/check_in.rb +57 -0
  22. data/lib/elasticsearch-serverless/api/connector/delete.rb +58 -0
  23. data/lib/elasticsearch-serverless/api/connector/get.rb +57 -0
  24. data/lib/elasticsearch-serverless/api/connector/last_sync.rb +59 -0
  25. data/lib/elasticsearch-serverless/api/connector/list.rb +58 -0
  26. data/lib/elasticsearch-serverless/api/connector/post.rb +53 -0
  27. data/lib/elasticsearch-serverless/api/connector/put.rb +60 -0
  28. data/lib/elasticsearch-serverless/api/connector/sync_job_cancel.rb +58 -0
  29. data/lib/elasticsearch-serverless/api/connector/sync_job_delete.rb +58 -0
  30. data/lib/elasticsearch-serverless/api/connector/sync_job_get.rb +58 -0
  31. data/lib/elasticsearch-serverless/api/connector/sync_job_list.rb +57 -0
  32. data/lib/elasticsearch-serverless/api/connector/sync_job_post.rb +55 -0
  33. data/lib/elasticsearch-serverless/api/connector/update_active_filtering.rb +57 -0
  34. data/lib/elasticsearch-serverless/api/connector/update_api_key_id.rb +59 -0
  35. data/lib/elasticsearch-serverless/api/connector/update_configuration.rb +59 -0
  36. data/lib/elasticsearch-serverless/api/connector/update_error.rb +59 -0
  37. data/lib/elasticsearch-serverless/api/connector/update_filtering.rb +59 -0
  38. data/lib/elasticsearch-serverless/api/connector/update_filtering_validation.rb +59 -0
  39. data/lib/elasticsearch-serverless/api/connector/update_index_name.rb +59 -0
  40. data/lib/elasticsearch-serverless/api/connector/update_name.rb +59 -0
  41. data/lib/elasticsearch-serverless/api/connector/update_native.rb +59 -0
  42. data/lib/elasticsearch-serverless/api/connector/update_pipeline.rb +59 -0
  43. data/lib/elasticsearch-serverless/api/connector/update_scheduling.rb +59 -0
  44. data/lib/elasticsearch-serverless/api/connector/update_service_type.rb +59 -0
  45. data/lib/elasticsearch-serverless/api/connector/update_status.rb +59 -0
  46. data/lib/elasticsearch-serverless/api/create.rb +2 -3
  47. data/lib/elasticsearch-serverless/api/delete.rb +1 -1
  48. data/lib/elasticsearch-serverless/api/delete_by_query.rb +1 -1
  49. data/lib/elasticsearch-serverless/api/delete_script.rb +1 -1
  50. data/lib/elasticsearch-serverless/api/enrich/get_policy.rb +1 -1
  51. data/lib/elasticsearch-serverless/api/enrich/put_policy.rb +1 -1
  52. data/lib/elasticsearch-serverless/api/enrich/stats.rb +1 -1
  53. data/lib/elasticsearch-serverless/api/eql/delete.rb +2 -1
  54. data/lib/elasticsearch-serverless/api/eql/get.rb +1 -1
  55. data/lib/elasticsearch-serverless/api/eql/get_status.rb +1 -1
  56. data/lib/elasticsearch-serverless/api/esql/query.rb +57 -0
  57. data/lib/elasticsearch-serverless/api/exists.rb +1 -1
  58. data/lib/elasticsearch-serverless/api/exists_source.rb +1 -1
  59. data/lib/elasticsearch-serverless/api/explain.rb +1 -1
  60. data/lib/elasticsearch-serverless/api/field_caps.rb +4 -1
  61. data/lib/elasticsearch-serverless/api/get.rb +1 -0
  62. data/lib/elasticsearch-serverless/api/get_script.rb +1 -1
  63. data/lib/elasticsearch-serverless/api/graph/explore.rb +1 -1
  64. data/lib/elasticsearch-serverless/api/index.rb +2 -1
  65. data/lib/elasticsearch-serverless/api/indices/analyze.rb +1 -1
  66. data/lib/elasticsearch-serverless/api/indices/create.rb +2 -2
  67. data/lib/elasticsearch-serverless/api/indices/create_data_stream.rb +2 -1
  68. data/lib/elasticsearch-serverless/api/indices/data_streams_stats.rb +1 -1
  69. data/lib/elasticsearch-serverless/api/indices/delete.rb +1 -1
  70. data/lib/elasticsearch-serverless/api/indices/delete_alias.rb +1 -1
  71. data/lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb +1 -1
  72. data/lib/elasticsearch-serverless/api/indices/delete_data_stream.rb +1 -1
  73. data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +4 -1
  74. data/lib/elasticsearch-serverless/api/indices/exists.rb +1 -1
  75. data/lib/elasticsearch-serverless/api/indices/exists_alias.rb +1 -1
  76. data/lib/elasticsearch-serverless/api/indices/get.rb +2 -1
  77. data/lib/elasticsearch-serverless/api/indices/get_alias.rb +1 -1
  78. data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +1 -1
  79. data/lib/elasticsearch-serverless/api/indices/get_data_stream.rb +1 -1
  80. data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +2 -1
  81. data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +2 -1
  82. data/lib/elasticsearch-serverless/api/indices/get_settings.rb +2 -1
  83. data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +10 -1
  84. data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +1 -1
  85. data/lib/elasticsearch-serverless/api/indices/put_alias.rb +1 -1
  86. data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +1 -1
  87. data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +4 -1
  88. data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +3 -1
  89. data/lib/elasticsearch-serverless/api/indices/put_settings.rb +2 -1
  90. data/lib/elasticsearch-serverless/api/indices/put_template.rb +60 -0
  91. data/lib/elasticsearch-serverless/api/indices/refresh.rb +2 -1
  92. data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +2 -1
  93. data/lib/elasticsearch-serverless/api/indices/rollover.rb +1 -2
  94. data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +4 -5
  95. data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +3 -2
  96. data/lib/elasticsearch-serverless/api/indices/update_aliases.rb +1 -1
  97. data/lib/elasticsearch-serverless/api/indices/validate_query.rb +1 -1
  98. data/lib/elasticsearch-serverless/api/inference/delete.rb +66 -0
  99. data/lib/elasticsearch-serverless/api/inference/get.rb +64 -0
  100. data/lib/elasticsearch-serverless/api/inference/inference.rb +66 -0
  101. data/lib/elasticsearch-serverless/api/inference/put.rb +66 -0
  102. data/lib/elasticsearch-serverless/api/ingest/delete_pipeline.rb +1 -1
  103. data/lib/elasticsearch-serverless/api/ingest/get_pipeline.rb +2 -1
  104. data/lib/elasticsearch-serverless/api/ingest/processor_grok.rb +3 -1
  105. data/lib/elasticsearch-serverless/api/ingest/put_pipeline.rb +2 -1
  106. data/lib/elasticsearch-serverless/api/ingest/simulate.rb +1 -1
  107. data/lib/elasticsearch-serverless/api/license/get.rb +2 -1
  108. data/lib/elasticsearch-serverless/api/logstash/delete_pipeline.rb +1 -1
  109. data/lib/elasticsearch-serverless/api/logstash/get_pipeline.rb +1 -1
  110. data/lib/elasticsearch-serverless/api/logstash/put_pipeline.rb +1 -1
  111. data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +5 -1
  112. data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +1 -1
  113. data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +1 -1
  114. data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +2 -0
  115. data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +8 -1
  116. data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +2 -1
  117. data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +4 -1
  118. data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +3 -1
  119. data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +4 -0
  120. data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +8 -0
  121. data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +3 -0
  122. data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +6 -0
  123. data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +5 -0
  124. data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +1 -0
  125. data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +4 -0
  126. data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +17 -1
  127. data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +2 -2
  128. data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +2 -1
  129. data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +63 -0
  130. data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +7 -0
  131. data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +1 -1
  132. data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +1 -1
  133. data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +8 -0
  134. data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +1 -1
  135. data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +1 -1
  136. data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +2 -0
  137. data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +9 -0
  138. data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +2 -0
  139. data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +1 -1
  140. data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +2 -1
  141. data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +16 -1
  142. data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +1 -1
  143. data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +3 -1
  144. data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +5 -1
  145. data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +11 -0
  146. data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +12 -0
  147. data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +1 -1
  148. data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +2 -0
  149. data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +2 -0
  150. data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +1 -1
  151. data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +1 -1
  152. data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +5 -1
  153. data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +1 -1
  154. data/lib/elasticsearch-serverless/api/machine_learning/update_trained_model_deployment.rb +55 -0
  155. data/lib/elasticsearch-serverless/api/mget.rb +1 -0
  156. data/lib/elasticsearch-serverless/api/msearch_template.rb +1 -1
  157. data/lib/elasticsearch-serverless/api/open_point_in_time.rb +6 -1
  158. data/lib/elasticsearch-serverless/api/put_script.rb +1 -1
  159. data/lib/elasticsearch-serverless/api/query_rules/delete_rule.rb +57 -0
  160. data/lib/elasticsearch-serverless/api/{query_ruleset/delete.rb → query_rules/delete_ruleset.rb} +2 -6
  161. data/lib/elasticsearch-serverless/api/query_rules/get_rule.rb +57 -0
  162. data/lib/elasticsearch-serverless/api/{query_ruleset/get.rb → query_rules/get_ruleset.rb} +3 -7
  163. data/lib/elasticsearch-serverless/api/{query_ruleset/list.rb → query_rules/list_rulesets.rb} +3 -7
  164. data/lib/elasticsearch-serverless/api/query_rules/put_rule.rb +59 -0
  165. data/lib/elasticsearch-serverless/api/{query_ruleset/put.rb → query_rules/put_ruleset.rb} +2 -6
  166. data/lib/elasticsearch-serverless/api/rank_eval.rb +1 -1
  167. data/lib/elasticsearch-serverless/api/render_search_template.rb +1 -1
  168. data/lib/elasticsearch-serverless/api/scripts_painless_execute.rb +1 -1
  169. data/lib/elasticsearch-serverless/api/search.rb +4 -1
  170. data/lib/elasticsearch-serverless/api/search_application/get.rb +1 -1
  171. data/lib/elasticsearch-serverless/api/search_application/search.rb +3 -2
  172. data/lib/elasticsearch-serverless/api/search_template.rb +1 -1
  173. data/lib/elasticsearch-serverless/api/security/authenticate.rb +3 -1
  174. data/lib/elasticsearch-serverless/api/security/create_api_key.rb +3 -0
  175. data/lib/elasticsearch-serverless/api/security/get_api_key.rb +4 -0
  176. data/lib/elasticsearch-serverless/api/security/invalidate_api_key.rb +6 -0
  177. data/lib/elasticsearch-serverless/api/security/query_api_keys.rb +4 -2
  178. data/lib/elasticsearch-serverless/api/security/update_api_key.rb +66 -0
  179. data/lib/elasticsearch-serverless/api/synonyms/put_synonym.rb +1 -1
  180. data/lib/elasticsearch-serverless/api/tasks/get.rb +57 -0
  181. data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +1 -1
  182. data/lib/elasticsearch-serverless/api/transform/preview_transform.rb +4 -0
  183. data/lib/elasticsearch-serverless/api/transform/put_transform.rb +21 -1
  184. data/lib/elasticsearch-serverless/api/transform/reset_transform.rb +3 -1
  185. data/lib/elasticsearch-serverless/api/transform/schedule_now_transform.rb +5 -0
  186. data/lib/elasticsearch-serverless/api/transform/start_transform.rb +16 -1
  187. data/lib/elasticsearch-serverless/api/transform/update_transform.rb +6 -0
  188. data/lib/elasticsearch-serverless/api/update_by_query.rb +2 -2
  189. data/lib/elasticsearch-serverless/api.rb +6 -4
  190. data/lib/elasticsearch-serverless/version.rb +3 -3
  191. data/lib/elasticsearch-serverless.rb +13 -5
  192. 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