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
@@ -1,69 +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 settings 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 [String, Array<String>] :name Comma-separated list or wildcard expression of settings to retrieve.
29
- # @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.
30
- # @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+. Server default: open.
31
- # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format.
32
- # @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index.
33
- # @option arguments [Boolean] :include_defaults If +true+, return all default settings in the response.
34
- # @option arguments [Boolean] :local If +true+, the request retrieves information from the local node only. If +false+, information is retrieved from the master node.
35
- # @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.
36
- # @option arguments [Hash] :headers Custom HTTP headers
37
- #
38
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html
39
- #
40
- def get_settings(arguments = {})
41
- arguments = arguments.clone
42
- headers = arguments.delete(:headers) || {}
43
-
44
- body = nil
45
-
46
- _index = arguments.delete(:index)
47
-
48
- _name = arguments.delete(:name)
49
-
50
- method = ElasticsearchServerless::API::HTTP_GET
51
- path = if _index && _name
52
- "#{Utils.listify(_index)}/_settings/#{Utils.listify(_name)}"
53
- elsif _index
54
- "#{Utils.listify(_index)}/_settings"
55
- elsif _name
56
- "_settings/#{Utils.listify(_name)}"
57
- else
58
- "_settings"
59
- end
60
- params = Utils.process_params(arguments)
61
-
62
- ElasticsearchServerless::API::Response.new(
63
- perform_request(method, path, params, body, headers)
64
- )
65
- end
66
- end
67
- end
68
- end
69
- end
@@ -1,53 +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
- # Migrates an alias to a data stream
26
- #
27
- # @option arguments [String] :name Name of the index alias to convert to a data stream. (*Required*)
28
- # @option arguments [Hash] :headers Custom HTTP headers
29
- #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html
31
- #
32
- def migrate_to_data_stream(arguments = {})
33
- raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
34
-
35
- arguments = arguments.clone
36
- headers = arguments.delete(:headers) || {}
37
-
38
- body = nil
39
-
40
- _name = arguments.delete(:name)
41
-
42
- method = ElasticsearchServerless::API::HTTP_POST
43
- path = "_data_stream/_migrate/#{Utils.listify(_name)}"
44
- params = {}
45
-
46
- ElasticsearchServerless::API::Response.new(
47
- perform_request(method, path, params, body, headers)
48
- )
49
- end
50
- end
51
- end
52
- end
53
- end
@@ -1,51 +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
- # Modifies a data stream
26
- #
27
- # @option arguments [Hash] :headers Custom HTTP headers
28
- # @option arguments [Hash] :body request body
29
- #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html
31
- #
32
- def modify_data_stream(arguments = {})
33
- raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
34
-
35
- arguments = arguments.clone
36
- headers = arguments.delete(:headers) || {}
37
-
38
- body = arguments.delete(:body)
39
-
40
- method = ElasticsearchServerless::API::HTTP_POST
41
- path = "_data_stream/_modify"
42
- params = {}
43
-
44
- ElasticsearchServerless::API::Response.new(
45
- perform_request(method, path, params, body, headers)
46
- )
47
- end
48
- end
49
- end
50
- end
51
- end
@@ -1,57 +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
- # Updates the data stream lifecycle of the selected data streams.
26
- #
27
- # @option arguments [String, Array<String>] :name Comma-separated list of data streams used to limit the request. Supports wildcards (+*+). To target all data streams 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+, +hidden+, +open+, +closed+, +none+. Server default: open.
29
- # @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.
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.
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/master/data-streams-put-lifecycle.html
35
- #
36
- def put_data_lifecycle(arguments = {})
37
- raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
38
-
39
- arguments = arguments.clone
40
- headers = arguments.delete(:headers) || {}
41
-
42
- body = arguments.delete(:body)
43
-
44
- _name = arguments.delete(:name)
45
-
46
- method = ElasticsearchServerless::API::HTTP_PUT
47
- path = "_data_stream/#{Utils.listify(_name)}/_lifecycle"
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
@@ -1,61 +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
- # Updates the index mappings.
26
- #
27
- # @option arguments [String, Array] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use +_all+ or omit to add the mapping on all indices. (*Required*)
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 [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.
32
- # @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.
33
- # @option arguments [Boolean] :write_index_only If +true+, the mappings are applied only to the current write index for the target.
34
- # @option arguments [Hash] :headers Custom HTTP headers
35
- # @option arguments [Hash] :body request body
36
- #
37
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html
38
- #
39
- def put_mapping(arguments = {})
40
- raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
41
- raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
42
-
43
- arguments = arguments.clone
44
- headers = arguments.delete(:headers) || {}
45
-
46
- body = arguments.delete(:body)
47
-
48
- _index = arguments.delete(:index)
49
-
50
- method = ElasticsearchServerless::API::HTTP_PUT
51
- path = "#{Utils.listify(_index)}/_mapping"
52
- params = Utils.process_params(arguments)
53
-
54
- ElasticsearchServerless::API::Response.new(
55
- perform_request(method, path, params, body, headers)
56
- )
57
- end
58
- end
59
- end
60
- end
61
- end
@@ -1,65 +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
- # Updates the index settings.
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. For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+.
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+. Server default: open.
30
- # @option arguments [Boolean] :flat_settings If +true+, returns settings in flat format.
31
- # @option arguments [Boolean] :ignore_unavailable If +true+, returns settings in flat format.
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 [Boolean] :preserve_existing If +true+, existing index settings remain unchanged.
34
- # @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.
35
- # @option arguments [Hash] :headers Custom HTTP headers
36
- # @option arguments [Hash] :body settings
37
- #
38
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html
39
- #
40
- def put_settings(arguments = {})
41
- raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
42
-
43
- arguments = arguments.clone
44
- headers = arguments.delete(:headers) || {}
45
-
46
- body = arguments.delete(:body)
47
-
48
- _index = arguments.delete(:index)
49
-
50
- method = ElasticsearchServerless::API::HTTP_PUT
51
- path = if _index
52
- "#{Utils.listify(_index)}/_settings"
53
- else
54
- "_settings"
55
- end
56
- params = Utils.process_params(arguments)
57
-
58
- ElasticsearchServerless::API::Response.new(
59
- perform_request(method, path, params, body, headers)
60
- )
61
- end
62
- end
63
- end
64
- end
65
- 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
- # Creates or updates an index template.
26
- #
27
- # @option arguments [String] :name The name of the template (*Required*)
28
- # @option arguments [Boolean] :create If true, this request cannot replace or update existing index templates.
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 [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.
32
- # @option arguments [Integer] :order Order in which Elasticsearch applies this template if index matches multiple templates. Templates with lower 'order' values are merged first. Templates with higher 'order' values are merged later, overriding templates with lower values.
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/master/indices-templates.html
37
- #
38
- def put_template(arguments = {})
39
- raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
40
- raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
41
-
42
- arguments = arguments.clone
43
- headers = arguments.delete(:headers) || {}
44
-
45
- body = arguments.delete(:body)
46
-
47
- _name = arguments.delete(:name)
48
-
49
- method = ElasticsearchServerless::API::HTTP_PUT
50
- path = "_template/#{Utils.listify(_name)}"
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
@@ -1,54 +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 any matching indices, aliases, and data streams
26
- #
27
- # @option arguments [String, Array<String>] :name Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve. Resources on remote clusters can be specified using the +<cluster>+:+<name>+ syntax. (*Required*)
28
- # @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.
29
- # @option arguments [Hash] :headers Custom HTTP headers
30
- #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html
32
- #
33
- def resolve_index(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_GET
44
- path = "_resolve/index/#{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
- end
52
- end
53
- end
54
- end
@@ -1,66 +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
- # Updates an alias to point to a new index when the existing index
26
- # is considered to be too large or too old.
27
- #
28
- # @option arguments [String] :alias Name of the data stream or index alias to roll over. (*Required*)
29
- # @option arguments [String] :new_index Name of the index to create. Supports date math. Data streams do not support this parameter.
30
- # @option arguments [Boolean] :dry_run If +true+, checks whether the current index satisfies the specified conditions but does not perform a rollover.
31
- # @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.
32
- # @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.
33
- # @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1.
34
- # @option arguments [Hash] :headers Custom HTTP headers
35
- # @option arguments [Hash] :body request body
36
- #
37
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-rollover-index.html
38
- #
39
- def rollover(arguments = {})
40
- raise ArgumentError, "Required argument 'alias' missing" unless arguments[:alias]
41
-
42
- arguments = arguments.clone
43
- headers = arguments.delete(:headers) || {}
44
-
45
- body = arguments.delete(:body)
46
-
47
- _alias = arguments.delete(:alias)
48
-
49
- _new_index = arguments.delete(:new_index)
50
-
51
- method = ElasticsearchServerless::API::HTTP_POST
52
- path = if _alias && _new_index
53
- "#{Utils.listify(_alias)}/_rollover/#{Utils.listify(_new_index)}"
54
- else
55
- "#{Utils.listify(_alias)}/_rollover"
56
- end
57
- params = Utils.process_params(arguments)
58
-
59
- ElasticsearchServerless::API::Response.new(
60
- perform_request(method, path, params, body, headers)
61
- )
62
- end
63
- end
64
- end
65
- end
66
- end
@@ -1,57 +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
- # Simulate matching the given index name against the index templates in the system
26
- #
27
- # @option arguments [String] :name Index or template name to simulate (*Required*)
28
- # @option arguments [Boolean] :create If +true+, the template passed in the body is only used if no existing templates match the same index patterns. If +false+, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.
29
- # @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.
30
- # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template.
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/master/indices-templates.html
35
- #
36
- def simulate_index_template(arguments = {})
37
- raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
38
-
39
- arguments = arguments.clone
40
- headers = arguments.delete(:headers) || {}
41
-
42
- body = arguments.delete(:body)
43
-
44
- _name = arguments.delete(:name)
45
-
46
- method = ElasticsearchServerless::API::HTTP_POST
47
- path = "_index_template/_simulate_index/#{Utils.listify(_name)}"
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
@@ -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
- # Simulate resolving the given template name or body
26
- #
27
- # @option arguments [String] :name Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit this parameter and specify the template configuration in the request body.
28
- # @option arguments [Boolean] :create If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.
29
- # @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.
30
- # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template.
31
- # @option arguments [Hash] :headers Custom HTTP headers
32
- # @option arguments [Hash] :body template
33
- #
34
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html
35
- #
36
- def simulate_template(arguments = {})
37
- arguments = arguments.clone
38
- headers = arguments.delete(:headers) || {}
39
-
40
- body = arguments.delete(:body)
41
-
42
- _name = arguments.delete(:name)
43
-
44
- method = ElasticsearchServerless::API::HTTP_POST
45
- path = if _name
46
- "_index_template/_simulate/#{Utils.listify(_name)}"
47
- else
48
- "_index_template/_simulate"
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