elasticsearch-api 8.16.0 → 8.16.1

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.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +3 -1
  3. data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +1 -0
  4. data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +3 -1
  5. data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +3 -1
  6. data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +3 -1
  7. data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +3 -1
  8. data/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +3 -1
  9. data/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +3 -1
  10. data/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +3 -1
  11. data/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +3 -1
  12. data/lib/elasticsearch/api/actions/open_point_in_time.rb +1 -0
  13. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/delete_lifecycle.rb +3 -1
  14. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_lifecycle.rb +3 -1
  15. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/execute_retention.rb +3 -1
  16. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_lifecycle.rb +3 -1
  17. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_stats.rb +3 -1
  18. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/get_status.rb +3 -1
  19. data/lib/elasticsearch/api/actions/snapshot_lifecycle_management/put_lifecycle.rb +3 -1
  20. data/lib/elasticsearch/api/version.rb +1 -1
  21. data/spec/elasticsearch/api/actions/ingest/delete_geoip_database_spec.rb +1 -1
  22. data/spec/elasticsearch/api/actions/ingest/delete_ip_location_database_spec.rb +1 -1
  23. metadata +3 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 954afa8014c9ac4b52d49825b51d23a9561efaf6756860438e6316c0998bb0a5
4
- data.tar.gz: 21ef62e102b78517d88ceb63aea003d9f76055e1ceff04968a55a60f463f5bf2
3
+ metadata.gz: '012881fcb84fe7402d659068a588af810d5df7114d08ed1c33b032b1dfe2d452'
4
+ data.tar.gz: 967b9ff46251aca694ad9b00d820301c4d580aa29e5da4d271f2d91b301c4511
5
5
  SHA512:
6
- metadata.gz: 87d48b19cf7edadf2bb352591b8968a7e20eb153089ff0a4b9ede84f6aae7024ca9013267a58f3faf7ffeac605f12a482a13e7d4dae97cf26a1e4087f6cdc772
7
- data.tar.gz: 56f3eaabf110f5c5612a883e6ccc8a85e32d857280a5758463fef960f7c63e7597ab9bccf18d71445bf3209035b29772fba35097d73ee2842e7ad5203fdbadbc
6
+ metadata.gz: aca712225c4e2f368683f83d5e90884eb2a9fa5a68036cffb7efe46cb53197114853a04f1a534497c65a8e959c06e778c6f006489ed84721e9f418d42367d82a
7
+ data.tar.gz: 00d66e17fbcf50dfba1c3684d9c3b1df87bf423ef724f8d2faecbeeefbd29b2a47ab1045a4cfb06a235df8ce027f1ee2c1a80f53c7dd4cf6f0ffd13245093e51
@@ -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.16/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.16/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.16/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.16/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.16/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)
@@ -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.16/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.16/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)
@@ -29,6 +29,7 @@ module Elasticsearch
29
29
  # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
30
30
  # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
31
31
  # @option arguments [String] :keep_alive Specific the time to live for the point in time (*Required*)
32
+ # @option arguments [Boolean] :allow_partial_search_results Specify whether to tolerate shards missing when creating the point-in-time, or otherwise throw an exception. (default: false)
32
33
  # @option arguments [Hash] :headers Custom HTTP headers
33
34
  # @option arguments [Hash] :body An index_filter specified with the Query DSL
34
35
  #
@@ -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.16/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.16/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.16/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.16/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.16/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.16/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)
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module API
20
- VERSION = '8.16.0'.freeze
20
+ VERSION = '8.16.1'.freeze
21
21
  end
22
22
  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', body: {})).to be_a Elasticsearch::API::Response
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', body: {})).to be_a Elasticsearch::API::Response
37
+ expect(client_double.ingest.delete_ip_location_database(id: 'foo')).to be_a Elasticsearch::API::Response
38
38
  end
39
39
  end
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.16.0
4
+ version: 8.16.1
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: 2024-11-12 00:00:00.000000000 Z
10
+ date: 2025-01-15 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: multi_json
@@ -1376,7 +1375,6 @@ metadata:
1376
1375
  changelog_uri: https://github.com/elastic/elasticsearch-ruby/blob/main/CHANGELOG.md
1377
1376
  source_code_uri: https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-api
1378
1377
  bug_tracker_uri: https://github.com/elastic/elasticsearch-ruby/issues
1379
- post_install_message:
1380
1378
  rdoc_options:
1381
1379
  - "--charset=UTF-8"
1382
1380
  require_paths:
@@ -1392,8 +1390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1392
1390
  - !ruby/object:Gem::Version
1393
1391
  version: '0'
1394
1392
  requirements: []
1395
- rubygems_version: 3.5.20
1396
- signing_key:
1393
+ rubygems_version: 3.6.2
1397
1394
  specification_version: 4
1398
1395
  summary: Ruby API for Elasticsearch.
1399
1396
  test_files: