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,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 MachineLearning
24
- module Actions
25
- # Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle.
26
- #
27
- # @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection jobs in a single API request by using a group name, a comma-separated list of jobs, or a wildcard expression. You can close all jobs by using +_all+ or by specifying +*+ as the job identifier. (*Required*)
28
- # @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no jobs that match; contains the +_all+ string or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty jobs array when there are no matches and the subset of results when there are partial matches. If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true.
29
- # @option arguments [Boolean] :force Use to close a failed job, or to forcefully close a job which has not responded to its initial close request; the request returns without performing the associated actions such as flushing buffers and persisting the model snapshots. If you want the job to be in a consistent state after the close job API returns, do not set to +true+. This parameter should be used only in situations where the job has already failed or where you are not interested in results the job might have recently produced or might produce in the future.
30
- # @option arguments [Time] :timeout Controls the time to wait until a job has closed. Server default: 30m.
31
- # @option arguments [Hash] :headers Custom HTTP headers
32
- # @option arguments [Hash] :body request body
33
- #
34
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html
35
- #
36
- def close_job(arguments = {})
37
- raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
38
-
39
- arguments = arguments.clone
40
- headers = arguments.delete(:headers) || {}
41
-
42
- body = arguments.delete(:body)
43
-
44
- _job_id = arguments.delete(:job_id)
45
-
46
- method = ElasticsearchServerless::API::HTTP_POST
47
- path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_close"
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,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 MachineLearning
24
- module Actions
25
- # Deletes a calendar.
26
- #
27
- # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
28
- # @option arguments [Hash] :headers Custom HTTP headers
29
- #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html
31
- #
32
- def delete_calendar(arguments = {})
33
- raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
34
-
35
- arguments = arguments.clone
36
- headers = arguments.delete(:headers) || {}
37
-
38
- body = nil
39
-
40
- _calendar_id = arguments.delete(:calendar_id)
41
-
42
- method = ElasticsearchServerless::API::HTTP_DELETE
43
- path = "_ml/calendars/#{Utils.listify(_calendar_id)}"
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,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 MachineLearning
24
- module Actions
25
- # Deletes scheduled events from a calendar.
26
- #
27
- # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
28
- # @option arguments [String] :event_id Identifier for the scheduled event. You can obtain this identifier by using the get calendar events API. (*Required*)
29
- # @option arguments [Hash] :headers Custom HTTP headers
30
- #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html
32
- #
33
- def delete_calendar_event(arguments = {})
34
- raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
35
- raise ArgumentError, "Required argument 'event_id' missing" unless arguments[:event_id]
36
-
37
- arguments = arguments.clone
38
- headers = arguments.delete(:headers) || {}
39
-
40
- body = nil
41
-
42
- _calendar_id = arguments.delete(:calendar_id)
43
-
44
- _event_id = arguments.delete(:event_id)
45
-
46
- method = ElasticsearchServerless::API::HTTP_DELETE
47
- path = "_ml/calendars/#{Utils.listify(_calendar_id)}/events/#{Utils.listify(_event_id)}"
48
- params = {}
49
-
50
- ElasticsearchServerless::API::Response.new(
51
- perform_request(method, path, params, body, headers)
52
- )
53
- end
54
- end
55
- end
56
- end
57
- end
@@ -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 MachineLearning
24
- module Actions
25
- # Deletes anomaly detection jobs from a calendar.
26
- #
27
- # @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
28
- # @option arguments [String, Array] :job_id An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. (*Required*)
29
- # @option arguments [Hash] :headers Custom HTTP headers
30
- #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html
32
- #
33
- def delete_calendar_job(arguments = {})
34
- raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
35
- raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
36
-
37
- arguments = arguments.clone
38
- headers = arguments.delete(:headers) || {}
39
-
40
- body = nil
41
-
42
- _calendar_id = arguments.delete(:calendar_id)
43
-
44
- _job_id = arguments.delete(:job_id)
45
-
46
- method = ElasticsearchServerless::API::HTTP_DELETE
47
- path = "_ml/calendars/#{Utils.listify(_calendar_id)}/jobs/#{Utils.listify(_job_id)}"
48
- params = {}
49
-
50
- ElasticsearchServerless::API::Response.new(
51
- perform_request(method, path, params, body, headers)
52
- )
53
- end
54
- end
55
- end
56
- end
57
- end
@@ -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 MachineLearning
24
- module Actions
25
- # Deletes an existing data frame analytics job.
26
- #
27
- # @option arguments [String] :id Identifier for the data frame analytics job. (*Required*)
28
- # @option arguments [Boolean] :force If +true+, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job.
29
- # @option arguments [Time] :timeout The time to wait for the job to be deleted. Server default: 1m.
30
- # @option arguments [Hash] :headers Custom HTTP headers
31
- #
32
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html
33
- #
34
- def delete_data_frame_analytics(arguments = {})
35
- raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
36
-
37
- arguments = arguments.clone
38
- headers = arguments.delete(:headers) || {}
39
-
40
- body = nil
41
-
42
- _id = arguments.delete(:id)
43
-
44
- method = ElasticsearchServerless::API::HTTP_DELETE
45
- path = "_ml/data_frame/analytics/#{Utils.listify(_id)}"
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,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 MachineLearning
24
- module Actions
25
- # Deletes an existing datafeed.
26
- #
27
- # @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. (*Required*)
28
- # @option arguments [Boolean] :force Use to forcefully delete a started datafeed; this method is quicker than stopping and deleting the datafeed.
29
- # @option arguments [Hash] :headers Custom HTTP headers
30
- #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html
32
- #
33
- def delete_datafeed(arguments = {})
34
- raise ArgumentError, "Required argument 'datafeed_id' missing" unless arguments[:datafeed_id]
35
-
36
- arguments = arguments.clone
37
- headers = arguments.delete(:headers) || {}
38
-
39
- body = nil
40
-
41
- _datafeed_id = arguments.delete(:datafeed_id)
42
-
43
- method = ElasticsearchServerless::API::HTTP_DELETE
44
- path = "_ml/datafeeds/#{Utils.listify(_datafeed_id)}"
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,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 MachineLearning
24
- module Actions
25
- # Deletes a filter.
26
- #
27
- # @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*)
28
- # @option arguments [Hash] :headers Custom HTTP headers
29
- #
30
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html
31
- #
32
- def delete_filter(arguments = {})
33
- raise ArgumentError, "Required argument 'filter_id' missing" unless arguments[:filter_id]
34
-
35
- arguments = arguments.clone
36
- headers = arguments.delete(:headers) || {}
37
-
38
- body = nil
39
-
40
- _filter_id = arguments.delete(:filter_id)
41
-
42
- method = ElasticsearchServerless::API::HTTP_DELETE
43
- path = "_ml/filters/#{Utils.listify(_filter_id)}"
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,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 MachineLearning
24
- module Actions
25
- # Deletes an existing anomaly detection job.
26
- #
27
- # @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*)
28
- # @option arguments [Boolean] :force Use to forcefully delete an opened job; this method is quicker than closing and deleting the job.
29
- # @option arguments [Boolean] :delete_user_annotations Specifies whether annotations that have been added by the user should be deleted along with any auto-generated annotations when the job is reset.
30
- # @option arguments [Boolean] :wait_for_completion Specifies whether the request should return immediately or wait until the job deletion completes. Server default: true.
31
- # @option arguments [Hash] :headers Custom HTTP headers
32
- #
33
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html
34
- #
35
- def delete_job(arguments = {})
36
- raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
37
-
38
- arguments = arguments.clone
39
- headers = arguments.delete(:headers) || {}
40
-
41
- body = nil
42
-
43
- _job_id = arguments.delete(:job_id)
44
-
45
- method = ElasticsearchServerless::API::HTTP_DELETE
46
- path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}"
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,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 MachineLearning
24
- module Actions
25
- # Deletes an existing trained inference model that is currently not referenced by an ingest pipeline.
26
- #
27
- # @option arguments [String] :model_id The unique identifier of the trained model. (*Required*)
28
- # @option arguments [Boolean] :force Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment.
29
- # @option arguments [Hash] :headers Custom HTTP headers
30
- #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html
32
- #
33
- def delete_trained_model(arguments = {})
34
- raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]
35
-
36
- arguments = arguments.clone
37
- headers = arguments.delete(:headers) || {}
38
-
39
- body = nil
40
-
41
- _model_id = arguments.delete(:model_id)
42
-
43
- method = ElasticsearchServerless::API::HTTP_DELETE
44
- path = "_ml/trained_models/#{Utils.listify(_model_id)}"
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,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 MachineLearning
24
- module Actions
25
- # Deletes a model alias that refers to the trained model
26
- #
27
- # @option arguments [String] :model_alias The model alias to delete. (*Required*)
28
- # @option arguments [String] :model_id The trained model ID to which the model alias refers. (*Required*)
29
- # @option arguments [Hash] :headers Custom HTTP headers
30
- #
31
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models-aliases.html
32
- #
33
- def delete_trained_model_alias(arguments = {})
34
- raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]
35
- raise ArgumentError, "Required argument 'model_alias' missing" unless arguments[:model_alias]
36
-
37
- arguments = arguments.clone
38
- headers = arguments.delete(:headers) || {}
39
-
40
- body = nil
41
-
42
- _model_alias = arguments.delete(:model_alias)
43
-
44
- _model_id = arguments.delete(:model_id)
45
-
46
- method = ElasticsearchServerless::API::HTTP_DELETE
47
- path = "_ml/trained_models/#{Utils.listify(_model_id)}/model_aliases/#{Utils.listify(_model_alias)}"
48
- params = {}
49
-
50
- ElasticsearchServerless::API::Response.new(
51
- perform_request(method, path, params, body, headers)
52
- )
53
- end
54
- end
55
- end
56
- end
57
- end
@@ -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 MachineLearning
24
- module Actions
25
- # Estimates the model memory
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/current/ml-apis.html
31
- #
32
- def estimate_model_memory(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 = "_ml/anomaly_detectors/_estimate_model_memory"
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,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 MachineLearning
24
- module Actions
25
- # Evaluates the data frame analytics for an annotated index.
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/current/evaluate-dfanalytics.html
31
- #
32
- def evaluate_data_frame(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 = "_ml/data_frame/_evaluate"
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