elasticsearch-xpack 7.16.0 → 7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b42c3cd922ed670808b28831380203579e66984606f599e198d2475f031957e8
4
- data.tar.gz: 8c5c0de94805e218d75dd553e9a7ac76bbee49dfbbb4b60a5866748ad89c7a37
3
+ metadata.gz: f2173e26141bb5ca03ffd6eb505ff5b548598e6c1350a71b10b96a313e9d9583
4
+ data.tar.gz: 3aec5794efa36943d141c4e778188d310c1a7138cf92a4f897b8e7727d40223f
5
5
  SHA512:
6
- metadata.gz: 48fb43fca299e4652f493c829879cfcf00dbe92d8a02a317511e53d471c499f2d28fa55c70759a107a79735ef52cb1541e591d064ea80abdb64c90d9c3e1b818
7
- data.tar.gz: 8b4c7faf99bd1f29acfdf6cf05e7f983166d156f6501c888abdf367568af325dc89e6dc38a8f34188e5a2a5f5eae53cf4b7b3d6f04434545752b93524d4f1645
6
+ metadata.gz: a5ebde05b66aa8afd82b52d9f74acd7fc5861c0864d1b4974968aa4bacccbb4a21198fbf314c068fb8eabb967ecfc8c0f820f8051edb13064ead0b9fd1ad08e0
7
+ data.tar.gz: 52d41b1bd113b5860bb4954d5ea56ecb29dc11509a62185972cc21bdb8d9b388c800c4f2391837b5e59771e81c2c215ec44d02cd62d97f37cc1f52dc33bd1c29
@@ -72,7 +72,7 @@ module Elasticsearch
72
72
  payload = body
73
73
  end
74
74
 
75
- headers.merge!("Content-Type" => "application/x-ndjson")
75
+ headers = Elasticsearch::API::Utils.ndjson_headers(headers)
76
76
  perform_request(method, path, params, payload, headers).body
77
77
  end
78
78
  end
@@ -61,7 +61,7 @@ module Elasticsearch
61
61
  payload = body
62
62
  end
63
63
 
64
- headers.merge!("Content-Type" => "application/x-ndjson")
64
+ headers = Elasticsearch::API::Utils.ndjson_headers(headers)
65
65
  perform_request(method, path, params, payload, headers).body
66
66
  end
67
67
 
@@ -59,7 +59,7 @@ module Elasticsearch
59
59
  payload = body
60
60
  end
61
61
 
62
- headers.merge!("Content-Type" => "application/x-ndjson")
62
+ headers = Elasticsearch::API::Utils.ndjson_headers(headers)
63
63
  perform_request(method, path, params, payload, headers).body
64
64
  end
65
65
 
@@ -24,6 +24,7 @@ module Elasticsearch
24
24
  #
25
25
  # @option arguments [String] :transform_id The id of the transform to delete
26
26
  # @option arguments [Boolean] :force When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted.
27
+ # @option arguments [Time] :timeout Controls the time to wait for the transform deletion
27
28
  # @option arguments [Hash] :headers Custom HTTP headers
28
29
  #
29
30
  # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.16/delete-transform.html
@@ -49,7 +50,8 @@ module Elasticsearch
49
50
  #
50
51
  # @since 6.2.0
51
52
  ParamsRegistry.register(:delete_transform, [
52
- :force
53
+ :force,
54
+ :timeout
53
55
  ].freeze)
54
56
  end
55
57
  end
@@ -23,6 +23,7 @@ module Elasticsearch
23
23
  # Previews a transform.
24
24
  #
25
25
  # @option arguments [String] :transform_id The id of the transform to preview.
26
+ # @option arguments [Time] :timeout Controls the time to wait for the preview
26
27
  # @option arguments [Hash] :headers Custom HTTP headers
27
28
  # @option arguments [Hash] :body The definition for the transform to preview
28
29
  #
@@ -46,11 +47,18 @@ module Elasticsearch
46
47
  else
47
48
  "_transform/_preview"
48
49
  end
49
- params = {}
50
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
50
51
 
51
52
  body = arguments[:body]
52
53
  perform_request(method, path, params, body, headers).body
53
54
  end
55
+
56
+ # Register this action with its valid params when the module is loaded.
57
+ #
58
+ # @since 6.2.0
59
+ ParamsRegistry.register(:preview_transform, [
60
+ :timeout
61
+ ].freeze)
54
62
  end
55
63
  end
56
64
  end
@@ -24,6 +24,7 @@ module Elasticsearch
24
24
  #
25
25
  # @option arguments [String] :transform_id The id of the new transform.
26
26
  # @option arguments [Boolean] :defer_validation If validations should be deferred until transform starts, defaults to false.
27
+ # @option arguments [Time] :timeout Controls the time to wait for the transform to start
27
28
  # @option arguments [Hash] :headers Custom HTTP headers
28
29
  # @option arguments [Hash] :body The transform definition (*Required*)
29
30
  #
@@ -51,7 +52,8 @@ module Elasticsearch
51
52
  #
52
53
  # @since 6.2.0
53
54
  ParamsRegistry.register(:put_transform, [
54
- :defer_validation
55
+ :defer_validation,
56
+ :timeout
55
57
  ].freeze)
56
58
  end
57
59
  end
@@ -24,6 +24,7 @@ module Elasticsearch
24
24
  #
25
25
  # @option arguments [String] :transform_id The id of the transform. (*Required*)
26
26
  # @option arguments [Boolean] :defer_validation If validations should be deferred until transform starts, defaults to false.
27
+ # @option arguments [Time] :timeout Controls the time to wait for the update
27
28
  # @option arguments [Hash] :headers Custom HTTP headers
28
29
  # @option arguments [Hash] :body The update transform definition (*Required*)
29
30
  #
@@ -51,7 +52,8 @@ module Elasticsearch
51
52
  #
52
53
  # @since 6.2.0
53
54
  ParamsRegistry.register(:update_transform, [
54
- :defer_validation
55
+ :defer_validation,
56
+ :timeout
55
57
  ].freeze)
56
58
  end
57
59
  end
@@ -23,6 +23,7 @@ module Elasticsearch
23
23
  # Upgrades all transforms.
24
24
  #
25
25
  # @option arguments [Boolean] :dry_run Whether to only check for updates but don't execute
26
+ # @option arguments [Time] :timeout Controls the time to wait for the upgrade
26
27
  # @option arguments [Hash] :headers Custom HTTP headers
27
28
  #
28
29
  # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.16/upgrade-transforms.html
@@ -44,7 +45,8 @@ module Elasticsearch
44
45
  #
45
46
  # @since 6.2.0
46
47
  ParamsRegistry.register(:upgrade_transforms, [
47
- :dry_run
48
+ :dry_run,
49
+ :timeout
48
50
  ].freeze)
49
51
  end
50
52
  end
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module XPack
20
- VERSION = '7.16.0'.freeze
20
+ VERSION = '7.16.1'.freeze
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-xpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.16.0
4
+ version: 7.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler