elasticsearch-serverless 0.1.0.20231031.pre → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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,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 draft filtering validation info 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
+ # @option arguments [Hash] :body request body
34
+ #
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-filtering-validation-api.html
36
+ #
37
+ def update_filtering_validation(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/_validation"
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 index_name 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-index-name-api.html
36
+ #
37
+ def update_index_name(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)}/_index_name"
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 name and description fields 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-name-description-api.html
36
+ #
37
+ def update_name(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)}/_name"
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 is_native flag 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-native-api.html
36
+ #
37
+ def update_native(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)}/_native"
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 pipeline 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-pipeline-api.html
36
+ #
37
+ def update_pipeline(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)}/_pipeline"
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 scheduling 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-scheduling-api.html
36
+ #
37
+ def update_scheduling(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)}/_scheduling"
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 service type of the 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
+ # @option arguments [Hash] :body request body
34
+ #
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-service-type-api.html
36
+ #
37
+ def update_service_type(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)}/_service_type"
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 status of the 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
+ # @option arguments [Hash] :body request body
34
+ #
35
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-connector-status-api.html
36
+ #
37
+ def update_status(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)}/_status"
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
@@ -21,9 +21,8 @@
21
21
  module ElasticsearchServerless
22
22
  module API
23
23
  module Actions
24
- # Creates a new document in the index.
25
- #
26
- # Returns a 409 response when a document with a same ID already exists in the index.
24
+ # Adds a JSON document to the specified data stream or index and makes it searchable.
25
+ # If the target is an index and the document already exists, the request updates the document and increments its version.
27
26
  #
28
27
  # @option arguments [String] :id Unique identifier for the document. (*Required*)
29
28
  # @option arguments [String] :index Name of the data stream or index to target. If the target doesn’t exist and matches the name or wildcard (+*+) pattern of an index template with a +data_stream+ definition, this request creates the data stream. If the target doesn’t exist and doesn’t match a data stream template, this request creates the index. (*Required*)
@@ -21,7 +21,7 @@
21
21
  module ElasticsearchServerless
22
22
  module API
23
23
  module Actions
24
- # Removes a document from the index.
24
+ # Removes a JSON document from the specified index.
25
25
  #
26
26
  # @option arguments [String] :id Unique identifier for the document. (*Required*)
27
27
  # @option arguments [String] :index Name of the target index. (*Required*)
@@ -21,7 +21,7 @@
21
21
  module ElasticsearchServerless
22
22
  module API
23
23
  module Actions
24
- # Deletes documents matching the provided query.
24
+ # Deletes documents that match the specified query.
25
25
  #
26
26
  # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases to search. Supports wildcards (+*+). To search all data streams or indices, omit this parameter or use +*+ or +_all+. (*Required*)
27
27
  # @option arguments [Boolean] :allow_no_indices If +false+, the request returns an error if any wildcard expression, index alias, or +_all+ value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true.
@@ -21,7 +21,7 @@
21
21
  module ElasticsearchServerless
22
22
  module API
23
23
  module Actions
24
- # Deletes a script.
24
+ # Deletes a stored script or search template.
25
25
  #
26
26
  # @option arguments [String] :id Identifier for the stored script or search template. (*Required*)
27
27
  # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
@@ -22,7 +22,7 @@ module ElasticsearchServerless
22
22
  module API
23
23
  module Enrich
24
24
  module Actions
25
- # Gets information about an enrich policy.
25
+ # Returns information about an enrich policy.
26
26
  #
27
27
  # @option arguments [String, Array<String>] :name Comma-separated list of enrich policy names used to limit the request. To return information for all enrich policies, omit this parameter.
28
28
  # @option arguments [Hash] :headers Custom HTTP headers
@@ -22,7 +22,7 @@ module ElasticsearchServerless
22
22
  module API
23
23
  module Enrich
24
24
  module Actions
25
- # Creates a new enrich policy.
25
+ # Creates an enrich policy.
26
26
  #
27
27
  # @option arguments [String] :name Name of the enrich policy to create or update. (*Required*)
28
28
  # @option arguments [Hash] :headers Custom HTTP headers
@@ -22,7 +22,7 @@ module ElasticsearchServerless
22
22
  module API
23
23
  module Enrich
24
24
  module Actions
25
- # Gets enrich coordinator statistics and information about enrich policies that are currently executing.
25
+ # Returns enrich coordinator statistics and information about enrich policies that are currently executing.
26
26
  #
27
27
  # @option arguments [Hash] :headers Custom HTTP headers
28
28
  #
@@ -22,7 +22,8 @@ module ElasticsearchServerless
22
22
  module API
23
23
  module Eql
24
24
  module Actions
25
- # Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
25
+ # Deletes an async EQL search or a stored synchronous EQL search.
26
+ # The API also deletes results for the search.
26
27
  #
27
28
  # @option arguments [String] :id Identifier for the search to delete. A search ID is provided in the EQL search API's response for an async search. A search ID is also provided if the request’s +keep_on_completion+ parameter is +true+. (*Required*)
28
29
  # @option arguments [Hash] :headers Custom HTTP headers
@@ -22,7 +22,7 @@ module ElasticsearchServerless
22
22
  module API
23
23
  module Eql
24
24
  module Actions
25
- # Returns async results from previously executed Event Query Language (EQL) search
25
+ # Returns the current status and available results for an async EQL search or a stored synchronous EQL search.
26
26
  #
27
27
  # @option arguments [String] :id Identifier for the search. (*Required*)
28
28
  # @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster. Defaults to the keep_alive value set by the search’s EQL search API request.
@@ -22,7 +22,7 @@ module ElasticsearchServerless
22
22
  module API
23
23
  module Eql
24
24
  module Actions
25
- # Returns the status of a previously submitted async or stored Event Query Language (EQL) search
25
+ # Returns the current status for an async EQL search or a stored synchronous EQL search without returning results.
26
26
  #
27
27
  # @option arguments [String] :id Identifier for the search. (*Required*)
28
28
  # @option arguments [Hash] :headers Custom HTTP headers
@@ -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 Esql
24
+ module Actions
25
+ # Executes an ES|QL request
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] :format A short version of the Accept header, e.g. json, yaml.
32
+ # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the CSV format.
33
+ # @option arguments [Hash] :headers Custom HTTP headers
34
+ # @option arguments [Hash] :body request body
35
+ #
36
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-rest.html
37
+ #
38
+ def query(arguments = {})
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 = "_query"
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
@@ -21,7 +21,7 @@
21
21
  module ElasticsearchServerless
22
22
  module API
23
23
  module Actions
24
- # Returns information about whether a document exists in an index.
24
+ # Checks if a document in an index exists.
25
25
  #
26
26
  # @option arguments [String] :id Identifier of the document. (*Required*)
27
27
  # @option arguments [String] :index Comma-separated list of data streams, indices, and aliases. Supports wildcards (+*+). (*Required*)