elasticsearch-serverless 0.0.8.20231031.pre → 0.0.9.20231031.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/elasticsearch-serverless/api/eql/get.rb +1 -1
  3. data/lib/elasticsearch-serverless/api/eql/get_status.rb +1 -1
  4. data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +1 -1
  5. data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +1 -1
  6. data/lib/elasticsearch-serverless/api/search_application/delete.rb +1 -1
  7. data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +1 -0
  8. data/lib/elasticsearch-serverless/api.rb +1 -0
  9. data/lib/elasticsearch-serverless/version.rb +3 -3
  10. data/lib/elasticsearch-serverless.rb +3 -4
  11. metadata +2 -73
  12. data/lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb +0 -56
  13. data/lib/elasticsearch-serverless/api/indices/exists_index_template.rb +0 -56
  14. data/lib/elasticsearch-serverless/api/indices/explain_data_lifecycle.rb +0 -55
  15. data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +0 -55
  16. data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +0 -59
  17. data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +0 -60
  18. data/lib/elasticsearch-serverless/api/indices/get_settings.rb +0 -69
  19. data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +0 -53
  20. data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +0 -51
  21. data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +0 -57
  22. data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +0 -61
  23. data/lib/elasticsearch-serverless/api/indices/put_settings.rb +0 -65
  24. data/lib/elasticsearch-serverless/api/indices/put_template.rb +0 -60
  25. data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +0 -54
  26. data/lib/elasticsearch-serverless/api/indices/rollover.rb +0 -66
  27. data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +0 -57
  28. data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +0 -59
  29. data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +0 -57
  30. data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +0 -53
  31. data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_event.rb +0 -57
  32. data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_job.rb +0 -57
  33. data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +0 -55
  34. data/lib/elasticsearch-serverless/api/machine_learning/delete_datafeed.rb +0 -54
  35. data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +0 -53
  36. data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +0 -56
  37. data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +0 -54
  38. data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +0 -57
  39. data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +0 -51
  40. data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +0 -51
  41. data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +0 -59
  42. data/lib/elasticsearch-serverless/api/machine_learning/get_calendar_events.rb +0 -58
  43. data/lib/elasticsearch-serverless/api/machine_learning/get_calendars.rb +0 -63
  44. data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +0 -59
  45. data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics_stats.rb +0 -59
  46. data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +0 -56
  47. data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +0 -57
  48. data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +0 -57
  49. data/lib/elasticsearch-serverless/api/machine_learning/get_job_stats.rb +0 -56
  50. data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +0 -57
  51. data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +0 -66
  52. data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +0 -62
  53. data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +0 -58
  54. data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +0 -63
  55. data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +0 -55
  56. data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +0 -55
  57. data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +0 -61
  58. data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +0 -63
  59. data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +0 -54
  60. data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +0 -57
  61. data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +0 -55
  62. data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +0 -59
  63. data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +0 -55
  64. data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +0 -55
  65. data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +0 -56
  66. data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +0 -58
  67. data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +0 -59
  68. data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +0 -55
  69. data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +0 -55
  70. data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +0 -54
  71. data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +0 -57
  72. data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +0 -60
  73. data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +0 -56
  74. data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +0 -57
  75. data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +0 -55
  76. data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +0 -55
  77. data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +0 -59
  78. data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +0 -55
  79. data/lib/elasticsearch-serverless/api/machine_learning/update_job.rb +0 -55
  80. data/lib/elasticsearch-serverless/api/rank_eval.rb +0 -60
  81. data/lib/elasticsearch-serverless/api/security/update_api_key.rb +0 -54
  82. data/lib/elasticsearch-serverless/api/tasks/get.rb +0 -57
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 360407581095acc1e52ffcc4c03f1f2d263d56427a0b1c48807aba4d7a776e82
4
- data.tar.gz: 890548d5242aa5688ad25d5c85dff021015091190dc8585f025c1e4273d0993d
3
+ metadata.gz: 7a9135c33c55d65f14ac6f27f75132db22b27e412fe5aec54dd5e056007273ff
4
+ data.tar.gz: 917d17b3c9fb9188836397531e5840781b105aa366c71ca04d7eb4cd72e32322
5
5
  SHA512:
6
- metadata.gz: a78500ad31ed7be19428791d702a4c1807130d8f091855ce5b2036c8cc1352d787f335b8fc0facd13933dc6b9a14b12352348be531f66f7d1b3c2aab95c11fdb
7
- data.tar.gz: 0be05a9426b1ca80fb829929eb7992a9d7741b7f05bc2114ee1138a5daa49f570ad33435cdf87b674948eef89aec5616313677eedb9e65ca59711747af353e09
6
+ metadata.gz: 87e98459e6c2d885a4816b8a6a248a9270a7b0bfbcbc494f5ff274a82f056eb8111052e943fe8e2bba61756deb6157bd9a83eb9cab9168350e42370c1e28c4d0
7
+ data.tar.gz: 5452626733e1c7808b1d974420f7f612b32f77cf360e026c490daed544ecd1e020525d221edf0dc3a17ff4b950ee4226e70a8ab6d2778e73e7b47881370ccf30
@@ -29,7 +29,7 @@ module ElasticsearchServerless
29
29
  # @option arguments [Time] :wait_for_completion_timeout Timeout duration to wait for the request to finish. Defaults to no timeout, meaning the request waits for complete search results.
30
30
  # @option arguments [Hash] :headers Custom HTTP headers
31
31
  #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-search-api.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-search-api.html
33
33
  #
34
34
  def get(arguments = {})
35
35
  raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
@@ -27,7 +27,7 @@ module ElasticsearchServerless
27
27
  # @option arguments [String] :id Identifier for the search. (*Required*)
28
28
  # @option arguments [Hash] :headers Custom HTTP headers
29
29
  #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-status-api.html
30
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-status-api.html
31
31
  #
32
32
  def get_status(arguments = {})
33
33
  raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
@@ -29,7 +29,7 @@ module ElasticsearchServerless
29
29
  # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
30
30
  # @option arguments [Hash] :headers Custom HTTP headers
31
31
  #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html
33
33
  #
34
34
  def delete_index_template(arguments = {})
35
35
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
@@ -29,7 +29,7 @@ module ElasticsearchServerless
29
29
  # @option arguments [Hash] :headers Custom HTTP headers
30
30
  # @option arguments [Hash] :body request body
31
31
  #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
32
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html
33
33
  #
34
34
  def put_index_template(arguments = {})
35
35
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -31,7 +31,7 @@ module ElasticsearchServerless
31
31
  # @option arguments [String] :name The name of the search application to delete (*Required*)
32
32
  # @option arguments [Hash] :headers Custom HTTP headers
33
33
  #
34
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html
34
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html
35
35
  #
36
36
  def delete(arguments = {})
37
37
  raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
@@ -26,6 +26,7 @@ module ElasticsearchServerless
26
26
  #
27
27
  # @option arguments [String] :transform_id Identifier for the transform. (*Required*)
28
28
  # @option arguments [Boolean] :force If this value is false, the transform must be stopped before it can be deleted. If true, the transform is deleted regardless of its current state.
29
+ # @option arguments [Boolean] :delete_dest_index If this value is true, the destination index is deleted together with the transform. If false, the destination index will not be deleted
29
30
  # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
30
31
  # @option arguments [Hash] :headers Custom HTTP headers
31
32
  #
@@ -66,6 +66,7 @@ module ElasticsearchServerless
66
66
  :ingest,
67
67
  :license,
68
68
  :logstash,
69
+ :query_ruleset,
69
70
  :search_application,
70
71
  :security,
71
72
  :sql,
@@ -16,7 +16,7 @@
16
16
  # under the License.
17
17
 
18
18
  module ElasticsearchServerless
19
- API_VERSION = '20231031'
20
- CLIENT_VERSION = '0.0.8'
21
- VERSION = "#{CLIENT_VERSION}.#{API_VERSION}.pre".freeze
19
+ API_VERSION = '2023-10-31'
20
+ CLIENT_VERSION = '0.0.9'
21
+ VERSION = "#{CLIENT_VERSION}.#{API_VERSION.split('-').join}.pre".freeze
22
22
  end
@@ -51,6 +51,7 @@ module ElasticsearchServerless
51
51
  transport_options: {
52
52
  headers: {
53
53
  'Authorization' => "ApiKey #{api_key}",
54
+ 'Elastic-Api-Version' => ElasticsearchServerless::API_VERSION,
54
55
  user_agent: user_agent
55
56
  },
56
57
  },
@@ -94,11 +95,9 @@ end
94
95
  module Elastic
95
96
  # If the version is X.X.X.pre/alpha/beta, use X.X.Xp for the meta-header:
96
97
  def self.client_meta_version
97
- regexp = /^([0-9]+\.[0-9]+\.[0-9]+)\.?([a-z0-9.-]+)?$/
98
- match = ElasticsearchServerless::VERSION.match(regexp)
99
- return "#{match[1]}p" if match[2]
98
+ return "#{ElasticsearchServerless::CLIENT_VERSION}p" if ElasticsearchServerless::VERSION.match(/[a-z]+/)
100
99
 
101
- ElasticsearchServerless::VERSION
100
+ ElasticsearchServerless::CLIENT_VERSION
102
101
  end
103
102
 
104
103
  ELASTICSEARCH_SERVICE_VERSION = [:esv, client_meta_version].freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-serverless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.20231031.pre
4
+ version: 0.0.9.20231031.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Briano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-12 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elastic-transport
@@ -140,33 +140,16 @@ files:
140
140
  - lib/elasticsearch-serverless/api/indices/data_streams_stats.rb
141
141
  - lib/elasticsearch-serverless/api/indices/delete.rb
142
142
  - lib/elasticsearch-serverless/api/indices/delete_alias.rb
143
- - lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb
144
143
  - lib/elasticsearch-serverless/api/indices/delete_data_stream.rb
145
144
  - lib/elasticsearch-serverless/api/indices/delete_index_template.rb
146
145
  - lib/elasticsearch-serverless/api/indices/exists.rb
147
146
  - lib/elasticsearch-serverless/api/indices/exists_alias.rb
148
- - lib/elasticsearch-serverless/api/indices/exists_index_template.rb
149
- - lib/elasticsearch-serverless/api/indices/explain_data_lifecycle.rb
150
147
  - lib/elasticsearch-serverless/api/indices/get.rb
151
148
  - lib/elasticsearch-serverless/api/indices/get_alias.rb
152
- - lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb
153
149
  - lib/elasticsearch-serverless/api/indices/get_data_stream.rb
154
- - lib/elasticsearch-serverless/api/indices/get_index_template.rb
155
- - lib/elasticsearch-serverless/api/indices/get_mapping.rb
156
- - lib/elasticsearch-serverless/api/indices/get_settings.rb
157
- - lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb
158
- - lib/elasticsearch-serverless/api/indices/modify_data_stream.rb
159
150
  - lib/elasticsearch-serverless/api/indices/put_alias.rb
160
- - lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb
161
151
  - lib/elasticsearch-serverless/api/indices/put_index_template.rb
162
- - lib/elasticsearch-serverless/api/indices/put_mapping.rb
163
- - lib/elasticsearch-serverless/api/indices/put_settings.rb
164
- - lib/elasticsearch-serverless/api/indices/put_template.rb
165
152
  - lib/elasticsearch-serverless/api/indices/refresh.rb
166
- - lib/elasticsearch-serverless/api/indices/resolve_index.rb
167
- - lib/elasticsearch-serverless/api/indices/rollover.rb
168
- - lib/elasticsearch-serverless/api/indices/simulate_index_template.rb
169
- - lib/elasticsearch-serverless/api/indices/simulate_template.rb
170
153
  - lib/elasticsearch-serverless/api/indices/update_aliases.rb
171
154
  - lib/elasticsearch-serverless/api/indices/validate_query.rb
172
155
  - lib/elasticsearch-serverless/api/info.rb
@@ -179,57 +162,6 @@ files:
179
162
  - lib/elasticsearch-serverless/api/logstash/delete_pipeline.rb
180
163
  - lib/elasticsearch-serverless/api/logstash/get_pipeline.rb
181
164
  - lib/elasticsearch-serverless/api/logstash/put_pipeline.rb
182
- - lib/elasticsearch-serverless/api/machine_learning/close_job.rb
183
- - lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb
184
- - lib/elasticsearch-serverless/api/machine_learning/delete_calendar_event.rb
185
- - lib/elasticsearch-serverless/api/machine_learning/delete_calendar_job.rb
186
- - lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb
187
- - lib/elasticsearch-serverless/api/machine_learning/delete_datafeed.rb
188
- - lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb
189
- - lib/elasticsearch-serverless/api/machine_learning/delete_job.rb
190
- - lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb
191
- - lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb
192
- - lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb
193
- - lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb
194
- - lib/elasticsearch-serverless/api/machine_learning/flush_job.rb
195
- - lib/elasticsearch-serverless/api/machine_learning/get_calendar_events.rb
196
- - lib/elasticsearch-serverless/api/machine_learning/get_calendars.rb
197
- - lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb
198
- - lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics_stats.rb
199
- - lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb
200
- - lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb
201
- - lib/elasticsearch-serverless/api/machine_learning/get_filters.rb
202
- - lib/elasticsearch-serverless/api/machine_learning/get_job_stats.rb
203
- - lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb
204
- - lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb
205
- - lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb
206
- - lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb
207
- - lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb
208
- - lib/elasticsearch-serverless/api/machine_learning/open_job.rb
209
- - lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb
210
- - lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb
211
- - lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb
212
- - lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb
213
- - lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb
214
- - lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb
215
- - lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb
216
- - lib/elasticsearch-serverless/api/machine_learning/put_filter.rb
217
- - lib/elasticsearch-serverless/api/machine_learning/put_job.rb
218
- - lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb
219
- - lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb
220
- - lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb
221
- - lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb
222
- - lib/elasticsearch-serverless/api/machine_learning/reset_job.rb
223
- - lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb
224
- - lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb
225
- - lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb
226
- - lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb
227
- - lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb
228
- - lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb
229
- - lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb
230
- - lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb
231
- - lib/elasticsearch-serverless/api/machine_learning/update_filter.rb
232
- - lib/elasticsearch-serverless/api/machine_learning/update_job.rb
233
165
  - lib/elasticsearch-serverless/api/mget.rb
234
166
  - lib/elasticsearch-serverless/api/msearch.rb
235
167
  - lib/elasticsearch-serverless/api/msearch_template.rb
@@ -241,7 +173,6 @@ files:
241
173
  - lib/elasticsearch-serverless/api/query_ruleset/get.rb
242
174
  - lib/elasticsearch-serverless/api/query_ruleset/list.rb
243
175
  - lib/elasticsearch-serverless/api/query_ruleset/put.rb
244
- - lib/elasticsearch-serverless/api/rank_eval.rb
245
176
  - lib/elasticsearch-serverless/api/reindex.rb
246
177
  - lib/elasticsearch-serverless/api/render_search_template.rb
247
178
  - lib/elasticsearch-serverless/api/response.rb
@@ -264,7 +195,6 @@ files:
264
195
  - lib/elasticsearch-serverless/api/security/has_privileges.rb
265
196
  - lib/elasticsearch-serverless/api/security/invalidate_api_key.rb
266
197
  - lib/elasticsearch-serverless/api/security/query_api_keys.rb
267
- - lib/elasticsearch-serverless/api/security/update_api_key.rb
268
198
  - lib/elasticsearch-serverless/api/sql/clear_cursor.rb
269
199
  - lib/elasticsearch-serverless/api/sql/delete_async.rb
270
200
  - lib/elasticsearch-serverless/api/sql/get_async.rb
@@ -278,7 +208,6 @@ files:
278
208
  - lib/elasticsearch-serverless/api/synonyms/get_synonyms_sets.rb
279
209
  - lib/elasticsearch-serverless/api/synonyms/put_synonym.rb
280
210
  - lib/elasticsearch-serverless/api/synonyms/put_synonym_rule.rb
281
- - lib/elasticsearch-serverless/api/tasks/get.rb
282
211
  - lib/elasticsearch-serverless/api/terms_enum.rb
283
212
  - lib/elasticsearch-serverless/api/termvectors.rb
284
213
  - lib/elasticsearch-serverless/api/transform/delete_transform.rb
@@ -1,56 +0,0 @@
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 Indices
24
- module Actions
25
- # Deletes the data stream lifecycle of the selected data streams.
26
- #
27
- # @option arguments [String, Array<String>] :name A comma-separated list of data streams of which the data stream lifecycle will be deleted; use +*+ to get all data streams (*Required*)
28
- # @option arguments [String, Array<String>] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open)
29
- # @option arguments [Time] :master_timeout Specify timeout for connection to master
30
- # @option arguments [Time] :timeout Explicit timestamp for the document
31
- # @option arguments [Hash] :headers Custom HTTP headers
32
- #
33
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-delete-lifecycle.html
34
- #
35
- def delete_data_lifecycle(arguments = {})
36
- raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
37
-
38
- arguments = arguments.clone
39
- headers = arguments.delete(:headers) || {}
40
-
41
- body = nil
42
-
43
- _name = arguments.delete(:name)
44
-
45
- method = ElasticsearchServerless::API::HTTP_DELETE
46
- path = "_data_stream/#{Utils.listify(_name)}/_lifecycle"
47
- params = Utils.process_params(arguments)
48
-
49
- ElasticsearchServerless::API::Response.new(
50
- perform_request(method, path, params, body, headers)
51
- )
52
- end
53
- end
54
- end
55
- end
56
- end
@@ -1,56 +0,0 @@
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 Indices
24
- module Actions
25
- # Returns information about whether a particular index template exists.
26
- #
27
- # @option arguments [String] :name Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported. (*Required*)
28
- # @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.
29
- # @option arguments [Hash] :headers Custom HTTP headers
30
- #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
32
- #
33
- def exists_index_template(arguments = {})
34
- raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
35
-
36
- arguments = arguments.clone
37
- headers = arguments.delete(:headers) || {}
38
-
39
- body = nil
40
-
41
- _name = arguments.delete(:name)
42
-
43
- method = ElasticsearchServerless::API::HTTP_HEAD
44
- path = "_index_template/#{Utils.listify(_name)}"
45
- params = Utils.process_params(arguments)
46
-
47
- ElasticsearchServerless::API::Response.new(
48
- perform_request(method, path, params, body, headers)
49
- )
50
- end
51
-
52
- alias_method :exists_index_template?, :exists_index_template
53
- end
54
- end
55
- end
56
- end
@@ -1,55 +0,0 @@
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 Indices
24
- module Actions
25
- # Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.
26
- #
27
- # @option arguments [String, Array] :index The name of the index to explain (*Required*)
28
- # @option arguments [Boolean] :include_defaults indicates if the API should return the default values the system uses for the index's lifecycle
29
- # @option arguments [Time] :master_timeout Specify timeout for connection to master
30
- # @option arguments [Hash] :headers Custom HTTP headers
31
- #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams-explain-lifecycle.html
33
- #
34
- def explain_data_lifecycle(arguments = {})
35
- raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
36
-
37
- arguments = arguments.clone
38
- headers = arguments.delete(:headers) || {}
39
-
40
- body = nil
41
-
42
- _index = arguments.delete(:index)
43
-
44
- method = ElasticsearchServerless::API::HTTP_GET
45
- path = "#{Utils.listify(_index)}/_lifecycle/explain"
46
- params = Utils.process_params(arguments)
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
@@ -1,55 +0,0 @@
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 Indices
24
- module Actions
25
- # Returns the data stream lifecycle of the selected data streams.
26
- #
27
- # @option arguments [String, Array<String>] :name Comma-separated list of data streams to limit the request. Supports wildcards (+*+). To target all data streams, omit this parameter or use +*+ or +_all+. (*Required*)
28
- # @option arguments [String, Array<String>] :expand_wildcards Type of data stream that wildcard patterns can match. Supports comma-separated values, such as +open,hidden+. Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open.
29
- # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response.
30
- # @option arguments [Hash] :headers Custom HTTP headers
31
- #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams-get-lifecycle.html
33
- #
34
- def get_data_lifecycle(arguments = {})
35
- raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
36
-
37
- arguments = arguments.clone
38
- headers = arguments.delete(:headers) || {}
39
-
40
- body = nil
41
-
42
- _name = arguments.delete(:name)
43
-
44
- method = ElasticsearchServerless::API::HTTP_GET
45
- path = "_data_stream/#{Utils.listify(_name)}/_lifecycle"
46
- params = Utils.process_params(arguments)
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
@@ -1,59 +0,0 @@
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 Indices
24
- module Actions
25
- # Returns an index template.
26
- #
27
- # @option arguments [String] :name Comma-separated list of index template names used to limit the request. Wildcard (*) expressions are supported.
28
- # @option arguments [Boolean] :local If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.
29
- # @option arguments [Boolean] :flat_settings If true, returns settings in flat format.
30
- # @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.
31
- # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template.
32
- # @option arguments [Hash] :headers Custom HTTP headers
33
- #
34
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
35
- #
36
- def get_index_template(arguments = {})
37
- arguments = arguments.clone
38
- headers = arguments.delete(:headers) || {}
39
-
40
- body = nil
41
-
42
- _name = arguments.delete(:name)
43
-
44
- method = ElasticsearchServerless::API::HTTP_GET
45
- path = if _name
46
- "_index_template/#{Utils.listify(_name)}"
47
- else
48
- "_index_template"
49
- end
50
- params = Utils.process_params(arguments)
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
@@ -1,60 +0,0 @@
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 Indices
24
- module Actions
25
- # Returns mappings for one or more indices.
26
- #
27
- # @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
28
- # @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. Server default: true.
29
- # @option arguments [String, Array<String>] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such as +open,hidden+. Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open.
30
- # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index.
31
- # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only.
32
- # @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.
33
- # @option arguments [Hash] :headers Custom HTTP headers
34
- #
35
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html
36
- #
37
- def get_mapping(arguments = {})
38
- arguments = arguments.clone
39
- headers = arguments.delete(:headers) || {}
40
-
41
- body = nil
42
-
43
- _index = arguments.delete(:index)
44
-
45
- method = ElasticsearchServerless::API::HTTP_GET
46
- path = if _index
47
- "#{Utils.listify(_index)}/_mapping"
48
- else
49
- "_mapping"
50
- end
51
- params = Utils.process_params(arguments)
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