elasticsearch-xpack 6.8.3 → 7.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +17 -0
  3. data/LICENSE.txt +202 -21
  4. data/Rakefile +20 -1
  5. data/elasticsearch-xpack.gemspec +46 -31
  6. data/examples/watcher/error_500.rb +18 -7
  7. data/lib/elasticsearch/xpack.rb +40 -3
  8. data/lib/elasticsearch/xpack/api/actions/graph/explore.rb +17 -4
  9. data/lib/elasticsearch/xpack/api/actions/info.rb +16 -3
  10. data/lib/elasticsearch/xpack/api/actions/license/delete.rb +16 -3
  11. data/lib/elasticsearch/xpack/api/actions/license/get.rb +16 -3
  12. data/lib/elasticsearch/xpack/api/actions/license/get_basic_status.rb +16 -3
  13. data/lib/elasticsearch/xpack/api/actions/license/get_trial_status.rb +16 -3
  14. data/lib/elasticsearch/xpack/api/actions/license/post.rb +16 -3
  15. data/lib/elasticsearch/xpack/api/actions/license/post_start_basic.rb +16 -3
  16. data/lib/elasticsearch/xpack/api/actions/license/post_start_trial.rb +16 -3
  17. data/lib/elasticsearch/xpack/api/actions/machine_learning/close_job.rb +17 -4
  18. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar.rb +16 -3
  19. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_event.rb +16 -3
  20. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_job.rb +16 -3
  21. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb +16 -3
  22. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb +16 -3
  23. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_filter.rb +16 -3
  24. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_forecast.rb +1 -5
  25. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb +16 -3
  26. data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb +16 -3
  27. data/lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb +0 -4
  28. data/lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb +16 -3
  29. data/lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb +16 -3
  30. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_buckets.rb +16 -3
  31. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendar_events.rb +16 -3
  32. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendars.rb +16 -3
  33. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb +16 -3
  34. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb +16 -3
  35. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeeds.rb +16 -3
  36. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_filters.rb +16 -3
  37. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_influencers.rb +16 -3
  38. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_job_stats.rb +16 -3
  39. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_jobs.rb +16 -3
  40. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_model_snapshots.rb +16 -3
  41. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_overall_buckets.rb +16 -3
  42. data/lib/elasticsearch/xpack/api/actions/machine_learning/get_records.rb +16 -3
  43. data/lib/elasticsearch/xpack/api/actions/machine_learning/info.rb +16 -3
  44. data/lib/elasticsearch/xpack/api/actions/machine_learning/open_job.rb +16 -3
  45. data/lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb +16 -3
  46. data/lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb +16 -3
  47. data/lib/elasticsearch/xpack/api/actions/machine_learning/preview_datafeed.rb +16 -3
  48. data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar.rb +16 -3
  49. data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar_job.rb +16 -3
  50. data/lib/elasticsearch/xpack/api/actions/machine_learning/put_datafeed.rb +16 -3
  51. data/lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb +16 -3
  52. data/lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb +16 -3
  53. data/lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb +16 -3
  54. data/lib/elasticsearch/xpack/api/actions/machine_learning/set_upgrade_mode.rb +5 -9
  55. data/lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb +16 -3
  56. data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb +16 -3
  57. data/lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb +16 -3
  58. data/lib/elasticsearch/xpack/api/actions/machine_learning/update_filter.rb +0 -4
  59. data/lib/elasticsearch/xpack/api/actions/machine_learning/update_job.rb +16 -3
  60. data/lib/elasticsearch/xpack/api/actions/machine_learning/update_model_snapshot.rb +0 -4
  61. data/lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb +0 -4
  62. data/lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb +0 -4
  63. data/lib/elasticsearch/xpack/api/actions/migration/deprecations.rb +16 -3
  64. data/lib/elasticsearch/xpack/api/actions/migration/get_assistance.rb +16 -3
  65. data/lib/elasticsearch/xpack/api/actions/migration/upgrade.rb +16 -3
  66. data/lib/elasticsearch/xpack/api/actions/monitoring/bulk.rb +16 -3
  67. data/lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb +16 -3
  68. data/lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb +16 -3
  69. data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb +16 -3
  70. data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_index_caps.rb +0 -4
  71. data/lib/elasticsearch/xpack/api/actions/rollup/put_job.rb +16 -3
  72. data/lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb +17 -4
  73. data/lib/elasticsearch/xpack/api/actions/rollup/start_job.rb +16 -3
  74. data/lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb +16 -3
  75. data/lib/elasticsearch/xpack/api/actions/security/authenticate.rb +16 -3
  76. data/lib/elasticsearch/xpack/api/actions/security/change_password.rb +16 -3
  77. data/lib/elasticsearch/xpack/api/actions/security/clear_cached_realms.rb +16 -3
  78. data/lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb +16 -3
  79. data/lib/elasticsearch/xpack/api/actions/security/create_api_key.rb +0 -4
  80. data/lib/elasticsearch/xpack/api/actions/security/delete_privileges.rb +0 -4
  81. data/lib/elasticsearch/xpack/api/actions/security/delete_role.rb +16 -3
  82. data/lib/elasticsearch/xpack/api/actions/security/delete_role_mapping.rb +16 -3
  83. data/lib/elasticsearch/xpack/api/actions/security/delete_user.rb +16 -3
  84. data/lib/elasticsearch/xpack/api/actions/security/disable_user.rb +16 -3
  85. data/lib/elasticsearch/xpack/api/actions/security/enable_user.rb +16 -3
  86. data/lib/elasticsearch/xpack/api/actions/security/get_api_key.rb +6 -10
  87. data/lib/elasticsearch/xpack/api/actions/security/get_privileges.rb +0 -4
  88. data/lib/elasticsearch/xpack/api/actions/security/get_role.rb +16 -3
  89. data/lib/elasticsearch/xpack/api/actions/security/get_role_mapping.rb +16 -3
  90. data/lib/elasticsearch/xpack/api/actions/security/get_token.rb +16 -3
  91. data/lib/elasticsearch/xpack/api/actions/security/get_user.rb +16 -3
  92. data/lib/elasticsearch/xpack/api/actions/security/get_user_privileges.rb +0 -4
  93. data/lib/elasticsearch/xpack/api/actions/security/has_privileges.rb +0 -4
  94. data/lib/elasticsearch/xpack/api/actions/security/invalidate_api_key.rb +0 -4
  95. data/lib/elasticsearch/xpack/api/actions/security/invalidate_token.rb +16 -3
  96. data/lib/elasticsearch/xpack/api/actions/security/put_privileges.rb +0 -4
  97. data/lib/elasticsearch/xpack/api/actions/security/put_role.rb +16 -3
  98. data/lib/elasticsearch/xpack/api/actions/security/put_role_mapping.rb +16 -3
  99. data/lib/elasticsearch/xpack/api/actions/security/put_user.rb +16 -3
  100. data/lib/elasticsearch/xpack/api/actions/sql/clear_cursor.rb +16 -3
  101. data/lib/elasticsearch/xpack/api/actions/sql/query.rb +16 -3
  102. data/lib/elasticsearch/xpack/api/actions/sql/translate.rb +16 -3
  103. data/lib/elasticsearch/xpack/api/actions/ssl/certificates.rb +16 -3
  104. data/lib/elasticsearch/xpack/api/actions/usage.rb +16 -3
  105. data/lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb +16 -3
  106. data/lib/elasticsearch/xpack/api/actions/watcher/activate_watch.rb +16 -3
  107. data/lib/elasticsearch/xpack/api/actions/watcher/deactivate_watch.rb +16 -3
  108. data/lib/elasticsearch/xpack/api/actions/watcher/delete_watch.rb +16 -3
  109. data/lib/elasticsearch/xpack/api/actions/watcher/execute_watch.rb +16 -3
  110. data/lib/elasticsearch/xpack/api/actions/watcher/get_watch.rb +16 -3
  111. data/lib/elasticsearch/xpack/api/actions/watcher/put_watch.rb +16 -3
  112. data/lib/elasticsearch/xpack/api/actions/watcher/restart.rb +16 -3
  113. data/lib/elasticsearch/xpack/api/actions/watcher/start.rb +16 -3
  114. data/lib/elasticsearch/xpack/api/actions/watcher/stats.rb +16 -3
  115. data/lib/elasticsearch/xpack/api/actions/watcher/stop.rb +16 -3
  116. data/lib/elasticsearch/xpack/api/namespace/graph.rb +16 -3
  117. data/lib/elasticsearch/xpack/api/namespace/license.rb +16 -3
  118. data/lib/elasticsearch/xpack/api/namespace/machine_learning.rb +16 -3
  119. data/lib/elasticsearch/xpack/api/namespace/migration.rb +16 -3
  120. data/lib/elasticsearch/xpack/api/namespace/monitoring.rb +16 -3
  121. data/lib/elasticsearch/xpack/api/namespace/rollup.rb +16 -3
  122. data/lib/elasticsearch/xpack/api/namespace/security.rb +16 -3
  123. data/lib/elasticsearch/xpack/api/namespace/sql.rb +16 -3
  124. data/lib/elasticsearch/xpack/api/namespace/ssl.rb +16 -3
  125. data/lib/elasticsearch/xpack/api/namespace/watcher.rb +16 -3
  126. data/lib/elasticsearch/xpack/version.rb +17 -4
  127. metadata +45 -54
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5697d3559e3fbcb1fa13163ba6a04ca9df9e438438687b23e69bffa81a057173
4
- data.tar.gz: 7463c07e6c2b7a16289380eee9a3d46091b29b7676152c77c70631287e441b4a
3
+ metadata.gz: d6007a808d743525d0798f6c5c47137c295391b319e6ea38936b1c6b9c0fe666
4
+ data.tar.gz: 756b1f1c0832d0451a546617e9fbcb111b1aa976035cf8aeae05a35adf70f8a2
5
5
  SHA512:
6
- metadata.gz: 4caff8ce4bfa32f2390b52322de94a2cdbcce9c1e30ca74abbc29e6f7111f261d1e68e235d123a1282c1df2b7a9ace2e41cb810aef32f86816bfc94d1783ec20
7
- data.tar.gz: 8e714e1f5f2b2e3225088f75c5b9df9f9ae2298a86927f4587578a95cad8014465a45f97651e736f383846b7d9ce025842158febb896e24a941ebb0e09f5786a
6
+ metadata.gz: 62b8f306f233d14d013224cc4e5a8de4135b3a917c01ef46309605237c523123d68df02b20c01d35596f295687193062c8c9ce5ba81b50f90dcc04601bccfda4
7
+ data.tar.gz: b07df962cf69882a8a2de95726a4e09e24a4cdff892fd9dc78875f321d68297bfa3b343c01c4dbe18e2975b58bbe6b2591d1eb759ede7e846d9be72c101e1189
data/Gemfile CHANGED
@@ -1,3 +1,20 @@
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
+
1
18
  source 'https://rubygems.org'
2
19
 
3
20
  # Specify your gem's dependencies in elasticsearch-xpack.gemspec
data/LICENSE.txt CHANGED
@@ -1,21 +1,202 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2016 Karel Minarik
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/Rakefile CHANGED
@@ -1,8 +1,26 @@
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
+
1
18
  require 'bundler/gem_tasks'
2
19
 
3
20
  require 'rake/testtask'
4
21
  require 'rspec/core/rake_task'
5
22
 
23
+
6
24
  task :default do
7
25
  exec "rake --tasks"
8
26
  end
@@ -20,6 +38,7 @@ namespace :test do
20
38
 
21
39
  desc "Run rest api yaml tests"
22
40
  Rake::TestTask.new(:rest_api) do |test|
41
+ `rm Gemfile.lock`
23
42
  test.deps = [ :spec ]
24
43
  end
25
44
 
@@ -51,7 +70,7 @@ namespace :test do
51
70
  --volume $(pwd)/tmp/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \
52
71
  --memory 4g \
53
72
  --rm \
54
- docker.elastic.co/elasticsearch/elasticsearch:7.0.0-alpha1-SNAPSHOT
73
+ docker.elastic.co/elasticsearch/elasticsearch:7.0.0-SNAPSHOT
55
74
  COMMAND
56
75
  end
57
76
  end
@@ -1,41 +1,56 @@
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
+
1
18
  # coding: utf-8
2
19
  lib = File.expand_path('../lib', __FILE__)
3
20
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
21
  require 'elasticsearch/xpack/version'
5
22
 
6
23
  Gem::Specification.new do |spec|
7
- spec.name = 'elasticsearch-xpack'
24
+ spec.name = "elasticsearch-xpack"
8
25
  spec.version = Elasticsearch::XPack::VERSION
9
- spec.authors = ['Karel Minarik']
10
- spec.email = ['karel@elastic.co']
11
- spec.summary = 'Ruby integrations for the X-Pack extensions for Elasticsearch'
12
- spec.description = 'Ruby integrations for the X-Pack extensions for Elasticsearch'
13
- spec.homepage = 'https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html'
14
- spec.license = 'Apache-2.0'
15
- spec.metadata = {
16
- 'homepage_uri' => 'https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html',
17
- 'changelog_uri' => 'https://github.com/elastic/elasticsearch-ruby/blob/6.x/CHANGELOG.md',
18
- 'source_code_uri' => 'https://github.com/elastic/elasticsearch-ruby/tree/6.x/elasticsearch-xpack',
19
- 'bug_tracker_uri' => 'https://github.com/elastic/elasticsearch-ruby/issues'
20
- }
26
+ spec.authors = ["Karel Minarik"]
27
+ spec.email = ["karel@elastic.co"]
28
+
29
+ spec.summary = "Ruby integrations for the X-Pack extensions for Elasticsearch"
30
+ spec.description = "Ruby integrations for the X-Pack extensions for Elasticsearch"
31
+ spec.homepage = "https://github.com/elastic/elasticsearch-xpack-ruby"
32
+ spec.license = "Apache-2.0"
33
+
21
34
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
35
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
- spec.require_paths = ['lib']
24
-
25
- spec.add_dependency 'elasticsearch-api', '~> 6'
26
-
27
- spec.add_development_dependency 'activesupport'
28
- spec.add_development_dependency 'ansi'
29
- spec.add_development_dependency 'bundler'
30
- spec.add_development_dependency 'elasticsearch', '~> 6'
31
- spec.add_development_dependency 'elasticsearch-extensions'
32
- spec.add_development_dependency 'elasticsearch-transport', '~> 6'
33
- spec.add_development_dependency 'minitest'
34
- spec.add_development_dependency 'minitest-reporters'
35
- spec.add_development_dependency 'mocha'
36
- spec.add_development_dependency 'pry'
37
- spec.add_development_dependency 'rake', '~> 13'
38
- spec.add_development_dependency 'ruby-prof' unless defined?(JRUBY_VERSION) || defined?(Rubinius)
39
- spec.add_development_dependency 'shoulda-context'
40
- spec.add_development_dependency 'yard'
36
+ spec.require_paths = ["lib"]
37
+
38
+ spec.add_development_dependency "bundler"
39
+ spec.add_development_dependency "rake", "~> 11.1"
40
+ spec.add_development_dependency "ruby-prof" unless defined?(JRUBY_VERSION) || defined?(Rubinius)
41
+
42
+ spec.add_dependency "elasticsearch-api", '>= 6'
43
+
44
+ spec.add_development_dependency "elasticsearch", '>= 6'
45
+ spec.add_development_dependency "elasticsearch-transport", '>= 6'
46
+ spec.add_development_dependency "elasticsearch-extensions"
47
+
48
+ spec.add_development_dependency "activesupport"
49
+ spec.add_development_dependency "ansi"
50
+ spec.add_development_dependency "minitest"
51
+ spec.add_development_dependency "minitest-reporters"
52
+ spec.add_development_dependency "shoulda-context"
53
+ spec.add_development_dependency "mocha"
54
+ spec.add_development_dependency "yard"
55
+ spec.add_development_dependency "pry"
41
56
  end
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
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.
4
17
 
5
18
  # An example of a complex configuration for Elasticsearch Watcher alerting and notification system.
6
19
  #
@@ -140,10 +153,8 @@ client.xpack.watcher.put_watch id: 'error_500', body: {
140
153
  #
141
154
  client.indices.create index: 'test_errors', body: {
142
155
  mappings: {
143
- d: {
144
- properties: {
145
- host: { type: 'keyword' }
146
- }
156
+ properties: {
157
+ host: { type: 'keyword' }
147
158
  }
148
159
  }
149
160
  }
@@ -1,6 +1,19 @@
1
- # Licensed to Elasticsearch B.V under one or more agreements.
2
- # Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
- # See the LICENSE file in the project root for more information
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.
4
17
 
5
18
  require "elasticsearch/api"
6
19
  require "elasticsearch/xpack/version"
@@ -41,6 +54,30 @@ module Elasticsearch
41
54
  def ml
42
55
  @ml ||= xpack.ml
43
56
  end
57
+
58
+ def rollup
59
+ @rollup ||= xpack.rollup
60
+ end
61
+
62
+ def watcher
63
+ @watcher ||= xpack.watcher
64
+ end
65
+
66
+ def graph
67
+ @graph ||= xpack.graph
68
+ end
69
+
70
+ def migration
71
+ @migration ||= xpack.migration
72
+ end
73
+
74
+ def sql
75
+ @sql ||= xpack.sql
76
+ end
77
+
78
+ def deprecation
79
+ @deprecation ||= xpack.deprecation
80
+ end
44
81
  end
45
82
  end
46
83
  end if defined?(Elasticsearch::Transport::Client)