elasticsearch-xpack 5.5.0 → 6.0.0

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/Rakefile +16 -30
  4. data/elasticsearch-xpack.gemspec +3 -4
  5. data/examples/watcher/error_500.rb +23 -14
  6. data/lib/elasticsearch/xpack/api/actions/license/delete.rb +1 -1
  7. data/lib/elasticsearch/xpack/api/actions/license/get.rb +1 -1
  8. data/lib/elasticsearch/xpack/api/actions/license/post.rb +1 -1
  9. data/lib/elasticsearch/xpack/api/actions/machine_learning/close_job.rb +3 -1
  10. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb +1 -1
  11. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb +0 -5
  12. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_filter.rb +0 -4
  13. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb +2 -2
  14. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb +2 -2
  15. data/lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb +6 -3
  16. data/lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb +31 -0
  17. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_buckets.rb +2 -2
  18. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb +2 -2
  19. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb +6 -2
  20. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeeds.rb +9 -5
  21. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_filters.rb +1 -5
  22. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_influencers.rb +2 -2
  23. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_job_stats.rb +5 -1
  24. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_jobs.rb +7 -3
  25. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_model_snapshots.rb +2 -2
  26. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_overall_buckets.rb +44 -0
  27. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_records.rb +4 -2
  28. data/lib/elasticsearch/xpack/api/actions/machine_learning/open_job.rb +2 -2
  29. data/lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb +2 -2
  30. data/lib/elasticsearch/xpack/api/actions/machine_learning/preview_datafeed.rb +2 -2
  31. data/lib/elasticsearch/xpack/api/actions/machine_learning/put_datafeed.rb +2 -2
  32. data/lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb +0 -4
  33. data/lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb +2 -2
  34. data/lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb +4 -2
  35. data/lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb +4 -2
  36. data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb +4 -2
  37. data/lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb +3 -2
  38. data/lib/elasticsearch/xpack/api/actions/machine_learning/update_job.rb +2 -2
  39. data/lib/elasticsearch/xpack/api/actions/machine_learning/update_model_snapshot.rb +3 -2
  40. data/lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb +1 -4
  41. data/lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb +0 -4
  42. data/lib/elasticsearch/xpack/api/actions/migration/deprecations.rb +26 -0
  43. data/lib/elasticsearch/xpack/api/actions/migration/get_assistance.rb +33 -0
  44. data/lib/elasticsearch/xpack/api/actions/migration/upgrade.rb +31 -0
  45. data/lib/elasticsearch/xpack/api/actions/security/put_user.rb +1 -0
  46. data/lib/elasticsearch/xpack/api/actions/ssl/certificates.rb +19 -0
  47. data/lib/elasticsearch/xpack/api/namespace/migration.rb +18 -0
  48. data/lib/elasticsearch/xpack/api/namespace/ssl.rb +18 -0
  49. data/lib/elasticsearch/xpack/version.rb +1 -1
  50. metadata +19 -25
@@ -4,12 +4,8 @@ module Elasticsearch
4
4
  module MachineLearning
5
5
  module Actions
6
6
 
7
- # TODO: Description
8
- #
9
7
  # @option arguments [Hash] :body The detector (*Required*)
10
8
  #
11
- # @see http://www.elastic.co/guide/en/x-pack/current/ml-valid-detector.html
12
- #
13
9
  def validate_detector(arguments={})
14
10
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
15
11
  method = Elasticsearch::API::HTTP_POST
@@ -0,0 +1,26 @@
1
+ module Elasticsearch
2
+ module XPack
3
+ module API
4
+ module Migration
5
+ module Actions
6
+
7
+ # Retrieve information about different cluster, node, and index level settings
8
+ # that use deprecated features that will be removed or changed in the next major version
9
+ #
10
+ # @option arguments [String] :index Index pattern (optional)
11
+ #
12
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html
13
+ #
14
+ def deprecations(arguments={})
15
+ method = Elasticsearch::API::HTTP_GET
16
+ path = Elasticsearch::API::Utils.__pathify arguments[:index], "_xpack/migration/deprecations"
17
+ params = {}
18
+ body = nil
19
+
20
+ perform_request(method, path, params, body).body
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,33 @@
1
+ module Elasticsearch
2
+ module XPack
3
+ module API
4
+ module Migration
5
+ module Actions
6
+
7
+ # Returns the information about indices that require some changes before the cluster can be upgraded to the next major version
8
+ #
9
+ # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
10
+ # @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
11
+ # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, none, all)
12
+ # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
13
+ #
14
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html
15
+ #
16
+ def get_assistance(arguments={})
17
+ valid_params = [
18
+ :allow_no_indices,
19
+ :expand_wildcards,
20
+ :ignore_unavailable ]
21
+
22
+ method = Elasticsearch::API::HTTP_GET
23
+ path = "_xpack/migration/assistance"
24
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
25
+ body = nil
26
+
27
+ perform_request(method, path, params, body).body
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,31 @@
1
+ module Elasticsearch
2
+ module XPack
3
+ module API
4
+ module Migration
5
+ module Actions
6
+
7
+ # Perform the upgrade of internal indices to make them compatible with the next major version
8
+ #
9
+ # @option arguments [String] :index The name of the index (*Required*)
10
+ # @option arguments [Boolean] :wait_for_completion Should the request block until the upgrade operation is completed
11
+ #
12
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html
13
+ #
14
+ def upgrade(arguments={})
15
+ raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
16
+
17
+ valid_params = [
18
+ :wait_for_completion ]
19
+
20
+ method = Elasticsearch::API::HTTP_POST
21
+ path = Elasticsearch::API::Utils.__pathify "_xpack/migration/upgrade", arguments[:index]
22
+ params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
23
+ body = nil
24
+
25
+ perform_request(method, path, params, body).body
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -13,6 +13,7 @@ module Elasticsearch
13
13
  # @see https://www.elastic.co/guide/en/x-pack/current/security-api-users.html#security-api-put-user
14
14
  #
15
15
  def put_user(arguments={})
16
+ raise ArgumentError, "Required argument 'username' missing" unless arguments[:username]
16
17
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
17
18
 
18
19
  valid_params = [ :refresh ]
@@ -0,0 +1,19 @@
1
+ module Elasticsearch
2
+ module XPack
3
+ module API
4
+ module SSL
5
+ module Actions
6
+
7
+ def certificates(arguments={})
8
+ method = Elasticsearch::API::HTTP_GET
9
+ path = "_xpack/ssl/certificates"
10
+ params = {}
11
+ body = nil
12
+
13
+ perform_request(method, path, params, body).body
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,18 @@
1
+ module Elasticsearch
2
+ module XPack
3
+ module API
4
+ module Migration
5
+ module Actions; end
6
+
7
+ class MigrationClient
8
+ include Elasticsearch::API::Common::Client, Elasticsearch::API::Common::Client::Base, Migration::Actions
9
+ end
10
+
11
+ def migration
12
+ @migration ||= MigrationClient.new(self)
13
+ end
14
+
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,18 @@
1
+ module Elasticsearch
2
+ module XPack
3
+ module API
4
+ module SSL
5
+ module Actions; end
6
+
7
+ class SSLClient
8
+ include Elasticsearch::API::Common::Client, Elasticsearch::API::Common::Client::Base, SSL::Actions
9
+ end
10
+
11
+ def ssl
12
+ @ssl ||= SSLClient.new(self)
13
+ end
14
+
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module XPack
3
- VERSION = "5.5.0"
3
+ VERSION = "6.0.0"
4
4
  end
5
5
  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: 5.5.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-07 00:00:00.000000000 Z
11
+ date: 2018-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,44 +42,44 @@ dependencies:
42
42
  name: elasticsearch-api
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '6'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: elasticsearch
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5'
61
+ version: '6'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5'
68
+ version: '6'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: elasticsearch-transport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5'
75
+ version: '6'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '5'
82
+ version: '6'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: elasticsearch-extensions
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -122,20 +122,6 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: turn
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: minitest
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -248,6 +234,7 @@ files:
248
234
  - lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb
249
235
  - lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb
250
236
  - lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb
237
+ - lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb
251
238
  - lib/elasticsearch/xpack/api/actions/machine_learning/get_buckets.rb
252
239
  - lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb
253
240
  - lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb
@@ -257,6 +244,7 @@ files:
257
244
  - lib/elasticsearch/xpack/api/actions/machine_learning/get_job_stats.rb
258
245
  - lib/elasticsearch/xpack/api/actions/machine_learning/get_jobs.rb
259
246
  - lib/elasticsearch/xpack/api/actions/machine_learning/get_model_snapshots.rb
247
+ - lib/elasticsearch/xpack/api/actions/machine_learning/get_overall_buckets.rb
260
248
  - lib/elasticsearch/xpack/api/actions/machine_learning/get_records.rb
261
249
  - lib/elasticsearch/xpack/api/actions/machine_learning/open_job.rb
262
250
  - lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb
@@ -272,6 +260,9 @@ files:
272
260
  - lib/elasticsearch/xpack/api/actions/machine_learning/update_model_snapshot.rb
273
261
  - lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb
274
262
  - lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb
263
+ - lib/elasticsearch/xpack/api/actions/migration/deprecations.rb
264
+ - lib/elasticsearch/xpack/api/actions/migration/get_assistance.rb
265
+ - lib/elasticsearch/xpack/api/actions/migration/upgrade.rb
275
266
  - lib/elasticsearch/xpack/api/actions/monitoring/bulk.rb
276
267
  - lib/elasticsearch/xpack/api/actions/security/authenticate.rb
277
268
  - lib/elasticsearch/xpack/api/actions/security/change_password.rb
@@ -290,6 +281,7 @@ files:
290
281
  - lib/elasticsearch/xpack/api/actions/security/put_role.rb
291
282
  - lib/elasticsearch/xpack/api/actions/security/put_role_mapping.rb
292
283
  - lib/elasticsearch/xpack/api/actions/security/put_user.rb
284
+ - lib/elasticsearch/xpack/api/actions/ssl/certificates.rb
293
285
  - lib/elasticsearch/xpack/api/actions/usage.rb
294
286
  - lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb
295
287
  - lib/elasticsearch/xpack/api/actions/watcher/activate_watch.rb
@@ -305,8 +297,10 @@ files:
305
297
  - lib/elasticsearch/xpack/api/namespace/graph.rb
306
298
  - lib/elasticsearch/xpack/api/namespace/license.rb
307
299
  - lib/elasticsearch/xpack/api/namespace/machine_learning.rb
300
+ - lib/elasticsearch/xpack/api/namespace/migration.rb
308
301
  - lib/elasticsearch/xpack/api/namespace/monitoring.rb
309
302
  - lib/elasticsearch/xpack/api/namespace/security.rb
303
+ - lib/elasticsearch/xpack/api/namespace/ssl.rb
310
304
  - lib/elasticsearch/xpack/api/namespace/watcher.rb
311
305
  - lib/elasticsearch/xpack/version.rb
312
306
  homepage: https://github.com/elastic/elasticsearch-xpack-ruby
@@ -329,7 +323,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
323
  version: '0'
330
324
  requirements: []
331
325
  rubyforge_project:
332
- rubygems_version: 2.6.12
326
+ rubygems_version: 2.5.2
333
327
  signing_key:
334
328
  specification_version: 4
335
329
  summary: Ruby integrations for the X-Pack extensions for Elasticsearch