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
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -1,7 +1,3 @@
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
4
-
5
1
  module Elasticsearch
6
2
  module XPack
7
3
  module API
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -20,7 +33,7 @@ module Elasticsearch
20
33
  raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
21
34
  raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
22
35
 
23
- valid_params = [ :typed_keys ]
36
+ valid_params = [ :typed_keys, :rest_total_hits_as_int ]
24
37
 
25
38
  method = Elasticsearch::API::HTTP_GET
26
39
  path = "#{arguments[:index]}/_rollup_search"
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -1,7 +1,3 @@
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
4
-
5
1
  # Licensed to Elasticsearch B.V. under one or more contributor
6
2
  # license agreements. See the NOTICE file distributed with
7
3
  # this work for additional information regarding copyright
@@ -1,7 +1,3 @@
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
4
-
5
1
  module Elasticsearch
6
2
  module XPack
7
3
  module API
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -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
  module Elasticsearch
6
19
  module XPack
@@ -1,7 +1,3 @@
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
4
-
5
1
  # Licensed to Elasticsearch B.V. under one or more contributor
6
2
  # license agreements. See the NOTICE file distributed with
7
3
  # this work for additional information regarding copyright
@@ -25,23 +21,23 @@ module Elasticsearch
25
21
  module Security
26
22
  module Actions
27
23
 
28
- # Retrieves information for one or more API keys.
24
+ # Creates an API key for access without requiring basic authentication.
29
25
  #
30
- # @option arguments [String] :id An API key id. This parameter cannot be used with any of name, realm_name or username are used.
26
+ # @option arguments [String] :id API key id of the API key to be retrieved.
31
27
  #
32
- # @option arguments [String] :name An API key name. This parameter cannot be used with any of id, realm_name or username are used.
28
+ # @option arguments [String] :name API key name of the API key to be retrieved.
33
29
  #
34
- # @option arguments [String] :realm_name The name of an authentication realm. This parameter cannot be used with either id or name.
30
+ # @option arguments [String] :username user name of the user who created this API key to be retrieved.
35
31
  #
36
- # @option arguments [String] :username The name of an authentication realm. This parameter cannot be used with either id or name.
32
+ # @option arguments [String] :realm_name realm name of the user who created this API key to be retrieved.
37
33
  #
38
34
  # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html
39
35
  #
40
36
  def get_api_key(arguments={})
41
37
 
42
38
  valid_params = [ :id,
43
- :username,
44
39
  :name,
40
+ :username,
45
41
  :realm_name ]
46
42
 
47
43
  method = Elasticsearch::API::HTTP_GET
@@ -1,7 +1,3 @@
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
4
-
5
1
  module Elasticsearch
6
2
  module XPack
7
3
  module API
@@ -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
  module Elasticsearch
6
19
  module XPack