elasticsearch-api 8.17.0 → 8.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/elasticsearch-api.gemspec +2 -1
- data/lib/elasticsearch/api/actions/async_search/submit.rb +1 -0
- data/lib/elasticsearch/api/actions/esql/async_query_delete.rb +60 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +3 -1
- data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +1 -0
- data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +3 -1
- data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +3 -1
- data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +3 -1
- data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +3 -1
- data/lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb +50 -0
- data/lib/elasticsearch/api/actions/indices/put_template.rb +1 -0
- data/lib/elasticsearch/api/actions/inference/delete.rb +0 -4
- data/lib/elasticsearch/api/actions/inference/get.rb +0 -4
- data/lib/elasticsearch/api/actions/inference/inference.rb +0 -4
- data/lib/elasticsearch/api/actions/inference/put.rb +0 -4
- data/lib/elasticsearch/api/actions/inference/stream_inference.rb +0 -4
- data/lib/elasticsearch/api/actions/inference/update.rb +68 -0
- data/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +3 -1
- data/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +3 -1
- data/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +3 -1
- data/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +3 -1
- data/lib/elasticsearch/api/actions/license/post_start_trial.rb +0 -1
- data/lib/elasticsearch/api/actions/security/delegate_pki.rb +53 -0
- data/lib/elasticsearch/api/actions/shutdown/delete_node.rb +3 -1
- data/lib/elasticsearch/api/actions/shutdown/put_node.rb +3 -1
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +3 -1
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +3 -1
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +3 -1
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +3 -1
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +3 -1
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +3 -1
- data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +3 -1
- data/lib/elasticsearch/api/actions/xpack/info.rb +1 -0
- data/lib/elasticsearch/api/version.rb +1 -1
- data/spec/elasticsearch/api/actions/esql/async_query_delete_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/indices/get_data_lifecycle_stats_spec.rb +35 -0
- data/spec/elasticsearch/api/actions/inference/update_spec.rb +36 -0
- data/spec/elasticsearch/api/actions/ingest/delete_geoip_database_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/ingest/delete_ip_location_database_spec.rb +1 -1
- data/spec/elasticsearch/api/actions/security/delegate_pki_spec.rb +39 -0
- data/utils/Gemfile +1 -1
- metadata +29 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f8931f19feeba381f258cb202debeed2c2b7b6970fa7d4bf06992fc4311a988
|
4
|
+
data.tar.gz: 5d1bdadbf3c6095d16253db9b3121674b2f9e866d1af5efbd9c94b7c9accbd8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8369cac08284af0127245060397c0af513e118ef48bed3283b462182155975a425461876a8fafdbffa3886d9528f05a336eeabf002bdde94fe67d129fb890b1c
|
7
|
+
data.tar.gz: 0130b25b552bd46a5352ff3b103d4e3b2b55d0d81df64dd3c391f544e0c67ada44e84924114dcfd8c1c182fdb705340ed9b32c5f9bcc85bee81868e3d46945ab
|
data/elasticsearch-api.gemspec
CHANGED
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
|
|
49
49
|
s.add_development_dependency 'ansi'
|
50
50
|
s.add_development_dependency 'bundler'
|
51
51
|
s.add_development_dependency 'elasticsearch'
|
52
|
-
s.add_development_dependency 'elasticsearch-test-runner' unless defined?(JRUBY_VERSION) && JRUBY_VERSION <=
|
52
|
+
s.add_development_dependency 'elasticsearch-test-runner' unless defined?(JRUBY_VERSION) && JRUBY_VERSION <= '9.4'
|
53
53
|
s.add_development_dependency 'minitest'
|
54
54
|
s.add_development_dependency 'minitest-reporters', '>= 1.6'
|
55
55
|
s.add_development_dependency 'mocha'
|
@@ -59,6 +59,7 @@ Gem::Specification.new do |s|
|
|
59
59
|
s.add_development_dependency 'yard'
|
60
60
|
|
61
61
|
# Gems for testing integrations
|
62
|
+
s.add_development_dependency 'concurrent-ruby', '1.3.4' if defined? JRUBY_VERSION && JRUBY_VERSION < '9.4'
|
62
63
|
s.add_development_dependency 'jsonify'
|
63
64
|
s.add_development_dependency 'hashie'
|
64
65
|
# Temporary support for Ruby 2.6, since it's EOL March 2022:
|
@@ -27,6 +27,7 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
|
28
28
|
# @option arguments [Time] :wait_for_completion_timeout Specify the time that the request should block waiting for the final response
|
29
29
|
# @option arguments [Boolean] :keep_on_completion Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)
|
30
|
+
# @option arguments [Time] :keep_alive Update the time interval in which the results (partial or final) for this search will be available
|
30
31
|
# @option arguments [Number] :batched_reduce_size The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.
|
31
32
|
# @option arguments [Boolean] :request_cache Specify if request cache should be used for this request or not, defaults to true
|
32
33
|
# @option arguments [String] :analyzer The analyzer to use for the query string
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
|
20
|
+
#
|
21
|
+
module Elasticsearch
|
22
|
+
module API
|
23
|
+
module Esql
|
24
|
+
module Actions
|
25
|
+
# Delete an async query request given its ID.
|
26
|
+
#
|
27
|
+
# @option arguments [String] :id The async query ID
|
28
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
29
|
+
#
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/esql-async-query-delete-api.html
|
31
|
+
#
|
32
|
+
def async_query_delete(arguments = {})
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'esql.async_query_delete' }
|
34
|
+
|
35
|
+
defined_params = [:id].each_with_object({}) do |variable, set_variables|
|
36
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
37
|
+
end
|
38
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
39
|
+
|
40
|
+
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
41
|
+
|
42
|
+
arguments = arguments.clone
|
43
|
+
headers = arguments.delete(:headers) || {}
|
44
|
+
|
45
|
+
body = nil
|
46
|
+
|
47
|
+
_id = arguments.delete(:id)
|
48
|
+
|
49
|
+
method = Elasticsearch::API::HTTP_DELETE
|
50
|
+
path = "_query/async/#{Utils.__listify(_id)}"
|
51
|
+
params = {}
|
52
|
+
|
53
|
+
Elasticsearch::API::Response.new(
|
54
|
+
perform_request(method, path, params, body, headers, request_opts)
|
55
|
+
)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :policy The name of the index lifecycle policy
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-delete-lifecycle.html
|
@@ -48,7 +50,7 @@ module Elasticsearch
|
|
48
50
|
|
49
51
|
method = Elasticsearch::API::HTTP_DELETE
|
50
52
|
path = "_ilm/policy/#{Utils.__listify(_policy)}"
|
51
|
-
params =
|
53
|
+
params = Utils.process_params(arguments)
|
52
54
|
|
53
55
|
Elasticsearch::API::Response.new(
|
54
56
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -27,6 +27,7 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [String] :index The name of the index to explain
|
28
28
|
# @option arguments [Boolean] :only_managed filters the indices included in the response to ones managed by ILM
|
29
29
|
# @option arguments [Boolean] :only_errors filters the indices included in the response to ones in an ILM error state, implies only_managed
|
30
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
30
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
31
32
|
#
|
32
33
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-explain-lifecycle.html
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Returns the specified policy definition. Includes the policy version and last modified date.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :policy The name of the index lifecycle policy
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-lifecycle.html
|
@@ -50,7 +52,7 @@ module Elasticsearch
|
|
50
52
|
else
|
51
53
|
'_ilm/policy'
|
52
54
|
end
|
53
|
-
params =
|
55
|
+
params = Utils.process_params(arguments)
|
54
56
|
|
55
57
|
Elasticsearch::API::Response.new(
|
56
58
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Creates a lifecycle policy
|
26
26
|
#
|
27
27
|
# @option arguments [String] :policy The name of the index lifecycle policy
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
# @option arguments [Hash] :body The lifecycle policy definition to register
|
30
32
|
#
|
@@ -49,7 +51,7 @@ module Elasticsearch
|
|
49
51
|
|
50
52
|
method = Elasticsearch::API::HTTP_PUT
|
51
53
|
path = "_ilm/policy/#{Utils.__listify(_policy)}"
|
52
|
-
params =
|
54
|
+
params = Utils.process_params(arguments)
|
53
55
|
|
54
56
|
Elasticsearch::API::Response.new(
|
55
57
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -24,6 +24,8 @@ module Elasticsearch
|
|
24
24
|
module Actions
|
25
25
|
# Start the index lifecycle management (ILM) plugin.
|
26
26
|
#
|
27
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
28
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
27
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
30
|
#
|
29
31
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-start.html
|
@@ -38,7 +40,7 @@ module Elasticsearch
|
|
38
40
|
|
39
41
|
method = Elasticsearch::API::HTTP_POST
|
40
42
|
path = '_ilm/start'
|
41
|
-
params =
|
43
|
+
params = Utils.process_params(arguments)
|
42
44
|
|
43
45
|
Elasticsearch::API::Response.new(
|
44
46
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -24,6 +24,8 @@ module Elasticsearch
|
|
24
24
|
module Actions
|
25
25
|
# Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin
|
26
26
|
#
|
27
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
28
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
27
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
30
|
#
|
29
31
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-stop.html
|
@@ -38,7 +40,7 @@ module Elasticsearch
|
|
38
40
|
|
39
41
|
method = Elasticsearch::API::HTTP_POST
|
40
42
|
path = '_ilm/stop'
|
41
|
-
params =
|
43
|
+
params = Utils.process_params(arguments)
|
42
44
|
|
43
45
|
Elasticsearch::API::Response.new(
|
44
46
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -0,0 +1,50 @@
|
|
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 build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
|
20
|
+
#
|
21
|
+
module Elasticsearch
|
22
|
+
module API
|
23
|
+
module Indices
|
24
|
+
module Actions
|
25
|
+
# Get data stream lifecycle statistics.
|
26
|
+
#
|
27
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
28
|
+
#
|
29
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/data-streams-get-lifecycle-stats.html
|
30
|
+
#
|
31
|
+
def get_data_lifecycle_stats(arguments = {})
|
32
|
+
request_opts = { endpoint: arguments[:endpoint] || 'indices.get_data_lifecycle_stats' }
|
33
|
+
|
34
|
+
arguments = arguments.clone
|
35
|
+
headers = arguments.delete(:headers) || {}
|
36
|
+
|
37
|
+
body = nil
|
38
|
+
|
39
|
+
method = Elasticsearch::API::HTTP_GET
|
40
|
+
path = '_lifecycle/stats'
|
41
|
+
params = {}
|
42
|
+
|
43
|
+
Elasticsearch::API::Response.new(
|
44
|
+
perform_request(method, path, params, body, headers, request_opts)
|
45
|
+
)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -27,6 +27,7 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [String] :name The name of the template
|
28
28
|
# @option arguments [Number] :order The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)
|
29
29
|
# @option arguments [Boolean] :create Whether the index template should only be added if new or can also replace an existing one
|
30
|
+
# @option arguments [String] :cause User defined reason for creating/updating the index template
|
30
31
|
# @option arguments [Time] :master_timeout Specify timeout for connection to master
|
31
32
|
# @option arguments [Hash] :headers Custom HTTP headers
|
32
33
|
# @option arguments [Hash] :body The template definition (*Required*)
|
@@ -23,10 +23,6 @@ module Elasticsearch
|
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
25
|
# Delete an inference endpoint
|
26
|
-
# This functionality is Experimental and may be changed or removed
|
27
|
-
# completely in a future release. Elastic will take a best effort approach
|
28
|
-
# to fix any issues, but experimental features are not subject to the
|
29
|
-
# support SLA of official GA features.
|
30
26
|
#
|
31
27
|
# @option arguments [String] :inference_id The inference Id
|
32
28
|
# @option arguments [String] :task_type The task type
|
@@ -23,10 +23,6 @@ module Elasticsearch
|
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
25
|
# Get an inference endpoint
|
26
|
-
# This functionality is Experimental and may be changed or removed
|
27
|
-
# completely in a future release. Elastic will take a best effort approach
|
28
|
-
# to fix any issues, but experimental features are not subject to the
|
29
|
-
# support SLA of official GA features.
|
30
26
|
#
|
31
27
|
# @option arguments [String] :inference_id The inference Id
|
32
28
|
# @option arguments [String] :task_type The task type
|
@@ -23,10 +23,6 @@ module Elasticsearch
|
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
25
|
# Perform inference
|
26
|
-
# This functionality is Experimental and may be changed or removed
|
27
|
-
# completely in a future release. Elastic will take a best effort approach
|
28
|
-
# to fix any issues, but experimental features are not subject to the
|
29
|
-
# support SLA of official GA features.
|
30
26
|
#
|
31
27
|
# @option arguments [String] :inference_id The inference Id
|
32
28
|
# @option arguments [String] :task_type The task type
|
@@ -23,10 +23,6 @@ module Elasticsearch
|
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
25
|
# Configure an inference endpoint for use in the Inference API
|
26
|
-
# This functionality is Experimental and may be changed or removed
|
27
|
-
# completely in a future release. Elastic will take a best effort approach
|
28
|
-
# to fix any issues, but experimental features are not subject to the
|
29
|
-
# support SLA of official GA features.
|
30
26
|
#
|
31
27
|
# @option arguments [String] :inference_id The inference Id
|
32
28
|
# @option arguments [String] :task_type The task type
|
@@ -23,10 +23,6 @@ module Elasticsearch
|
|
23
23
|
module Inference
|
24
24
|
module Actions
|
25
25
|
# Perform streaming inference
|
26
|
-
# This functionality is Experimental and may be changed or removed
|
27
|
-
# completely in a future release. Elastic will take a best effort approach
|
28
|
-
# to fix any issues, but experimental features are not subject to the
|
29
|
-
# support SLA of official GA features.
|
30
26
|
#
|
31
27
|
# @option arguments [String] :inference_id The inference Id
|
32
28
|
# @option arguments [String] :task_type The task type
|
@@ -0,0 +1,68 @@
|
|
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 build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
|
20
|
+
#
|
21
|
+
module Elasticsearch
|
22
|
+
module API
|
23
|
+
module Inference
|
24
|
+
module Actions
|
25
|
+
# Update inference
|
26
|
+
#
|
27
|
+
# @option arguments [String] :inference_id The inference Id
|
28
|
+
# @option arguments [String] :task_type The task type
|
29
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
+
# @option arguments [Hash] :body The inference endpoint's task and service settings
|
31
|
+
#
|
32
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-inference-api.html
|
33
|
+
#
|
34
|
+
def update(arguments = {})
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || 'inference.update' }
|
36
|
+
|
37
|
+
defined_params = %i[inference_id task_type].each_with_object({}) do |variable, set_variables|
|
38
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
+
end
|
40
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
41
|
+
|
42
|
+
raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id]
|
43
|
+
|
44
|
+
arguments = arguments.clone
|
45
|
+
headers = arguments.delete(:headers) || {}
|
46
|
+
|
47
|
+
body = arguments.delete(:body)
|
48
|
+
|
49
|
+
_inference_id = arguments.delete(:inference_id)
|
50
|
+
|
51
|
+
_task_type = arguments.delete(:task_type)
|
52
|
+
|
53
|
+
method = Elasticsearch::API::HTTP_POST
|
54
|
+
path = if _task_type && _inference_id
|
55
|
+
"_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}/_update"
|
56
|
+
else
|
57
|
+
"_inference/#{Utils.__listify(_inference_id)}/_update"
|
58
|
+
end
|
59
|
+
params = {}
|
60
|
+
|
61
|
+
Elasticsearch::API::Response.new(
|
62
|
+
perform_request(method, path, params, body, headers, request_opts)
|
63
|
+
)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Deletes a geoip database configuration
|
26
26
|
#
|
27
27
|
# @option arguments [List] :id A comma-separated list of geoip database configurations to delete
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-geoip-database-api.html
|
@@ -48,7 +50,7 @@ module Elasticsearch
|
|
48
50
|
|
49
51
|
method = Elasticsearch::API::HTTP_DELETE
|
50
52
|
path = "_ingest/geoip/database/#{Utils.__listify(_id)}"
|
51
|
-
params =
|
53
|
+
params = Utils.process_params(arguments)
|
52
54
|
|
53
55
|
Elasticsearch::API::Response.new(
|
54
56
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Deletes an ip location database configuration
|
26
26
|
#
|
27
27
|
# @option arguments [List] :id A comma-separated list of ip location database configurations to delete
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-ip-location-database-api.html
|
@@ -48,7 +50,7 @@ module Elasticsearch
|
|
48
50
|
|
49
51
|
method = Elasticsearch::API::HTTP_DELETE
|
50
52
|
path = "_ingest/ip_location/database/#{Utils.__listify(_id)}"
|
51
|
-
params =
|
53
|
+
params = Utils.process_params(arguments)
|
52
54
|
|
53
55
|
Elasticsearch::API::Response.new(
|
54
56
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Puts the configuration for a geoip database to be downloaded
|
26
26
|
#
|
27
27
|
# @option arguments [String] :id The id of the database configuration
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
# @option arguments [Hash] :body The database configuration definition (*Required*)
|
30
32
|
#
|
@@ -50,7 +52,7 @@ module Elasticsearch
|
|
50
52
|
|
51
53
|
method = Elasticsearch::API::HTTP_PUT
|
52
54
|
path = "_ingest/geoip/database/#{Utils.__listify(_id)}"
|
53
|
-
params =
|
55
|
+
params = Utils.process_params(arguments)
|
54
56
|
|
55
57
|
Elasticsearch::API::Response.new(
|
56
58
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Puts the configuration for a ip location database to be downloaded
|
26
26
|
#
|
27
27
|
# @option arguments [String] :id The id of the database configuration
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
# @option arguments [Hash] :body The database configuration definition (*Required*)
|
30
32
|
#
|
@@ -50,7 +52,7 @@ module Elasticsearch
|
|
50
52
|
|
51
53
|
method = Elasticsearch::API::HTTP_PUT
|
52
54
|
path = "_ingest/ip_location/database/#{Utils.__listify(_id)}"
|
53
|
-
params =
|
55
|
+
params = Utils.process_params(arguments)
|
54
56
|
|
55
57
|
Elasticsearch::API::Response.new(
|
56
58
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -27,7 +27,6 @@ module Elasticsearch
|
|
27
27
|
# @option arguments [String] :type The type of trial license to generate (default: "trial")
|
28
28
|
# @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false)
|
29
29
|
# @option arguments [Time] :master_timeout Timeout for processing on master node
|
30
|
-
# @option arguments [Time] :timeout Timeout for acknowledgement of update from all nodes in cluster
|
31
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
32
31
|
#
|
33
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/start-trial.html
|
@@ -0,0 +1,53 @@
|
|
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 build hash f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec
|
20
|
+
#
|
21
|
+
module Elasticsearch
|
22
|
+
module API
|
23
|
+
module Security
|
24
|
+
module Actions
|
25
|
+
# Delegate PKI authentication.
|
26
|
+
#
|
27
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
28
|
+
# @option arguments [Hash] :body The X509Certificate chain. (*Required*)
|
29
|
+
#
|
30
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/security-api-delegate-pki-authentication.html
|
31
|
+
#
|
32
|
+
def delegate_pki(arguments = {})
|
33
|
+
request_opts = { endpoint: arguments[:endpoint] || 'security.delegate_pki' }
|
34
|
+
|
35
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
|
+
|
37
|
+
arguments = arguments.clone
|
38
|
+
headers = arguments.delete(:headers) || {}
|
39
|
+
|
40
|
+
body = arguments.delete(:body)
|
41
|
+
|
42
|
+
method = Elasticsearch::API::HTTP_POST
|
43
|
+
path = '_security/delegate_pki'
|
44
|
+
params = {}
|
45
|
+
|
46
|
+
Elasticsearch::API::Response.new(
|
47
|
+
perform_request(method, path, params, body, headers, request_opts)
|
48
|
+
)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Removes a node from the shutdown list. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :node_id The node id of node to be removed from the shutdown state
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current
|
@@ -48,7 +50,7 @@ module Elasticsearch
|
|
48
50
|
|
49
51
|
method = Elasticsearch::API::HTTP_DELETE
|
50
52
|
path = "_nodes/#{Utils.__listify(_node_id)}/shutdown"
|
51
|
-
params =
|
53
|
+
params = Utils.process_params(arguments)
|
52
54
|
|
53
55
|
Elasticsearch::API::Response.new(
|
54
56
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Adds a node to be shut down. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :node_id The node id of node to be shut down
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
# @option arguments [Hash] :body The shutdown type definition to register (*Required*)
|
30
32
|
#
|
@@ -50,7 +52,7 @@ module Elasticsearch
|
|
50
52
|
|
51
53
|
method = Elasticsearch::API::HTTP_PUT
|
52
54
|
path = "_nodes/#{Utils.__listify(_node_id)}/shutdown"
|
53
|
-
params =
|
55
|
+
params = Utils.process_params(arguments)
|
54
56
|
|
55
57
|
Elasticsearch::API::Response.new(
|
56
58
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Deletes an existing snapshot lifecycle policy.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :policy_id The id of the snapshot lifecycle policy to remove
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-delete-policy.html
|
@@ -48,7 +50,7 @@ module Elasticsearch
|
|
48
50
|
|
49
51
|
method = Elasticsearch::API::HTTP_DELETE
|
50
52
|
path = "_slm/policy/#{Utils.__listify(_policy_id)}"
|
51
|
-
params =
|
53
|
+
params = Utils.process_params(arguments)
|
52
54
|
|
53
55
|
Elasticsearch::API::Response.new(
|
54
56
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :policy_id The id of the snapshot lifecycle policy to be executed
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-execute-lifecycle.html
|
@@ -48,7 +50,7 @@ module Elasticsearch
|
|
48
50
|
|
49
51
|
method = Elasticsearch::API::HTTP_PUT
|
50
52
|
path = "_slm/policy/#{Utils.__listify(_policy_id)}/_execute"
|
51
|
-
params =
|
53
|
+
params = Utils.process_params(arguments)
|
52
54
|
|
53
55
|
Elasticsearch::API::Response.new(
|
54
56
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -24,6 +24,8 @@ module Elasticsearch
|
|
24
24
|
module Actions
|
25
25
|
# Deletes any snapshots that are expired according to the policy's retention rules.
|
26
26
|
#
|
27
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
28
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
27
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
30
|
#
|
29
31
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-execute-retention.html
|
@@ -38,7 +40,7 @@ module Elasticsearch
|
|
38
40
|
|
39
41
|
method = Elasticsearch::API::HTTP_POST
|
40
42
|
path = '_slm/_execute_retention'
|
41
|
-
params =
|
43
|
+
params = Utils.process_params(arguments)
|
42
44
|
|
43
45
|
Elasticsearch::API::Response.new(
|
44
46
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts.
|
26
26
|
#
|
27
27
|
# @option arguments [List] :policy_id Comma-separated list of snapshot lifecycle policies to retrieve
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
#
|
30
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-policy.html
|
@@ -50,7 +52,7 @@ module Elasticsearch
|
|
50
52
|
else
|
51
53
|
'_slm/policy'
|
52
54
|
end
|
53
|
-
params =
|
55
|
+
params = Utils.process_params(arguments)
|
54
56
|
|
55
57
|
Elasticsearch::API::Response.new(
|
56
58
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -24,6 +24,8 @@ module Elasticsearch
|
|
24
24
|
module Actions
|
25
25
|
# Returns global and policy-level statistics about actions taken by snapshot lifecycle management.
|
26
26
|
#
|
27
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
28
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
27
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
30
|
#
|
29
31
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-stats.html
|
@@ -38,7 +40,7 @@ module Elasticsearch
|
|
38
40
|
|
39
41
|
method = Elasticsearch::API::HTTP_GET
|
40
42
|
path = '_slm/stats'
|
41
|
-
params =
|
43
|
+
params = Utils.process_params(arguments)
|
42
44
|
|
43
45
|
Elasticsearch::API::Response.new(
|
44
46
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -24,6 +24,8 @@ module Elasticsearch
|
|
24
24
|
module Actions
|
25
25
|
# Retrieves the status of snapshot lifecycle management (SLM).
|
26
26
|
#
|
27
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
28
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
27
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
30
|
#
|
29
31
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-status.html
|
@@ -38,7 +40,7 @@ module Elasticsearch
|
|
38
40
|
|
39
41
|
method = Elasticsearch::API::HTTP_GET
|
40
42
|
path = '_slm/status'
|
41
|
-
params =
|
43
|
+
params = Utils.process_params(arguments)
|
42
44
|
|
43
45
|
Elasticsearch::API::Response.new(
|
44
46
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -25,6 +25,8 @@ module Elasticsearch
|
|
25
25
|
# Creates or updates a snapshot lifecycle policy.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :policy_id The id of the snapshot lifecycle policy
|
28
|
+
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
|
29
|
+
# @option arguments [Time] :timeout Explicit operation timeout
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
29
31
|
# @option arguments [Hash] :body The snapshot lifecycle policy definition to register
|
30
32
|
#
|
@@ -49,7 +51,7 @@ module Elasticsearch
|
|
49
51
|
|
50
52
|
method = Elasticsearch::API::HTTP_PUT
|
51
53
|
path = "_slm/policy/#{Utils.__listify(_policy_id)}"
|
52
|
-
params =
|
54
|
+
params = Utils.process_params(arguments)
|
53
55
|
|
54
56
|
Elasticsearch::API::Response.new(
|
55
57
|
perform_request(method, path, params, body, headers, request_opts)
|
@@ -24,6 +24,7 @@ module Elasticsearch
|
|
24
24
|
module Actions
|
25
25
|
# Retrieves information about the installed X-Pack features.
|
26
26
|
#
|
27
|
+
# @option arguments [Boolean] :human Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line. The default value is true.
|
27
28
|
# @option arguments [List] :categories Comma-separated list of info categories. Can be any of: build, license, features
|
28
29
|
# @option arguments [Boolean] :accept_enterprise If this param is used it must be set to true *Deprecated*
|
29
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -0,0 +1,35 @@
|
|
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
|
+
require 'spec_helper'
|
19
|
+
|
20
|
+
describe 'client.esql#async_query_delete' do
|
21
|
+
let(:expected_args) do
|
22
|
+
[
|
23
|
+
'DELETE',
|
24
|
+
'_query/async/foo',
|
25
|
+
{},
|
26
|
+
nil,
|
27
|
+
{},
|
28
|
+
{ defined_params: {id: 'foo' }, endpoint: 'esql.async_query_delete' }
|
29
|
+
]
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'performs the request' do
|
33
|
+
expect(client_double.esql.async_query_delete(id: 'foo')).to be_a Elasticsearch::API::Response
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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
|
+
require 'spec_helper'
|
19
|
+
|
20
|
+
describe 'client.indices#get_data_lifecycle_stats' do
|
21
|
+
let(:expected_args) do
|
22
|
+
[
|
23
|
+
'GET',
|
24
|
+
'_lifecycle/stats',
|
25
|
+
{},
|
26
|
+
nil,
|
27
|
+
{},
|
28
|
+
{ endpoint: 'indices.get_data_lifecycle_stats' }
|
29
|
+
]
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'performs the request' do
|
33
|
+
expect(client_double.indices.get_data_lifecycle_stats).to be_a Elasticsearch::API::Response
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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
|
+
require 'spec_helper'
|
19
|
+
|
20
|
+
describe 'client#inference.update' do
|
21
|
+
let(:expected_args) do
|
22
|
+
[
|
23
|
+
'POST',
|
24
|
+
'_inference/foo/bar/_update',
|
25
|
+
{},
|
26
|
+
nil,
|
27
|
+
{},
|
28
|
+
{ defined_params: { inference_id: 'bar', task_type: 'foo' },
|
29
|
+
endpoint: 'inference.update' }
|
30
|
+
]
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'performs the request' do
|
34
|
+
expect(client_double.inference.update(task_type: 'foo', inference_id: 'bar')).to be_a Elasticsearch::API::Response
|
35
|
+
end
|
36
|
+
end
|
@@ -34,6 +34,6 @@ describe 'client.ingest#delete_geoip_database' do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'performs the request' do
|
37
|
-
expect(client_double.ingest.delete_geoip_database(id: 'foo'
|
37
|
+
expect(client_double.ingest.delete_geoip_database(id: 'foo')).to be_a Elasticsearch::API::Response
|
38
38
|
end
|
39
39
|
end
|
@@ -34,6 +34,6 @@ describe 'client.ingest#delete_ip_location_database' do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'performs the request' do
|
37
|
-
expect(client_double.ingest.delete_ip_location_database(id: 'foo'
|
37
|
+
expect(client_double.ingest.delete_ip_location_database(id: 'foo')).to be_a Elasticsearch::API::Response
|
38
38
|
end
|
39
39
|
end
|
@@ -0,0 +1,39 @@
|
|
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
|
+
require 'spec_helper'
|
19
|
+
|
20
|
+
describe 'client#security#delegate_pki' do
|
21
|
+
let(:expected_args) do
|
22
|
+
[
|
23
|
+
'POST',
|
24
|
+
'_security/delegate_pki',
|
25
|
+
params,
|
26
|
+
{},
|
27
|
+
{},
|
28
|
+
{ endpoint: 'security.delegate_pki' }
|
29
|
+
]
|
30
|
+
end
|
31
|
+
|
32
|
+
let(:params) do
|
33
|
+
{}
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'performs the request' do
|
37
|
+
expect(client_double.security.delegate_pki(body: {})).to be_a Elasticsearch::API::Response
|
38
|
+
end
|
39
|
+
end
|
data/utils/Gemfile
CHANGED
@@ -24,5 +24,5 @@ gem 'multi_json'
|
|
24
24
|
gem 'pry'
|
25
25
|
gem 'thor'
|
26
26
|
|
27
|
-
gem 'rubocop', '>= 1.51' unless defined?(JRUBY_VERSION)
|
27
|
+
gem 'rubocop', '>= 1.51' unless defined?(JRUBY_VERSION)
|
28
28
|
gem 'debug' unless defined?(JRUBY_VERSION)
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.17.
|
4
|
+
version: 8.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic Client Library Maintainers
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: multi_json
|
@@ -178,6 +177,20 @@ dependencies:
|
|
178
177
|
- - ">="
|
179
178
|
- !ruby/object:Gem::Version
|
180
179
|
version: '0'
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: concurrent-ruby
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - '='
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 1.3.4
|
187
|
+
type: :development
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - '='
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: 1.3.4
|
181
194
|
- !ruby/object:Gem::Dependency
|
182
195
|
name: jsonify
|
183
196
|
requirement: !ruby/object:Gem::Requirement
|
@@ -466,6 +479,7 @@ files:
|
|
466
479
|
- lib/elasticsearch/api/actions/eql/get_status.rb
|
467
480
|
- lib/elasticsearch/api/actions/eql/search.rb
|
468
481
|
- lib/elasticsearch/api/actions/esql/async_query.rb
|
482
|
+
- lib/elasticsearch/api/actions/esql/async_query_delete.rb
|
469
483
|
- lib/elasticsearch/api/actions/esql/async_query_get.rb
|
470
484
|
- lib/elasticsearch/api/actions/esql/query.rb
|
471
485
|
- lib/elasticsearch/api/actions/exists.rb
|
@@ -526,6 +540,7 @@ files:
|
|
526
540
|
- lib/elasticsearch/api/actions/indices/get.rb
|
527
541
|
- lib/elasticsearch/api/actions/indices/get_alias.rb
|
528
542
|
- lib/elasticsearch/api/actions/indices/get_data_lifecycle.rb
|
543
|
+
- lib/elasticsearch/api/actions/indices/get_data_lifecycle_stats.rb
|
529
544
|
- lib/elasticsearch/api/actions/indices/get_data_stream.rb
|
530
545
|
- lib/elasticsearch/api/actions/indices/get_field_mapping.rb
|
531
546
|
- lib/elasticsearch/api/actions/indices/get_index_template.rb
|
@@ -563,6 +578,7 @@ files:
|
|
563
578
|
- lib/elasticsearch/api/actions/inference/inference.rb
|
564
579
|
- lib/elasticsearch/api/actions/inference/put.rb
|
565
580
|
- lib/elasticsearch/api/actions/inference/stream_inference.rb
|
581
|
+
- lib/elasticsearch/api/actions/inference/update.rb
|
566
582
|
- lib/elasticsearch/api/actions/info.rb
|
567
583
|
- lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb
|
568
584
|
- lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb
|
@@ -736,6 +752,7 @@ files:
|
|
736
752
|
- lib/elasticsearch/api/actions/security/create_api_key.rb
|
737
753
|
- lib/elasticsearch/api/actions/security/create_cross_cluster_api_key.rb
|
738
754
|
- lib/elasticsearch/api/actions/security/create_service_token.rb
|
755
|
+
- lib/elasticsearch/api/actions/security/delegate_pki.rb
|
739
756
|
- lib/elasticsearch/api/actions/security/delete_privileges.rb
|
740
757
|
- lib/elasticsearch/api/actions/security/delete_role.rb
|
741
758
|
- lib/elasticsearch/api/actions/security/delete_role_mapping.rb
|
@@ -989,6 +1006,7 @@ files:
|
|
989
1006
|
- spec/elasticsearch/api/actions/delete_by_query_spec.rb
|
990
1007
|
- spec/elasticsearch/api/actions/delete_document_spec.rb
|
991
1008
|
- spec/elasticsearch/api/actions/delete_script_spec.rb
|
1009
|
+
- spec/elasticsearch/api/actions/esql/async_query_delete_spec.rb
|
992
1010
|
- spec/elasticsearch/api/actions/esql/async_query_get._spec.rb
|
993
1011
|
- spec/elasticsearch/api/actions/esql/async_query_spec.rb
|
994
1012
|
- spec/elasticsearch/api/actions/esql/query_spec.rb
|
@@ -1028,6 +1046,7 @@ files:
|
|
1028
1046
|
- spec/elasticsearch/api/actions/indices/forcemerge_spec.rb
|
1029
1047
|
- spec/elasticsearch/api/actions/indices/get_alias_spec.rb
|
1030
1048
|
- spec/elasticsearch/api/actions/indices/get_data_lifecycle_spec.rb
|
1049
|
+
- spec/elasticsearch/api/actions/indices/get_data_lifecycle_stats_spec.rb
|
1031
1050
|
- spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb
|
1032
1051
|
- spec/elasticsearch/api/actions/indices/get_mapping_spec.rb
|
1033
1052
|
- spec/elasticsearch/api/actions/indices/get_settings_spec.rb
|
@@ -1055,6 +1074,7 @@ files:
|
|
1055
1074
|
- spec/elasticsearch/api/actions/inference/inference_spec.rb
|
1056
1075
|
- spec/elasticsearch/api/actions/inference/put_spec.rb
|
1057
1076
|
- spec/elasticsearch/api/actions/inference/stream_inference_spec.rb
|
1077
|
+
- spec/elasticsearch/api/actions/inference/update_spec.rb
|
1058
1078
|
- spec/elasticsearch/api/actions/info_spec.rb
|
1059
1079
|
- spec/elasticsearch/api/actions/ingest/delete_geoip_database_spec.rb
|
1060
1080
|
- spec/elasticsearch/api/actions/ingest/delete_ip_location_database_spec.rb
|
@@ -1132,6 +1152,7 @@ files:
|
|
1132
1152
|
- spec/elasticsearch/api/actions/security/create_api_key_spec.rb
|
1133
1153
|
- spec/elasticsearch/api/actions/security/create_cross_cluster_api_key_spec.rb
|
1134
1154
|
- spec/elasticsearch/api/actions/security/create_service_token_spec.rb
|
1155
|
+
- spec/elasticsearch/api/actions/security/delegate_pki_spec.rb
|
1135
1156
|
- spec/elasticsearch/api/actions/security/delete_service_token_spec.rb
|
1136
1157
|
- spec/elasticsearch/api/actions/security/disable_user_profile_spec.rb
|
1137
1158
|
- spec/elasticsearch/api/actions/security/enable_user_profile_spec.rb
|
@@ -1376,7 +1397,6 @@ metadata:
|
|
1376
1397
|
changelog_uri: https://github.com/elastic/elasticsearch-ruby/blob/main/CHANGELOG.md
|
1377
1398
|
source_code_uri: https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-api
|
1378
1399
|
bug_tracker_uri: https://github.com/elastic/elasticsearch-ruby/issues
|
1379
|
-
post_install_message:
|
1380
1400
|
rdoc_options:
|
1381
1401
|
- "--charset=UTF-8"
|
1382
1402
|
require_paths:
|
@@ -1392,8 +1412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1392
1412
|
- !ruby/object:Gem::Version
|
1393
1413
|
version: '0'
|
1394
1414
|
requirements: []
|
1395
|
-
rubygems_version: 3.
|
1396
|
-
signing_key:
|
1415
|
+
rubygems_version: 3.6.2
|
1397
1416
|
specification_version: 4
|
1398
1417
|
summary: Ruby API for Elasticsearch.
|
1399
1418
|
test_files:
|
@@ -1475,6 +1494,7 @@ test_files:
|
|
1475
1494
|
- spec/elasticsearch/api/actions/delete_by_query_spec.rb
|
1476
1495
|
- spec/elasticsearch/api/actions/delete_document_spec.rb
|
1477
1496
|
- spec/elasticsearch/api/actions/delete_script_spec.rb
|
1497
|
+
- spec/elasticsearch/api/actions/esql/async_query_delete_spec.rb
|
1478
1498
|
- spec/elasticsearch/api/actions/esql/async_query_get._spec.rb
|
1479
1499
|
- spec/elasticsearch/api/actions/esql/async_query_spec.rb
|
1480
1500
|
- spec/elasticsearch/api/actions/esql/query_spec.rb
|
@@ -1514,6 +1534,7 @@ test_files:
|
|
1514
1534
|
- spec/elasticsearch/api/actions/indices/forcemerge_spec.rb
|
1515
1535
|
- spec/elasticsearch/api/actions/indices/get_alias_spec.rb
|
1516
1536
|
- spec/elasticsearch/api/actions/indices/get_data_lifecycle_spec.rb
|
1537
|
+
- spec/elasticsearch/api/actions/indices/get_data_lifecycle_stats_spec.rb
|
1517
1538
|
- spec/elasticsearch/api/actions/indices/get_field_mapping_spec.rb
|
1518
1539
|
- spec/elasticsearch/api/actions/indices/get_mapping_spec.rb
|
1519
1540
|
- spec/elasticsearch/api/actions/indices/get_settings_spec.rb
|
@@ -1541,6 +1562,7 @@ test_files:
|
|
1541
1562
|
- spec/elasticsearch/api/actions/inference/inference_spec.rb
|
1542
1563
|
- spec/elasticsearch/api/actions/inference/put_spec.rb
|
1543
1564
|
- spec/elasticsearch/api/actions/inference/stream_inference_spec.rb
|
1565
|
+
- spec/elasticsearch/api/actions/inference/update_spec.rb
|
1544
1566
|
- spec/elasticsearch/api/actions/info_spec.rb
|
1545
1567
|
- spec/elasticsearch/api/actions/ingest/delete_geoip_database_spec.rb
|
1546
1568
|
- spec/elasticsearch/api/actions/ingest/delete_ip_location_database_spec.rb
|
@@ -1618,6 +1640,7 @@ test_files:
|
|
1618
1640
|
- spec/elasticsearch/api/actions/security/create_api_key_spec.rb
|
1619
1641
|
- spec/elasticsearch/api/actions/security/create_cross_cluster_api_key_spec.rb
|
1620
1642
|
- spec/elasticsearch/api/actions/security/create_service_token_spec.rb
|
1643
|
+
- spec/elasticsearch/api/actions/security/delegate_pki_spec.rb
|
1621
1644
|
- spec/elasticsearch/api/actions/security/delete_service_token_spec.rb
|
1622
1645
|
- spec/elasticsearch/api/actions/security/disable_user_profile_spec.rb
|
1623
1646
|
- spec/elasticsearch/api/actions/security/enable_user_profile_spec.rb
|